feat: baseline test gate, PAR evidence gate, milestone writes#30
Open
feat: baseline test gate, PAR evidence gate, milestone writes#30
Conversation
…rompt hardening
Sprint 1 of enforcement hardening. Adds foundational validation infrastructure:
- checkpoint.py: string ID support (int|str), load_checkpoint_by_name(),
load_all_checkpoints() keeps numeric-only to protect downstream consumers
- queue.py: baseline_cmd attribute with load/save roundtrip
- supervisor.py: validation constants, _validate_evidence_verdicts(),
_validate_par_evidence() with type guard, _validate_sprint_summary(),
preflight .worktrees gitignore check, build_prompt() frontend injection
- supervisor-sprint-prompt.md: PAR evidence instructions, pre-verified
baseline section, {frontend_instructions} placeholder
20 new tests (152 total). Validators are foundations — integration into
_attempt_sprint() is Sprint 2 scope.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…idation hardening Sprint 2 of enforcement hardening. Integrates Sprint 1 validators into execution: - Baseline test gate: _resolve_baseline_cmd() with priority chain, run_baseline_tests(), integrated in execute_sprint() inside try block - PAR validation: separate par_retries counter (not shared with Claude retries), max 2 PAR retries before mark_failed - Summary validation: invalid summaries treated as json_parse_error - PR verification: 3 retries with 5s delay, empty pr_url = failure - Milestone writes: baseline_passed, implemented, par_validated, pr_created in checkpoints (preserved in failure paths too) - Parallel safety: queue reload after execute_parallel, checkpoint on worker exception - Prompt rebuilt each iteration (no unbounded growth) - Attempt counter independent of retry counter for log filenames 24 new tests (176 total). Review fixes applied: stale queue.save, log counter, prompt growth, parallel checkpoint, empty pr_url, milestones. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 23, 2026
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
Sprint 2/6 of Supervisor Enforcement Hardening. Integrates Sprint 1 validators into execution flow.
execute_sprint()— stops before Claude invocation if tests failexecute_parallel(), checkpoint on worker exceptionDepends on: PR #27 (Sprint 1)
Tests: 176 total (24 new), all passing.
PAR:
All confirmed issues fixed, re-verified 176 tests pass.
Test plan
test_baseline_pass)test_baseline_fail_marks_failed)test_baseline_no_runner_skips)test_par_integration_retry_separate_counter)test_par_integration_max_retries_fails)test_pr_validation_retry_3_times)test_pr_validation_hard_fail_after_retries)test_milestone_writes_in_checkpoint)🤖 Generated with Claude Code