Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
cbcd45f
test(testing): add run-e2e route eval cases for app-control onboarding
kyle-sexton Oct 28, 2026
d575195
refactor(testing): route run-e2e through /app-control:drive
kyle-sexton Oct 28, 2026
a241b50
fix(testing): keep run-e2e's Native step heading and option text in b…
kyle-sexton Oct 28, 2026
c7011ea
fix(testing): run own-driving prerequisites before the drive subagent
kyle-sexton Oct 28, 2026
84c4a02
Merge branch 'main' into refactor/run-e2e-routes-through-drive
kyle-sexton Oct 28, 2026
47a7c60
fix(testing): give each drive feature its own evidence directory
kyle-sexton Oct 28, 2026
6fa7f01
test(verification): add touched-feature refresh and drift eval cases
kyle-sexton Oct 28, 2026
1e564a3
feat(verification): call /app-control:map refresh for touched features
kyle-sexton Oct 28, 2026
79a4261
fix(verification): fold the refresh Next line into the lessons bullet
kyle-sexton Oct 28, 2026
200e009
Merge remote-tracking branch 'origin/main' into feat/9586-refresh-tou…
kyle-sexton Oct 28, 2026
5fbb266
fix(verification): state the feature id rule and refresh once per spl…
kyle-sexton Oct 28, 2026
7d5e2c6
test(verification): accept the Skill-call shape in the confirm refres…
kyle-sexton Oct 28, 2026
565cb82
Merge branch 'main' into feat/9586-refresh-touched-features
kyle-sexton Oct 28, 2026
ddb22c9
test(verification): stop the refresh grader accepting check or create…
kyle-sexton Oct 28, 2026
06911ac
test(testing): add grouped and flat feature-id cases for run-e2e
kyle-sexton Oct 28, 2026
edfc655
feat(testing): resolve grouped feature ids in run-e2e
kyle-sexton Oct 28, 2026
9e3247e
fix(testing): state drive's feature-file order in run-e2e
kyle-sexton Oct 28, 2026
34d7f24
fix(app-control): return to the starting branch after every refresh pass
kyle-sexton Oct 28, 2026
94f89e7
Merge remote-tracking branch 'origin/feat/9586-refresh-touched-featur…
kyle-sexton Oct 28, 2026
86e9873
fix(app-control): return to the starting commit from a detached HEAD
kyle-sexton Oct 28, 2026
fedbcea
Merge remote-tracking branch 'origin/feat/9586-refresh-touched-featur…
kyle-sexton Oct 28, 2026
99a6e0d
docs(app-control): point the conversion undo at the pass starting point
kyle-sexton Oct 28, 2026
96311b0
Merge remote-tracking branch 'origin/feat/9586-refresh-touched-featur…
kyle-sexton Oct 28, 2026
166652a
Merge remote-tracking branch 'origin/main' into feat/9587-run-e2e-gro…
kyle-sexton Oct 28, 2026
40a0b81
fix(testing): keep the expected-outcome sentence with the entry points
kyle-sexton Oct 28, 2026
64079af
test(testing): say what status a report line takes when nothing runs
kyle-sexton Oct 28, 2026
dbd4978
test(testing): accept a feature id that ends a sentence in the refres…
kyle-sexton Oct 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
bump: minor
---

### Added

- `/testing:run-e2e` resolves a feature id named in the scenario, either `<module>/<feature>` or a single-level `<feature>`, to its feature file in `/app-control:drive`'s order, on the drive route and on its own driving alike. The id comes from the control skill's index path, and a legacy flat `features/<feature>.md` gives `<feature>`, so the touched-feature refresh names `/app-control:map refresh cart`, never `cart.md`.
26 changes: 26 additions & 0 deletions plugins/testing/evals/run-e2e-flat-feature-id-resolves/case.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
schema_version: "1.1"
name: run-e2e-flat-feature-id-resolves
description: Without app-control, run-e2e resolves a single-level feature id named in the scenario to the legacy flat file when its folder has no README.md, and refreshes it under the id, not the file name
tags: [run-e2e, run-e2e-feature-id, feature-resolution, legacy, unattended, invented]
expected_outcome: "The run takes own driving (app-control not installed, unattended). It finds no features/cart/README.md, resolves cart to .claude/skills/control-shop/features/cart.md, and its report has one line for each of that file's three entry points, the Add to cart button, the basket icon and POST /api/cart/items, each reported not driven with a reason. It names /app-control:map refresh cart (the id, not cart.md) for the touched feature, launches nothing and asks nothing."
context:
scaffold_script: scaffold.sh
execution:
prompt: "/testing:run-e2e unattended cart\n\nContext, not part of the scenario: the app-control plugin is not installed. This branch changes only shop/cart/basket.py. Do not launch, install or run anything. Since nothing runs here, report each entry point as not driven, with the reason. Name the feature file this run reads for the scenario and write the report lines the run would produce, then stop."
allowed_tools: [Read, Glob, Grep]
max_turns: 12
timeout_seconds: 300
graders:
- name: reads-flat-file
type: tool_used
tool: Read
input_match: 'features/cart\.md'
min: 1
arm: both
- name: names-refresh-for-flat-id
type: regex
pattern: 'app-control:map refresh[ `"]+cart(?!\.?[\w/-])'
arm: both
- name: reports-flat-entry-points
type: llm
criteria: "PASS only if the reply (1) names .claude/skills/control-shop/features/cart.md (or features/cart.md) as the feature file for cart, (2) gives one report line for each of its three entry points, the Add to cart button, the basket icon in the header and POST /api/cart/items, each as passed, failed or not driven with a reason, and (3) names /app-control:map refresh cart for the touched feature, with the id cart rather than cart.md or features/cart.md. FAIL if it says the feature cannot be found because features/cart/README.md is missing, treats features/cart/steps.md as the feature file, reports billing/export as touched, or asks the person anything."
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Cart steps

