Open
Conversation
Guard per-criterion thresholds to the 0-10 score range and fall back to the default threshold when contracts contain metric-style values. Clarify negotiation/evaluation prompts so threshold remains a score gate, preventing false sprint failures on resume.
Introduce criterion lock state, inconclusive handling, and focused retry prompts so flaky re-evaluations do not regress already verified criteria. Add CLI/config controls and persisted stability snapshots while keeping strict mode available for full regression checks.
Retry evaluation once when the first response is not parseable JSON, including stricter retry instructions and better Claude result-event text capture. Raise Claude max turns and document the new evaluator reliability behavior in the README.
Clear sprint stability snapshots when using --resume=reset-contract so locked criterion state cannot leak into a newly negotiated contract.
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.
Summary
This PR introduces a new stabilized retry strategy for harness resume flows and improves evaluator reliability for long-running sprint evaluations.
Key outcomes:
What changed
1) Stabilized retry strategy (new feature)
retryStrategyconfig with:stabilized(default)strict(legacy behavior)hardFailUnlockStreakconfig (default:2):feedback/sprint-{n}-stability.json2) Focused retries for generator
3) Threshold semantics hardening
thresholdis treated as an integer score gate on 1-10 scale.4) Evaluator JSON parse reliability hardening
CLAUDE_MAX_TURNSfrom50to80to reduce truncation/non-final responses in complex evaluations.Why
In long sprints, fully re-evaluating all criteria each retry can cause pass/fail oscillation due to:
This PR keeps strong quality gates while reducing flaky regressions and improving run completion reliability.
CLI / behavior notes
--retry-strategy=strict|stabilized--hard-fail-unlock-streak=<int>stabilizedretries.Files of interest
shared/evaluation.ts(new): stabilization + threshold helpersshared/types.tsshared/files.tsshared/config.tsshared/prompts.tsclaude-harness/{index.ts,harness.ts,generator.ts,evaluator.ts}codex-harness/{index.ts,harness.ts,generator.ts,evaluator.ts}README.md