Repository navigation
fix(bin): reject contradictory PR scenario claims - #40
Merged
Merged
Conversation
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
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
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.
bash tests/fm-pr-body-preflight.test.shbash tests/fm-dod-lib.test.shbash tests/fm-pr-body-preflight.test.shEvidence: Focused validation transcript
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.
bash tests/fm-pr-body-preflight.test.shbash tests/fm-dod-lib.test.shbash tests/fm-pr-body-preflight.test.shbash tests/fm-pr-body-preflight.test.shbash tests/fm-dod-lib.test.shbash tests/fm-brief.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.