Skip to content

Fail closed on narrated risk; render the product statusline - #11

Merged
morgaesis merged 2 commits into
mainfrom
fix/review-output-contract
Jun 12, 2026
Merged

morgaesis merged 2 commits into
mainfrom
fix/review-output-contract

Conversation

@morgaesis

Copy link
Copy Markdown
Contributor

The model narrating merge-relevant risk in its summary while returning zero structured findings now fails the review closed (after one corrective retry) instead of passing as a clean, silent run - the predecessor bot posted exactly that contradiction on 9 of its last 16 clean reviews. PR comments, check summaries, and TTY output now match the statusline the product page promises (brand status icons, decimal confidence, kind metadata, lowercase gate line), and the envelope records ungrounded-finding counts plus engine duration for quality telemetry. Covered by two new e2e cases; the clean-diff fixtures were corrected to honor the summary/findings consistency contract.

A summary that describes merge-relevant risk alongside an empty findings
array previously produced a clean, silent review - the predecessor
product posted exactly this contradiction on 9 of its last 16 'clean'
reviews. The contract now requires summary and findings to agree: the
prompt states it, the client gives the model one corrective retry to
either structure the risk or retract it, and a surviving contradiction
fails closed with a synthetic finding that preserves the narrated text.

The envelope additionally records the ungrounded-finding count and the
engine wall-clock duration for quality telemetry.
PR comments and check summaries now carry the brand status icons
(postil.dev/status/*.svg) with the 'confidence 0.91 - kind: risk'
metadata line the product page shows, and confidence renders as a bare
decimal instead of a percentage. Terminal output gains the matching
glyphs, per-finding confidence/kind trailer, a findings/suppressed
tally, and the promised lowercase 'gate: failing (fail-on: error)'
line.
@postil-dev

postil-dev Bot commented Jun 12, 2026

Copy link
Copy Markdown

Postil could not validate the model output.

Postil status: needs-attention | errors=1 warnings=0 info=0 inline_comments=1

@morgaesis
morgaesis merged commit 919ed62 into main Jun 12, 2026
3 of 4 checks passed
@morgaesis
morgaesis deleted the fix/review-output-contract branch July 2, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant