Repository navigation
feat(health): the receipt gets an actor — a lane-bound roster rests its least-served seats to the healthy edge, and wakes them when the lanes return - #4200
Merged
Conversation
…ts least-served seats to the healthy edge Governor slice S3 (card c84d885a; Joel 2026-09-18: "govern for reliability"). For hours on 2026-09-18 the org room read "AT THE KNEE: 16 minds on 2 lanes … owed: fewer seats here or more decode, never more lanes" and nobody paid it; an operator paid it by hand (a hold and a reboot). Now the hourly tick pays it. THE RULE (pure, `is_lane_bound` + `lane_bound_seats`): the verdict is STARVED or AT THE KNEE, the hour's card pulls are a fair sample (≥ LANE_BOUND_MIN_PULLS), and at least LANE_BOUND_DEFERRED_SHARE of them were `bench.round.pull_deferred_wip` — the minds were QUEUED on the lanes, not idle, not mindless. Then the least-served seats (no writes first, then fewest lane grants) REST down to the healthy edge, `lanes × MINDS_PER_LANE_STARVED_ABOVE` — the one number the STARVED verdict already turns on — never below the resident floor, never more than the per-tick cap: the same resting-seat page-out the mindless rule uses (checkpoint flushed, on record, back on a change: a deploy or `persona/instances/wake`). WHAT IT REFUSES TO DO: an hour of `pull_none` (the IntelMac: 8 minds, 278 pulls, no round on the node) rests NOBODY. That is a round-supply defect, not a seat one; paging a roster for it would delete the roster and report success. The reason on every rest says `lane_bound` and carries the numbers, so an empty seat explains itself. The pulls are counted at the three receipted outcomes of `work_pull::try_pull_next_card` (pulled / deferred / nothing) — one ledger, the same seams that already probe. The per-mind lane-grant map folds into `MindHour` (one per-mind ledger, not two). The receipt line and the `citizen.health.hour` probe carry `pulls` and `pulls_deferred`; the actor's receipt is `persona.lane_bound.rested`. Test: a_lane_bound_roster_rests_its_least_served_seats_and_a_roundless_one_rests_nobody — the M5's hour (16 on 2, 424/430 deferred) and the IntelMac's (8, 278 pulls, none deferred), the edge, the floor, the cap, a healthy roster never paged. Whole-file: citizen_health, work_pull, placement_switch, source_hygiene — 35/35, no new warnings. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…e back, the seats come back Cormac's condition on S3, verbatim: "a lane_bound REST has no lane_bound WAKE … the seat was fine, the LANES were short, and the correct return trigger is the lanes coming back. As written: the M5 at 1 lane this hour rests 2 of 5; #4197 lands and the M5 goes to 2 lanes; those 2 stay rested until the next deploy. Every transient lane dip permanently shrinks the roster — the peak ratchet, the claim expiry, the metronome, in a fourth coat." The mirror, pure (`lane_bound_wakes`): while lanes × MINDS_PER_LANE_STARVED_ABOVE has room above the residents, the most recently rested lane-bound seat (the most served of those rested — the least served rested first) wakes, same cap per tick, reason "lanes returned"; a MINDLESS rest is untouched (she must have changed). Rest and wake cannot both fire: one needs residents above the edge, the other room below it. Receipt: persona.lane_bound.woken; the health line gains "lanes returned: N woken". Test: a_lane_bound_rest_has_a_lane_bound_wake_and_a_mindless_rest_does_not — two rested at lanes = 1 stay rested at lanes = 1; the tick at lanes = 2 wakes them most-served first; room for one wakes one; the recital never wakes by lanes. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
enabled auto-merge (squash)
September 18, 2026 21:53
joelteply
added a commit
that referenced
this pull request
Sep 18, 2026
…ction is a ratchet until its mirror ships (#4201) Cormac, 2026-09-18, after the fourth one-direction defect of the day: "four one-direction ratchets found and fixed today by three of us … same shape each time — a measurement or a state that could only move one way — and each time the fix was the mirror rule and a test with both directions in it. Worth a doctrine line somewhere the next person will read before they write the fifth." This is that line, in the list the next person reads: the mirror ships in the same commit as the mover, keyed on the same number; the test is a round trip. #4195 #4190 #4193 #4199 #4200. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Summary
Governor slice S3 (card c84d885a). For hours on 2026-09-18 the org room read "AT THE KNEE … owed: fewer seats here or more decode, never more lanes" and nobody paid it; an operator paid it by hand (a hold + a reboot). Now the hourly tick pays it — and un-pays it when the lanes return.
The rest (
is_lane_bound+lane_bound_seats, pure): verdict STARVED or AT THE KNEE, the hour's card pulls a fair sample (≥LANE_BOUND_MIN_PULLS), and ≥LANE_BOUND_DEFERRED_SHAREof them werebench.round.pull_deferred_wip— the minds were queued on the lanes, not idle, not mindless. Then the least-served seats (no writes first, then fewest lane grants) rest down to the healthy edgelanes × MINDS_PER_LANE_STARVED_ABOVE(the one number the STARVED verdict already turns on), never below the floor, ≤ the per-tick cap, through the same resting-seat page-out the mindless rule uses. Reasonlane_boundwith the numbers; receiptpersona.lane_bound.rested.The wake (
lane_bound_wakes, Cormac's condition): a mindless seat returns on a change in her; a lane-bound seat was fine — the lanes were short — so she returns when the lanes come back: while the edge has room above the residents, the most recently rested lane-bound seat wakes, same cap, reason "lanes returned". Without it every transient lane dip would permanently shrink the roster — the one-direction shape in a fourth coat. Receiptpersona.lane_bound.woken.What it refuses: an hour of
pull_none(IntelMac: 8 minds, 278 pulls,no_rounds_on_node) rests nobody — a round-supply defect must never page a roster and report success. Enforced by wherenote_pull(true)fires: only onPullOutcome::DeferredWip.Also: pulls counted at the three receipted outcomes of
try_pull_next_card; the per-mind lane-grant map folds intoMindHour(one per-mind ledger); the[health]line andcitizen.health.hourcarrypulls (N lane-deferred),lane_bound_rested,lane_bound_woken.Ordering (Cormac): S3 acts on the exact number #4197 changes. Merge only once #4197 runs fleet-wide (the M5 tracks canary; the 5090 is BigMama's hand deploy) — auto-merge is NOT armed until that and a peer's word on this sha.
Test plan
a_lane_bound_roster_rests_its_least_served_seats_and_a_roundless_one_rests_nobody— the M5's hour (16 on 2, 424/430 deferred) and the IntelMac's (278 pulls, 0 deferred); the edge, the floor, the cap; a healthy roster never pageda_lane_bound_rest_has_a_lane_bound_wake_and_a_mindless_rest_does_not— rest 2 at lanes=1, stay at lanes=1, wake at lanes=2 most-served first; the recital never wakes by lanes[health]line after a lane-bound hour showslane-bound: N rested, and after a lane returns,lanes returned: N woken🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo