Repository navigation
fix(bin): refresh away-mode wedge markers for provably-working crews (land of upstream #1828) - #67
Merged
Merged
Conversation
…(land of upstream kunchenguid#1828) Lands upstream PR kunchenguid#1828 (head `5152b3ab`) onto this fork's trunk so the running fleet gets it. Nothing was redesigned and nothing was re-reviewed; the change was already validated upstream, the upstream contribution stays open and untouched, and only that contribution's own changes are carried here. At the one point an aged wedge marker is about to escalate, a crew that is provably working has its marker refreshed instead of escalated, so a worker whose progress lives off the pane stops re-alarming every threshold. Refreshing rather than dropping keeps the silence conditional: the verdict must be re-earned every threshold, so a crew that freezes still ages out and escalates. Detection after a freeze takes at most two thresholds instead of one; the bound is preserved, only the constant changes. The gate's crew-state reads are capped per housekeeping pass by FM_STALE_WORKING_GATE_READS, and a marker past the budget stays aged for the next pass rather than being escalated or dropped. Reconciled against this trunk, which advanced past the upstream base: - The trunk's settled-terminal absorb and this contribution's provably-working refresh both consult crew_absorb_class at the same escalation point, so they now share one bounded read: settled drops the marker, working refreshes it, anything else escalates. Deferring past the read budget leaves the marker aged, so an absorb is delayed by a pass and never becomes a false wedge. - The trunk's `settled` classifier action, its captain-gated pause-recheck skip, and its FM_CHILD_CPU_* and FM_PR_DIRTY_RESURFACE_SECS documentation are kept as the trunk has them; this contribution's wording is reapplied only where it deliberately changed something. - `tests/fm-daemon.test.sh` asserted the per-wake path never reads crew state. That was true at the upstream base but is not true here: this trunk's settled-terminal absorb deliberately reads once per stale wake, before the status-line tests. The case now pins what this contribution actually owns - the gate does not run on the wake path, and the reader is consulted exactly once per wake rather than once per gate. This is the one substantive reconciliation in this landing and is called out for review. - The suite now defaults FM_CREW_STATE_BIN to a shared inert fake, and the two cases that unset it restore that default instead. The trunk's per-wake read reaches crew_absorb_class from cases written before this contribution's fixture guard existed, and an unset stripped the default for every later case. Verified on this branch: `bin/fm-test-run.sh tests/fm-daemon.test.sh` passes, and two negative controls confirm both merged behaviours are live - disabling the provably-working refresh fails with "a provably-working crew escalated a possible wedge", and disabling the settled absorb fails with "a settled terminal state escalated a possible wedge".
sbracewell64
force-pushed
the
fm/land-wedge-aging-onto-fork
branch
from
August 9, 2026 15:53
ffae036 to
6113ed1
Compare
sbracewell64
added a commit
that referenced
this pull request
Aug 9, 2026
…(land of upstream kunchenguid#1828) (#67) Lands upstream PR kunchenguid#1828 (head `5152b3ab`) onto this fork's trunk so the running fleet gets it. Nothing was redesigned and nothing was re-reviewed; the change was already validated upstream, the upstream contribution stays open and untouched, and only that contribution's own changes are carried here. At the one point an aged wedge marker is about to escalate, a crew that is provably working has its marker refreshed instead of escalated, so a worker whose progress lives off the pane stops re-alarming every threshold. Refreshing rather than dropping keeps the silence conditional: the verdict must be re-earned every threshold, so a crew that freezes still ages out and escalates. Detection after a freeze takes at most two thresholds instead of one; the bound is preserved, only the constant changes. The gate's crew-state reads are capped per housekeeping pass by FM_STALE_WORKING_GATE_READS, and a marker past the budget stays aged for the next pass rather than being escalated or dropped. Reconciled against this trunk, which advanced past the upstream base: - The trunk's settled-terminal absorb and this contribution's provably-working refresh both consult crew_absorb_class at the same escalation point, so they now share one bounded read: settled drops the marker, working refreshes it, anything else escalates. Deferring past the read budget leaves the marker aged, so an absorb is delayed by a pass and never becomes a false wedge. - The trunk's `settled` classifier action, its captain-gated pause-recheck skip, and its FM_CHILD_CPU_* and FM_PR_DIRTY_RESURFACE_SECS documentation are kept as the trunk has them; this contribution's wording is reapplied only where it deliberately changed something. - `tests/fm-daemon.test.sh` asserted the per-wake path never reads crew state. That was true at the upstream base but is not true here: this trunk's settled-terminal absorb deliberately reads once per stale wake, before the status-line tests. The case now pins what this contribution actually owns - the gate does not run on the wake path, and the reader is consulted exactly once per wake rather than once per gate. This is the one substantive reconciliation in this landing and is called out for review. - The suite now defaults FM_CREW_STATE_BIN to a shared inert fake, and the two cases that unset it restore that default instead. The trunk's per-wake read reaches crew_absorb_class from cases written before this contribution's fixture guard existed, and an unset stripped the default for every later case. Verified on this branch: `bin/fm-test-run.sh tests/fm-daemon.test.sh` passes, and two negative controls confirm both merged behaviours are live - disabling the provably-working refresh fails with "a provably-working crew escalated a possible wedge", and disabling the settled absorb fails with "a settled terminal state escalated a possible wedge".
sbracewell64
added a commit
that referenced
this pull request
Aug 10, 2026
…(land of upstream kunchenguid#1828) (#67) Lands upstream PR kunchenguid#1828 (head `5152b3ab`) onto this fork's trunk so the running fleet gets it. Nothing was redesigned and nothing was re-reviewed; the change was already validated upstream, the upstream contribution stays open and untouched, and only that contribution's own changes are carried here. At the one point an aged wedge marker is about to escalate, a crew that is provably working has its marker refreshed instead of escalated, so a worker whose progress lives off the pane stops re-alarming every threshold. Refreshing rather than dropping keeps the silence conditional: the verdict must be re-earned every threshold, so a crew that freezes still ages out and escalates. Detection after a freeze takes at most two thresholds instead of one; the bound is preserved, only the constant changes. The gate's crew-state reads are capped per housekeeping pass by FM_STALE_WORKING_GATE_READS, and a marker past the budget stays aged for the next pass rather than being escalated or dropped. Reconciled against this trunk, which advanced past the upstream base: - The trunk's settled-terminal absorb and this contribution's provably-working refresh both consult crew_absorb_class at the same escalation point, so they now share one bounded read: settled drops the marker, working refreshes it, anything else escalates. Deferring past the read budget leaves the marker aged, so an absorb is delayed by a pass and never becomes a false wedge. - The trunk's `settled` classifier action, its captain-gated pause-recheck skip, and its FM_CHILD_CPU_* and FM_PR_DIRTY_RESURFACE_SECS documentation are kept as the trunk has them; this contribution's wording is reapplied only where it deliberately changed something. - `tests/fm-daemon.test.sh` asserted the per-wake path never reads crew state. That was true at the upstream base but is not true here: this trunk's settled-terminal absorb deliberately reads once per stale wake, before the status-line tests. The case now pins what this contribution actually owns - the gate does not run on the wake path, and the reader is consulted exactly once per wake rather than once per gate. This is the one substantive reconciliation in this landing and is called out for review. - The suite now defaults FM_CREW_STATE_BIN to a shared inert fake, and the two cases that unset it restore that default instead. The trunk's per-wake read reaches crew_absorb_class from cases written before this contribution's fixture guard existed, and an unset stripped the default for every later case. Verified on this branch: `bin/fm-test-run.sh tests/fm-daemon.test.sh` passes, and two negative controls confirm both merged behaviours are live - disabling the provably-working refresh fails with "a provably-working crew escalated a possible wedge", and disabling the settled absorb fails with "a settled terminal state escalated a possible wedge".
sbracewell64
added a commit
that referenced
this pull request
Aug 11, 2026
…(land of upstream kunchenguid#1828) (#67) Lands upstream PR kunchenguid#1828 (head `5152b3ab`) onto this fork's trunk so the running fleet gets it. Nothing was redesigned and nothing was re-reviewed; the change was already validated upstream, the upstream contribution stays open and untouched, and only that contribution's own changes are carried here. At the one point an aged wedge marker is about to escalate, a crew that is provably working has its marker refreshed instead of escalated, so a worker whose progress lives off the pane stops re-alarming every threshold. Refreshing rather than dropping keeps the silence conditional: the verdict must be re-earned every threshold, so a crew that freezes still ages out and escalates. Detection after a freeze takes at most two thresholds instead of one; the bound is preserved, only the constant changes. The gate's crew-state reads are capped per housekeeping pass by FM_STALE_WORKING_GATE_READS, and a marker past the budget stays aged for the next pass rather than being escalated or dropped. Reconciled against this trunk, which advanced past the upstream base: - The trunk's settled-terminal absorb and this contribution's provably-working refresh both consult crew_absorb_class at the same escalation point, so they now share one bounded read: settled drops the marker, working refreshes it, anything else escalates. Deferring past the read budget leaves the marker aged, so an absorb is delayed by a pass and never becomes a false wedge. - The trunk's `settled` classifier action, its captain-gated pause-recheck skip, and its FM_CHILD_CPU_* and FM_PR_DIRTY_RESURFACE_SECS documentation are kept as the trunk has them; this contribution's wording is reapplied only where it deliberately changed something. - `tests/fm-daemon.test.sh` asserted the per-wake path never reads crew state. That was true at the upstream base but is not true here: this trunk's settled-terminal absorb deliberately reads once per stale wake, before the status-line tests. The case now pins what this contribution actually owns - the gate does not run on the wake path, and the reader is consulted exactly once per wake rather than once per gate. This is the one substantive reconciliation in this landing and is called out for review. - The suite now defaults FM_CREW_STATE_BIN to a shared inert fake, and the two cases that unset it restore that default instead. The trunk's per-wake read reaches crew_absorb_class from cases written before this contribution's fixture guard existed, and an unset stripped the default for every later case. Verified on this branch: `bin/fm-test-run.sh tests/fm-daemon.test.sh` passes, and two negative controls confirm both merged behaviours are live - disabling the provably-working refresh fails with "a provably-working crew escalated a possible wedge", and disabling the settled absorb fails with "a settled terminal state escalated a possible wedge".
sbracewell64
added a commit
that referenced
this pull request
Aug 11, 2026
…(land of upstream kunchenguid#1828) (#67) Lands upstream PR kunchenguid#1828 (head `5152b3ab`) onto this fork's trunk so the running fleet gets it. Nothing was redesigned and nothing was re-reviewed; the change was already validated upstream, the upstream contribution stays open and untouched, and only that contribution's own changes are carried here. At the one point an aged wedge marker is about to escalate, a crew that is provably working has its marker refreshed instead of escalated, so a worker whose progress lives off the pane stops re-alarming every threshold. Refreshing rather than dropping keeps the silence conditional: the verdict must be re-earned every threshold, so a crew that freezes still ages out and escalates. Detection after a freeze takes at most two thresholds instead of one; the bound is preserved, only the constant changes. The gate's crew-state reads are capped per housekeeping pass by FM_STALE_WORKING_GATE_READS, and a marker past the budget stays aged for the next pass rather than being escalated or dropped. Reconciled against this trunk, which advanced past the upstream base: - The trunk's settled-terminal absorb and this contribution's provably-working refresh both consult crew_absorb_class at the same escalation point, so they now share one bounded read: settled drops the marker, working refreshes it, anything else escalates. Deferring past the read budget leaves the marker aged, so an absorb is delayed by a pass and never becomes a false wedge. - The trunk's `settled` classifier action, its captain-gated pause-recheck skip, and its FM_CHILD_CPU_* and FM_PR_DIRTY_RESURFACE_SECS documentation are kept as the trunk has them; this contribution's wording is reapplied only where it deliberately changed something. - `tests/fm-daemon.test.sh` asserted the per-wake path never reads crew state. That was true at the upstream base but is not true here: this trunk's settled-terminal absorb deliberately reads once per stale wake, before the status-line tests. The case now pins what this contribution actually owns - the gate does not run on the wake path, and the reader is consulted exactly once per wake rather than once per gate. This is the one substantive reconciliation in this landing and is called out for review. - The suite now defaults FM_CREW_STATE_BIN to a shared inert fake, and the two cases that unset it restore that default instead. The trunk's per-wake read reaches crew_absorb_class from cases written before this contribution's fixture guard existed, and an unset stripped the default for every later case. Verified on this branch: `bin/fm-test-run.sh tests/fm-daemon.test.sh` passes, and two negative controls confirm both merged behaviours are live - disabling the provably-working refresh fails with "a provably-working crew escalated a possible wedge", and disabling the settled absorb fails with "a settled terminal state escalated a possible wedge".
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.
Lands upstream PR kunchenguid#1828 (validated head
5152b3ab, "fix(bin): refresh away-mode wedge markers for provably-working crews") onto this fork's trunk so the running fleet actually gets it.Nothing was redesigned and nothing was re-reviewed. The change was already reviewed upstream, the upstream contribution stays open and untouched on the maintainer's schedule, and only that contribution's own changes are carried here.
What it fixes
A healthy long-running worker holds a static pane while it waits on a completion artefact rather than printing. Away-mode wedge aging fired on it anyway, every threshold, for as long as the work ran.
At the one point an aged wedge marker is about to escalate, a crew that is provably working now has its marker refreshed instead of escalated. Refreshing rather than dropping is what keeps this bounded: silence has to be re-earned every threshold, so a crew that freezes - or a reader that stops answering - ages out and escalates with nothing needing to notice and re-arm it. Detection after a freeze takes at most two thresholds instead of one; the guarantee that a wedge is found within a bounded time and never lost is unchanged, only the constant differs.
The gate's crew-state reads are capped per housekeeping pass by
FM_STALE_WORKING_GATE_READS. A marker past the budget is left aged and untouched - neither escalated nor refreshed - so the budget delays an escalation and can never suppress one.How it was cut
The contribution's own change-set is
2cf0283..5152b3ab(seven files, the merge base of the upstream branch against upstream main). This trunk has advanced well past that base, and the thirteen upstream commits conflict serially against it, so the change-set was applied to the current trunkc1141a5as one landing commit - the same shape as this fork's other landings.Reconciliation against this trunk, disclosed
This trunk carries a settled-terminal absorb that did not exist at the upstream base, and it touches the same code. Four resolutions were required:
crew_absorb_classat the same escalation point. They are merged into a single read:settleddrops the marker,workingrefreshes it, anything else escalates. Deferring past the read budget leaves the marker aged, so an absorb is delayed by a pass and never becomes a false wedge.settledclassifier action, the captain-gated pause-recheck skip, and theFM_CHILD_CPU_*andFM_PR_DIRTY_RESURFACE_SECSdocumentation are kept as the trunk has them. This contribution's wording is reapplied only where it deliberately changed something - which forFM_STALE_ESCALATE_SECSit did.test_stale_transient_records_marker_without_reading_crew_stateasserted the per-wake path never reads crew state. That was true at the upstream base. It is not true here: this trunk'sclassify_staledeliberately reads once per stale wake, before the status-line tests, for its settled-terminal absorb. The case now pins what this contribution actually owns - the gate does not run on the wake path, and the reader is consulted exactly once per wake rather than once per gate. Reviewers should look at this one first.FM_CREW_STATE_BINnow defaults to a shared inert fake, and the two cases that unset it restore that default instead. The trunk's per-wake read reachescrew_absorb_classfrom cases written before this contribution's fixture guard existed, and an unset stripped the default for every later case in the file.Evidence
bin/fm-test-run.sh tests/fm-daemon.test.shpasses on this branch (failed=0).Both merged behaviours were confirmed live by negative control - each was disabled in turn and the suite was watched failing before being trusted:
bin/fm-lint.shpasses.Known structural red
PR must be raised via no-mistakesfails on this pull request by construction: it was opened by hand, so its head carries norefs/notes/no-mistakesattestation. That is the expected state for every hand-opened landing here until the pipeline push-step fix lands, and it is not a defect in this change.