Repository navigation
fix(decision-key): position the secondmate charter's resolved-decision key - #54
Merged
Merged
Conversation
…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.
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
needs-decisionexample to show the key between the verb and the colon (needs-decision [key=<slug>]: <summary>), matching what_fm_decision_keyparses. The secondmate charter's separate instruction for resolving an escalated decision was missed: it still readresolved: {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._fm_decision_keydoes not parse - the decision would then never fold closed, reproducing the same class of bug fix(decision-key): accept after-colon key form, correct scaffold to canonical #52 already fixed for the other scaffolds.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/fm-brief.test.shgains a round-trip test that extracts the secondmate charter's own literalneeds-decision/resolvedexamples and asserts they fold closed under the realstatus_open_decisionsparser, not just a text match. It fails against the pre-fix wording and passes against the fix.