Skip to content

investigate(mcp): expose scoped handoff status and bounded observation #360

Open

Description

@abruption

Problem

The MCP server explicitly has no received/status/wait tool. Existing experimental handoff CLI state could support narrowly authorized inspection and bounded waiting, but a shared MCP process cannot authenticate the calling native session and must not reveal another caller's receipt authority or results.

Proposed scope

Investigate and, after a reviewed contract, expose status and bounded observation for an existing operator-authorized handoff intent. Prefer existing read-only watch semantics. Existing handoff wait writes wait history and uses a non-read-only collector query; exposing actual wait would require a separate write-capable policy/annotation decision. No new send/prepare/ACK capability, task journal, native observation, receipt transport or generic reply matching is included.

Acceptance criteria

  • Define how an operator authorizes the caller's access to particular existing intents. A model-provided intent/task ID or the MCP launcher's session identity is insufficient authority.
  • Resolve the shared-launching-user ledger boundary before exposure; without operator-scoped access that isolates callers, keep the tool unsupported. Authorize before any ledger read. Accept no model-supplied ledger path.
  • Deny cross-caller enumeration and disclosure; never return receipt capability material, private ledger paths, message contents or unapproved results.
  • Preserve published CLI platform/transport and history/restore restrictions. Unsupported native Codex observation/ACK, Windows, remote/device/fanout combinations must not become supported merely through MCP.
  • Report existing state/evidence without upgrading submitted/queued, queue IDs, turn completion or a plain-text reply into consumption or ACK.
  • Status inspection and waiting never prepare a new intent, native-send, mint receipt authority or automatically resend. Explicitly document any permitted existing-runtime maintenance/housekeeping effects rather than claiming metadata-only behavior without verification.
  • Read-only status/watch is local POSIX only and never initializes/repairs history, creates wait records, starts collectors or changes ledger bytes. Only an already-running collector's existing read-only clock query is permitted. Watch completion is not wait satisfaction, receipt, task completion or ACK.
  • Waiting has hard input limits, bounded deadlines/output and cancellation cleanup. Cancellation ends observation; it does not retract a possible earlier submission.
  • Preserve unknown/history-unavailable/quarantine distinctions, late-ACK assurance, no-retry semantics and immutable existing handoff contract/fixture behavior.
  • Add isolated temp-ledger/collector and stdio tests for authorized/foreign IDs, cancellation/timeout, missing/corrupt/restored history, duplicate/late ACK and zero native effects.
  • Keep any MCP Tasks/progress integration optional and separately capability-negotiated; no assumption that SDK/client support exists and no conflation of task completion with agent ACK.

Related work

Depends on a reviewed MCP authorization model. Coordinates with #181 and #296; it does not close their broader incomplete acceptance. This issue is a scoped MCP adapter follow-up, not a replacement for the existing native/upstream research.

Source: MCP limitations, handoff contract.

Planning

Long-term investigation, priority P3; no release/date commitment. No implementation, live/native experiment, new caller authentication, merge, publication or operational approval is implied.

Tracking dependencies

Depends on #356 and a separately reviewed caller/ledger isolation model; unsupported isolation is a blocker. Coordinates with #181/#296. This is outside the v1.4.0 candidate milestone and does not broaden native ACK support.

Activity

  1. added this to the Long-term milestone on Nov 2, 2026
  2. self-assigned this
    on Nov 2, 2026
  3. added
    enhancement
    priority:P3
    on Nov 2, 2026
  4. abruption commented on Nov 14, 2026

    @abruption
    OwnerAuthor

    Sequential MCP feasibility validation — 2026-11-14

    Reviewed this after bounded listing and evidence-qualified target metadata. Keep #360 OPEN / Long-term / priority:P3; no new observation issue or production tool is warranted yet.

    Results

    • A private isolation gate passed six synthetic negative/control tests and one real MCP stdio test on Mac (Python 3.13.7, MCP 2.3.0), repeated on KR Linux (Python 3.12.3) with MCP 1.30.0 and 2.3.0.
    • All actual stdio observation calls lacked authenticated caller context and returned trusted_context_unavailable before the instrumented reader. Arbitrary caller/launcher claims and another intent ID supplied no authority. An intentionally insecure toy gate demonstrated the spoofing counterexample.
    • The positive control supplied an assumed trusted context directly to a synthetic in-memory reader. It establishes only that the harness can exercise the allow path. A context fixed at server construction is launcher-wide and cannot solve cross-caller isolation; no real transport-bound authenticated principal or secure-ledger access was implemented.

    Remaining design gates

    1. Define the threat model: preventing confused model/tool calls versus isolating malicious processes sharing the OS user. Per-session stdio alone does not prevent same-user direct ledger access.
    2. Establish a defensible request/connection-bound principal and operator-scoped intent grants before any ledger/collector access. Model arguments, native thread IDs in unverified metadata, launcher identity, preset revisions and intent IDs are insufficient. Do not use a server-global assumed context as authentication.
    3. Preserve the existing read-only status/watch and mutating wait distinction; no collector startup, history initialization/repair, new wait record, authority mint, send/wake or retry during observation. Actual secure-ledger byte/permission, cancellation and late-ACK tests remain required.
    4. Keep submitted/queued, cursor change, turn completion and plain replies distinct from consumption/ACK; do not widen Codex, remote/device/fanout or Windows support.

    Independent review

    Claude Code 2.1.325 / claude-opus-5-5 and Antigravity 1.5.9 / gemini-4-argon-medium (medium) independently completed the same frozen technical review (SHA-256 c50725c6f96b16874694d740a79a80792d687eb077f78b215ca6816bd14ef8a4), actual models confirmed, both exit 0. Both recommended retaining the blocker and updating this issue instead of introducing a stable observation tool. Linux follow-up used the same gate logic; path/wire-alias harness adaptations, transplant-runner quoting/import setup errors and their first failures are retained separately. No native/TUI/SSH delivery, real ledger isolation, model turn or operational change was tested.

    Focused follow-up: the same two reviewers checked the final triage drafts, startup-path evidence and Linux test outcomes using input SHA-256 bf52afa15c1cf7da87b72a80defd8787c4e7e20416c57be63728f9c5753226d5 (64.277s / 67.307s; both successful). Codex retained the distinction between hypothetical context injection and actual authentication.

    Tracking: MCP-FEASIBILITY-20261114.

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

Metadata

Metadata

Assignees

Labels

enhancementpriority:P3

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions