Skip to content

fix(rubric): sanitize final rejection diagnostics - #484

Merged
rng1995 merged 1 commit into
mainfrom
naren/review-rubric-diagnostics-20261113
Nov 13, 2026
Merged

rng1995 merged 1 commit into
mainfrom
naren/review-rubric-diagnostics-20261113

Conversation

@rng1995

@rng1995 rng1995 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

When both rubric-judge replies contain an invalid criterion ID, the final HIGH finding and summary currently retain the judge's raw rejection text even though the retry log redacts it. Reuse the bounded diagnostic for final failures, redact before truncation, and normalize whitespace and terminal/Unicode controls into printable single-line text across logs, retry notes and final diagnostics.

This follows up merged #415 and addresses Chris's diagnostic and unreleased-changelog feedback. The shared LLM client architecture suggestion is deferred: rubric evidence retries preserve distinct refusal, truncation, transport and fallback contracts, so extracting a shared single-attempt API needs a separate caller-wide design review.

Validation: nine new regression cases failed before the fix; the full rubric module now passes 130 tests with 1 skip. Full src/tests Ruff and git diff --check pass.

@rng1995
rng1995 enabled auto-merge (squash) November 13, 2026 08:48
@rng1995
rng1995 merged commit 90dfd5a into main Nov 13, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/review-rubric-diagnostics-20261113 branch November 13, 2026 09:14

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completed source/caller review at exact head 73ae67fb, now merged. Final invalid-response findings and rubric summaries use the shared bounded diagnostic; credentials are redacted before truncation, terminal/Unicode controls and whitespace become printable single-line text, and the unreleased changelog entry is folded correctly. Nine new cases reproduced the diagnostic defects before the fix; the full rubric module passes 130 tests with 1 skip, full src/tests Ruff and diff check pass, and independent review passed nine additional redaction/control probes. The shared-client extraction suggestion has a reasoned nonblocking disposition. No remaining actionable finding; this review preserves the exact child-head evidence without claiming an unnecessary rerun.

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