Repository navigation
O16: the descendant veto registers the owner's MCP servers and the sminos bridge (post-landing fix, Decision Log D69) - #448
Merged
Merged
Conversation
…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)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
claudeas 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:environmentRebuilt) drops every barecommandfrom the argv route. After any handover or supervisor restart, cua'snode, and anynpxoruvxserver, held its session for life.ptc-launch, which becomes its venv's python) matches no argv derived from its config.hello.childPidever 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, fixturesfixtures/p5/p5-o16-veto-mcp[-installed].jsonl, findingsfindings-p5-o16-veto-mcp.txt, fixture tests infixtures.test.mjs.mcp_statuscarriesconfig {type: stdio, command, args}for every plugin stdio server, with${CLAUDE_PLUGIN_ROOT}expanded. The config-less entries inp4-r8-owner.jsonlcome from that recording's curation.claude's direct child, spawned within a second of it and beforeinitializeis answered. An exec keeps the pid and the start time.claude's Bash wrapper with its command under it.mcp_statuskeeps a killed serverconnected(at least 6 s, on both engines) and never respawns it.The fix
Bindings by identity. Every binding is pid +
lstart+ parentclaude, 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_statuswith no stdio server pending, the unbound direct children that are neither Bash wrappers nor zombies are bound as servers when two things hold:claude's ownlstart.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
observerSeenLaunchis, 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.childPidsupersedes 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
-psession, 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_toggleandreload_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:
holder/release.test.ts, "D69");holder/adopter.test.ts, "the descendant veto after an adoption"), where the case with no saved bindings fails on master's veto itself;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-highran three rounds:Gates
--gates allon 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.tsandsrc/engine-host/process-table.ts. They merge cleanly; O17 lands first.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)