Skip to content

fix(bin): require explicit close mode on Bearings decision cards - #6299

Open
jazz127 wants to merge 6 commits into
kunchenguid:mainfrom
jazz127:fm/upstream-board-close-release
Open

jazz127 wants to merge 6 commits into
kunchenguid:mainfrom
jazz127:fm/upstream-board-close-release

Conversation

@jazz127

@jazz127 jazz127 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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.sh now rejects any decision card that lacks close: "done" or close: "release" during payload validation. Before this, an omitted close let a held work item move to Done when answered, instead of being released and becoming dispatchable. Non-decision cards keep close optional. The header comment records the requirement.
  • .agents/skills/bearings/SKILL.md now tells the composer to set close: "release" on captain-gated work cards and close: "done" on question-shaped decision cards, and notes that the board refuses a decision card with no explicit mode.
  • tests/fm-bearings-board.test.sh is updated for the stricter validation, and tests/fm-bearings-board-lavish-live-e2e.test.sh gets 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.sh

evidence-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.

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Tightens validation on decision card completion modes.

The PR appears safe to merge; no outstanding finding or new actionable issue was established.

Reviews (2) · Last reviewed commit: "no-mistakes(ci): Fixed the Greptile find..."

Comment thread tests/fm-bearings-board.test.sh Resolved
@jazz127 jazz127 changed the title fix: require explicit Bearings decision close mode fix(bin): require explicit close mode on Bearings decision cards Oct 1, 2026
…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
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