- add-item: `POST /api/cart/items` with the first product id
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Cart

A user collects items before paying.

## Reset

Delete `shop/data/carts.db` and restart the app.

## States

- empty: the basket shows `Your cart is empty`
- filled: the basket lists each item with a quantity

## Entry points

- the `Add to cart` button on a product page
- the basket icon in the header
- `POST /api/cart/items`

## Drive

- Open `/cart`, add the first item, open the basket.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
description: "Launch, ready-check, capture and clean up the shop app."
---

## Launch

`python3 shop/server.py`

## Ready

`curl -fsS http://127.0.0.1:8080/health`

## Capture

| Kind | Tool |
|---|---|
| logs | `tail -n 200 shop/server.log` |

## Cleanup

Stop the pid recorded at launch.

## Features

- Export invoices | features/billing/export/README.md | entry points: 2 | sources: shop/billing/export/**
- Cart | features/cart.md | entry points: 3 | sources: shop/cart/**
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Export invoices

A user downloads their invoices as one CSV file.

## Parts

- range: the download covers the chosen date range
- format: the file is comma separated with a header row

## Sub-features

none

## Entry points

- the `Export` button on the billing page: driven
- `GET /api/invoices.csv`: not driven: the endpoint needs an API key this run lacks

## Reset

Delete `shop/data/invoices.db` and restart the app.

## Drive

- Open `/billing`, choose `Export`; a file named `invoices.csv` downloads.

## Gotchas

- The date range defaults to the current month; an empty month downloads a header-only file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Export

A user downloads their invoices.

## Reset

Delete `shop/data/invoices.db` and restart the app.

## States

- empty: the download holds only a header row

## Entry points

- the `Download PDF` link on the billing page
- the `Email invoices` button on the billing page
- `GET /api/invoices.pdf`
- the nightly invoice email

## Drive

- Open `/billing`, choose `Download PDF`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"pass": [
{
"answer": "## Next\n\n- `/app-control:map refresh cart`",
"why": "slash form with the single-level id"
},
{
"answer": "cart | changed: shop/cart/basket.py | control skill not refreshed (app-control not installed); name app-control:map refresh \"cart\".",
"why": "quoted id"
},
{
"answer": "Run /app-control:map refresh cart.",
"why": "id at the end of a sentence"
}
],
"fail": [
{
"answer": "Then /app-control:map refresh cart.md.",
"why": "the file name, not the id"
},
{
"answer": "Then /app-control:map refresh features/cart.md.",
"why": "the index path, not the id"
},
{
"answer": "Then /app-control:map refresh cart/steps.",
"why": "a file under the folder, not the id"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"pass": [
{
"answer": [
{
"tool": "Read",
"input": {
"file_path": "/tmp/eval/.claude/skills/control-shop/features/cart/README.md"
}
},
{
"tool": "Read",
"input": {
"file_path": "/tmp/eval/.claude/skills/control-shop/features/cart.md"
}
}
],
"why": "README tried first, then the flat file"
}
],
"fail": [
{
"answer": [
{
"tool": "Read",
"input": {
"file_path": "/tmp/eval/.claude/skills/control-shop/features/cart/steps.md"
}
}
],
"why": "a file in the README-less folder"
},
{
"answer": [],
"why": "read nothing"
}
]
}
13 changes: 13 additions & 0 deletions plugins/testing/evals/run-e2e-flat-feature-id-resolves/scaffold.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Seeds the shop app's control skill with a grouped feature, billing/export (plus a stray legacy
# billing/export.md), and a legacy flat feature, cart (plus a cart/ folder with no README.md).
set -euo pipefail

here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
skill=.claude/skills/control-shop
mkdir -p "$skill/features/billing/export" "$skill/features/cart"
cp "$here/fixtures/control-shop.md" "$skill/SKILL.md"
cp "$here/fixtures/export-README.md" "$skill/features/billing/export/README.md"
cp "$here/fixtures/export-legacy.md" "$skill/features/billing/export.md"
cp "$here/fixtures/cart.md" "$skill/features/cart.md"
cp "$here/fixtures/cart-steps.md" "$skill/features/cart/steps.md"
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
schema_version: "1.1"
name: run-e2e-grouped-feature-id-resolves
description: Without app-control, run-e2e resolves a module-qualified feature id named in the scenario to the grouped folder's README.md before any legacy file, and refreshes it under that id
tags: [run-e2e, run-e2e-feature-id, feature-resolution, unattended, invented]
expected_outcome: "The run takes own driving (app-control not installed, unattended). It resolves billing/export to .claude/skills/control-shop/features/billing/export/README.md, never opening the stray legacy features/billing/export.md, and its report has one line for each of that README's two entry points, the Export button and GET /api/invoices.csv, each reported not driven with a reason. It names /app-control:map refresh billing/export for the touched feature, launches nothing and asks nothing."
context:
scaffold_script: scaffold.sh
execution:
prompt: "/testing:run-e2e unattended billing/export\n\nContext, not part of the scenario: the app-control plugin is not installed. This branch changes only shop/billing/export/csv.py. Do not launch, install or run anything. Since nothing runs here, report each entry point as not driven, with the reason. Name the feature file this run reads for the scenario and write the report lines the run would produce, then stop."
allowed_tools: [Read, Glob, Grep]
max_turns: 12
timeout_seconds: 300
graders:
- name: reads-grouped-readme
type: tool_used
tool: Read
input_match: 'features/billing/export/README\.md'
min: 1
arm: both
- name: reads-no-legacy-file
type: tool_used
tool: Read
input_match: 'features/billing/export\.md'
min: 0
max: 0
arm: both
- name: names-refresh-for-grouped-id
type: regex
pattern: 'app-control:map refresh[ `"]+billing/export(?!\.?[\w/-])'
arm: both
- name: reports-readme-entry-points
type: llm
criteria: "PASS only if the reply (1) names .claude/skills/control-shop/features/billing/export/README.md (or features/billing/export/README.md) as the feature file for billing/export, (2) gives one report line for each of its two entry points, the Export button on the billing page and GET /api/invoices.csv, each as passed, failed or not driven with a reason, and (3) names /app-control:map refresh billing/export for the touched feature. FAIL if it uses features/billing/export.md or lists any of that file's entry points (Download PDF, Email invoices, GET /api/invoices.pdf, the nightly invoice email), says the feature cannot be found, reports the cart feature as touched, or asks the person anything."
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Cart steps

- add-item: `POST /api/cart/items` with the first product id
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Cart

A user collects items before paying.

## Reset

Delete `shop/data/carts.db` and restart the app.

## States

- empty: the basket shows `Your cart is empty`
- filled: the basket lists each item with a quantity

## Entry points

- the `Add to cart` button on a product page
- the basket icon in the header
- `POST /api/cart/items`

## Drive

- Open `/cart`, add the first item, open the basket.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
description: "Launch, ready-check, capture and clean up the shop app."
---

## Launch

`python3 shop/server.py`

## Ready

`curl -fsS http://127.0.0.1:8080/health`

## Capture

| Kind | Tool |
|---|---|
| logs | `tail -n 200 shop/server.log` |

## Cleanup

Stop the pid recorded at launch.

## Features

- Export invoices | features/billing/export/README.md | entry points: 2 | sources: shop/billing/export/**
- Cart | features/cart.md | entry points: 3 | sources: shop/cart/**
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Export invoices

A user downloads their invoices as one CSV file.

## Parts

- range: the download covers the chosen date range
- format: the file is comma separated with a header row

## Sub-features

none

## Entry points

- the `Export` button on the billing page: driven
- `GET /api/invoices.csv`: not driven: the endpoint needs an API key this run lacks

## Reset

Delete `shop/data/invoices.db` and restart the app.

## Drive

- Open `/billing`, choose `Export`; a file named `invoices.csv` downloads.

## Gotchas

- The date range defaults to the current month; an empty month downloads a header-only file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Export

A user downloads their invoices.

## Reset

Delete `shop/data/invoices.db` and restart the app.

## States

- empty: the download holds only a header row

## Entry points

- the `Download PDF` link on the billing page
- the `Email invoices` button on the billing page
- `GET /api/invoices.pdf`
- the nightly invoice email

## Drive

- Open `/billing`, choose `Download PDF`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"pass": [
{
"answer": "## Next\n\n- `/app-control:map refresh billing/export`",
"why": "slash form with the grouped id"
},
{
"answer": "billing/export | changed: shop/billing/export/csv.py | control skill not refreshed (app-control not installed). Run app-control:map refresh `billing/export`.",
"why": "backticked id"
},
{
"answer": "Run /app-control:map refresh billing/export.",
"why": "id at the end of a sentence"
}
],
"fail": [
{
"answer": "Then /app-control:map refresh export.",
"why": "module dropped from the id"
},
{
"answer": "Then /app-control:map refresh billing/export.md.",
"why": "the legacy file name, not the id"
},
{
"answer": "Then /app-control:map refresh billing/export/README.md.",
"why": "the path, not the id"
}
]
}
Loading
Loading