Skip to content

fix(retrain): soft sanity gate for the retrain workflow - #17

Merged
ksanyok merged 1 commit into
mainfrom
fix/retrain-soft-gate
Jul 23, 2026
Merged

fix(retrain): soft sanity gate for the retrain workflow#17
ksanyok merged 1 commit into
mainfrom
fix/retrain-soft-gate

Conversation

@ksanyok

@ksanyok ksanyok commented Jul 23, 2026

Copy link
Copy Markdown
Owner

The retrain workflow failed because its verify step ran the frozen golden snapshot, which trips on any weight change by design — so it could never propose an improvement. Replaced with a soft sanity check (AI high / human low / adequate gap, continue-on-error); the PR opens only when it passes, and its own CI is where a human refreshes the golden hash.

🤖 Generated with Claude Code

The retrain workflow ran the full pytest suite (incl. the frozen golden
snapshot) to verify fitted weights. But any weight change alters the detector's
exact output, so the snapshot trips by design — meaning the workflow could
never propose an improvement without a red run. Replace it with a lightweight
sanity check (clear-AI high, clear-human low, adequate gap) marked
continue-on-error; the PR only opens when it passes. The proposed PR's own CI
(and a note in its body) is where the golden snapshot gets refreshed by a human.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ksanyok
ksanyok merged commit bc4754e into main Jul 23, 2026
14 checks passed
@ksanyok
ksanyok deleted the fix/retrain-soft-gate branch July 23, 2026 18:25
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