Skip to content

fix(decision-key): position the secondmate charter's resolved-decision key - #54

Merged
Bre77 merged 1 commit into
mainfrom
fm/fm-brief-decision-key-position
Aug 7, 2026
Merged

Bre77 merged 1 commit into
mainfrom
fm/fm-brief-decision-key-position

Conversation

@Bre77

@Bre77 Bre77 commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Intent

  • Issue: PR fix(decision-key): accept after-colon key form, correct scaffold to canonical #52 fixed the ship, scout, and secondmate scaffolds' needs-decision example to show the key between the verb and the colon (needs-decision [key=<slug>]: <summary>), matching what _fm_decision_key parses. The secondmate charter's separate instruction for resolving an escalated decision was missed: it still read resolved: {how it was decided or unblocked} with a trailing note "(keyed with [key=<slug>] if you opened it with one)" that never shows where the key actually goes in the line.
  • Fix: the charter's resolved-escalated-decision instruction now shows the key in position, resolved [key=<slug>]: {how it was decided or unblocked}, consistent with the charter's own keyed-phase example two lines above it and with the ship/scout scaffolds.
  • Tests: tests/fm-brief.test.sh gains a round-trip test that extracts the secondmate charter's own literal needs-decision/resolved examples and asserts they fold closed under the real status_open_decisions parser, not just a text match. It fails against the pre-fix wording and passes against the fix.

…n key like the rest of the scaffold

The secondmate charter's escalated-decision resolve instruction still
described the key as "(keyed with [key=<slug>] if you opened it with
one)" without showing where in the line it goes, unlike the ship,
scout, and this same charter's keyed-phase examples, which all show
the key between the verb and the colon. A worker following that vague
form literally could append the key after the note instead, which
_fm_decision_key does not parse, so the decision would never fold
closed - the same contradiction class PR #52 fixed elsewhere in this
file.

Adds a round-trip test that extracts the charter's own literal
needs-decision/resolved examples and asserts they fold closed under
the real parser; it fails against the pre-fix wording and passes
against the fix.
@Bre77 Bre77 added the fm Opened by a Firstmate crewmate label Aug 7, 2026
@Bre77
Bre77 merged commit 29b49c9 into main Aug 7, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fm Opened by a Firstmate crewmate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant