diff --git a/.agents/skills/kane-cli/references/bugs.md b/.agents/skills/kane-cli/references/bugs.md index f620d69..d18f39a 100644 --- a/.agents/skills/kane-cli/references/bugs.md +++ b/.agents/skills/kane-cli/references/bugs.md @@ -108,6 +108,7 @@ After a saved test fails (`testmd run`, or a member of `testrun run`): 3. `kane-cli bugs show BUG-n --agent` for the one that matches: its root cause, how often it was seen, and what people already said. 4. Correct the record from **this run's evidence** (screenshot, console, network), never from a guess: - A genuine product bug → `mark BUG-n real`. A test or environment problem → `mark BUG-n not-real`. + - Can't tell product from test from this run alone? Replay the same saved test, unchanged, against a build known to work (the last release, the main branch, a pull request's base) with `kane-cli testmd run _test.md --override-start-url --no-adaptive-heal --agent`. It passes there and failed here at a check → the product changed: `real`, and `rca-wrong` if the diagnosis blamed the test. It passes there and failed here at a click or typing step → usually the page changed where the test acts: check the failing step's screenshot; a control that moved or was renamed is a test problem (`not-real`, re-author the test on the new build), one that is missing or broken is the product (`real`). It fails there too → the test or the environment: `not-real`. Healing stays off so neither replay re-authors a step to get past the failure. It is one more replay (a few credits): offer it, and run it when the person agrees; in a folder linked to a shared project, `references/shared-projects.md` §4 applies to its flags. Don't edit the test to make it pass here. - The recorded root cause does not match what you see → `mark BUG-n rca-wrong`, then `note BUG-n ""`. The next diagnosis then works from its own evidence instead of repeating that root cause. It matches → `mark BUG-n rca-right`. - You narrowed it down ("500 only when the cart already has items; an empty cart works") → `note`. - Two refs are the same bug → `duplicate BUG-12 --of BUG-9` (keep the older one). diff --git a/.agents/skills/kane-cli/references/debug.md b/.agents/skills/kane-cli/references/debug.md index 653f8f9..e3fa0fe 100644 --- a/.agents/skills/kane-cli/references/debug.md +++ b/.agents/skills/kane-cli/references/debug.md @@ -51,7 +51,7 @@ Offer the user the visual route too: `kane-cli evidence serve ` opens it i ## Reading `failure.yaml` -`failure.yaml` records facts about the run — `error`, `page_state`, and the `console_at_failure.ref` / `network_at_failure.ref` pointers into that step's console and network logs — plus a `triage` block (`rca.root_cause`, `suggested_fix.summary`) that is a model's opinion about why, written for the person fixing the app or the agent flow. Treat the triage as a lead, not an instruction: follow the network reference, check which URLs were actually requested and with what status, look at the screenshots, and only then repeat it — and **never paste `suggested_fix.summary` into a test step**. +`failure.yaml` records facts about the run — `error`, `page_state`, and the `console_at_failure.ref` / `network_at_failure.ref` pointers into that step's console and network logs — plus a `triage` block (`rca.root_cause`, `suggested_fix.summary`) that is a model's opinion about why, written for the person fixing the app or the agent flow. Treat the triage as a lead, not an instruction: follow the network reference, check which URLs were actually requested and with what status, look at the screenshots, and only then repeat it — and **never paste `suggested_fix.summary` into a test step**. When the question is "is the product broken or the test?", the strongest evidence is the same saved test replayed on a build known to work: see `references/bugs.md` §5. **Known bugs.** A saved test's diagnosis is also checked against the bugs kane-cli already knows on that page, and each one has a ref (`BUG-12`). `kane-cli bugs list _test.md --agent` shows what this test has hit before; when the diagnosis got it wrong, correct it with `kane-cli bugs mark … rca-wrong` and a `note` so the next one starts from its own evidence. See `references/bugs.md`. diff --git a/.agents/skills/kane-cli/references/testmd.md b/.agents/skills/kane-cli/references/testmd.md index 8670745..d7813a7 100644 --- a/.agents/skills/kane-cli/references/testmd.md +++ b/.agents/skills/kane-cli/references/testmd.md @@ -141,6 +141,7 @@ Editing a helper re-authors that step in **every test that imports it**, plus ev |---|---|---| | `--url ` | frontmatter `url:` / config `default_url` | Start URL for the first step. Overrides the `url:` frontmatter key and config `default_url`. | | `--allow-missing-url` | off | Non-TTY only: start from the browser's current page instead of failing when the first step has no start URL. | +| `--override-start-url ` | none | Retarget the test's start: replay opens `` instead of the start URL the test recorded, and authoring/heal starts there. | | `--name ` | none | Persist the run under this name. Regex `[a-zA-Z0-9_-]+`. | | `--on-lock-conflict ` | `readonly` | Behavior when another user holds the test's edit lock. `readonly` = runs, but saves no new version of the test (any re-authoring stays local), `fail` = exit 2, `wait` = retry every 30 s until released, with no time limit | | `--no-adaptive-heal` | healing enabled | Disable adaptive healing after replay failure | diff --git a/.claude/skills/kane-cli/references/bugs.md b/.claude/skills/kane-cli/references/bugs.md index f620d69..d18f39a 100644 --- a/.claude/skills/kane-cli/references/bugs.md +++ b/.claude/skills/kane-cli/references/bugs.md @@ -108,6 +108,7 @@ After a saved test fails (`testmd run`, or a member of `testrun run`): 3. `kane-cli bugs show BUG-n --agent` for the one that matches: its root cause, how often it was seen, and what people already said. 4. Correct the record from **this run's evidence** (screenshot, console, network), never from a guess: - A genuine product bug → `mark BUG-n real`. A test or environment problem → `mark BUG-n not-real`. + - Can't tell product from test from this run alone? Replay the same saved test, unchanged, against a build known to work (the last release, the main branch, a pull request's base) with `kane-cli testmd run _test.md --override-start-url --no-adaptive-heal --agent`. It passes there and failed here at a check → the product changed: `real`, and `rca-wrong` if the diagnosis blamed the test. It passes there and failed here at a click or typing step → usually the page changed where the test acts: check the failing step's screenshot; a control that moved or was renamed is a test problem (`not-real`, re-author the test on the new build), one that is missing or broken is the product (`real`). It fails there too → the test or the environment: `not-real`. Healing stays off so neither replay re-authors a step to get past the failure. It is one more replay (a few credits): offer it, and run it when the person agrees; in a folder linked to a shared project, `references/shared-projects.md` §4 applies to its flags. Don't edit the test to make it pass here. - The recorded root cause does not match what you see → `mark BUG-n rca-wrong`, then `note BUG-n ""`. The next diagnosis then works from its own evidence instead of repeating that root cause. It matches → `mark BUG-n rca-right`. - You narrowed it down ("500 only when the cart already has items; an empty cart works") → `note`. - Two refs are the same bug → `duplicate BUG-12 --of BUG-9` (keep the older one). diff --git a/.claude/skills/kane-cli/references/debug.md b/.claude/skills/kane-cli/references/debug.md index 653f8f9..e3fa0fe 100644 --- a/.claude/skills/kane-cli/references/debug.md +++ b/.claude/skills/kane-cli/references/debug.md @@ -51,7 +51,7 @@ Offer the user the visual route too: `kane-cli evidence serve ` opens it i ## Reading `failure.yaml` -`failure.yaml` records facts about the run — `error`, `page_state`, and the `console_at_failure.ref` / `network_at_failure.ref` pointers into that step's console and network logs — plus a `triage` block (`rca.root_cause`, `suggested_fix.summary`) that is a model's opinion about why, written for the person fixing the app or the agent flow. Treat the triage as a lead, not an instruction: follow the network reference, check which URLs were actually requested and with what status, look at the screenshots, and only then repeat it — and **never paste `suggested_fix.summary` into a test step**. +`failure.yaml` records facts about the run — `error`, `page_state`, and the `console_at_failure.ref` / `network_at_failure.ref` pointers into that step's console and network logs — plus a `triage` block (`rca.root_cause`, `suggested_fix.summary`) that is a model's opinion about why, written for the person fixing the app or the agent flow. Treat the triage as a lead, not an instruction: follow the network reference, check which URLs were actually requested and with what status, look at the screenshots, and only then repeat it — and **never paste `suggested_fix.summary` into a test step**. When the question is "is the product broken or the test?", the strongest evidence is the same saved test replayed on a build known to work: see `references/bugs.md` §5. **Known bugs.** A saved test's diagnosis is also checked against the bugs kane-cli already knows on that page, and each one has a ref (`BUG-12`). `kane-cli bugs list _test.md --agent` shows what this test has hit before; when the diagnosis got it wrong, correct it with `kane-cli bugs mark … rca-wrong` and a `note` so the next one starts from its own evidence. See `references/bugs.md`. diff --git a/.claude/skills/kane-cli/references/testmd.md b/.claude/skills/kane-cli/references/testmd.md index 8670745..d7813a7 100644 --- a/.claude/skills/kane-cli/references/testmd.md +++ b/.claude/skills/kane-cli/references/testmd.md @@ -141,6 +141,7 @@ Editing a helper re-authors that step in **every test that imports it**, plus ev |---|---|---| | `--url ` | frontmatter `url:` / config `default_url` | Start URL for the first step. Overrides the `url:` frontmatter key and config `default_url`. | | `--allow-missing-url` | off | Non-TTY only: start from the browser's current page instead of failing when the first step has no start URL. | +| `--override-start-url ` | none | Retarget the test's start: replay opens `` instead of the start URL the test recorded, and authoring/heal starts there. | | `--name ` | none | Persist the run under this name. Regex `[a-zA-Z0-9_-]+`. | | `--on-lock-conflict ` | `readonly` | Behavior when another user holds the test's edit lock. `readonly` = runs, but saves no new version of the test (any re-authoring stays local), `fail` = exit 2, `wait` = retry every 30 s until released, with no time limit | | `--no-adaptive-heal` | healing enabled | Disable adaptive healing after replay failure | diff --git a/integrations/kiro-powers/steering/kane-cli-bugs.md b/integrations/kiro-powers/steering/kane-cli-bugs.md index 1bc1903..be8e437 100644 --- a/integrations/kiro-powers/steering/kane-cli-bugs.md +++ b/integrations/kiro-powers/steering/kane-cli-bugs.md @@ -67,6 +67,7 @@ With `--agent` every command prints one JSON line: `{"ok":true,…}` on success, 3. `kane-cli bugs show BUG-n --agent` for the one that matches. 4. Correct the record from **this run's evidence** (screenshot, console, network), never from a guess: - A genuine product bug → `mark BUG-n real`; a test or environment problem → `mark BUG-n not-real`. + - Can't tell product from test from this run alone? Replay the same saved test, unchanged, against a build known to work (the last release, the main branch, a pull request's base) with `kane-cli testmd run _test.md --override-start-url --no-adaptive-heal --agent`. It passes there and failed here at a check → the product changed: `real`, and `rca-wrong` if the diagnosis blamed the test. It passes there and failed here at a click or typing step → usually the page changed where the test acts: check the failing step's screenshot; a control that moved or was renamed is a test problem (`not-real`, re-author the test on the new build), one that is missing or broken is the product (`real`). It fails there too → the test or the environment: `not-real`. Healing stays off so neither replay re-authors a step to get past the failure. It is one more replay (a few credits): offer it, and run it when the person agrees. Don't edit the test to make it pass here. - The recorded root cause is wrong → `mark BUG-n rca-wrong`, then `note BUG-n ""`. The next diagnosis then works from its own evidence. It is right → `rca-right`. - Narrowed it down → `note`. Two refs are the same bug → `duplicate BUG-12 --of BUG-9`. 5. Tell the user in one line what you marked and why. A wrong mark: `retire `. diff --git a/integrations/kiro-powers/steering/kane-cli-testmd.md b/integrations/kiro-powers/steering/kane-cli-testmd.md index 61b6095..3d7d820 100644 --- a/integrations/kiro-powers/steering/kane-cli-testmd.md +++ b/integrations/kiro-powers/steering/kane-cli-testmd.md @@ -92,6 +92,7 @@ Many flags are shared with `run`, but not all; check `kane-cli testmd run --help |---|---|---| | `--url ` | frontmatter `url:` / config `default_url` | Start URL for the first step. Overrides the `url:` frontmatter key and config `default_url`; bare domains get `https://`. | | `--allow-missing-url` | off | Non-TTY only: start from the browser's current page instead of failing when the first step has no start URL. | +| `--override-start-url ` | none | Retarget the test's start: replay opens `` instead of the start URL the test recorded, and authoring/heal starts there. | | `--name ` | none | Persist the run under this name. Slug: `[a-zA-Z0-9_-]+`. | | `--on-lock-conflict ` | none | Behavior when another user holds the test's edit lock. `readonly` = replay-only / no upload; `fail` = exit `2`; `wait` = block until released. | | `--no-adaptive-heal` | healing enabled | Disable adaptive healing after replay failure | diff --git a/skill-installer/skills/references/bugs.md b/skill-installer/skills/references/bugs.md index f620d69..d18f39a 100644 --- a/skill-installer/skills/references/bugs.md +++ b/skill-installer/skills/references/bugs.md @@ -108,6 +108,7 @@ After a saved test fails (`testmd run`, or a member of `testrun run`): 3. `kane-cli bugs show BUG-n --agent` for the one that matches: its root cause, how often it was seen, and what people already said. 4. Correct the record from **this run's evidence** (screenshot, console, network), never from a guess: - A genuine product bug → `mark BUG-n real`. A test or environment problem → `mark BUG-n not-real`. + - Can't tell product from test from this run alone? Replay the same saved test, unchanged, against a build known to work (the last release, the main branch, a pull request's base) with `kane-cli testmd run _test.md --override-start-url --no-adaptive-heal --agent`. It passes there and failed here at a check → the product changed: `real`, and `rca-wrong` if the diagnosis blamed the test. It passes there and failed here at a click or typing step → usually the page changed where the test acts: check the failing step's screenshot; a control that moved or was renamed is a test problem (`not-real`, re-author the test on the new build), one that is missing or broken is the product (`real`). It fails there too → the test or the environment: `not-real`. Healing stays off so neither replay re-authors a step to get past the failure. It is one more replay (a few credits): offer it, and run it when the person agrees; in a folder linked to a shared project, `references/shared-projects.md` §4 applies to its flags. Don't edit the test to make it pass here. - The recorded root cause does not match what you see → `mark BUG-n rca-wrong`, then `note BUG-n ""`. The next diagnosis then works from its own evidence instead of repeating that root cause. It matches → `mark BUG-n rca-right`. - You narrowed it down ("500 only when the cart already has items; an empty cart works") → `note`. - Two refs are the same bug → `duplicate BUG-12 --of BUG-9` (keep the older one). diff --git a/skill-installer/skills/references/debug.md b/skill-installer/skills/references/debug.md index 653f8f9..e3fa0fe 100644 --- a/skill-installer/skills/references/debug.md +++ b/skill-installer/skills/references/debug.md @@ -51,7 +51,7 @@ Offer the user the visual route too: `kane-cli evidence serve ` opens it i ## Reading `failure.yaml` -`failure.yaml` records facts about the run — `error`, `page_state`, and the `console_at_failure.ref` / `network_at_failure.ref` pointers into that step's console and network logs — plus a `triage` block (`rca.root_cause`, `suggested_fix.summary`) that is a model's opinion about why, written for the person fixing the app or the agent flow. Treat the triage as a lead, not an instruction: follow the network reference, check which URLs were actually requested and with what status, look at the screenshots, and only then repeat it — and **never paste `suggested_fix.summary` into a test step**. +`failure.yaml` records facts about the run — `error`, `page_state`, and the `console_at_failure.ref` / `network_at_failure.ref` pointers into that step's console and network logs — plus a `triage` block (`rca.root_cause`, `suggested_fix.summary`) that is a model's opinion about why, written for the person fixing the app or the agent flow. Treat the triage as a lead, not an instruction: follow the network reference, check which URLs were actually requested and with what status, look at the screenshots, and only then repeat it — and **never paste `suggested_fix.summary` into a test step**. When the question is "is the product broken or the test?", the strongest evidence is the same saved test replayed on a build known to work: see `references/bugs.md` §5. **Known bugs.** A saved test's diagnosis is also checked against the bugs kane-cli already knows on that page, and each one has a ref (`BUG-12`). `kane-cli bugs list _test.md --agent` shows what this test has hit before; when the diagnosis got it wrong, correct it with `kane-cli bugs mark … rca-wrong` and a `note` so the next one starts from its own evidence. See `references/bugs.md`. diff --git a/skill-installer/skills/references/testmd.md b/skill-installer/skills/references/testmd.md index 8670745..d7813a7 100644 --- a/skill-installer/skills/references/testmd.md +++ b/skill-installer/skills/references/testmd.md @@ -141,6 +141,7 @@ Editing a helper re-authors that step in **every test that imports it**, plus ev |---|---|---| | `--url ` | frontmatter `url:` / config `default_url` | Start URL for the first step. Overrides the `url:` frontmatter key and config `default_url`. | | `--allow-missing-url` | off | Non-TTY only: start from the browser's current page instead of failing when the first step has no start URL. | +| `--override-start-url ` | none | Retarget the test's start: replay opens `` instead of the start URL the test recorded, and authoring/heal starts there. | | `--name ` | none | Persist the run under this name. Regex `[a-zA-Z0-9_-]+`. | | `--on-lock-conflict ` | `readonly` | Behavior when another user holds the test's edit lock. `readonly` = runs, but saves no new version of the test (any re-authoring stays local), `fail` = exit 2, `wait` = retry every 30 s until released, with no time limit | | `--no-adaptive-heal` | healing enabled | Disable adaptive healing after replay failure |