Feat/harness resume modes and criterion-specific evaluator thresholds#4
Open
romanstark wants to merge 2 commits intocoleam00:mainfrom
Open
Feat/harness resume modes and criterion-specific evaluator thresholds#4romanstark wants to merge 2 commits intocoleam00:mainfrom
romanstark wants to merge 2 commits intocoleam00:mainfrom
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.
d0e3823 to
571464d
Compare
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 improves harness reliability for long-running runs by adding resumable execution modes to both harness implementations and aligning evaluator pass/fail logic with per-criterion sprint contract thresholds.
What changed
--resumesupport to both CLIs:claude-harness/index.tscodex-harness/index.tsstrict(default when--resumeis used without a value)reset-retriesreset-contractprogress.json, existing contracts/feedback) without cleaning artifacts on resume.initWorkspace(..., { clean })findLatestFeedbackRound(...)passThreshold.Why
In real runs, long sprint sequences can fail or stop late in the process. Restarting from scratch is expensive and often unnecessary. This adds explicit operational controls for continuation strategy and makes pass/fail decisions consistent with contract intent when thresholds differ per criterion.
Resume behavior
--resume/--resume=strict--resume=reset-retries--resume=reset-contractScope
Included:
Intentionally excluded:
shared/config.tsnot part of this PR)Notes for review
cleanworkspace init on fresh runs).