Repository navigation
feat(bearings): support dated Captain's Call deferrals - #8449
mehulbhagwani wants to merge 8 commits into
Conversation
[Medium impact] The PR appears safe to merge; no actionable issues were found. Reviews (1) · Last reviewed commit: "no-mistakes(lint): Quote done literal to..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thank you @mehulbhagwani. This is a careful fix for #7854, and the concurrent-release and settlement-policy cases are exactly the edges I'd have asked about. This is my first look. What I checked on head
contract-class: restore (my own read). The lifecycle skill and docs already promise that a "later" answer keeps the call held and moves it to Charted Next with its date, and on main the board path breaks that promise. No new observer, wake or Bearings surface is added. VISION.md, rule by rule
Nothing is waiting on you. The red "Full suite" row only means our |
dbc3d93 to
99f7696
Compare
|
Speaking as Kun's firstmate: thanks @mehulbhagwani. I reviewed new head Diff review (stands in for Greptile while it's out): safe, no P1. The deferral path in Waiting on you for two things:
Contract class: restore, unchanged: the lifecycle docs already promise that a "later" answer keeps the call held and dated. VISION is as in my earlier comment (aligns on every rule). Once it's re-raised cleanly, this gets the full suite and, as a restore, merges after a green run. |
|
|
|
Speaking as Kun's firstmate: thanks @mehulbhagwani. The other ask is still open. The attestation on Nothing else has changed. Diff review: safe, no P1 (same head). Quick checks pass, there are no threads, and it merges cleanly onto main |
Closes #7854
Intent
Let a Bearings decision use a future UTC deferral date without losing the original question or creating an unsafe release race.
What Changed
defer_untilsupport to Bearings decision cards, validating future UTC dates and carrying the selected date through rendered board submissions.Risk Assessment
✅ Low: The change is bounded to structured board deferral transport, locked hold mutation, policy invalidation ordering, and corresponding documentation/tests; no source-verifiable material defect was found.
Testing
Ran the focused captain-hold lifecycle suite and a live disposable-home adversarial check; all derived deferral scenarios passed, with reviewer-visible evidence showing policy preservation after failed re-hold.
bash tests/fm-captain-hold-lifecycle.test.sh(teststest_board_later_answer_keeps_the_original_holdandtest_board_deferral_invalidates_pr_policy)~/.no-mistakes/evidence/01M8CZACTC9E9A4JR5WA5674H2/deferral-policy-ordering.txtbash tests/fm-captain-hold-lifecycle.test.sh(invalid-date and concurrent-release portions oftest_board_later_answer_keeps_the_original_holdand `test_board_deferral_rechecks_hold_after_concurren…Evidence: Deferral policy ordering evidence
Source: Deferral policy ordering evidence
Live disposable-home transcript proving a simulatedtasks-axi holdfailure leaves the existinghold-pr-policy.jsonpresent and the task still captain-held.Closes #7854
Pipeline
Updates from git push no-mistakes
⏭️ **Intent** - skipped
Step was skipped.
bin/fm-captain-hold.sh- merge conflict rebasing onto origin/main🔧 **Review** - 1 issue found → auto-fixed ✅
bin/fm-captain-hold.sh:1582- The deferral path deleteshold-pr-policy.jsonbefore attempting the re-hold. Iftasks_axi holdfails (for example a transient backend/write failure), the original captain hold remains unchanged but its valid automatic PR-settlement policy has already been destroyed, so a later merge can no longer settle it. Perform policy invalidation only after the hold mutation succeeds, with an explicit recovery/error path for invalidation failure. The same ordering/invariant is localized here atbin/fm-captain-hold.sh:1582and the immediately following hold atbin/fm-captain-hold.sh:1584.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
board-deferral-policy.logfrom the focusedtest_board_deferral_invalidates_pr_policylifecycle testfailed-deferral-preserves-policy.logfrom an isolated real fm-captain-hold run with tasks-axi hold deliberately failingbash tests/.tmp-captain-hold-target.test.shrunningtest_board_deferral_invalidates_pr_policyFocused isolated regression driver invokingbin/fm-captain-hold.sh answerswith a failingtasks-axi holdbackendbash tests/fm-captain-hold-lifecycle.test.sh(broader suite attempted; it exceeded the command budget after progressing through the captain-hold scenarios)✅ No issues found.
bash tests/fm-captain-hold-lifecycle.test.sh(teststest_board_later_answer_keeps_the_original_holdandtest_board_deferral_invalidates_pr_policy)~/.no-mistakes/evidence/01M8CZACTC9E9A4JR5WA5674H2/deferral-policy-ordering.txtbash tests/fm-captain-hold-lifecycle.test.sh(invalid-date and concurrent-release portions oftest_board_later_answer_keeps_the_original_holdand `test_board_deferral_rechecks_hold_after_concurren…bash tests/fm-captain-hold-lifecycle.test.shDisposable-home keyedanswersrun with an injected transienttasks-axi holdfailure and persisted-state inspection✅ **Document** - passed
✅ No issues found.
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
✅ No issues found.