Repository navigation
feat: encode workflow evidence and review practices - #7176
purple-phoenix wants to merge 9 commits into
Conversation
|
Speaking as Kun's firstmate: thank you @purple-phoenix. There are good ideas here, and the no-mistakes raise is solid: the attestation matches head Contract-class: new-default. Every ship and scout brief now carries an always-on VISION (my read):
Waiting on you. If you'd like to carry this forward, a smaller version would have a much clearer path:
Re-raise via |
Adopt the accepted process recommendations from the agentic workflow research without adding parallel orchestration, reviewers, or collectors. - Draft outcome, constraints, and acceptance at intake; keep research, implement, and merge authority distinct (AGENTS.md). - Keep ordinary accepted-intent corrections on the validation path (validation-supervision). - Add scout domain evidence bars and shared ship review-evidence contracts (fm-brief.sh, fm-dod-lib.sh) plus post-merge live status in ship-landing. - Publish a sanitized operator guide with examples, catch-up commands, and optional 14-day metric definitions. - Extend scaffold regression tests for ordinary ship/scout variants.
178418f to
2e4dd76
Compare
|
Speaking as Kun's firstmate: thanks for the re-raise, @purple-phoenix. I compared the new head The three points from my previous comment haven't been addressed yet, so my read is the same:
Contract-class: new-default (unchanged). The brief and Definition-of-done blocks are always on, and Still waiting on you. When you're ready, a smaller re-raise via |
…wing to prompt-bearing events before reading `event.prompt`. Custom-message starts are ignored while user starts remain compatible with Pi 1.1.0 and 1.2.0. Verified strict TypeScript compilation against both versions, full branch/watcher extension suites, and `git diff --check`; all passed
|
Speaking as Kun's firstmate: thanks for the newer tip, @purple-phoenix — head I compared the diff. Attestation MATCH. Fork CI approved: CI The three points from the earlier comments are still present, so my read is unchanged:
New on this tip: the Pi Contract-class: new-default (unchanged). Always-on brief/DoD blocks + AGENTS.md lines → no auto-merge even if trimmed. Still waiting on you. When you're ready, a smaller re-raise via |
|
Closing: I'm no longer using firstmate, so I won't be continuing this work. Thanks! |
Intent
Encode reusable workflow process practices into Firstmate's existing instruction, scaffold, and documentation owners: clearer task intake (outcome, constraints, acceptance), correction-versus-follow-up during validation, domain evidence bars for research/media/finance claims, surface-appropriate review evidence across delivery modes, and a public operator guide with catch-up commands and optional measurement definitions.
This is instruction/CLI-only work. Provide executable proof commands rather than a web preview. No merge authority on this PR. Do not add a second reviewer, decision database, notification service, orchestration framework, metrics collector, or other parallel control plane. Keep instructions concise and one-owner; change only demonstrated gaps.
What Changed
Risk Assessment
✅ Low: The change is well-bounded and the current generated contracts consistently preserve the required domain evidence, delivery-specific review carriers, final-head ordering, promotion behavior, and existing authority boundaries.
Testing
Targeted brief, promotion, and documentation regression scripts passed. Live isolated scaffolding across every changed delivery shape and a real scout promotion confirmed evidence scope, final-head ordering, destination correctness, and no duplication. The operator-guide scenario was not live-validated; its evidence is limited to an automated documentation test. This CLI/instruction change has no visual UI surface, so evidence is a product transcript rather than a screenshot.
live-generated-brief-contracts.txt, Scenario 1live-generated-brief-contracts.txt, Scenario 2live-generated-brief-contracts.txt, Scenario 2 adversarial checklive-generated-brief-contracts.txt, Scenario 3;bash tests/fm-task-delivery.test.shbash tests/fm-documentation-audiences.test.sh, an automated test, and did not establish that this scenario was driven against the live running product.Evidence: Live generated brief and promotion transcript
Source: Live generated brief and promotion transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 3 issues found → auto-fixed (4) ✅
bin/fm-dod-lib.sh:416- The shared evidence block always directs evidence to a PR, but it is appended to variants that cannot have one. Gerrit explicitly says no PR exists at bin/fm-dod-lib.sh:446 and :460, while both UI and CLI evidence at :416-417 require a PR; local-only explicitly forbids a PR at :508-509, while CLI evidence at :417 still requires one. Render the destination by delivery shape (PR, Gerrit change/ready report, or local ready note). The assertions at tests/fm-brief.test.sh:1145 and :1156 should verify the correct destination, not only the evidence phrase.AGENTS.md:169- The accepted criterion says “Clarify only meaningful ambiguity,” but this makes project, deliverable kind, and merge authority an exhaustive list. A known-project implementation request can still contain material product, safety, destructive-scope, or acceptance ambiguity; this instruction would require Firstmate to guess. The same narrowing appears in docs/working-with-firstmate.md:9. Preserve the low-friction draft-first behavior while allowing any ambiguity that materially changes the outcome or boundaries to be clarified.bin/fm-dod-lib.sh:418- The post-landing deployment rule is newly duplicated into the worker Definition of done even though the worker finishes before merge and .agents/skills/ship-landing/SKILL.md:20 is the existing owner that acts after landing. No intent requirement needs this second definition; remove bin/fm-dod-lib.sh:418 and its presence assertion at tests/fm-brief.test.sh:1147, retaining the ship-landing owner.🔧 Fix applied.
3 issues (2 errors, 1 warning) still open:
bin/fm-dod-lib.sh:416- The shared evidence block always directs evidence to a PR, but it is appended to variants that cannot have one. Gerrit explicitly says no PR exists at bin/fm-dod-lib.sh:446 and :460, while both UI and CLI evidence at :416-417 require a PR; local-only explicitly forbids a PR at :508-509, while CLI evidence at :417 still requires one. Render the destination by delivery shape (PR, Gerrit change/ready report, or local ready note). The assertions at tests/fm-brief.test.sh:1145 and :1156 should verify the correct destination, not only the evidence phrase.bin/fm-dod-lib.sh:418- The post-landing deployment rule is newly duplicated into the worker Definition of done even though the worker finishes before merge and .agents/skills/ship-landing/SKILL.md:20 is the existing owner that acts after landing. No intent requirement needs this second definition; remove bin/fm-dod-lib.sh:418 and its presence assertion at tests/fm-brief.test.sh:1147, retaining the ship-landing owner.bin/fm-dod-lib.sh:547- Fix round 1 corrected the destination names but left the shared evidence contract after every terminaldone ... and stopinstruction. A local-only worker can follow line 517, report completion, and stop before the evidence requirement appended at line 547; the same ordering remains for Gerrit at line 403, direct-PR at line 502, and no-mistakes at line 537. Moreover, “the local ready note” at line 429 is not a defined artifact or write path. Move the evidence requirement before publishing/reporting done and identify a concrete writable carrier for each mode. The assertions at tests/fm-brief.test.sh:1148 and :1168 currently validate only destination wording, so they pass despite the unreachable ordering.🔧 Fix applied.
4 issues (3 errors, 1 warning) still open:
bin/fm-dod-lib.sh:416- The shared evidence block always directs evidence to a PR, but it is appended to variants that cannot have one. Gerrit explicitly says no PR exists at bin/fm-dod-lib.sh:446 and :460, while both UI and CLI evidence at :416-417 require a PR; local-only explicitly forbids a PR at :508-509, while CLI evidence at :417 still requires one. Render the destination by delivery shape (PR, Gerrit change/ready report, or local ready note). The assertions at tests/fm-brief.test.sh:1145 and :1156 should verify the correct destination, not only the evidence phrase.bin/fm-dod-lib.sh:418- The post-landing deployment rule is newly duplicated into the worker Definition of done even though the worker finishes before merge and .agents/skills/ship-landing/SKILL.md:20 is the existing owner that acts after landing. No intent requirement needs this second definition; remove bin/fm-dod-lib.sh:418 and its presence assertion at tests/fm-brief.test.sh:1147, retaining the ship-landing owner.bin/fm-dod-lib.sh:547- Fix round 1 corrected the destination names but left the shared evidence contract after every terminaldone ... and stopinstruction. A local-only worker can follow line 517, report completion, and stop before the evidence requirement appended at line 547; the same ordering remains for Gerrit at line 403, direct-PR at line 502, and no-mistakes at line 537. Moreover, “the local ready note” at line 429 is not a defined artifact or write path. Move the evidence requirement before publishing/reporting done and identify a concrete writable carrier for each mode. The assertions at tests/fm-brief.test.sh:1148 and :1168 currently validate only destination wording, so they pass despite the unreachable ordering.bin/fm-dod-lib.sh:540- The automated fix after Round 2 moved review evidence before the initial no-mistakes handoff rather than before the terminal ready report. Concrete sequence: a worker creates preview/proof for head A, appends the initialdone, and the pipeline applies fixes producing final head B; nothing then requires refreshing the evidence, so the PR or Gerrit change can advertise evidence for A while reporting B ready. Move the block after pipeline completion (and Gerrit custody recovery) but before the final ready report. Remaining sibling: bin/fm-dod-lib.sh:473 (no-mistakes Gerrit). The ordering assertions at tests/fm-brief.test.sh:1160 and tests/fm-brief.test.sh:1186 encode the incorrect “before first done” invariant and should instead verify placement after validation and before the terminal ready report.🔧 Fix applied.
1 error still open:
bin/fm-brief.sh:651- Intent requires: “Encode the missing domain evidence bars in the appropriate on-demand instruction/scaffold owner.” The new bars are emitted only inside the scout branch, but AGENTS.md:182 explicitly routes authorized ships with bounded research through the ordinary ship scaffold. A ship that researches media identity, financial arithmetic, or primary-source claims therefore receives none of these required constraints. The changed operator guide also incorrectly claims they are encoded in ship instructions at docs/working-with-firstmate.md:89, while line 127 accurately describes them as scout-only; tests/fm-brief.test.sh:1098 verifies only the scout path. Render one shared evidence block into ordinary ship and scout briefs, avoiding duplication when a scout is promoted.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-brief.test.shbin/fm-promote.sh live-promote --mode no-mistakes --yolo off;bash tests/fm-task-delivery.test.shbash tests/fm-brief.test.shbash tests/fm-documentation-audiences.test.sh;bin/fm-doc-audience-check.shreturnedok surfaces=119 local_links=745git diff --stat/--name-status/--log 20dcbf9..1db60e6bash tests/fm-brief.test.shbash tests/fm-task-delivery.test.shbash tests/fm-documentation-audiences.test.shbin/fm-doc-audience-check.shDisposableFM_HOMEruns ofbin/fm-brief.shfor no-mistakes, scout, direct-PR, local-only, and Gerrit modesDisposableFM_HOMErun ofbin/fm-promote.sh live-promote --mode no-mistakes --yolo offVerified all evidence files were nonempty andgit status --shortremained clean✅ No issues found.
live-generated-brief-contracts.txt, Scenario 1live-generated-brief-contracts.txt, Scenario 2live-generated-brief-contracts.txt, Scenario 2 adversarial checklive-generated-brief-contracts.txt, Scenario 3;bash tests/fm-task-delivery.test.shbash tests/fm-documentation-audiences.test.sh, an automated test, and did not establish that this scenario was driven against the live running product.bash tests/fm-brief.test.shbash tests/fm-task-delivery.test.shbash tests/fm-documentation-audiences.test.shLivebin/fm-brief.shscaffolding for scout, direct-PR, local-only, no-mistakes, direct-PR/Gerrit, and no-mistakes/Gerrit fixtures, including contract comparison and ordering checks.Livebin/fm-promote.sh promote-live --mode direct-PR --yolo offagainst an isolated fixture home, checking persisted and delivered contracts.Confirmedgit status --shortremained clean after fixture teardown.✅ **Document** - passed
✅ No issues found.
✅ No issues found.
🔧 **Lint** - 1 issue found → auto-fixed ✅
🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
✅ No issues found.