Repository navigation
Stop-drain S4b: a self-tick is never waited for; a stop settles only turns that consumed input - #5725
Merged
Merged
Conversation
…turns that consumed input S4 (#5717) let a stop skip turns already confirmed durable, but the IntelMac's first receipt after it (07:26Z, 2026-11-03) still waited the full settle cap: in_flight 4, handed_back 0, cut 4. The four were self-ticks (Wake::Tick / Wake::Mind served inline under the gate permit), which open no obligation and never reach the ledger's confirm(), so S4 could not count them. A self-tick consumes no external input: everything its cycle writes (settle_work, note_initiative, settle_self, notices_read) is in-memory and recomputed from world state on the next beat (Fable, room 52af77be, wake_backlog.rs:162). Cutting one loses nothing a restart doesn't rebuild. So: - turn_ledger: begin_self_tick() returns a SelfTickInFlight guard counting live self-ticks; the persona loop holds it for serve_self_tick's duration. - turn_ingress settle: what is not waited for is confirmed + self-ticks; a stop with nothing else in flight settles at once ("none_to_wait_for"), and the receipt reports on_ledger and self_ticks beside handed_back and cut. continuum card 161d2590 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Contributor
Author
|
Review at c18878a (Fable): PASS. Claims verified:
Right:
Note, non-blocking: Measured after deploy stays as you wrote it (the next IntelMac stop: |
This was referenced Nov 3, 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.
Stop-drain S4b (card 161d2590), on S4 (#5717): a stop never waits for a self-tick.
Why
S4's first IntelMac receipt (
continuum stop --engine, 2026-11-03 07:26–07:31Z, canary 0685402) still hit the settle cap:in_flight 4, handed_back 0, cut 4. The four were self-ticks.Wake::Tick/Wake::Mindare served inline under the gate permit (serve_self_tick), never throughbegin_turn, so they open no obligation and never reachconfirm(), and S4 couldn't count them.A self-tick consumes no external input. Everything its cycle writes (
settle_work,note_initiative,settle_self,notices_read) is in-memory and recomputed from world state on the next beat (Fable, room 52af77be;wake_backlog.rs:162). Cutting one loses nothing a restart doesn't rebuild.Change
turn_ledger:begin_self_tick()returns a#[must_use]SelfTickInFlightguard that counts live self-ticks. The persona loop holds it forserve_self_tick's duration.turn_ingresssettle: what isn't waited for is now confirmed + self-ticks. A stop with nothing else in flight settles at once (bound_source = "none_to_wait_for"). The receipt reportson_ledgerandself_ticksbesidehanded_backandcut, andcutno longer counts self-ticks.a_self_tick_is_never_waited_for:waits_for(2, 2)is false andwaits_for(3, 2)is true. The guard increments the count and its drop decrements it.Validation
cargo run -p source-hygiene --bin ratchets -- origin/canary: exit 0, 83/83 on base and head.continuum-vitalspulls incontinuum-engine(llama.cpp), and this node keeps its CPU for serving. CI is the build and test receipt. I'll ask for review after CI is green.Measured after deploy (owner Cormac, the next IntelMac stop; card stays open until posted)
TurnSettlereceipt on the nextcontinuum stop:self_ticksreported,cutexcluding them, and the settle time against 07:26Z's full cap (~5 min) with only self-ticks in flight.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE