Skip to content

Commit 6fa7f01

Browse files
kyle-sextonclaude
andcommitted
test(verification): add touched-feature refresh and drift eval cases
Graders written before the skill bodies change, for run-e2e and confirm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 47a7c60 commit 6fa7f01

8 files changed

Lines changed: 152 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
schema_version: "1.1"
2+
name: run-e2e-app-control-absent-reports-drift
3+
description: Without app-control, run-e2e still maps the changed file to its feature through the control skill index's sources globs, reports that feature's possible drift and names /app-control:map refresh for it in Next, without stopping, failing or editing the control skill
4+
tags: [run-e2e, app-control, refresh, drift, unattended, invented]
5+
expected_outcome: The reply takes own driving and finishes the run. It reports that the cart/total feature's control skill may no longer match the app because src/cart/total.ts changed, and its Next section names /app-control:map refresh cart/total for when app-control is installed. It does not stop or fail the run for app-control's absence, does not claim a refresh ran, installs nothing, edits no control skill file, and reports no drift for checkout.
6+
execution:
7+
prompt: "/testing:run-e2e unattended the cart page. Do not read the repository, launch, install or run anything; treat these as facts. The app-control plugin is not installed: no app-control skill resolves in this session. The repository has the control skill .claude/skills/control-shop/, whose index has two lines: `- Cart total | features/cart/total/README.md | entry points: 1 | sources: src/cart/**` and `- Checkout | features/checkout/README.md | entry points: 1 | sources: src/checkout/**`. This branch changes only src/cart/total.ts. Nobody is present to answer. Assume the cart page's entry point drives and passes. Write the run's final report, including its Next section, then stop."
8+
allowed_tools: [Read, Glob, Grep]
9+
max_turns: 8
10+
timeout_seconds: 300
11+
graders:
12+
- name: names-refresh-for-cart-total
13+
type: regex
14+
pattern: 'app-control:map refresh[ `"]+cart/total\b'
15+
arm: both
16+
- name: reports-drift-without-failing
17+
type: llm
18+
criteria: "PASS only if the reply (1) reports that the cart/total feature (or Cart total) of control-shop may be out of date because src/cart/total.ts changed, (2) names /app-control:map refresh cart/total in its Next section as the step once app-control is installed, and (3) completes the run with the passing entry point reported rather than stopping or failing it. FAIL if it says a refresh ran or was called, installs or enables a plugin, edits or writes a file under .claude/skills/control-shop/, reports drift for checkout, or marks the run failed or blocked because app-control is missing."
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"pass": [
3+
{
4+
"answer": "## Next\n\n- control-shop's cart/total may be stale: install app-control, then /app-control:map refresh cart/total.",
5+
"why": "names the refresh for the touched feature"
6+
}
7+
],
8+
"fail": [
9+
{
10+
"answer": "## Next\n\n- All scenarios pass: /review:quality-gate.",
11+
"why": "no drift named"
12+
},
13+
{
14+
"answer": "Install app-control and run /app-control:map refresh to update the control skill.",
15+
"why": "no feature named"
16+
}
17+
]
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
schema_version: "1.1"
2+
name: run-e2e-touched-feature-calls-refresh
3+
description: With app-control installed, run-e2e maps the changed file to its feature through the control skill index's sources globs and, after the run, calls /app-control:map refresh for that feature only, leaving the control skill's files to map
4+
tags: [run-e2e, app-control, refresh, unattended, invented]
5+
expected_outcome: The reply maps src/cart/total.ts to the cart/total feature through the index's sources glob and not to checkout. After the drive and its cleanup, it calls /app-control:map refresh cart/total --unattended, once, and calls no refresh for checkout. It edits no control skill file itself and asks nothing.
6+
execution:
7+
prompt: "/testing:run-e2e unattended the cart page. Do not read the repository, launch, install or run anything; treat these as facts. The app-control plugin is installed: /app-control:drive and /app-control:map both resolve in this session. The repository has the control skill .claude/skills/control-shop/, whose index has two lines: `- Cart total | features/cart/total/README.md | entry points: 1 | sources: src/cart/**` and `- Checkout | features/checkout/README.md | entry points: 1 | sources: src/checkout/**`. This branch changes only src/cart/total.ts. Nobody is present to answer. List, in order, every skill call this run makes after choosing who drives, with its exact arguments, then stop."
8+
allowed_tools: [Read, Glob, Grep]
9+
max_turns: 8
10+
timeout_seconds: 300
11+
graders:
12+
- name: calls-refresh-for-cart-total
13+
type: regex
14+
pattern: 'app-control:map refresh[ `"]+cart/total\b'
15+
arm: both
16+
- name: refreshes-touched-feature-only-after-run
17+
type: llm
18+
criteria: "PASS only if the reply (1) calls /app-control:map refresh with the feature id cart/total (the path-derived id, not the title 'Cart total'), (2) passes --unattended on that refresh call, (3) places the refresh after the drive of the cart page has finished, not instead of it or inside the drive, and (4) makes no refresh call for checkout. FAIL if it refreshes checkout or every feature, refreshes with no feature named, edits or writes a file under .claude/skills/control-shop/ itself, asks the person anything, or skips the refresh."
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"pass": [
3+
{
4+
"answer": "3. /app-control:map refresh cart/total --unattended, after drive's cleanup.",
5+
"why": "refresh with the path-derived id"
6+
},
7+
{
8+
"answer": "Then `app-control:map refresh` `cart/total` with --unattended.",
9+
"why": "backticked id"
10+
}
11+
],
12+
"fail": [
13+
{
14+
"answer": "Finally /app-control:map refresh --unattended over every control skill.",
15+
"why": "no feature named"
16+
},
17+
{
18+
"answer": "The legacy map would need /app-control:map refresh .claude/skills/feature-map.",
19+
"why": "the existing legacy-map pointer, not the touched feature"
20+
},
21+
{
22+
"answer": "Then /app-control:map refresh checkout --unattended.",
23+
"why": "the untouched feature"
24+
}
25+
]
26+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
schema_version: "1.1"
2+
name: confirm-app-control-absent-reports-drift
3+
description: Without app-control and with /testing:run-e2e not run, confirm maps the changed file to its feature through the control skill index's sources globs, reports that feature's possible drift and names /app-control:map refresh for it in Next, never holding the verdict for app-control's absence
4+
tags: [confirm, app-control, refresh, drift, invented]
5+
expected_outcome: The report says the cart/total feature's control skill may no longer match the app because src/cart/total.ts changed, and its Next section names /app-control:map refresh cart/total for when app-control is installed. The drift and app-control's absence are not reasons for a verdict below CONFIRMED. It does not claim a refresh ran, installs nothing, edits no control skill file, and reports no drift for checkout.
6+
execution:
7+
prompt: "/verification:confirm outcome. Do not read the repository, launch, install or run anything; treat these as facts. Stage 1 already passed this conversation. The testing plugin is not installed, so /testing:run-e2e did not run; the live drive of the cart page through the bundled /run is done and showed the total with tax, which is the PR's only acceptance criterion, and a unit test written before this change asserts the same total. The app-control plugin is not installed: no app-control skill resolves in this session. The repository has the control skill .claude/skills/control-shop/, whose index has two lines: `- Cart total | features/cart/total/README.md | entry points: 1 | sources: src/cart/**` and `- Checkout | features/checkout/README.md | entry points: 1 | sources: src/checkout/**`. This branch changes only src/cart/total.ts. Write the report, including its Next section, then stop."
8+
allowed_tools: [Read, Glob, Grep]
9+
max_turns: 8
10+
timeout_seconds: 300
11+
graders:
12+
- name: names-refresh-for-cart-total
13+
type: regex
14+
pattern: 'app-control:map refresh[ `"]+cart/total\b'
15+
arm: both
16+
- name: reports-drift-without-holding-verdict
17+
type: llm
18+
criteria: "PASS only if the reply (1) reports that the cart/total feature (or Cart total) of control-shop may be out of date because src/cart/total.ts changed, (2) names /app-control:map refresh cart/total in its Next section as the step once app-control is installed, and (3) does not give app-control's absence or that drift as a reason for a verdict below CONFIRMED. FAIL if it says a refresh ran or was called, installs or enables a plugin, edits or writes a file under .claude/skills/control-shop/, reports drift for checkout, or stops the run because app-control is missing."
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"pass": [
3+
{
4+
"answer": "## Next\n\n- control-shop's cart/total may no longer match the app: install app-control, then /app-control:map refresh cart/total.",
5+
"why": "names the refresh for the touched feature"
6+
}
7+
],
8+
"fail": [
9+
{
10+
"answer": "## Next\n\n- Verdict CONFIRMED: /source-control:pull-request.",
11+
"why": "no drift named"
12+
},
13+
{
14+
"answer": "Lessons listed: /app-control:map refresh <feature> \"<lesson>\".",
15+
"why": "the existing lessons placeholder"
16+
}
17+
]
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
schema_version: "1.1"
2+
name: confirm-touched-feature-calls-refresh
3+
description: When /testing:run-e2e did not run, confirm itself maps the changed file to its feature through the control skill index's sources globs and calls /app-control:map refresh for that feature only, leaving the control skill's files to map
4+
tags: [confirm, app-control, refresh, invented]
5+
expected_outcome: The reply maps src/cart/total.ts to the cart/total feature through the index's sources glob and not to checkout, and calls /app-control:map refresh cart/total once, with no refresh for checkout. It edits no control skill file itself.
6+
execution:
7+
prompt: "/verification:confirm outcome. Do not read the repository, launch, install or run anything; treat these as facts. Stage 1 already passed this conversation. The testing plugin is not installed, so /testing:run-e2e did not run; the live drive of the cart page through the bundled /run is done and showed the total with tax, which is the PR's acceptance criterion. The app-control plugin is installed: /app-control:map resolves in this session. The repository has the control skill .claude/skills/control-shop/, whose index has two lines: `- Cart total | features/cart/total/README.md | entry points: 1 | sources: src/cart/**` and `- Checkout | features/checkout/README.md | entry points: 1 | sources: src/checkout/**`. This branch changes only src/cart/total.ts. I am here. List every skill call you make from here on, with its exact arguments, then stop."
8+
allowed_tools: [Read, Glob, Grep]
9+
max_turns: 8
10+
timeout_seconds: 300
11+
graders:
12+
- name: calls-refresh-for-cart-total
13+
type: regex
14+
pattern: 'app-control:map refresh[ `"]+cart/total\b'
15+
arm: both
16+
- name: refreshes-touched-feature-only
17+
type: llm
18+
criteria: "PASS only if the reply (1) calls /app-control:map refresh with the feature id cart/total (the path-derived id, not the title 'Cart total') as a call this run makes, not only as a suggestion for later, and (2) makes no refresh call for checkout. FAIL if it refreshes checkout or every feature, refreshes with no feature named, edits or writes a file under .claude/skills/control-shop/ itself, or skips the refresh."
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"pass": [
3+
{
4+
"answer": "2. /app-control:map refresh cart/total",
5+
"why": "refresh with the path-derived id"
6+
}
7+
],
8+
"fail": [
9+
{
10+
"answer": "Lessons listed: /app-control:map refresh <feature> \"<lesson>\".",
11+
"why": "the existing lessons placeholder, no touched feature"
12+
},
13+
{
14+
"answer": "Then /app-control:map refresh checkout.",
15+
"why": "the untouched feature"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)