Skip to content

fix(bin): reject contradictory PR scenario claims - #40

Merged
jazz127 merged 7 commits into
housefrom
fm/firstmate-evidence-contradiction-c2
Sep 25, 2026
Merged

jazz127 merged 7 commits into
housefrom
fm/firstmate-evidence-contradiction-c2

Conversation

@jazz127

@jazz127 jazz127 commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Intent

  1. yes

That answers the recommendation: fix, in the fork's house Firstmate, the handling of a pull request description whose generated appendix contradicts the run's own results, without forking no-mistakes. The recorded bug: a run's generated appendices can contradict the run's own honest results, and the evidence guard then refuses the whole description. Twice on 2026-09-25, fork PR 30 and PR 31 each carried a results table whose own rows labelled most cases as fixture-based, while a generated appendix in the same body claimed a different count - PR 31's had one line claiming 1 of 4 and another claiming 0 of 4. The evidence validator refused both bodies, so neither description could be accepted until the appendices were replaced by hand, twice, in one night. The contradiction is generated text from the no-mistakes pipeline, not the worker misreporting; the worker's own table is the part that is right. Either the generator should emit one consistent statement of what was driven, or the publication boundary should refuse a description whose claims contradict each other rather than only one whose claims lack artifact metadata - the latter being reachable without changing the publisher.

What Changed

  • Added publication-time validation that rejects contradictory driven-scenario counts and complete scenario tables, while leaving captain-intent validation unchanged.
  • Updated PR-body guidance to preserve honest results and correct conflicting generated appendices.
  • Added regression coverage for consistent, contradictory, corrected, and fixture-based scenario summaries.

Risk Assessment

✅ Low: The change is publication-boundary-only, directly addresses contradictory scenario counts, preserves partial-table behavior, and adds behavioral coverage for the relevant mismatch cases.

Testing

Ran the local preflight CLI and DOD validation functions against synthetic fixture bodies, covering contradictory appendices, table/count mismatches, incompatible totals including fixture-only tables, publication-only scope, and the accepted unrelated-passed case. All focused checks passed.

  • Synthetic/offline built-CLI validation: 3 of 3 fixture cases passed; no product account was exercised.
Scenario Result Execution Evidence
PR preflight accepts coherent scenario results and refuses contradictory appendix, table/count, and denominator claims ✅ pass local fixture bash tests/fm-pr-body-preflight.test.sh
Contradictory text remains valid worker intent but is refused at PR-body publication ✅ pass local fixture bash tests/fm-dod-lib.test.sh
Fixture-only results with unrelated passed validation remain accepted ✅ pass local fixture bash tests/fm-pr-body-preflight.test.sh
Evidence: Focused validation transcript
Focused behavioral scripts passed, including contradiction refusal, publication-only scope, denominator mismatch rejection, and unrelated fixture validation acceptance.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - fixes applied

The pipeline applied fix rounds and rechecked the result; no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Synthetic/offline built-CLI validation: 3 of 3 fixture cases passed; no product account was exercised.
Scenario Result Execution Evidence
PR preflight accepts coherent scenario results and refuses contradictory appendix, table/count, and denominator claims ✅ pass local fixture bash tests/fm-pr-body-preflight.test.sh
Contradictory text remains valid worker intent but is refused at PR-body publication ✅ pass local fixture bash tests/fm-dod-lib.test.sh
Fixture-only results with unrelated passed validation remain accepted ✅ pass local fixture bash tests/fm-pr-body-preflight.test.sh
  • bash tests/fm-pr-body-preflight.test.sh
  • bash tests/fm-dod-lib.test.sh
  • bash tests/fm-brief.test.sh
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@jazz127
jazz127 merged commit 59b1313 into house Sep 25, 2026
1 check passed
@jazz127 jazz127 added the upstream-candidate Worth offering upstream someday - needs the captain's word plus a clean validated cut from main label Sep 26, 2026
@jazz127
jazz127 deleted the fm/firstmate-evidence-contradiction-c2 branch September 28, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream-candidate Worth offering upstream someday - needs the captain's word plus a clean validated cut from main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant