Skip to content

fix(board_worker): goal-task DoD 'zero NEW failures' not 'zero total'#419

Merged
ProtocolWarden merged 1 commit into
mainfrom
fix/goal-dod-zero-new-failures
Jun 26, 2026
Merged

fix(board_worker): goal-task DoD 'zero NEW failures' not 'zero total'#419
ProtocolWarden merged 1 commit into
mainfrom
fix/goal-dod-zero-new-failures

Conversation

@ProtocolWarden

Copy link
Copy Markdown
Owner

Problem

A goal task (89fdd864) did clean, mergeable work but failed its own self-verification: team_executor's verifier checked the LLM-derived acceptance criterion 'Zero test failures or skipped tests' against the full suite, which has 5 pre-existing failures + 21 skips (tests/ root + sandbox-gated tests CI doesn't run). The agent correctly noted 'zero NEW failures, branch is clean, ready for PR' but then rejected itself on the over-strict bar — an autonomy stall from mis-specified done-ness, not bad work.

Root cause: _append_definition_of_done said 'run the test suite and make them pass / verified green'; team_executor's stage_planner (it LLM-derives acceptance_criteria from the goal text — not hardcoded) turned that into 'zero failures'.

Fix

Reword DoD criteria 3+4: your change must introduce ZERO NEW failures; pre-existing/unrelated failures+skips are OUT OF SCOPE (don't block on or fix them); the merge gate is the repo's REQUIRED CI checks, not a fully-green pre-existing local suite. The planner now generates a no-regression criterion the verifier can actually satisfy. Test asserts the new intent.

Note: the 5 pre-existing full-suite failures are a separate repo-health item (CI runs only tests/unit, which is green).

🤖 Generated with Claude Code

… — unblock self-verify

A goal task did clean, mergeable work but failed its own verification: the
team_executor verifier's LLM-derived criterion was 'Zero test failures or skipped
tests' against the FULL suite, which has 5 pre-existing failures + 21 skips (tests/
root + sandbox-gated tests CI doesn't run). The agent flagged 'zero NEW failures,
branch clean, ready for PR' but rejected itself on the strict bar.

Reword _append_definition_of_done criteria 3+4: your change must introduce ZERO NEW
failures; pre-existing/unrelated failures+skips are OUT OF SCOPE (don't block on or
fix them); the merge gate is the repo's REQUIRED CI checks, not a fully-green
pre-existing local suite. The stage_planner (which derives acceptance_criteria from
the goal text) now generates a no-regression criterion the verifier can satisfy.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ProtocolWarden ProtocolWarden merged commit 0cc08f8 into main Jun 26, 2026
25 checks passed
@ProtocolWarden ProtocolWarden deleted the fix/goal-dod-zero-new-failures branch June 26, 2026 07:01
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