Skip to content

fix: deliver failed public follow-ups with updated AXI floors - #5350

Merged
kunchenguid merged 5 commits into
mainfrom
fm/fm-axi-floors-bump-r1
Sep 23, 2026
Merged

kunchenguid merged 5 commits into
mainfrom
fm/fm-axi-floors-bump-r1

Conversation

@kunchenguid

@kunchenguid kunchenguid commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Final floors in this PR: tasks-axi 0.2.6, quota-axi 0.1.51, lavish-axi 0.1.77. quota-axi 0.1.50 inverted Claude quota readings, so the floor moved to a temporary 0.1.49 and then to the fixed 0.1.51. Validation evidence below that names quota-axi 0.1.49 was captured at that interim floor; the head this PR merges (7302602) sets FM_QUOTA_AXI_MIN=0.1.51 and passed all 19 CI checks.

Intent

"bump the min version requirement for tasks-axi, quota-axi, lavish-axi in firstmate all to their latest version"

Current npm latest: tasks-axi 0.2.6, quota-axi 0.1.50, lavish-axi 0.1.77. Update: quota-axi 0.1.50 inverted every Claude quota reading, so the quota-axi floor went to a temporary 0.1.49 and then to the fixed release 0.1.51, which is the floor this PR ships. Raise each tool's minimum required version to exactly those versions wherever firstmate declares them, as one firstmate change.

