Job lanes and JobLaneBroker (JL-*)
Normative product direction for lane-scoped run data, observability, and cross-lane authorization. Replaces the interim “cross-task isolation guard” framing (MH-DOTS-07) with an intrinsic broker: isolation is not a special CLI verb — every cross-run / cross-lane read goes through the broker.
Status: implemented (types, Config DI, CLI verbs, JL story matrix). Inspiration map MH-DOTS-07 remains the provenance link.
Vocabulary
Term |
Meaning |
|---|---|
JobLane |
Named pipeline identity ( |
Run sequence |
Ordered history of runs for one lane. |
Run |
One execution: |
JobLaneBroker |
Config DI injectable that owns per-lane sequences, bags, exposure policy, inter-lane grants, and |
Exposure policy |
Per-lane rules for |
Lane grant |
Standing permission for caller lane(s) to observe named keys/meta. |
Handoff |
Narrow one-shot share ( |
Same-lane lineage is shared by default (later runs may observe earlier runs in that lane). Cross-lane observe is deny-by-default unless exposure + grant (or handoff) allow it.
Requirements
ID |
Requirement |
|---|---|
JL-01 |
|
JL-02 |
|
JL-03 |
Each run has a WalkBag held by the broker under |
JL-04 |
Run sequence supports selectors: exact |
JL-05 |
|
JL-06 |
Publisher lane policy and caller grants are both checked (meta vs key separately). |
JL-07 |
Same-lane observe of own sequence is allowed by default. |
JL-08 |
|
JL-09 |
Deprecate |
JL-10 |
User-story YAML declares lanes in |
User-story YAML surface
kind: user_story
environment:
family: pass_through
backend: mock
job_lanes:
assets.generate:
meta: { mode: allow_lanes, lanes: [billing.settle] }
keys:
asset_urls: { mode: allow_lanes, lanes: [billing.settle] }
billing.settle:
meta: { mode: open }
keys: {}
lane_grants: [] # optional standing grants beyond lane exposure
steps:
- do:
run_recipe: { name: verify_repair, … } # any product graph walk
lane: assets.generate
run_id: gen-2026-10-21T15
# publishes asset_urls onto the run bag via normal nodes / out register
- do:
lane_observe:
target_lane: assets.generate
selector: { latest: true } # or run_id / before
key: asset_urls
lane: billing.settle # caller identity
expect:
- kind: equals
key: status
value: ok # or denied
complete:
expect: […]
cleanup: []
Notes:
environment.job_lanesconfigures the broker catalog for the story Config.Step-level
lane+ optionalrun_idset the caller / writer identity for that verb (graph run appends to that lane’s sequence).lane_observe(name TBD; may be a thin product verb or graph node) always goes through the broker — this is how stories assert grant vs deny without an isolation-only façade.Multiple steps with different
lane:values are how we prove cross-lane deny and same-lane lineage allow.
Planned story matrix (distinct claims)
Retire the single intervening-task bleed probe as the sole MH-DOTS-07 proof. Prefer focused stories (ids provisional):
Id |
Claim |
|---|---|
|
Later run in lane A observes earlier run’s exposed key |
|
Lane B observe of A’s key denies without grant |
|
Meta open only to listed lanes |
|
|
|
|
|
|
|
Retargeted narrative → JobLaneBroker + matrix above |
Keep related stories distinct:
fangore_insp_isolation_io— subgraphIsolationContract/TemplateIOContract(nest I/O), not lane broker.fangore_insp_handoff_record— schema of handoff payloads; broker consumes it for one-shot share.nubble_insp_workspace_isolation— host workspace provider seam (worktree/container), not lane bags.