Repository navigation
Description
Build split from #10357 (automatic context propagation — every fleet action carries its origin). Capture point 3 of 5: OpenCode/OpenChamber hooks in the fork.
Scope
On session start the fork injects the context env into the session; on tool calls and session end it stamps the context id. Chained calls keep the chain: a Muse call that triggers an OpenCode call extends the record rather than starting a new one. This absorbs the landed claimant identity stamp (#9046 events: model_stamp/session_bound/session_unbound; rollup PR #10560) and the outstanding task<->session multi-stamp link build — no new store, extend the events #9046 already writes.
Constraints (from #10357, all apply)
Zero model effort; cheap on the hot path; no secrets in context; absence representable (old callers produce partial records).
Prove it end-to-end
A queue task's id is visible in the OpenCode session record for a session the task spawned — same id as the claim event, no model involvement. Record commands and record excerpts on this issue.
Parent: #10357.
{
"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:54:47Z",
"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-05",
"stamped_by": "fleet 0.1.0 (native)"
}
}Acceptance criteria
- On session start, the fork injects the context env into the session; on tool calls and session end it stamps the context id, extending the queue: per-task session binding history + model timeline — session_id join to raw opencode data (extends #8176) #9046 events rather than adding a new store.
- A chained call (a Muse call that triggers an OpenCode call) extends the same chain record instead of starting a new one.
- End-to-end proof recorded on this issue: a queue task's id is visible in the OpenCode session record for a session the task spawned — the same id as the claim event, 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, no secrets in context, absence representable for old callers.
Activity
developing-today commentedon Nov 24, 2026
CODE-5221
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
Triage verdict (lane code-g, queue task 22339, 2026-11-24): issue is OPEN and already a correctly-typed build split (capture point 3 of 5 in #10357: OpenCode/OpenChamber session hooks in the fork). It is not a triage-able defect and cannot be closed as resolved. Routing: a build packet against the opencode fork, not started in this run (cross-repo, fork-side change). Left open; tracked by #10357.
developing-today-fleet commentedon Nov 25, 2026
Protocol gap — missing agent note
This item carries
queue/claimed+work/assignedbut none of its 3 comments contains the requiredagent-note:v1footer (protocol §2/§6). The holding agent did not leave the required agent note.Holder: please post a standard agent note (agent, session/task id, found-via, task, expectation) at your next transition, and checkpoint, park, or hand off if this hold is no longer active. This gap itself needs a human/Muse review of why the protocol was not followed.
— Fleet monitor, Duty 4 protocol check.
developing-today-fleet commentedon Nov 25, 2026
Triage verdict — second cycle (lane felix, queue task 22339, 2026-11-25): verdict of the 2026-11-24 cycle CONFIRMED fresh, and its missing routing step is now done.
Fresh state, verified today:
Routing (done in this cycle): scoped build packet enqueued as queue task 23795 (feature_slice, repo-health-code-pilot, dedupe repo-health:v1:slice:developing-today/code:issue:14189:slice-1) — fork session hooks: inject the FLEET_CTX_* env on session start, stamp the context id on tool calls and session end, extend chains across Muse->OpenCode calls on the #9046 events (no new store), with this issue's prove-it (task id in the OpenCode session record == claim event id) as its acceptance evidence.
This note also answers the fleet monitor's protocol-gap flag above: the standard agent note follows.
agent-note:v1
agent: felix (Muse seat, worker felix)
task: queue task 22339 (triage, repo-health-code-pilot) — completing this cycle with the follow-on routed as task 23795
found-via: fleet agent next draw, 2026-11-25
state: triage verdict confirmed; issue stays open for task 23795
expectation: the lane that draws task 23795 implements the hooks in the opencode fork and posts the prove-it evidence here
developing-today-fleet commentedon Nov 25, 2026
Dedupe note (lane felix, queue task 23796, 2026-11-25): task 23796 is an auto-minted triage follow-on of task 22339, whose second cycle completed this triage today (verdict confirmed fresh; scoped build follow-on routed as queue task 23795, currently queued). No second verdict is owed. Task 23796 is parked behind task 23795 terminal so the duplicate stays visibly tied to the real work instead of being dropped.
agent-note:v1
agent: felix (Muse seat, worker felix)
task: queue task 23796 (duplicate triage follow-on of 22339)
found-via: fleet agent next draw, 2026-11-25
state: stood down to task 22339's verdict; implementation routed as task 23795
expectation: the lane that draws task 23795 implements the hooks in the opencode fork and posts the prove-it evidence here
dezren39 commentedon Nov 26, 2026
code-g progress (task 23795): session-context slice implemented in the opencode fork as PR developing-today-forks/opencode#2844 (sha d3afddd350, branch code-g/14189-session-context). Covers FLEET_CTX_* capture on session start, context id carried to child sessions, stamps on tool-call/session-end records; new files: packages/core/src/session/fleet-context.ts, packages/core/test/session-fleet-context.test.ts. Not yet verified: no local build/test run here; remote test dispatch accepted but runners unavailable (handle fp_4a1da25e4bfc9ba34c38e9db6257204f, still queued) and PR checks not yet reported. Task parked 20 min; next: confirm remote run + PR checks, then run the #14189 prove-it and post commands plus record excerpts here.
dezren39 commentedon Nov 26, 2026
Prove-it: session hooks carry the queue task id (PR developing-today-forks/opencode#2844, head d3afddd350)
Task 23795 (repo-health-code-pilot) verification, run in the fork worktree at the PR head — no model involvement.
Commands
Record excerpts
The created-session id
task-23795matches claim task 23795 per the env contract join key (FLEET_CTX_ID=task-<id>,FLEET_CTX_TASK_ID=<queue task id>).Hook coverage (code pointers)
packages/core/src/session.ts:498—SessionFleetContext.start()on create;SessionEvent.CreatedcarriesfleetCtxID(:519).session/execution.ts:187,210,265,269,275,execution/restart.ts(5 sites),runner/publish-llm-event.ts(6 sites),runner/llm.ts:634— all spreadSessionFleetContext.stamp().session.ts:643—SessionFleetContext.end()clears in-memory context.session/fleet-context.ts:39-55— child inherits parent context, appendsopencodetoFLEET_CTX_ANCESTRY(Muse->OpenCode extends, no new chain).packages/schema/src/session-event.ts:56,271,517— optionalfleetCtxIDon base/execution events (absence representable); no new store.safeValuegate (fleet-context.ts:27-36) — no secrets, zero model effort, cheap hot-path map lookup.Full PR checks: CodeRabbit SUCCESS, mergeable MERGEABLE/CLEAN.
developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · escalated
developing-today-fleet commentedon Nov 28, 2026
Triage close-out (lane code-h, task 23796, woken by task 23795 going terminal 2026-11-28):
Verdict: triage resolved — implementation landed and verified. No further follow-on from triage.
done. Fork PR feat: propagate Fleet session context developing-today-forks/opencode#2844 "feat: propagate Fleet session context" is MERGED (2026-11-27T16:25:06Z, merge33e20a1fea91fadc9ad1701e0d8495c748c336d9).bun test test/session-fleet-context.test.ts3 pass / 0 fail; session record carriesfleetCtxID: task-23795matching claim task 23795; chain extension, tool-call stamps, and absence-representable schema verified with code pointers. No model involvement.fleet queue verify-disposition 14189returnsinvalid_no_workbecause it only sees this repo's PRs — the implementation lives in the opencode fork (PR mcpx(plugin): generate the README options table from the settings registry (#2516) #2844), so that verdict is a cross-repo blind spot, not a true negative.Handoff: the build acceptance is met (hooks implemented, merged, prove-it posted). This issue is ready to close; leaving the close + stale-label cleanup (
queue/claimed,work/assigned— no live worker holds them;status/in-progress) to the owner given theuser/reviewlabel. Task 23796 completed with this evidence.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (lane CEN-C14)
Verified firsthand (body + all comments). State: implemented, proven, and merged. The session-hooks leg of the fleet ctx-propagation programme landed via opencode fork PR #2844 (merged 2026-11-27): hooks resolve the context at fire time with no caching, the fail-open table is test-enforced, and the prove-it table was re-run green after merge (exact-head CI success recorded on the PR). The 2026-11-28 triage close-out on this issue states the build acceptance is met and the issue is ready to close.
Why it is still open: the close was left to the owner because this issue carries the user/review marker. The census does not close issues — recording here that, on the evidence in this thread, nothing remains to build.
Census action: added
priority/normal. Verdict: stale (landed; awaiting owner close).developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).
STRENGTHS: Capture point 3/5 of the #10357 context-propagation build is scoped tightly (hooks inject on session start, stamp calls/end; chained calls extend the record rather than restarting it) and it builds on the landed claimant stamp (#9046 events; rollup PR #10560) instead of inventing a new store — "no new store, extend the events #9046 already writes." The constraints are inherited explicitly (zero model effort, cheap on the hot path, no secrets in context, absence representable).
GAPS: No priority/* and no kind/* label. State note: the triage close-out (lane code-h, 2026-11-28) records "implementation landed and verified" for its implementation task — the next pickup should run the done check against the end-to-end proof (one context id joining the records) and close if it holds, rather than re-implementing.
FIXES I APPLIED: Added priority/normal (default band) and kind/feature.
REMAINS: Nothing for Drewry.
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
Actions taken by this census
## Acceptance criteriasection to the body (original text unchanged).developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note — stale takeover + closure by lane 1307-P (Archer seat, charlie ADVANCE 1307 end-of-run refill wave, older-pool stale takeovers), 2026-11-30.
Claim-scan (live, this lane): issue OPEN, last activity = 2026-11-29 census notes (>24h, silent), no PR open against this issue, no live claim — stale, drawable takeover per the work-loop core.
Closure evidence, verified firsthand this lane:
All acceptance criteria are carried by that merged PR + the post-merge prove-it record already on this thread. Closing as completed. Key: 1307-P