diff options
| author | Jesse Vincent <jesse@primeradiant.com> | 2026-05-06 12:29:59 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-06-16 10:09:43 -0700 |
| commit | 315ef09ebcd4faddc2b3689621c627ba734ad9f9 (patch) | |
| tree | 4f92f7f3074b5e56b6aa1ec83c390a2f5fa27890 /tests/claude-code | |
| parent | 12ef68d55ecad3f2304e00099bb5137734684150 (diff) | |
tests: annotate three kept bash tests with drill coverage notes
- test-worktree-native-preference.sh: drill covers PRESSURE phase only;
RED + GREEN baselines have no drill counterpart and are kept so
the RED-GREEN-REFACTOR validation remains rerunnable end-to-end.
- test-subagent-driven-development-integration.sh: drill covers the
YAGNI subset (forbidden exports + reviewer-as-gate). Bash adds
>=3 commits, >=2 subagent dispatches, TodoWrite usage, test file
existence check, and token-budget telemetry. Kept until drill
scenario covers those or they are retired.
- test-subagent-driven-development.sh: tests agent's ability to
*describe* SDD (string matches against expected keywords). Drill
scenarios test behavior, not description-recall. Kept by design.
Subagent verification recorded in commit messages of subsequent
deletions; gap analyses driving these annotations are also in the
verification subagent reports for the gating sweep.
Diffstat (limited to 'tests/claude-code')
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/claude-code/test-subagent-driven-development-integration.sh b/tests/claude-code/test-subagent-driven-development-integration.sh index 95a551b..b37862e 100755 --- a/tests/claude-code/test-subagent-driven-development-integration.sh +++ b/tests/claude-code/test-subagent-driven-development-integration.sh @@ -1,6 +1,17 @@ #!/usr/bin/env bash # Integration Test: subagent-driven-development workflow # Actually executes a plan and verifies the new workflow behaviors +# +# Drill coverage: evals/scenarios/sdd-rejects-extra-features.yaml covers the +# YAGNI enforcement subset (forbidden exports + reviewer-as-gate semantics) +# and is stricter on that axis. This bash test additionally asserts: +# - >=3 git commits (initial + per-task commits, exercising SDD's +# commit-per-task workflow shape) +# - >=2 Agent/Task subagent dispatches (drill only asserts >=1) +# - TodoWrite usage (drill makes no assertion) +# - test/math.test.js exists (drill relies on `npm test` succeeding) +# - analyze-token-usage.py token-budget telemetry +# Kept until those assertions are added to drill or explicitly retired. set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" diff --git a/tests/claude-code/test-subagent-driven-development.sh b/tests/claude-code/test-subagent-driven-development.sh index 20d8d4c..d1099c1 100755 --- a/tests/claude-code/test-subagent-driven-development.sh +++ b/tests/claude-code/test-subagent-driven-development.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash # Test: subagent-driven-development skill # Verifies that the skill is loaded and follows correct workflow +# +# No drill coverage: this test asks the agent to *describe* SDD (string- +# matches its verbal explanation against expected keywords like +# "self-review", "skeptical", "worktree", "Step 1", "loop"). Drill scenarios +# test behavior (real subagent dispatch, plan-following, review loops), +# not description-recall. Kept by design. set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" diff --git a/tests/claude-code/test-worktree-native-preference.sh b/tests/claude-code/test-worktree-native-preference.sh index cbfe7f2..077ea19 100755 --- a/tests/claude-code/test-worktree-native-preference.sh +++ b/tests/claude-code/test-worktree-native-preference.sh @@ -2,6 +2,11 @@ # Test: Does the agent prefer native worktree tools (EnterWorktree) over git worktree add? # Framework: RED-GREEN-REFACTOR per testing-skills-with-subagents.md # +# Drill coverage: evals/scenarios/worktree-creation-under-pressure.yaml lifts +# only the PRESSURE phase (existing .worktrees/ + urgency framing). The RED +# and GREEN baselines below are not covered by drill — kept here so the +# RED-GREEN-REFACTOR validation remains rerunnable end-to-end. +# # RED: Skill without Step 1a (no native tool preference). Agent should use git worktree add. # GREEN: Skill with Step 1a (explicit tool naming + consent bridge). Agent should use EnterWorktree. # PRESSURE: Same as GREEN but under time pressure with existing .worktrees/ dir. |
