Skip to content

fix(bin): refresh away-mode wedge markers for provably-working crews (land of upstream #1828) - #67

Merged
sbracewell64 merged 1 commit into
mainfrom
fm/land-wedge-aging-onto-fork
Aug 9, 2026
Merged

sbracewell64 merged 1 commit into
mainfrom
fm/land-wedge-aging-onto-fork

Conversation

@sbracewell64

Copy link
Copy Markdown
Owner

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 trunk c1141a5 as 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:

  1. Both verdicts now share one bounded read. The trunk's settled-terminal absorb and this contribution's provably-working refresh both consult crew_absorb_class at the same escalation point. They are merged into a single 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.
  2. Trunk keeps what it deliberately changed. The settled classifier action, the captain-gated pause-recheck skip, and the 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 - which for FM_STALE_ESCALATE_SECS it did.
  3. One test assertion was reconciled, and this is the substantive one. test_stale_transient_records_marker_without_reading_crew_state asserted the per-wake path never reads crew state. That was true at the upstream base. It is not true here: this trunk's classify_stale deliberately 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.
  4. The suite's reader stub was made robust. FM_CREW_STATE_BIN now defaults 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 in the file.

Evidence

bin/fm-test-run.sh tests/fm-daemon.test.sh passes 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:

disable the provably-working refresh:
  not ok - a provably-working crew escalated a possible wedge:
           no progress evidence for 500s (possible wedge): sess:fm-longrun-w2

disable the settled absorb:
  not ok - a settled terminal state escalated a possible wedge:
           no progress evidence for 500s (possible wedge): sess:fm-set-w7

bin/fm-lint.sh passes.

Known structural red

PR must be raised via no-mistakes fails on this pull request by construction: it was opened by hand, so its head carries no refs/notes/no-mistakes attestation. 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.

…(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
sbracewell64 force-pushed the fm/land-wedge-aging-onto-fork branch from ffae036 to 6113ed1 Compare August 9, 2026 15:53
@sbracewell64
sbracewell64 merged commit 6e8bc24 into main Aug 9, 2026
13 of 14 checks passed
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".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant