Repository navigation
feat(skills): make captain decisions self-contained decision cards - #39
Merged
Merged
Conversation
The captain found Bearings' Captain's Call entries and hold reasons too cryptic to judge: internal keys, task ids, and compressed phrases with no subject, stakes, consequences, or link. captain-hold-lifecycle now owns a decision-card shape - what and which project, why now and the cost of not deciding, options with concrete consequences, recommendation with reason, link - for every surface that records or presents a captain call. Bearings renders each Captain's Call decision as one card, expanding a terse or truncated reason from the task record and its linked report or PR; ahoy and ask-user-authority point at the same shape, and AGENTS.md gains a load trigger for holding a task. fm-brief.sh asks ship, scout, and secondmate workers to write needs-decision lines as the same card, with the forge's own link noun. The bearings and secondmate summary projections keep up to 800 characters of a hold reason instead of 90 and 160, so a full card reaches Bearings intact.
…tain-hold mechanism doc
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Map the captain-hold-lifecycle decision card onto the board payload: about, detail with the cost of not deciding, decide, option hints with concrete consequences, a recommend_reason, and the PR link on every card, with an explicit decide-from-the-card-alone acceptance test. The template now renders detail, recommend_reason, and pr_url on decision cards too. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
alandomio
force-pushed
the
fm/bearings-contesto
branch
from
September 26, 2026 06:57
9942876 to
dbe3d47
Compare
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
Make captain-facing pending decisions self-explanatory everywhere they are written or shown in firstmate's shared tracked material, so every firstmate home gets this by default. The captain (25/09/2026) found Bearings' Captain's Call entries cryptic and unusable for judgment: many were acronyms, internal task names or compressed phrases ("D1-D8", "option b", "hold on X") without saying what the decision is, why it matters and what happens with each choice. Every pending decision, both when recorded and when presented, must say in plain language: what it is about and on which project; why a decision is needed and what happens if nobody decides; the options with the concrete consequence of each; the recommendation and its reason; the link to the MR/PR, ticket or report. No internal acronyms or ids without explanation.
Required changes:
Additional captain requirement (26/09/2026), within the same accepted intent: "make the text of decisions clearer and include all the context needed to decide; assume he decides from the text you give him alone." Extend the decision-card contract to the /bearings lavish board payload rules in .agents/skills/bearings/SKILL.md ("Lavish board mode"): replace "a short noun-phrase title, one-line about and decide context rows" with the decision card:
aboutsays what is being decided, on which project or customer, and why it matters;detailcarries what happens if nobody decides and any fact the choice depends on; each option'shintstates the concrete consequence of choosing it; the recommendation carries its reason (new optionalrecommend_reasonpayload field, validated as a string by bin/fm-bearings-board.sh and rendered as a "why rec" row); links (MR/PR, ticket, report) are included as full URLs (pr_url now renders as a link on decision cards too; other links go in detail). State the acceptance test explicitly in the skill: the captain must be able to decide from the card text alone, without opening a report, knowing an internal id, or remembering earlier conversation; no unexplained acronyms, task ids, option letters or internal codes (D1, R2, option b). Merge cards likewise say what the PR changes in user terms and the concrete risk. Keep the single owner: point at captain-hold-lifecycle's Decision card section rather than restating it, adding only the board-field mapping. .agents/skills/bearings/assets/board-template.html must visibly render detail and option hints on decision cards; the smallest template change was made so detail, recommend_reason and pr_url render, with a DOM-harness behavior test in tests/fm-bearings-board.test.sh.What Changed
captain-hold-lifecyclenow owns a "decision card" shape. Every held reason has to say what is being decided and on which project, why it matters and what happens if nobody decides, each option with its concrete consequence, the recommendation with its reason, and full links. It must not use unexplained internal ids. The Bearings Captain's Call, the lavish board payload rules,ask-user-authority,ahoy, thefm-captain-hold.shheader, the mechanism doc and two one-lineAGENTS.mdpointers all refer back to this section instead of restating it.fm-brief.shscaffolds now ask workers to writeneeds-decisionlines as decision cards.fm-bearings-board.shaccepts an optionalrecommend_reasonstring. On decision cards, the board template now showsdetailand a "why rec" row, and it showspr_urlas a link. The decision-reason limit infm-bearings-snapshot.shrises from 90 to 800 characters, and the limit on the secondmate hold reason infm-fleet-snapshot.shrises from 160 to 800, so a full card is not cut off.recommend_reasonandpr_url(through the DOM harness). The CI Bearings test count goes up to 45.Risk Assessment
✅ Low: The change is mostly skill and brief wording, plus a raised truncation bound and a small template/validator extension for optional string fields. Tests exercise it through the real interfaces, and the only issue found is a minor help-text/bound inaccuracy.
Testing
I ran the four targeted suites (bearings board, bearings snapshot, brief and captain-hold lifecycle) and all passed. That covers the new DOM-harness test showing each decision-card element on the page, the refusal of a non-string recommend_reason, and a full hold reason surviving the snapshot projections. Separately, I built a real board with
fm-bearings-board.sh buildfrom a realistic decision-card payload and took a headless Chrome screenshot of it. In the screenshot the card shows about, detail with a ticket URL, decide, why rec, the PR link and each option's consequence hint, with the REC marker on the recommended option. Temporary files were removed and the worktree is clean.Evidence: Built board HTML produced by fm-bearings-board.sh build for the full decision-card payload
Source: Built board HTML produced by fm-bearings-board.sh build for the full decision-card payload
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-bearings-snapshot.sh:120- The new --help text says a decision summary "keeps up to 800 characters of its hold reason", but trunc(800) is applied to the wholetitle + ": " + hold_reasonstring, and on the secondmate path tosummary + ": " + reason. That summary is the title, already capped at 160 characters, and the reason was already truncated to 800 in fm-fleet-snapshot.sh. So a hold reason of about 700 characters under a 120-character title ends in an ellipsis in decisions_open. The trailing link, which the skill tells authors to put last, is what gets cut. The skill's expand-from-record fallback covers the case, so the loss is recoverable. Either make the help text say the 800-character bound covers the title and reason together, or apply trunc(800) to the reason alone before the title is prepended.✅ **Test** - passed
✅ No issues found.
bash tests/fm-bearings-board.test.sh(includes the new DOM-harness testtest_a_decision_card_shows_every_decision_card_elementand the refusal of a non-string recommend_reason)bash tests/fm-bearings-snapshot.test.sh(45 tests, including the check that a full decision-card hold reason survives the main and secondmate projections)bash tests/fm-brief.test.sh(including the check that ship, scout and secondmate scaffolds ask for self-contained decision cards)bash tests/fm-captain-hold-lifecycle.test.shManual:bin/fm-bearings-board.sh build payload.jsonon a throwaway FM_HOME with a stubbed lavish-axi and a realistic full decision-card payload, thengoogle-chrome --headless --screenshotof the built board HTML✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.