Also in scope, because it depends on the new tasks-axi: tasks-axi 0.2.6 released the failed-relation deliverable fix (kunchenguid/tasks-axi#67), which unblocks the held firstmate regression test for that path. The problem it covers: a bound work that ends failed or parked on a promised-final expecting pr-merged was accepted as a failed relation but never became deliverable, so the owed public reply had no delivery path. Add that firstmate regression test.

What Changed

  • Raise minimum versions to tasks-axi 0.2.6, quota-axi 0.1.51, and lavish-axi 0.1.77, updating CI and test fixtures accordingly.
  • Add regression coverage proving failed or parked work can deliver an honest terminal reply when a promised final expected a merged PR.
  • Document the failed-result delivery contract and isolate Herdr liveness tests from host server state.

Risk Assessment

🚨 High: The requested floor bumps and behavioral regression are correctly represented, but two unrelated test changes require explicit approval or removal before merge, and one introduces an unreliable fallback hang guard.

Testing

The live AXI-floor bootstrap and failed bound-relation reconciliation scenarios passed. Below-floor boundary behavior and exact-once relay delivery were covered only by non-live executable tests, so their live outcomes remain untested.

  • Live validation: ⚠️ inconclusive - 2 of 4 scenarios driven live against the product
Scenario Result Live Evidence
An operator bootstraps Firstmate with the required tasks-axi, quota-axi, and lavish-axi versions and receives no upgrade diagnostic ✅ pass live Live AXI-floor bootstrap transcript shows tasks-axi 0.2.6, quota-axi 0.1.49, lavish-axi 0.1.77, lavish compatibility exit 0, and no diagnostics.
An operator with an AXI tool immediately below its floor receives the appropriate upgrade or presentation-unavailable diagnostic ⏸️ untested no The prior payload recorded only targeted executable boundary tests, not a below-floor AXI tool driven against the live product; a live environment with each immediately-below-floor tool version is req…
Failed bound work on a promised pr-merged final becomes delivery-ready with its honest failure outcome preserved ✅ pass live failed-relation-live-transcript.txt shows ready pf-live-failed req-live-failed discord and persisted relation state failed, delivery state ready, and error code quota-exhausted.
Delivering the failed relation posts the honest outcome exactly once and completes the commitment ⏸️ untested no The prior payload used a fake relay transport and therefore did not establish delivery against the live product; access to a real configured relay destination is required to verify the honest outcome…
Evidence: Live AXI-floor bootstrap transcript

Source: Live AXI-floor bootstrap transcript

Scenario: isolated Firstmate bootstrap with installed AXI-family versions
tasks-axi: 0.2.6
quota-axi: 0.1.49
lavish-axi: 0.1.77
lavish-compatible exit: 0
bootstrap diagnostics: (none)
Evidence: AXI-floor boundary test results

Source: AXI-floor boundary test results

ok - bootstrap permits nonvisual work without compatible lavish-axi and retains its presentation floor
ok - bootstrap enforces tasks-axi minimum version
ok - bootstrap enforces quota-axi minimum version
Evidence: Live failed-relation reconciliation transcript

Source: Live failed-relation reconciliation transcript

Scenario: failed bound work on a promised pr-merged final
tasks-axi version: 0.2.6
consume output: ready pf-live-failed req-live-failed discord
persisted public-followup state: {"id":"pf-live-failed","state":"queued","delivery":"ready","relation_state":"failed","accepted_outcome":"failed","error_code":"quota-exhausted","public_safe_outcome":"This work failed because the worker exhausted quota before opening a fix."}
Evidence: Failed-relation exact-delivery regression result

Source: Failed-relation exact-delivery regression result

ok - failed work on a pr-merged promise delivers its honest outcome exactly once
- Outcome: ⚠️ 1 warning across 1 run (5m46s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 2 issues (1 error, 1 warning)
  • ⚠️ tests/fm-backlog-atomicity.test.sh:57 - The new bounded_run portability fallback and its adoption at lines 1499 and 2796 are not required by the version-floor or failed-relation regression intent. Remove this helper and restore the existing hang guards; additionally, its Perl fallback kills only the exec'd parent on alarm and can leave descendants holding captured output open, so it does not reliably provide the claimed bound.
  • ⚠️ tests/fm-secondmate-liveness.test.sh:170 - The added fm_backend_herdr_server_running_state override changes an unrelated liveness test and is not required by any stated acceptance criterion. Remove this test alteration unless the author explicitly wants to include the separate hermeticity fix.

🔧 Fix applied.
1 warning still open:

  • ⚠️ tests/fm-secondmate-liveness.test.sh:170 - The added fm_backend_herdr_server_running_state override changes an unrelated liveness test and is not required by any stated acceptance criterion. Remove this test alteration unless the author explicitly wants to include the separate hermeticity fix.

🔧 Fix applied.
2 issues (1 error, 1 warning) still open:

  • ⚠️ tests/fm-secondmate-liveness.test.sh:170 - The added fm_backend_herdr_server_running_state override changes an unrelated liveness test and is not required by any stated acceptance criterion. Remove this test alteration unless the author explicitly wants to include the separate hermeticity fix.
  • 🚨 Approved change: set FM_QUOTA_AXI_MIN to 0.1.49 (not 0.1.50) because quota-axi 0.1.50 inverts Claude quota readings; update every quota-axi 0.1.50 test fixture and boundary case (tests/fm-bootstrap.test.sh, fm-procevent-quota, fm-quota-choose, fm-secondmate-harness, fm-secondmate-liveness, fm-secondmate-sync, fm-shared-captain-inheritance, fm-startup-memory-budget) to 0.1.49, and any CI pin or doc naming 0.1.50; leave tasks-axi 0.2.6 and lavish-axi 0.1.77 unchanged.
⚠️ **Test** - 1 warning
  • ⚠️ live validation verdict: inconclusive (2 of 4 scenarios were driven live against the product); untested: An operator with an AXI tool immediately below its floor receives the appropriate upgrade or presentation-unavailable diagnostic, Delivering the failed relation posts the honest outcome exactly once and completes the commitment
  • Live validation: ⚠️ inconclusive - 2 of 4 scenarios driven live against the product
Scenario Result Live Evidence
An operator bootstraps Firstmate with the required tasks-axi, quota-axi, and lavish-axi versions and receives no upgrade diagnostic ✅ pass live Live AXI-floor bootstrap transcript shows tasks-axi 0.2.6, quota-axi 0.1.49, lavish-axi 0.1.77, lavish compatibility exit 0, and no diagnostics.
An operator with an AXI tool immediately below its floor receives the appropriate upgrade or presentation-unavailable diagnostic ⏸️ untested no The prior payload recorded only targeted executable boundary tests, not a below-floor AXI tool driven against the live product; a live environment with each immediately-below-floor tool version is req…
Failed bound work on a promised pr-merged final becomes delivery-ready with its honest failure outcome preserved ✅ pass live failed-relation-live-transcript.txt shows ready pf-live-failed req-live-failed discord and persisted relation state failed, delivery state ready, and error code quota-exhausted.
Delivering the failed relation posts the honest outcome exactly once and completes the commitment ⏸️ untested no The prior payload used a fake relay transport and therefore did not establish delivery against the live product; access to a real configured relay destination is required to verify the honest outcome…
  • FM_TEST_ONLY=test_failed_work_on_pr_merged_promise_delivers_honest_outcome tests/fm-public-followup.test.sh
  • Targeted test_lavish_axi_min_version, test_tasks_axi_min_version, and test_quota_axi_min_version from tests/fm-bootstrap.test.sh using a temporary runner
  • Isolated real-tool bootstrap with tasks-axi 0.2.6, quota-axi 0.1.49, and lavish-axi 0.1.77
  • Manual isolated public-followup flow: add, bind, register, emit failed terminal outcome, consume, and inspect persisted tasks-axi state
  • Initial FM_TEST_ONLY bootstrap attempts, which entered the full suite because that suite does not support the selector and timed out; replaced with the targeted runner
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Raise the minimum versions to tasks-axi 0.2.6, quota-axi 0.1.50, and
lavish-axi 0.1.77, pin CI's tasks-axi install to 0.2.6, and move the
floor-boundary test fixtures to the new versions.

tasks-axi 0.2.6 makes a failed relation deliverable for a promised-final
expecting pr-merged, so add the regression test: a bound work that ends
failed reports its honest outcome text through fm-public-followup-emit.sh,
consume marks the commitment ready, and deliver posts that text exactly
once.

Also make two hang-guard tests in fm-backlog-atomicity portable to hosts
without coreutils timeout, and stop an installed herdr from leaking into
the secondmate-liveness husk classifier test.
….1.51, corrected bootstrap boundaries to 0.1.51/0.1.52/0.1.50, and bumped the bearings lavish-axi stub to 0.1.77. Bearings, quota procevent, quota chooser, startup budget, and bootstrap floor coverage passed; the full bootstrap suite exceeded the 240-second local command limit after relevant checks passed. git diff --check passed
@kunchenguid
kunchenguid merged commit 706254d into main Sep 23, 2026
37 of 38 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-axi-floors-bump-r1 branch September 23, 2026 00:48
BohnBawerick added a commit to BohnBawerick/firstmate that referenced this pull request Sep 23, 2026