Worked examples (ByteOr OSS)
This guide gives a compact, canonical public worked-example surface for the ByteOr OSS workspace.
It is intentionally narrower than the surrounding product documentation in byteor-docs.
Use this guide when you want:
- a stable OSS-owned example for the source authoring path,
- a concrete
SingleRingexample, - a concrete
LaneGraphexample, - a simple mapping from source author intent to canonical spec shape.
Do not use this guide as a product-runtime or industry-domain reference. Those belong in the central docs site.
Example 1: Ordered SingleRing
Use this shape when the runtime is one ordered control path and strict stage sequence is the main requirement.
Representative fit:
- deterministic build-step chains,
- authoritative state updates,
- simple replayable decision paths.
The canonical spec.kv shape is line-oriented and deterministic:
Example 2: Graph-shaped LaneGraph
Use this shape when you need explicit topology, fanout or merge intent, and target-aware lowering.
The example below mirrors the checked-in lane_graph_v1_plan() test shape.
Representative fit:
- fanout and merge graphs,
- branch-aware routing systems,
- topology-first execution planning.
Example 3: Rejected shape
Use this example to understand what the validator rejects today.
This SingleRing shape is invalid because strict ordering and shards > 1 do not belong together in the current v1 contract. The checked-in validator test uses shards=4; this shorter KV excerpt shows the same rejected rule.
How this maps to the central docs site
This repo-owned guide is the canonical OSS worked-example anchor.
For cross-layer product context, use the central docs site sections that own stack, runtime, and control-plane behavior:
/getting-started/for stack composition and entry paths/enterprise/for runtime, governance, replay, and operator posture/cloud/for versions, deployments, approvals, agents, and replay workflow/indexbus/for transport patterns and runnable substrate examples
The synced public mirror of this guide is intended to become the stable OSS-owned target for central examples pages that need one canonical repo reference.