Skip to content

docs + skill: bug memory, kane-cli bugs and RCA categories - #231

Merged
siddhant573 merged 3 commits into
LambdaTest:mainfrom
siddhant573:docs/bugs-feedback
Nov 20, 2026
Merged

siddhant573 merged 3 commits into
LambdaTest:mainfrom
siddhant573:docs/bugs-feedback

Conversation

@siddhant573

@siddhant573 siddhant573 commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Do not merge before the kane-cli release that ships kane-cli bugs. The command is not in 0.10.3. Every new section carries <!-- release: needs kane-cli bugs --> so it can be found when that release goes out.

When a saved test fails, its diagnosis (RCA) is uploaded with the evidence, and kane-cli remembers each distinct application bug it finds as a per-project BUG-<n> ref. The next diagnosis on the same page reads the known bugs (status, votes, latest note) and links a run to one only when that run's own evidence shows the same defect. kane-cli bugs lets people and agents correct and enrich that memory. This PR documents it.

User guide

  • New docs/user-guide/bugs.md, Bug memory and feedback: how bugs appear, how the next diagnosis uses them, which test and project a command works on, list / show / mark / note / duplicate / retire with flags and terminal output, statuses, one vote per person (an agent's --agent feedback is recorded as the agent's, under the user, and counts the same), the agent JSON line and exit codes, and a troubleshooting table quoting the CLI's own messages (including the bug store is not enabled on this controller).
  • Linked from the index (Prove and maintain), testmd/running.md (Handling replay failures), evidence.md (debugging + next steps), testrun.md (next steps) and the troubleshooting index.

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

  • New references/bugs.md: commands, project/test resolution, who feedback counts as, statuses, the one-line JSON shapes, error codes with recovery, and the after-a-failure RCA flow (bugs list <file> → show → mark / note from this run's evidence).
  • SKILL.md: a pointer in §1.6 On failure, a decision-tree line, a reference-table row, and "mark known bugs (kane-cli bugs)" in the description (1021 chars, under 1024).
  • references/debug.md: a short Known bugs paragraph.

Kiro power

  • New steering/kane-cli-bugs.md; POWER.md steering entry and four bugs lines in the command reference; pointers in the run and testmd steering files; the mapping and source tables in integrations/docs/kiro-powers.md.

Checks

  • cd skill-installer && npm test: 75 pass, 0 fail, 5 skipped.
  • The three skill copies are identical (diff -r, as in the workflow).
  • Kiro checklist: frontmatter keys unchanged, no inclusion: on the new steering file, hook JSON parses, facts traced to references/bugs.md.
  • Relative links and anchors in the changed guide pages resolve (four anchor misses in troubleshooting.md predate this PR).

Update 2026-11-19: RCA categories and rulings

  • kane-cli bugs categories list|show|add|edit|remove (guide section RCA categories, skill reference, Kiro steering): the organisation's categories first, then the built-in ones, which are read-only. The diagnosis prefers an organisation category whose description fits. Covers who can change them, that a change applies from the next run, and the new refusals (BUILTIN_READ_ONLY, FORBIDDEN, DUPLICATE_NAME, AMBIGUOUS, NOT_SUPPORTED).
  • kane-cli bugs list --category <name|id>, across every kind of failure.
  • A category never decides which bug a failure joins, and a bug keeps the category of the run that first found it. A bug recorded before a category existed never takes it on (owner ruling, 2026-11-19, from a live stage test).
  • Rulings reach the next diagnosis: a recalled done bug seen again is reported as a regression; for a not_a_bug one, a product bug only when the run's evidence clearly shows the product broken.
  • Merged main (docs + skill: scope the "no Playwright" rule and add Playwright Agents positioning #234 Playwright Agents wording). The SKILL.md description keeps main's wording plus "mark known bugs (kane-cli bugs)".
  • Checks rerun: skill-installer npm test 75 pass / 0 fail; the three skill copies are identical.
  • Verified live on stage with kane-cli 0.10.7-beta.2: a category was added, a failing test's diagnosis picked it, and its name reached the evidence.

Ground truth: the kane-cli bugs command source and its --help text.

🤖 Generated with Claude Code

siddhant573 and others added 3 commits November 14, 2026 13:32
User guide: a 'Bug memory and feedback' page. How a failed saved test's
diagnosis is remembered as a BUG-<n> ref, how the next diagnosis on the
same page reads the known bugs (status, votes, latest note) and links a
run only on its own evidence, the six commands (list, show, mark, note,
duplicate, retire) with their flags and output, statuses, one vote per
person with an agent's feedback counting as its user's, the agent line,
and a troubleshooting table with the CLI's own messages. Linked from the
index, testmd running, evidence, testrun and the troubleshooting index.

Skill: references/bugs.md (commands, who feedback counts as, statuses,
one-line JSON shapes, error codes and recovery, the after-a-failure RCA
flow), a pointer in debug.md and in SKILL.md's on-failure section, a
decision-tree line, a reference-table row, and 'mark known bugs' in the
description (1021 chars). Synced to .claude and .agents.

Kiro: steering/kane-cli-bugs.md, POWER.md steering entry and command
lines, pointers in the run and testmd steering files, and the mapping
table in integrations/docs/kiro-powers.md.

Every new section carries '<!-- release: needs kane-cli bugs -->'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ell the next diagnosis

- `kane-cli bugs categories list|show|add|edit|remove`: the organisation's
  RCA categories first, then the built-in ones (read-only). The diagnosis
  prefers an organisation category whose description fits; permissions,
  next-run effect, and the refusals (BUILTIN_READ_ONLY, FORBIDDEN,
  DUPLICATE_NAME, AMBIGUOUS, NOT_SUPPORTED).
- `kane-cli bugs list --category <name|id>`, across every family.
- A category never decides which bug a failure joins, and a bug keeps the
  category of the run that first found it: one recorded before a category
  existed never takes it on.
- The next diagnosis reads rulings: a recalled `done` bug seen again is
  reported as a regression; for a `not_a_bug` one, a product bug only when
  the run's evidence clearly shows the product broken.

The three skill copies stay identical; the Kiro steering file carries the
short form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	.agents/skills/kane-cli/SKILL.md
#	.claude/skills/kane-cli/SKILL.md
#	skill-installer/skills/SKILL.md
@siddhant573 siddhant573 changed the title docs + skill: bug memory and kane-cli bugs docs + skill: bug memory, kane-cli bugs and RCA categories Nov 19, 2026
Ishavyas9 pushed a commit to LambdaTest/documentation that referenced this pull request Nov 19, 2026
New page kane-cli-bugs (Evidence group): how failed tests' application
bugs are remembered, what the next diagnosis reads (votes, notes, done and
not_a_bug rulings), every kane-cli bugs subcommand, the organisation's RCA
categories (kane-cli bugs categories), statuses, agent use and
troubleshooting. Linked from the CLI reference, the debugging page and
test.md running. Mirrors LambdaTest/kane-cli#231.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@siddhant573
siddhant573 merged commit 4a56cbc into LambdaTest:main Nov 20, 2026
6 checks passed
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.

2 participants