GeezerVison is showing github.com — id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat · Issue #7914 · developing-today/code
id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914DescriptionSpike step 2 (of 5) for #6300: MCP bridge — join, read screens, post chat
Parent: #6300 · Core topic: #6280 · Design: doc/2026-11-09_design_id6300_agents_in_worlds_v1.md (PR #7911), §3, §4.1, §4.4, §4.5. Blocked by spike step 1 (agent shell profile).
Work
The bridge binary: maps MCP tool calls to F13.1 ClientFrames and ServerFrames back to tool results. v1 tools: world.join/world.leave, screen.read, screen.subscribe, object.inspect, chat.post, presence.set. Tool definitions pinned and hash-checked at session start; a mid-session definition change ends the session. The bridge holds no credentials and no authority of its own (no token passthrough).
Acceptance criteria
- An agent joins a local world over iroh, reads a screen via semantic diffs, posts chat, and leaves — end to end.
- The five non-tools of design §4.5 are absent from the surface and covered by a surface test.
- Tool-definition pinning verified: tampered definition ends the session.
Activitydezren39 commented on Nov 17, 2026 🤖 Agent note · blocked (dependency)
- Agent: queue worker (repo-worker-code), lane any-h
- Session / ID: task 18548
- Found via: queue claim
- Blocked on: issue id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913 (spike 1/5 — agent shell profile in the id-shell contract), verified OPEN in this session. id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914's own body states the dependency: "Blocked by spike step 1 (agent shell profile)" — the MCP bridge maps tool calls to F13.1 ClientFrames whose screen/subscription semantics are defined by the step-1 shell profile, so the bridge cannot be built or acceptance-tested (join, read screens via semantic diffs, post chat) until that profile lands.
- Re-check: the queue re-checks this dependency on its own clock; when id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913 closes, this task becomes claimable again and the bridge spike can start from the design (doc/2026-11-09_design_id6300_agents_in_worlds_v1.md, PR doc(id): Agents in worlds (MCP bridge) v1 design + spike plan (#6300) #7911, §3, §4.1, §4.4, §4.5).
- Context: parent id(phase-14): Agents in worlds (MCP bridge) — v1 — first-iteration design + spike plan #6300 OPEN; the sibling spikes (3/5 id(phase-14): spike 3/5 — agent identity, roles, UCAN-style attenuated delegation #7915 identity/delegation, 4/5 id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916 policy point, 5/5 id(phase-14): spike 5/5 — bounded program interaction + end-to-end spike run #7917 bounded interaction + e2e run) are likewise sequenced behind step 1.
dezren39 commented on Nov 23, 2026 🤖 Agent note · dependency cleared — this issue is now the critical path for spike steps 4–5
- Agent: archer, Lane FA (sandbox fix lane), via task 20046's sequencing-gate re-check (2026-11-23)
- Your declared blocker, spike step 1 (id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913), is now CLOSED (completed). Step 3 (id(phase-14): spike 3/5 — agent identity, roles, UCAN-style attenuated delegation #7915) is also CLOSED (completed).
- Step 2 (this issue) is the only unlanded step of 1–3: no PR references id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914 yet. Task 20046 (step 4, id(phase-14): spike 4/5 — policy point: capability ceiling, session quota, audit log #7916) has been re-pointed to dep-block on this issue (it previously blocked on id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913), and step 5 (id(phase-14): spike 5/5 — bounded program interaction + end-to-end spike run #7917) is sequenced with step 4 — so landing this bridge unblocks both remaining spike steps.
- Your own task 18548 was dep-blocked on id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913; its recheck cycle should now release it.
developing-today commented on Nov 23, 2026 ContributorAuthor More actions Filed by pm-dispatch (bearer-token caller).
- Queue task: #21129 (repo-health-code-pilot, kind: small_fix, priority: 40)
- Status: queued
dezren39 commented on Nov 23, 2026 Triage verdict — dependency cleared; implementation routed
Fresh verification 2026-11-23:
- id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914 remains OPEN with its spike-2 acceptance unchanged.
- Declared dependency id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913 is now CLOSED.
- PR id-shell contract revision 11: agent profile — region subscriptions, semantic diffs, stale-decision token (#7913) #11302 for id(phase-14): spike 1/5 — agent shell profile in the id-shell contract (semantic diffs, region subscriptions, stale-decision token) #7913 is MERGED (2026-11-17T22:14:18Z).
- No implementation PR for id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914 exists in the live PR search or the current checkout.
Routed the scoped implementation follow-on as queue task 21129 in repo-health-code-pilot, attached to #7914. The follow-on owns only the MCP bridge surface and its pinning/forbidden-tool tests; this triage task writes no implementation. dezren39 commented on Nov 23, 2026 Agent note — implementation slice opened (queue task 21129).
PR #12917 adds the authority-free v1 MCP bridge surface: the seven approved tools (world.join, world.leave, screen.read, screen.subscribe, object.inspect, chat.post, presence.set), explicit exclusion of the five forbidden non-tools, and session-start definition pinning with termination on mid-session definition changes. The surface test is registered in the id crate-integration venue.
Evidence: commit 3bd490390c5; JSON/registry validation, rustfmt for new files, and git diff --check pass. Cargo build/test is left to CI because this worker is sandboxed. Transport, credentials, authority, quota, audit, and world-host execution remain follow-up wiring. dezren39 commented on Nov 23, 2026 Lane IT record — PR #12917 merged; this issue stays open on criterion 1.
Drew approved the flagged PR #12917 test run in plain words on 2026-11-23 ("all 8 approved"), clearing the execution-risk flag that had stopped Lane FX before any build/test.
What landed: PR #12917 merged to main as 162eb670f8d05d3a9d2af5af6f55992a8aabf4f4 — the pinned MCP bridge surface: the seven approved bridge tool definitions over the capability crate, the five forbidden non-tools explicitly excluded, the serialized definition hash pinned at session start with termination on any mid-session change, plus the surface oracle registered in the id crate-integration test venue.
Verification (laptop worktree ~/wt-lane-fx-7914, nix develop in pkgs/id, head 3bd490390c59): cargo test -p id-caps --test mcp_bridge_surface — 2 passed, 0 failed (v1_surface_excludes_forbidden_non_tools, tampered_definition_terminates_session).
Merge mechanics: the PR body originally carried a closing keyword for this issue; it was edited before merging to a plain reference, and the merge commit message likewise, so this issue was NOT auto-closed (verified open after the merge).
Remaining open: criterion 1 — the end-to-end world join/read/post/leave path is NOT implemented by #12917. Transport, credentials, authority, quota, audit, and world-host execution remain follow-up bridge wiring, as the PR itself states. Next slice: that end-to-end wiring. dezren39 commented on Nov 23, 2026
🤖 Agent note · claimed — criterion 1 end-to-end slice (Lane LB, archer)
Taking criterion 1 of #7914: an agent joins a local world over iroh, reads a screen via semantic diffs, posts chat, and leaves — end to end. PR #12917 landed the authority-free v1 MCP bridge surface (criteria 2–3); this slice builds the end-to-end path/test on top of it. Premise check: issue open, no live claim on this criterion in the thread, criterion 1 named as the remaining slice in Lane IT's record (2026-11-23T07:11Z). dezren39 commented on Nov 23, 2026 Block lifted — stale-block sweep, 2026-11-23 (Survey B, archer).
Named blocker of record: spike step 1, #7913 (agent shell profile), the sequencing gate for this spike 2/5.
Evidence the blocker resolved, verified first-hand via gh GraphQL this sweep:
Action: queue/blocked removed, queue/queued added. The issue stays open on its remaining acceptance criterion (transport/live-session leg, per Lane IT's 2026-11-23T07:11:03Z record); that is this issue's own remaining work, not a dependency block. Downstream chain note: #7916's earliest unlanded step is now this issue's closure. dezren39 commented on Nov 23, 2026
🤖 Agent note · criterion 1 landed — #7914 complete (Lane LB, archer)
PR #13161 merged (96c84071fd4d, head-SHA guarded at 66528cca00d); this issue auto-closed as completed on the merge. All three acceptance criteria are now met:
- End-to-end ✅ (this PR): the bridge translator (
BridgeSession::tool_action / observe_frame in id_caps::mcp_bridge) maps the seven v1 tools to F13.1 frames, local answers, or a session close; pkgs/id/tests/mcp_bridge_e2e.rs drives a live WorldService host over iroh on loopback purely through tool calls — join (agent profile) → view rendered → screen.subscribe acked → a raw second participant's chat arrives as a pushed semantic_diff and surfaces through screen.read exactly once (drained on read) → chat.post durable at sequence 3 → world.leave closes. Journal oracle: both chats in order, current_sequence 3. Test: 1 passed (2.11s).
- Five non-tools absent + surface test ✅ (PR id: add pinned MCP bridge surface for #7914 #12917).
- Definition pinning ✅ (PR id: add pinned MCP bridge surface for #7914 #12917).
Design notes recorded in the code: world.leave maps to a session close (presence is connection-scoped in F13.1 — no leave frame exists), and presence.set is refused with the typed BridgeError::NoFrameMapping for the same reason. Verification: cargo test -p id-caps 216 lib + 3 surface green (10 new translator unit tests; surface suite gained a per-tool translation coverage test); changed files fmt-clean; clippy shows no findings in the new code (the id-caps --all-targets clippy run remains red on 26 pre-existing deny-lint errors in library_attach.rs test code, untouched here). The e2e file is covered by the facade glob in .github/test-suite-registry.json — no registry edit needed.
Spike step 2 of #6300 is done; steps 4–5, for which this was the critical path, are unblocked.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|