Skip to content

skill: tell product from test by replaying the saved test on a known-good build - #244

Open
Jennycruzy wants to merge 1 commit into
LambdaTest:mainfrom
Jennycruzy:skill/known-good-replay
Open

Jennycruzy wants to merge 1 commit into
LambdaTest:mainfrom
Jennycruzy:skill/known-good-replay

Conversation

@Jennycruzy

Copy link
Copy Markdown

When a saved test fails, references/bugs.md §5 asks the agent to mark the bug real or not-real "from this run's evidence". Sometimes one run can't settle it: the diagnosis sees the failing step, and a product bug can look like a test that never set up the right state (#232, #241). An agent that guesses wrong edits the test until it passes.

This adds one check the agent can run with flags kane-cli already has: replay the same saved test, unchanged, on a build known to work, with --override-start-url <url> --no-adaptive-heal.

  • Passes there, failed here at a check → the product changed: real (and rca-wrong if the diagnosis blamed the test).
  • Passes there, failed here at a click or typing step → usually the page changed where the test acts; the screenshot decides between a moved control (test) and a missing or broken one (product).
  • Fails there too → the test or the environment: not-real.

It is one more replay (a few credits), so the agent offers it and runs it when the person agrees; in a linked folder the flag rules of references/shared-projects.md §4 apply.

Skill (installer copy, synced to .claude/ and .agents/)

  • references/bugs.md §5: the check above, as one bullet in step 4.
  • references/debug.md: one sentence in Reading failure.yaml pointing to it.
  • references/testmd.md: --override-start-url added to the testmd run flag table, worded as in kane-cli testmd run --help (0.10.8). It was not documented in the skill.

Kiro power

  • steering/kane-cli-bugs.md and steering/kane-cli-testmd.md: the same two changes.

Checks

  • cd skill-installer && npm test: 75 pass, 0 fail, 5 skipped.
  • The three skill copies are identical (diff -r).
  • The commands were run on kane-cli 0.10.8: testmd run <file>_test.md --override-start-url <url> --no-adaptive-heal --agent replays the saved recording on the other build with every step replayed.

…good build

When one run can't settle whether a failure is the product or the test, replay
the same saved test, unchanged, on a build known to work with
--override-start-url and --no-adaptive-heal. bugs.md §5 gets the check,
debug.md a pointer, testmd.md the --override-start-url flag (worded as in
kane-cli testmd run --help). Kiro steering mirrors bugs.md and testmd.md.
@Jennycruzy

Copy link
Copy Markdown
Author

Results from running this method on kane-cli 0.10.9, in case they help review:

  • Triage bench, 43 cases with the answers committed before the first run (28 real app bugs, 2 real test problems, 13 controls): on 0.10.9 the replay label told the agent to edit the test on 5 of the 28 app bugs. Replaying the same recording on a known-good build and deciding by the comparison: 0 of 28. https://github.com/Jennycruzy/witness/tree/master/bench

  • Three real Actual Budget bugs (#8760, #8498, #9359), each built from Actual's own source at the commit before the maintainers' fix: the label said automation_bug in 6 of the 8 failing runs. The same recording passed on the next nightly each time, so the skill's rule says fix the app. A Claude Code session given only that verdict fixed each bug in one round, in the same file the maintainers changed, and the unchanged recording passed on the rebuilt app. https://github.com/Jennycruzy/witness#three-real-bugs-fixed-from-actual-budgets-own-source

The change in this PR is text only, in the skill references (bugs.md, debug.md, testmd.md); it does not change CLI behaviour.

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