Repository navigation
Description
Build split from #10357 (automatic context propagation — every fleet action carries its origin). Capture point 5 of 5: attribution at the stores.
Scope
Secrets lookups, KV reads/writes (sibling design), and broker trips log the context id, joining the observability already present (atlas session corpus via fleet search, broker trip logs) into one traceable web. Uses the context id as the single join key across brokers' trip logs, job spools, and atlas (per the #10357 decision record).
Constraints (from #10357, all apply)
Zero model effort; cheap on the hot path; no secrets in context (ids only — the context is logged widely by design); absence representable.
Prove it end-to-end
One context id joins a secrets-broker trip log row, a queue broker trip, and an atlas session-corpus hit for the same originating task — same id in all three, no model involvement. Record the queries and excerpts on this issue.
Parent: #10357. Siblings: #14186 (1/5 init sourcing), #14188 (2/5 env contract), #14189 (3/5 session hooks), #14190 (4/5 MCPX passthrough).
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T07:55:34Z",
"session_id": "ses_e5df380901affeA00VKjJyEOvl",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "oc-code-06/design-10391-iroh-transport",
"sha": "9c2b4ad096e30beb45358cbde674ed4c8a52434e"
},
"auth_subject": "oc-code-06",
"stamped_by": "fleet 0.1.0 (native)"
}
}Acceptance criteria
- Secrets lookups, KV reads/writes and broker trips log the context id, using it as the single join key across broker trip logs, job spools and the atlas session corpus.
- End-to-end proof recorded on this issue: one context id joins a secrets-broker trip log row, a queue broker trip, and an atlas session-corpus hit for the same originating task — the same id in all three, with no model involvement.
- The Design: automatic context propagation — every fleet action carries its origin #10357 constraints hold throughout: zero model effort, cheap on the hot path, ids only (no secrets) in the logged context, absence representable.
Blockers
The end-to-end proof was routed to run once siblings #14186 and #14189 read closed. #14189's implementation has landed (opencode fork PR #2844) though its issue is still open awaiting owner close; #14186 remains open. status/blocked + queue/blocked already on the issue match this.
Activity
developing-today commentedon Nov 24, 2026
CODE-5223
dezren39 commentedon Nov 24, 2026
Triage (oc-code-07, task 22397), fresh GitHub state checked 2026-11-24.
Verdict: needs-implementation, not a small fix. Checked the tree: no context-id logging in the secrets, KV or broker-trip paths (pkgs/fleet matches for context-id are unrelated). Design record #14192 is merged. The build depends on sibling capture points #14186 to #14190 landing first, and the prove-it step needs a live secrets trip, queue trip and atlas hit, which is more than a 20-minute timebox.
Route: leave open as a real build item, sequenced after #14186 to #14190. No code changed in this triage.
dezren39 commentedon Nov 24, 2026
Decision record for the parent design merged as #14192 — see §4 for this split's place and §§2–3 for the constraints and deferred-question defaults it builds under.
dezren39 commentedon Nov 24, 2026
Second-pass verify (lane code-h, task 22758), fresh state 2026-11-24:
Verdict: needs-implementation, sequenced after siblings — not resolved.
init sourcepattern + laptop user-context distinction (#10357) #14186, fleet ctx propagation build 2/5: FLEET_CTX_* env contract + pass-through surfaces (#10357) #14188, fleet ctx propagation build 3/5: session hooks — inject on start, stamp calls/end, extend chains (#10357) #14189, fleet ctx propagation build 4/5: MCPX passthrough — context headers/env to the tool call (#10357) #14190. This 5/5 capture point is sequenced last and cannot be built until they land.fleet-kvcontext_idis a storage scope key (owner/partition namespacing,pkgs/fleet/crates/fleet-kv/src/lib.rs), trip logs carry per-requestX-Trip-Idonly (fleet-laptop-agent,fleet-proxy-proto), noFLEET_CTX_*contract present.feature_slice, slice-1) with the build scope + end-to-end proof acceptance, currently blocked ondeveloping-today/code#14190as immediate predecessor (dep recheck armed; blocker text names all four siblings).dezren39 commentedon Nov 25, 2026
Claimed by lane 1, 2026-11-25T02:40Z, for the queue event store leg.
Fresh state: #14188 (env contract, with per-trip
FLEET_CTX_IDlines in both brokers) and #14190 (MCPX passthrough) are merged, so the broker trip legs of the join already exist. What this slice adds: while the queue broker serves a request that carriedX-Fleet-Ctx-*headers, everyeventsrow it writes getsctx_idin its detail, sorepo-queue events <task>joins the trip logs on the same id. The atlas session-corpus leg depends on the session hooks in #14189, which are still open, so this PR will reference the issue rather than close it.Generated by Claude Code
feat(fleet): queue events carry the serving request's context id (#14191
dezren39 commentedon Nov 25, 2026
Lane 1: the queue-event leg merged in PR #14805. Broker-written queue events (
event()andevents.append) now carry the serving request'sctx_idindetail, scoped per request on both the UDS and TCP broker paths, and events written outside a request carry none.Proof (remote run 45534659604 at 48c246c, GitHub-hosted Linux):
cargo test -p fleet-queue --features queue-broker,secrets-broker --lib724 passed, 0 failed, includingctx_scope::*andevents_carry_the_serving_requests_ctx_id_14191;cargo check -p fleetfinished clean.The atlas corpus leg is still open (it waits on #14189), so this issue stays open.
Generated by Claude Code
developing-today-fleet commentedon Nov 25, 2026
🤖 Agent note · attention: missing agent note
agent-note:v1footer. The holding agent did not leave the required agent note — this protocol gap needs a human/Muse review of why the protocol was not followed.6 remaining items
dezren39 commentedon Nov 25, 2026
Decided: Clear
meta/protocol-gapafter recording the required progress and blocked notes on this run, treating the missing earlier footer as repaired operationally.Why: The issue now has an
agent-note:v1record for each transition in this run, and the dependency block has a fresh successful recheck. This run provides no evidence explaining the earlier holder's omission.Undo: Reapply the label if a later reconciliation finds a required transition without its agent note.
By: agent-next-19-local
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (lane CEN-C14)
Verified firsthand (body + all comments). State: two of the proof's legs have landed — queue events carry ctx_id end to end (PR #14805, merged, dispatch-verified) and the KV operation log stamps ctx_id at the single dispatch chokepoint (PR #14928, merged; targeted test verified in run 45572893781). The remaining work is the end-to-end proof itself: one scripted op producing one id readable on every surface.
Blocker (named, updated): the proof was routed to run once siblings #14186 and #14189 close. Since then #14189's implementation landed (opencode PR #2844, 2026-11-27) though its issue is still open awaiting owner close; #14186 remains open. When both read closed, this proof is a single scripted run.
Census action: added
priority/normal. Verdict: blocked (sibling closes).developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).
STRENGTHS: Capture point 5/5 names its proof in one sentence (one context id joins a secrets-broker trip log row, a queue broker trip, and an atlas session-corpus hit for the same originating task) and inherits the #10357 constraints explicitly (ids only — the context is logged widely by design; absence representable). The blocked state is real: its queue task recorded blocked on the typed-context substrate from the earlier capture points.
GAPS: No priority/* and no kind/* label. The dependency on the earlier #10357 build points is prose-only (the sibling build issues, e.g. #14189 for 3/5, carry no native edges either) — I record the chain here rather than guessing edge targets per sibling.
FIXES I APPLIED: Added priority/normal (default band) and kind/feature.
REMAINS: Nothing for Drewry. Runs last in its chain by construction (5/5).
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found
## Acceptance criteriasection; the proof obligation sits under a 'Prove it end-to-end' heading.Strengths
init sourcepattern + laptop user-context distinction (#10357) #14186, fleet ctx propagation build 2/5: FLEET_CTX_* env contract + pass-through surfaces (#10357) #14188, fleet ctx propagation build 3/5: session hooks — inject on start, stamp calls/end, extend chains (#10357) #14189, fleet ctx propagation build 4/5: MCPX passthrough — context headers/env to the tool call (#10357) #14190) named in the body.Blocker recorded
init sourcepattern + laptop user-context distinction (#10357) #14186 and fleet ctx propagation build 3/5: session hooks — inject on start, stamp calls/end, extend chains (#10357) #14189 read closed. fleet ctx propagation build 3/5: session hooks — inject on start, stamp calls/end, extend chains (#10357) #14189's implementation has landed (opencode fork PR mcpx(plugin): generate the README options table from the settings registry (#2516) #2844) though its issue is still open awaiting owner close; fleet ctx propagation build 1/5: init sourcing —init sourcepattern + laptop user-context distinction (#10357) #14186 remains open. status/blocked + queue/blocked already on the issue match this.Actions taken by this census
## Acceptance criteriasection to the body (original text unchanged), plus a short## Blockersnote.developing-today-fleet commentedon Nov 30, 2026
P1.3 tranche 2 (lane 0640-PS, Refs #17071): wired the native
blockedByedge the record states in prose. Body and census comments 7257415405 / 7258477806: "the end-to-end proof was routed to run once siblings #14186 and #14189 read closed." Census comment 7258086129 flagged this dependency as prose-only. #14186 has since closed (verified live this pass), leaving #14189 as the sole open gate.status/blocked+queue/blockedalready matched this state).