GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Design: automatic context propagation — every fleet action carries its origin · Issue #10357 · developing-today/code

Design: automatic context propagation — every fleet action carries its origin #10357

New issue
Copy link
New issue
Copy link
Open
Open
Design: automatic context propagation — every fleet action carries its origin#10357
Copy link
Labels
effort/lLarge: multi-day or open-ended; expect staged check-insepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 14, 2026
Issue body actions

Design: automatic context propagation — every fleet action carries its origin

Origin: Drew, 2026-11-14. The goal: any command, session, secret lookup,
queue action, or file transfer in the fleet can be traced back to what
launched it — automatically, with zero per-call effort from models.
"If models have to stop and think about this every time, it has failed."

The context record (what travels with every call)

Captured once at the outermost point available, inherited by everything
downstream:

  • Muse session id + the internal model name serving it
  • Queue task id + task name (when launched from the fleet queue)
  • OpenCode session id + parent session id; the OpenChamber scheduled
    job that originated the session, when it came from one
  • The triggering message id (internal message id of the exact message
    that led to the call) where the surface exposes it
  • PID + a compact ancestor summary (enough to reconstruct the chain:
    cron → Muse → OpenCode → tool call)
  • git HEAD hashes: hatch + hatch-personal repos (and the working repo
    of the call, when different)
  • Host + which user-context is acting (see below)

Mechanisms to evaluate and combine

  1. Init sourcing. Init scripts set the environment by being
    sourced, not executed (init source), so the context variables
    persist into everything the shell launches afterward. Apply the same
    pattern on the laptop, where one OS user (user) is shared by
    Drew-interactive shells, OpenCode, and Claude-driven work: the
    context must distinguish which of those is acting, plus systemd
    timers/services as origins in their own right.
  2. An env contract. A small, fixed set of variables (working name
    FLEET_CTX_*) set by init / launchers / hooks and passed unchanged
    through: laptop-agent exec and jobs (the daemon records them in the
    job spool), SSH (AcceptEnv / explicit prefix), the queue broker and
    secrets broker (logged per trip — trip logs already exist), and the
    file-transfer verbs (sibling build issue).
  3. OpenCode / OpenChamber hooks in the fork. 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 extends work already in flight:
    claimant identity is stamped on queue claims today, and the
    task↔session multi-stamp link build is still outstanding — this
    design is its general form and should absorb it.
  4. MCPX passthrough. When OpenCode (or any MCP client) calls
    through MCPX, context headers/env pass through to the tool call, so
    the far side can attribute the call without the model doing
    anything. Where a protocol cannot carry headers, the env contract
    is the fallback.
  5. Attribution at the stores. Secrets lookups, KV reads/writes
    (sibling design), and broker trips log the context id, joining the
    observability we already have (atlas session corpus via
    fleet search, broker trip logs) into one traceable web.

Hard constraints

  • Zero model effort. Set by init, launchers, and hooks — never by
    a model remembering to pass a flag. A flag exists only as an
    override for tests.
  • Cheap on the hot path. Capture once per session/init; inherit
    after. No per-command lookups (a warm fleet call is ~0.4 s; the
    context may not add a round trip).
  • No secrets in context. Ids and hashes only — the context record
    is logged widely by design, so nothing sensitive may ride in it.
  • Absence is representable. Interactive Drew shells and old
    callers produce a partial record, not an error.

