Skip to content

id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913

Closed

Description

@developing-today

Spike step 1 (of 5) for #6300: agent shell profile in the id-shell contract

Parent: #6300 · Core topic: #6280 · Design: doc/2026-11-09_design_id6300_agents_in_worlds_v1.md (PR #7911), §4.2, §4.3, §8, §9.1.

Work

Additive revision of the id-shell contract (pkgs/id/contract/shell-contract.v1.json): region subscriptions and semantic-diff ServerFrame kinds for the agent profile, a capability flag advertising them, and the stale-decision token (screen revision) on agent input frames, with host-side rejection of stale input.

Acceptance criteria

  • Contract revision is additive only: existing human shells and conformance cases unaffected.
  • New conformance cases pass: semantic-diff rendering, region subscription scoping, stale-decision rejection.
  • A host without the revision still serves an agent at reduced fidelity with identical authority (design §4.2).

Activity

  1. added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 9, 2026
  2. added a commit that references this issue on Nov 9, 2026
  3. added
    design/id-phase-14Design: id-phase-14 - all issues of this effort carry it
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · triaged — design dependency landed; spike work verified absent; follow-on queued

  5. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · parked (capacity) — spike verified absent, design dependency landed; resume plan recorded

    • Agent: repo-worker-code
    • Session / ID: queue task 20044 · lane code-e
    • Found via: repo-health-code-pilot atomic claim (small_fix; implementation vehicle routed by triage task 18547)

    Fresh verification (2026-11-17, this run, laptop ~/git/code at c91a8ba): issue #7913 OPEN, labels kind/feature + task/small-fix + priority/normal + app/id + design/id-phase-14 + epic/id-program, no hard-stop labels (its queue/queued label was stale at claim time; the park label sync corrects it). Design dependency landed: PR #7911 merged (design doc/2026-11-09_design_id6300_agents_in_worlds_v1.md §4.2/§4.3/§8/§9.1). Work absent, concurring with task 18547's term scan: the spike's features are not in the contract.

    Resume plan (from this run's code read):

    • Contract: pkgs/id/contract/shell-contract.v1.json (15,453 bytes, the only file in pkgs/id/contract/) — additive revision: region-subscription + semantic-diff ServerFrame kinds for the agent profile, a capability flag advertising them, and the stale-decision token (screen revision) on agent input frames.
    • Host side: pkgs/id/crates/id-worlds/src/shell_contract.rs (contract consumer) and pkgs/id/crates/id-native-shell/ — host-side rejection of stale input lives there; conformance/transcript coverage in pkgs/id/crates/id-native-shell/tests/transcript.rs.
    • Acceptance, per the issue: additive only (existing human shells + conformance cases unaffected); new conformance cases pass for semantic-diff rendering, region-subscription scoping, and stale-decision rejection; a host without the revision serves an agent at reduced fidelity with identical authority (design §4.2).
    • This is spike 1 of 5 for id(phase-14): Agents in worlds (MCP bridge) — v1 — first-iteration design + spike plan #6300 — the claiming session should check the sibling spikes' state before finalising frame-kind names, so the five revisions compose.

    Why parked, not started here: an additive contract revision plus host behavior plus conformance cases across two crates is a dedicated-session piece; starting it inside this claim's remaining lease risks a half-landed contract revision, which is worse than none (other shells parse this file). Task 20044 is capacity-parked with a recorded 180-minute budget requirement so a fresh full-budget session takes it immediately and resumes from this plan (§10: resume, don't restart).

  7. 34 remaining items

  8. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    agent-note:v1
    lane: openchamber-scheduled-lane (code-f), worker repo-worker-code, queue task 20044
    transition: parked (capacity)
    state: PR #11302 OPEN, head c167ac1, mergeable now CONFLICTING in pkgs/id/crates/id-worlds/src/shell_contract/tests.rs against current main (02297ef and later). world_session/mod.rs and session_core.rs auto-merge. Targeted job e2a15f54a370 not verified.
    resume: dedicated session: merge main into queue/20044-7913-agent-shell-profile in ~/git/fleet/queue-20044-7913-agent-shell-profile, resolve tests.rs keeping both sides, run the id contract conformance suite and targeted pkgs/id tests, then merge only when checks are green. Do not duplicate the implementation.

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    agent-note:v1
    state: picked up
    task: 20044
    lane: code-g
    worker: repo-worker-code

    Claimed and freshly revalidated issue #7913 OPEN and canonical PR #11302 OPEN on queue/20044-7913-agent-shell-profile. The existing PR is not present in the laptop worktrees; prior notes record a 240-minute dedicated-session requirement and a conflict against current main. No implementation or PR changes made. I am parking this scheduled run for capacity, preserving the existing PR and resume condition.

  10. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    agent-note:v1
    state: parked (capacity, resumable)
    task: 20044
    lane: code-g
    worker: repo-worker-code

    PR #11302 remains OPEN and canonical on queue/20044-7913-agent-shell-profile; issue #7913 remains OPEN. This scheduled run has a ~30-minute cap, while the prior resume notes require a fresh dedicated 240-minute session. No changes were made to the PR. Resume by inspecting the current PR merge conflict and targeted test status, fetching/fast-forwarding main, and merging main into the existing branch only in the dedicated full-budget session; run the id contract conformance suite and targeted pkgs/id tests, then merge only when checks are green and the diff is verified. Laptop ~/git/code has no matching local branch/worktree; do not create a duplicate implementation.

  11. added a commit that references this issue on Nov 17, 2026
  12. dezren39 commented on Nov 18, 2026

    @dezren39
    Member

    agent-note:v1
    state: already_done — task 20044, lane any-n
    worker: repo-worker-code

    Fresh GitHub verification found issue #7913 OPEN and canonical PR #11302 MERGED at 1e681d22ee0f714f77595a9a2cc04869b7202678 (merged 2026-11-17T22:14:18Z). This scheduled lane made no code or PR changes. Queue task completed as already_done; visible check summary included Dependabot success and CodeRabbit cancelled, so CI is recorded pending.

  13. removed their assignment
    on Nov 20, 2026
  14. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    agent-note:v1
    state: picked up — felix lane (Muse sandbox seat), resuming from the 2026-11-17 capacity park
    task: 20044 (named in the park notes) · claim: fallback claim by worker felix, 2026-11-23

    Picking #7913 up from its 2026-11-17 capacity park (lanes code-e/code-d/code-g, task 20044) under Drewry's scale-up directive — capacity exists now, and #7913 is the head of the verified chain #7913 → #7914 → #7916 → #8299 (dispositioned on #8299 today, comment 7091323845).

    Fresh verification before any new work: the spike's implementation already landed — PR #11302 (lane any-e, from this same task 20044) MERGED 2026-11-17T22:14:18Z at 1e681d2, and that merge commit is in current origin/main. The contract on main carries every named feature (agent_profile flag, screen_subscribe, semantic_diff + screen_subscription frames, screen_revision stale-decision token; contract since advanced to revision 14 by sibling work), and the conformance tests exist on main (shell_contract::tests::agent_profile_frames_conform_and_are_additive; world_session::contract_tests::agent_profile_session_gets_scoped_diffs_and_stale_inputs_are_rejected and a_human_session_gets_no_agent_profile_frames; id-native-shell transcript agent_profile_transcript_conforms_and_semantic_diffs_render).

    So this session's remaining work is the dedicated-session verification the park notes required, not a duplicate implementation: run the id-worlds + id-native-shell suites fresh on the laptop (amd-6) under the build lock against current main, confirm the three acceptance behaviours, then close out. No new PR unless verification turns up a gap.

  16. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    agent-note:v1
    state: verified complete — implementation landed by PR #11302; fresh laptop verification green; no new PR needed
    by: agent felix (kind muse, Muse sandbox seat), resuming task 20044 from the 2026-11-17 capacity park
    at: 2026-11-22

    What landed, and when

    The spike was implemented by lane any-e under this same task 20044 and merged as PR #11302 on 2026-11-17T22:14:18Z (merge commit 1e681d2, verified an ancestor of current origin/main). It added exactly the filed scope: contract revision 10 → 11 (agent_profile capability flag on join; screen_subscribe client frame; semantic_diff + screen_subscription server frames; screen_revision stale-decision token on agent input frames; features.agent_profile documenting the §4.2 reduced-fidelity rule), the id-worlds host behaviour (subscription validation + scoped semantic_diff/region_changed delivery, stale-decision gate rejecting stale input before dispatch with a stale_decision error and no commit), the id-native-shell builders + SessionState folding, and the design §8 conformance cases. The contract on main has since advanced to revision 14 by sibling work; all spike features are present.

    Fresh verification (this session)

    Venue: laptop amd-6, checkout ~/code-7913-verify at origin/main f286647, under ~/tools/fleet-build-lock, inside the pkgs/id nix dev shell (id-native-shell's Bevy/wayland system libraries require it — a plain-shell attempt failed in the wayland-sys build script, an environment fact, not a code failure). Command: cargo test -p id-worlds -p id-native-shell. Log: ~/code-7913-test2.log on amd-6.

    Results — all green, 0 failures anywhere:

    • id-worlds lib: 1081 passed, 0 failed, 3 ignored.
    • id-native-shell: lib 49, form_widgets 6, live_session 1, parity 3, provider_file_read_e2e 6, transcript 4 — 69 passed, 0 failed.
    • Total: 1150 passed, 0 failed.

    The acceptance behaviours by name:

    • Semantic-diff rendering: id-native-shell transcript agent_profile_transcript_conforms_and_semantic_diffs_render ok.
    • Region subscription scoping + stale-decision rejection (live host): world_session::contract_tests::agent_profile_session_gets_scoped_diffs_and_stale_inputs_are_rejected ok.
    • Additive only / human shells unaffected: shell_contract::tests::agent_profile_frames_conform_and_are_additive ok; world_session::contract_tests::a_human_session_gets_no_agent_profile_frames ok.
    • Reduced fidelity with identical authority (§4.2): the contract's features.agent_profile documents the rule and the flag threads into view state only — authority is untouched by construction in the merged implementation.

    Checkpoint accounting

    code-g/any-e's implementation was resumed, not redone: 100% of the code is PR #11302's; this session added only the verification the park notes required (the recorded targeted job e2a15f54a370 was never verified — this full-suite run supersedes it). No new dependencies. No ambiguities required resolution: the acceptance mapped one-to-one onto the merged conformance cases.

    What this unblocks

    #7914 (spike 2/5 — MCP bridge) is the next link in the chain #7913 → #7914 → #7916 → #8299. #7913's acceptance is met in full; closing on this verification.

  17. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    Released by felix (outcome: done). Spike verified complete: implementation landed via PR #11302 (merged 2026-11-17, in current main); fresh laptop verification under build lock + nix dev shell: cargo test -p id-worlds -p id-native-shell = 1150 passed, 0 failed, incl. all three acceptance conformance cases by name. Record: issue comment 7091548102. Unblocks #7914 next in the chain to #8299.

  18. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    agent-note:v1
    event: CLOSED on verification — the spike landed 2026-11-17 and the park record never caught up
    by: agent felix (kind muse, Muse sandbox seat), closing on the verification lane's record
    at: 2026-11-22

    Closing on the verification record above (comment 7091548102): PR #11302 merged 2026-11-17T22:14:18Z implemented spike 1/5 in full (contract revision 10→11: agent_profile flag, screen_subscribe, semantic_diff/screen_subscription frames, screen_revision stale-decision token + host-side stale gate), and today's fresh laptop run at origin/main f286647 passes 1150 tests / 0 failed across id-worlds and id-native-shell, including every named acceptance case. The chain advances: #7914 (spike 2/5) is the next link toward #7916 and #8299.

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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)design/id-phase-14Design: id-phase-14 - all issues of this effort carry itepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditiontask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions