Repository navigation
feat: add worker output conventions and advisory prose lint - #22
Merged
Merged
Conversation
Add the output-conventions agent skill: an 8-rule writing profile built on ISO 24495-1, BLUF/Minto, the Federal Plain Language Guidelines and ICD 203 (one custom rule: do not drop facts when shortening), a notation map that picks the diagram notation by content shape (C4 for architecture only), and a sourced checklist for text, diagrams, pages and animation. Ship and scout briefs gain a short Output conventions section that points at the skill and at bin/fm-prose-lint.sh, a warn-only lint that runs a lead-sentence check plus the named-rule Vale config, and skips Vale cleanly when it is not installed.
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
"Alright, let's go with Option A."
Context: a research report recommended replacing a custom STE-based writing subset with an existing-framework profile for LLM output. The decision was option A: adopt all of it. That means the section 3.5 writing profile (8 rules built on ISO 24495-1, BLUF/Minto, Federal Plain Language Guidelines and ICD 203, with one custom rule: do not drop facts when shortening), the section 4.5 notation map (pick the diagram notation by content shape; C4 only for architecture; UML sequence/state, BPMN-descriptive swimlanes, ER, Now-Next-Later, IBIS/ADR elsewhere), the section 7 checklist (text, diagrams, pages, animation), and the Appendix A Vale config as an advisory, warn-only lint.
Stated preferences that bear on this: visuals should not introduce ambiguity (draw every hop); answer first.
Substance of the referenced report sections (Option A adopts these into Firstmate's worker guidance):
Section 3.5 writing profile, for status lines, reports, explanations and summaries (not code, formatted commit messages or quoted text); "plain" means the reader can find what they need, understand it, and use it (ISO 24495-1):
Domain terms, contractions, -ing and perfect tenses, and I/you/we are allowed; newcomer help goes behind a link or disclosure.
Section 4.5 notation map, pick by content shape: systems and who calls whom -> C4 landscape/context/container; what runs where -> C4 deployment; messages and relays in order -> UML sequence subset; life of one thing -> UML state machine subset; work crossing people with handoffs -> swimlanes with BPMN Descriptive semantics; branching checks inside one actor -> flowchart; entities and relations -> ER (crow's foot); plan without committed dates -> Now-Next-Later; plan with real dates -> timeline or Gantt to scale; open decision -> IBIS map or options x criteria table; decision made -> ADR; options on two axes -> 2x2; amounts -> a chart, not a diagram. Apply the C4 notation checklist (title, type and scope, key; every element named and typed; every arrow labelled and one-way) to every box-and-arrow diagram.
Section 7 checklist, each item naming its source: Text (answer first; point-first paragraphs and lists; 25-word ceiling with conditions first; active voice; one term per thing and exact strings; no ambiguous pronoun, long noun stack, idiom or exception-first; claims marked checked or inferred with likelihood words and what changed; fact list checked after shortening). Diagrams (notation matches content shape; passes the C4 review checklist; title states the finding with a one-sentence takeaway; every hop drawn, each relay its own element or lifeline; only what the evidence states, unknowns as questions, time to scale only when dates are real). Pages (overview first, at most two levels, nothing most readers need hidden; claims link to evidence, charts compare by position or length; page and report agree and link; colour never the only signal, reflows at phone width, motion pausable). Animation (motion only when change over time is the content, every frame a valid diagram; viewer controls pace, narration over captions, transcript and reduced-motion fallback).
Appendix A Vale config, advisory and warn-only: a .vale.ini with StylesPath = styles, MinAlertLevel = suggestion, Packages = Google, Microsoft, and for [*.md] BasedOnStyles = Status plus only the named rules Google.Passive, Microsoft.Adverbs and Microsoft.Wordiness; a Status.SentenceLength occurrence rule (warning, max 25 words per sentence) and a Status.Idioms existence rule (warning, seed list: quick update, go(ne) ahead and, kick(ed) off, circle back, chugging, blow(s) up, worth flagging, it's worth, assuming nothing, touch base, basically). The report notes the lead-sentence (answer-first) check needs a small separate script, since Vale does not do it.
What Changed
Risk Assessment
✅ Low: The advisory lint and worker guidance are bounded, conform to the adopted intent and subsequent decisions, and introduce no substantiated material defects.
Testing
Focused CLI tests and live checks with real Vale passed, including generated instructions and advisory failure paths. Evidence contains CLI transcripts and generated Markdown; no rendered UI changed. Guidance review confirms adoption, without claiming future model compliance.
Evidence: Real Vale rules and word boundaries
Source: Real Vale rules and word boundaries
Evidence: Advisory failures and usage errors
Source: Advisory failures and usage errors
Evidence: Generated worker instructions
Source: Generated worker instructions
Evidence: Markdown status file diagnostics
Source: Markdown status file diagnostics
Evidence: Repeatable validation procedure
Source: Repeatable validation procedure
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 3 issues found → auto-fixed ✅
bin/fm-prose-lint.sh:47- Remove the unrequired 15-word lead limit. Option A requires “25 words or fewer” and defines answer-first by whether the sentence gives the state, result, or decision. The addedLEAD_MAX_WORDS=15instead flags valid 16–25-word answers while accepting short introductory filler. The same extra rule appears at bin/fm-prose-lint.sh:13 and :82–83 and tests/fm-prose-lint.test.sh:43–44, :59–60, and :83–84. Removing this additional constraint is the smallest remedy; retaining it needs approval..agents/skills/output-conventions/SKILL.md:71- The notation map recommends Mermaidswimlanes, which is not its diagram keyword. A worker following this instruction produces an unrenderable diagram. Useswimlane-beta, the keyword specified by the Mermaid documentation, and note its required version.tests/fm-prose-lint.test.sh:114- The fake Vale asserts the literal config lineGoogle.Passive = YESand then emits a canned finding without consuming that configuration semantically. This newly added source-content assertion violates the test-quality rule and can pass with otherwise invalid configuration. Remove the grep assertion or parse the copied INI into a normalized configuration and assert its meaning; retain the separate output-relabeling checks.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
PATH="$PWD/.test-output-guidance/tools:$PATH" TMPDIR="$PWD/.test-output-guidance/tmp" bash tests/fm-prose-lint.test.shDownloaded and ran workspace-local Vale 3.24.0; executedbin/fm-prose-lint.sh --syncagainst an isolated cache.Drovebin/fm-brief.shfor ship, scout, and secondmate variants with an isolated FM_HOME; inspected generated public instructions.Executed real lint CLI checks for word boundaries, all configured rules, plain prose, file/stdin labels, and Markdown/status handling.Exercised missing Vale, unsynced packages, real Vale configuration failure, and invalid invocations.Read adopted guidance against the supplied acceptance criteria; saved repeatable verification instructions and product transcripts.Removed disposable setup and confirmedgit status --shortwas empty.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.