Questions the design must answer

  • Where does the canonical record live per session (env only? a
    spool file keyed by context id? both), and who sweeps it?
  • How are related sessions from one origin found later ("show me
    everything this task spawned") — the brokers' trip logs, the job
    spools, and atlas need one join key; is the context id that key?
  • What is the laptop story for systemd timers (their context is the
    unit + last invocation, presumably recorded by the unit itself)?

Acceptance (design phase)

  • Decision record: the context record's fields, the env contract,
    and the capture points (init, claimant, OpenCode hooks, MCPX).
  • Build issues split out per capture point, each with a
    "prove it end-to-end" test (e.g. a queue task's id visible in
    the laptop job spool, the secrets-broker trip log, and the
    OpenCode session record — same id, no model involvement).

Activity

Next
  1. dezren39
    added
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    epic/fleet-orchestrationReprioritization program epic (2026-11-12)
    on Nov 14, 2026
  2. developing-today commented on Nov 14, 2026

    @developing-today
    developing-todayBot
    on Nov 14, 2026 – with developing.today
    Contributor
    More actions

    CODE-3737

  3. github-actions
    assigned
    dezren39
    on Nov 14, 2026
  4. dezren39
    added a commit that references this issue on Nov 15, 2026

    Merge pull request #10560 from developing-today/feat/claimlink-models…

    9b014d9
  5. dezren39 commented on Nov 15, 2026

    @dezren39
    dezren39
    on Nov 15, 2026
    MemberAuthor
    More actions

    Update on the task↔session link piece of this design (the part Drew asked for twice on 2026-11-12):

    The capture side already existed and matches this design's direction: #9046 (landed 2026-11-12) records model_stamp / session_bound / session_unbound events at the claimant/queue capture point, and repo-queue timeline <task> renders the per-task chain joined to route_attempt. No second system was built.

    What was missing was the inversion — a fleet-wide "which tasks did model Y touch". That is now built and merged in PR #10560:

    • /events-list (broker): task_id optional + since window, rows carry their task_id.
    • repo-queue models [--days N] [--json] (client): per-model rollup — stamped section (tasks, sessions, stamps, completions per provider/model/variant) and served section (dominant route_attempt leaf per binding window: tasks, windows, calls). Proven against live production event rows; activates fleet-wide when the broker next deploys. Live 7d sample: opencode-route/workhorse touched 2 tasks / 2 sessions, both completed; served leaves include openai.main/gpt-6-luna#xhigh at 160 tasks / 7,959 calls.

    Two gaps this surfaced, recorded here rather than papered over:

    1. No task-linked PR signal exists yet. pull_request events are a GitHub webhook mirror with task_id always NULL; merge_intents links PRs to issues/sessions, not tasks. Honest per-model PR rates still need a merge_intents↔task-payload (issue number) join — a follow-on build, deliberately not faked in the rollup.
    2. Routed-model stamp coverage is thin (8 session_bound events all-time) because claimant launches collapsed with the fleet stall/quota walls — the recording path is verified on all three launch paths; the data fills in as launches recover.
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Agent note — triage (task 19236, lane any-c, 2026-11-17)

    State: triaged.

    • Fresh state: issue Design: automatic context propagation — every fleet action carries its origin #10357 OPEN (labels kind/design, epic/fleet-orchestration; no hard-stop labels). Design-phase acceptance checkboxes all unchecked; no triage of record. Comments: a Kaneo link and the 2026-11-15 progress update.
    • Progress on record: the task/session link piece already landed via queue: per-task session binding history + model timeline — session_id join to raw opencode data (extends #8176) #9046 at the claimant/queue capture point (model_stamp / session_bound / session_unbound events; repo-queue timeline renders the chain) — the design must absorb it, not rebuild it.
    • Work kind: design (kind/design stands). Priority: priority/normal (band 30 — fleet-orchestration observability design; not fleet-stalling, not in the ID-design expedite set). Effort: effort/l (record + five capture points + per-point build issues).
    • Routing: design follow-on enqueued as task 20569 (priority 30). Deliverable per the issue's design-phase acceptance: the decision record (record fields, env contract, capture points — init, claimant, OpenCode hooks, MCPX — canonical-record home and sweeper, cross-store join key, systemd-timer story; hard constraints binding: zero model effort, hot-path cheap, no secrets in context, absence representable) plus build issues split per capture point as native sub-issues of Design: automatic context propagation — every fleet action carries its origin #10357, each with a prove-it-end-to-end test.
    • Acceptance check for the follow-on: record merged and every Design: automatic context propagation — every fleet action carries its origin #10357 design question answered in it; build issues filed and linked on Design: automatic context propagation — every fleet action carries its origin #10357.

    Issue stays OPEN pending task 20569.

  7. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/triagedTriaged and routed (see agent note)
    queue/queuedHas a queued queue task
    on Nov 17, 2026
  8. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    OpenChamber scheduled-lane transition note (2026-11-18): freshly verified #10357 remains open and assigned to @dezren39; no matching open design PR was found. This task is not starting design work or creating sub-issues because the issue remains owner-assigned and the requested 120-minute decision record/sub-issue split requires the dedicated Summit design window. No worktree or source edits were made. Resume after the owner assignment is cleared or the owner explicitly requests lane work, and when a dedicated design window is available. Preserve #9046's existing claimant capture as the queue capture point; do not build a second system.

  9. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 18, 2026
  10. 173 remaining items

    Load more actions
  11. dezren39
    added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 19, 2026
  12. dezren39 commented on Nov 19, 2026

    @dezren39
    dezren39
    on Nov 19, 2026
    MemberAuthor
    More actions

    🤖 Agent note · blocked / escalated

    Task 20569 is blocked as escalated-to-user: #10357 remains open and assigned to @dezren39, with no matching open PR, owner release, explicit request, or dedicated Summit design window. This scheduled workhorse lane cannot deliver the 120-minute decision record and native sub-issue split. Repeated 30-minute parks are causing scheduled lanes to re-claim the same task without progress. Drew must authorize/release a Summit design window or cancel the task. Resume only after authorization: manually claim task 20569, revalidate issue/PR state, and preserve #9046 claimant capture. No worktree or source edits.

  13. dezren39
    added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 19, 2026
  14. dezren39
    removed their assignment
    on Nov 20, 2026
  15. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    Task 20569 blocked as packet_defect after fresh revalidation. #10357 is OPEN and labeled kind/design + effort/l; the queue task declares kind=small_fix with a 120-minute timebox despite requiring a design decision record and native sub-issue decomposition. No worktree or design edits were made; #9046's existing claimant capture remains untouched. Correct the task taxonomy/timebox/route before dispatching design work. Backlog and sweep-log bookkeeping deferred to fleet reconciliation.

  16. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Second-pass verdict, task 21720 (lane oc-code-06).

    • Fresh state 2026-11-24: Design: automatic context propagation — every fleet action carries its origin #10357 OPEN, no assignees, status/blocked + queue/blocked (prior-lane labels). No open design PR — only merged PR fleet-queue: claim-link rollup — repo-queue models over the #9046 link (#10357) #10560 (claim-link rollup, merged today). queue: per-task session binding history + model timeline — session_id join to raw opencode data (extends #8176) #9046 CLOSED (session binding history landed). No FLEET_CTX decision record under doc/.
    • Verdict: route, not close. Design acceptance unchecked, but the prior blockers moved: claimant/session prerequisites (queue: per-task session binding history + model timeline — session_id join to raw opencode data (extends #8176) #9046, fleet-queue: claim-link rollup — repo-queue models over the #9046 link (#10357) #10560) landed, and assignee is not a hold. The mis-typed small_fix packets stay cancelled.
    • Routed: enqueued design-slice packet as queue task 22215 (kind feature_slice, 120-min timebox — non-standard, honest for an effort/l decision record), consuming queue: per-task session binding history + model timeline — session_id join to raw opencode data (extends #8176) #9046/fleet-queue: claim-link rollup — repo-queue models over the #9046 link (#10357) #10560, design-only, per-capture-point build-issue split required.
  17. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Agent note · design slice landed (task 22215, lane any-n)

    • Design-phase acceptance item 1 DONE: decision record merged as docs(10357): decision record — automatic context propagation + capture-point split #14192 (doc/2026-11-24_design_fleet-context-propagation-10357.md) — fields, FLEET_CTX wire format, all five mechanisms evaluated vs the four hard constraints, Q2 decided (context id is the join key over existing stores), Q1+Q3 deferred with named decider (Drew) and builder defaults.
    • Acceptance item 2 DONE: build split filed per capture point, each with a prove-it-end-to-end test and a queued triage packet: fleet ctx propagation build 1/5: init sourcing — init source pattern + laptop user-context distinction (#10357) #14186 (t22335), fleet ctx propagation build 2/5: FLEET_CTX_* env contract + pass-through surfaces (#10357) #14188 (t22337), fleet ctx propagation build 3/5: session hooks — inject on start, stamp calls/end, extend chains (#10357) #14189 (t22339), fleet ctx propagation build 4/5: MCPX passthrough — context headers/env to the tool call (#10357) #14190 (t22341), fleet ctx propagation build 5/5: attribution at the stores — log the context id (#10357) #14191 (t22344).
    • Verdict: slice complete. Design: automatic context propagation — every fleet action carries its origin #10357 stays open until the builds land or Drew rules on Q1/Q3.
  18. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    Coverage-reconciliation triage (2026-11-26): the design-phase deliverable is already complete. Decision record PR #14192 merged as eaf40c00dd2506d2424788ebb5a34125a5f42cdd; it records the context contract and five capture-point build issues (#14186, #14188, #14189, #14190, #14191). The five initial triage tasks are done; this parent remains open for implementation follow-through, not further design. Preserve #9046’s existing claimant capture; do not recreate the design split.

  19. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 28, 2026 – with developing.today fleet
    Contributor
    More actions

    Triage verdict, task 25180 (lane code-h): route / keep open — nothing to enqueue.

    Fresh state 2026-11-28: #10357 OPEN, no assignees. Design record merged (#14192); builds 1/5, 2/5, 4/5 CLOSED (#14186, #14188, #14190). Remaining builds both have live queue coverage: #14189 (session hooks) via parked task 23796, #14191 (store attribution) via blocked slice task 22881. No Drew Q1/Q3 ruling and no new comments since the 2026-11-26 reconciliation note. verify-disposition: merged_verified, gate would pass.

    This triage closes the coverage gap this packet named (no live task on #10357): the parent stays open for implementation follow-through, not further design. Re-triage if #14189/#14191 close or Drew rules on Q1/Q3. Preserve #9046 claimant capture; no worktree or source edits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lLarge: multi-day or open-ended; expect staged check-insepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.