Repository navigation
O16 gate and reap: monotonic silence with same-connection heal, no signal without a confirmed live lease, acknowledged renewals (D70) - #449
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)
…nic clock and healed by a later hb on the same connection; no end_session or idle SIGTERM without a confirmed live lease (the latest arm answered by its own armed on the observer's present connection, both clocks inside the lease less its margin), the SIGTERM re-armed for or withheld (term_withheld), and withheld too while the host's own status shows a turn (turnUnderWay, shared with isIdleRow); renewals awaited, armed paired to arms by fence and order on the connection; the gate fixture gains the heal, both orders of an arm met by a turn, and the SIGTERM under the lease; §E's settlement and Rules amended 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)
… own (toFake was readonly) 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. |
…descendant-veto entry keeps D69, this branch's gate and reap entry becomes D70 (the plan's conflict resolved, every reference of this branch renumbered; #448's D69 references untouched) 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.
This branch contains #448's head (o16-veto-mcp, 6996d57), merged in at bbf3133. #448's descendant-veto entry keeps D69 in the O16 plan, and this branch's entry is D70, right after it.
A post-landing fix to O16's gate and reap, from the architect's rulings, recorded as D70 in
docs/doperpowers/plans/2026-10-31-p5-o16-holder.md. It lands before O12 M4a builds sminos's observer for this gate. There is no wire change: no frame and no field added.The three defects, as fixed
Gate's defaultnowisperformance.now(), and it is the silence's only reader. A sleep is not a silence.hbon the same unbroken connection heals the row. The stale heartbeat reports the silence before it heals, so an arm in flight is cancelled, and healing re-arms nothing.hello.armedon the observer's present connection, and the larger of the wall-clock and monotonic elapsed times since that arm's send is belowLEASE_MS - LEASE_MARGIN_MS.end_sessionrequires one. So does an idle reap's SIGTERM, throughmayTerm.armed. Otherwise it sends none and disarms, and the reap goes idle with the row's clock restarted.turnUnderWayinbudget.ts, whichisIdleRownow calls too. A turn under way also withholds the SIGTERM.reap {phase: 'term_withheld'}. The stop reason staysidleuntil the next Stop, and no unknown work is set.armed, as the first arm does.armednames only the fence, so the gate pairs each one with the oldest unanswered arm of that fence on the same connection. Each arm has an id, andGateChannel.acknowledged(id)reads the pairing.Docs
gateprocess, and alegacyprocess keeps today's handoff settlement.Fixture
spikes/protocol-probe/fixtures/p5/p5-o16-gate.jsonl:heartbeat-lossnow heals by anhbon the same connection, with no second hello.turn-armed-proceedandturn-proceed-armed: an arm met by a turn, with the latearmedin either order.sigterm-confirmedsigterm-withheldsigterm-rearmed: the older arm's answer confirms nothing.endSessionGraceMs.Tests
Regression tests failed first and run on fake timers over the real gate socket at production timings:
hbwith the fence still disarmed;Gates
All on tree b7552ae44 (head 4c34181), with 0
flaky:lines in each:TestASignalAfterTheReapIsRefused, a race in the Go session host's test. This branch touches nonative/file.--gates all --class1a pool --runner macos: run 41477297736, green, 55 jobs.After the merge of #448's head: class 1a on tree a11ddea50 (head bbf3133): run 41498674129, green, 0
flaky:lines.--gates allis left to the landing gate on the final merge tree.Review:
doperpowers:reviewer-highon 2423754..4c34181 returned "correct", with no material findings.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)