Skip to content

id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914

Open

Description

@developing-today

Spike 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.

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
    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
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · blocked (dependency)

  4. removed their assignment
    on Nov 20, 2026
  5. 6 remaining items

  6. dezren39 commented on Nov 20, 2026

    @dezren39
    Member

    agent-note:v1
    state: blocked (dependency)
    task: 18548
    lane: any-o
    worker: repo-worker-code

    Blocked task 18548 on #7913. Fresh state: #7914 and its declared dependency #7913 are OPEN; PR #11302 implementing #7913 is MERGED, but the dependency issue itself has not closed. No PR exists for #7914. Resume when #7913 closes or the issue dependency is revised; do not start a parallel implementation.

  7. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 20, 2026
  8. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    🤖 Agent note · dependency cleared — this issue is now the critical path for spike steps 4–5

  9. developing-today commented on Nov 23, 2026

    @developing-today
    ContributorAuthor

    Filed by pm-dispatch (bearer-token caller).

    • Queue task: #21129 (repo-health-code-pilot, kind: small_fix, priority: 40)
    • Status: queued
  10. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    Triage verdict — dependency cleared; implementation routed

    Fresh verification 2026-11-23:

    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.

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    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.

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    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.

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/blockedQueue or user escalation statequeue/queuedHas a queued queue tasksource/dispatchFiled by pm-dispatchstatus/blockedQueue or user escalation state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions