Repository navigation
Conversation
fix(bin): require explicit close mode on Bearings decision cards
Merge upstream main into board-close-release
…se-release' into fm/upstream-board-close-release
|
…es board"). The fake Lavish prompt in `test_registration_cannot_consume_before_any_origin_binding` hard-coded `"close": "release"`, so it didn't depend on the board at all. The invariant is that a card's close mode reaches the answer only through the board page's own prompt path. Now `tests/assets/board-render-harness.mjs` also shims `window.lavish.queuePrompt`, `FormData` and submit listeners. It selects each card's first option, submits the form, and reports the queued prompts as `answers`. The fake `lavish-axi poll` in `tests/fm-bearings-board.test.sh` runs that harness on the built board and uses the rendered prompt and context for the held work item. I confirmed the test now catches the regression. With `if (item.close) ctxData.close = item.close;` removed from the template, the test fails with "the board answer completed the held work item (missing: 'state: queued')". I restored the template afterwards. The unmutated `tests/fm-bearings-board.test.sh` and `tests/fm-bearings-board-render.test.sh` both have 0 `not ok` lines
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.
Intent
Offer the finished board close-release fix to upstream firstmate repository kunchenguid/firstmate for open issue 5897. A Bearings board answer silently completes captain-gated work when close: release is omitted: hold a work item, build a decision card without close, answer it on the board, and the item moves to Done instead of being released and becoming dispatchable. The board should reject the ambiguous card or require an explicit done or release mode before arming. The change is finished on fork branch housefeature/board-close-release (jazz127/firstmate), four commits ahead of and zero behind upstream main; offer it as a clean pull request cut from latest upstream main.
What Changed
bin/fm-bearings-board.shnow rejects anydecisioncard that lacksclose: "done"orclose: "release"during payload validation. Before this, an omittedcloselet a held work item move to Done when answered, instead of being released and becoming dispatchable. Non-decision cards keepcloseoptional. The header comment records the requirement..agents/skills/bearings/SKILL.mdnow tells the composer to setclose: "release"on captain-gated work cards andclose: "done"on question-shaped decision cards, and notes that the board refuses a decision card with no explicit mode.tests/fm-bearings-board.test.shis updated for the stricter validation, andtests/fm-bearings-board-lavish-live-e2e.test.shgets a one-line change.Risk Assessment
✅ Low: A small validator change makes decision cards require an explicit close mode, which matches the intent. Non-decision cards keep their optional close handling, and I found no other place that builds decision cards without close.
Testing
The Bearings board tests passed in synthetic/offline built-CLI validation. They exercise the board build, decision-hold and captain-hold scripts, and tasks-axi against a throwaway home with a stub lavish-axi. Coverage includes refusing a decision card with no close mode and releasing held work so it becomes queued and unheld. This validation did not exercise an account-based release flow or Herdr lab.
bash tests/fm-bearings-board.test.shevidence-artifact: /tmp/fm-upstream-board-close-release/prior-art.json
evidence-command: /Users/jarad/firstmate/bin/fm-upstream-prior-art.py scan --repo kunchenguid/firstmate --title 'fix: require explicit Bearings decision close mode' --summary-file /tmp/fm-upstream-board-close-release/summary.txt --record /tmp/fm-upstream-board-close-release/prior-art.json --base origin/main
evidence-captured: 2026-10-01T09:26:32+00:00
Prior art checked
Searched open issues and pull requests, plus recently closed unmerged pull requests, in kunchenguid/firstmate on 2026-10-01. No existing work overlaps. The closest matches are #4521: This changes board text wrapping and merge-risk rendering; it does not change decision close-mode validation.; #4645: This separates freeform follow-ups from explicit choices; its answer-authority handling does not require decision cards to specify done versus release.. The remaining 115 reviewed candidates were judged distinct. Search coverage was bounded to the most relevant hits per query; skipped queries: bearings.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
Synthetic/offline built-CLI validation passed with
bash tests/fm-bearings-board.test.sh; it used a throwaway home and a stub lavish-axi.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.