Skip to content

O16: the descendant veto registers the owner's MCP servers and the sminos bridge (post-landing fix, Decision Log D69) - #448

Merged
SSFSKIM merged 8 commits into
masterfrom
o16-veto-mcp
Nov 2, 2026
Merged

SSFSKIM merged 8 commits into
masterfrom
o16-veto-mcp

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

A post-landing fix to P5 O16's descendant veto (docs/doperpowers/plans/2026-10-31-p5-o16-holder.md, M5, Interfaces §F, D17, D48, D52; this PR's Decision Log D69).

The defect

The veto counts every process under claude as the session's work unless it is registered infrastructure. On the owner's setup, none of that infrastructure was registered, so a session that ran any plugin server was never released, by the budget release or by the idle release:

  • After adoption. The rebuilt plan (environmentRebuilt) drops every bare command from the argv route. After any handover or supervisor restart, cua's node, and any npx or uvx server, held its session for life.
  • On every launch. An exec'ing launcher (ptc's ptc-launch, which becomes its venv's python) matches no argv derived from its config.
  • The sminos bridge. sminos 1.31.0, the owner's version, has no OX10 observer yet (O12 M4), so no hello.childPid ever named the bridge child, and it counted as work too.

The probe

Recorded on a devcloud VM (since deleted) on 2.1.283 and 2.1.316. Scenario spikes/protocol-probe/scenarios/pass3/p5-o16-veto-mcp.mjs, fixtures fixtures/p5/p5-o16-veto-mcp[-installed].jsonl, findings findings-p5-o16-veto-mcp.txt, fixture tests in fixtures.test.mjs.

  • (a) mcp_status carries config {type: stdio, command, args} for every plugin stdio server, with ${CLAUDE_PLUGIN_ROOT} expanded. The config-less entries in p4-r8-owner.jsonl come from that recording's curation.
  • (b) Every stdio server is claude's direct child, spawned within a second of it and before initialize is answered. An exec keeps the pid and the start time.
  • (c) A background Bash is claude's Bash wrapper with its command under it.
  • (d) mcp_status keeps a killed server connected (at least 6 s, on both engines) and never respawns it.

The fix

  • Bindings by identity. Every binding is pid + lstart + parent claude, and a bound process carries its subtree (D52).

  • The argv route stays where it matches.

  • The count rule covers the rest. After a fresh mcp_status with no stdio server pending, the unbound direct children that are neither Bash wrappers nor zombies are bound as servers when two things hold:

    • their number plus the servers already bound equals the number of connected stdio servers;
    • each started within 60 s of claude's own lstart.

    The window exists because of (d): without it, the next new child would fill a dead server's place.

  • Persistence. The bindings are kept per launch in the state file, the way observerSeenLaunch is, and an adopter restores them.

  • The bridge by its argv (its own commit). This is the registration for every process whose bridge never says the observer's hello: an older sminos such as the owner's 1.31.0, or a process O12 M4 records as legacy. While no hello has named a pid, the bridge is bound by its argv: sminos[.py] bridge --session <S>, with S one of the row's engine session ids. Where the bridge does say hello, hello.childPid supersedes it.

  • Unchanged. A background Bash is still work, every time. caffeinate is still work: from the engine's source, it never runs under a MAWS -p session, and where it does run it lives only for the busy span plus 30 s. No wire field moves.

Deferred, with its cost: a respawn window for MAWS's mcp_reconnect, mcp_toggle and reload_plugins. Until it exists, a restarted exec'ing launcher, or a restarted bare command after adoption, holds its session until the session ends.

Tests and review

Each fix has a regression test that fails on master:

  • fresh launches (holder/release.test.ts, "D69");
  • adoption (holder/adopter.test.ts, "the descendant veto after an adoption"), where the case with no saved bindings fails on master's veto itself;
  • unit cases (holder/descendants.test.ts), the state file (store/file-session-state-store.test.ts) and the fold (holder/adopted-session.test.ts).

A background Bash counts as work in every case.

doperpowers:reviewer-high ran three rounds:

  1. 512376b, incorrect. Three findings, all fixed: the first-turn bound, the bridge script tied to the plugin's root, and the ask cache keyed by the tree that was counted.
  2. a93188f, incorrect. Two findings, both fixed: the turn's own second is excluded, and unknown roots are told apart from an empty list.
  3. 6996d57, correct. No findings.

Gates

  • class 1a on 6996d57: run 41472983815, green, 0 flaky lines.
  • --gates all on the same tree (b4463751b): run 41472964171, green, 55 jobs. One flaky line, e2e/transcript.spec.ts:454, a renderer transcript spec this change does not reach.

Shared files with origin/p5-o17: src/engine-host/session.ts and src/engine-host/process-table.ts. They merge cleanly; O17 lands first.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

…with ${CLAUDE_PLUGIN_ROOT} expanded (2.1.283, 2.1.316); servers are claude's direct children spawned within a second of it, an exec keeps pid and start; a killed server stays connected and is not respawned; the bridge child names the session id

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…v route stays where it matches; the rest are bound by count once mcp_status names no stdio server pending, when the unbound non-wrapper children are exactly the connected servers not yet bound, each started within 60 s of claude (a killed server stays connected, so nothing later fills its place). The bindings are kept per launch in the state file and restored at adoption, so a bare command or an exec'd launcher no longer holds its session for life; a background Bash still counts

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… names it (interim). A direct child of claude, never a Bash wrapper, whose argv has a sminos or sminos.py word first or second, then bridge --session S with S one of the row's engine session ids; bound by pid and start at first match, one at a time, persisted with the server bindings, and superseded by any hello that names a pid

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ct, the probe's four findings, p4-r8-owner.jsonl's curated reading corrected, the identity rule as built with its spawn window, the interim bridge rule until O12 M4, the alternatives rejected, the respawn window's cost deferred, caffeinate kept as work from source); §F points to it

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tatus types it (optional), and the reused-pid case builds a tree rather than writing into a read-only one

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s whose bridge never says hello (no observer, an older sminos, or a process O12 M4 records as legacy), superseded by hello.childPid where the bridge does; nothing retires it (the architect's ruling); comments and D69 say so

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…'s first turn (restored by an adopter's fold), so a teammate or a turn's hook never fills a dead server's slot; the bridge's script must be the plugin's own (its root from system/init, its layout before that); an answer's ask is keyed by the tree it was counted on and cleared when that tree could not be read

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…turn's own lstart second (it may have started after the turn); the bridge's layout fallback holds only until the engine has reported its plugins, and an init without sminos leaves no bridge by argv

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-02T16:04:32.741764Z
We couldn’t complete this review. Comment @codex review to try again.
6996d57 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@SSFSKIM
SSFSKIM merged commit bbf3133 into master Nov 2, 2026
SSFSKIM added a commit that referenced this pull request Nov 2, 2026
…ion heal, no signal without a confirmed live lease, acknowledged renewals (D70); carries PR #448, the descendant veto's fix (D69)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 2, 2026
…merge 6271908); Decision Log 205 (D69 and D70 as built, the joint race proof, the hold on the owner's machines lifted, O17 after the sitting)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant