Needs the Kane CLI release that ships
kane-cli bugs (kane-cli bugs --help prints the command list). On an older build, bugs is an unknown command.kane-cli bugs.
- Each distinct bug gets a ref that is unique within your Test Manager project:
BUG-12. - Repeat sightings of the same bug are folded into it, so you see one bug seen in five runs, not five bugs.
- Your feedback (is it real, is the root cause right, a note) is read by the next diagnosis.
How bugs appear
- A saved test (
kane-cli testmd run, or a test in akane-cli testrun runsuite) fails. - The failure is diagnosed, and the diagnosis is uploaded with the run’s evidence.
- If the diagnosis found an application bug, kane-cli either files it as a new bug with its own
BUG-<n>ref, or adds this run to the bug it already knows.
How the next diagnosis uses it
When a later run fails on the same page, its diagnosis is told about the known bugs there: their status, their votes, and the latest note. It links the run to one of them only when this run’s own evidence shows the same defect. A known bug is context for the diagnosis, never a shortcut past the evidence. That is why feedback matters:- Marking a bug
realornot-realtells the next diagnosis how much weight it deserves. - Marking its root cause
rca-wrong, with a note that says what is actually wrong, makes the next diagnosis re-diagnose from its own evidence instead of repeating the recorded root cause. - A note (“500 only when the cart already has items; an empty cart works”) is passed on as it is. The latest note is the one the diagnosis reads.
- Marking a bug
donetells the next diagnosis it was fixed: a run whose evidence shows that same defect again is linked to it, says the fix has regressed, and flags the bugregressed. - Marking a bug
not-a-bugtells the next diagnosis people ruled it isn’t a product bug: for that symptom it reports a product bug only when the run’s own evidence clearly shows the product broken, and otherwise leans to a test or environment problem.
Which test and which project
kane-cli bugs works on a Test Manager project:
--project <id>, if you pass it;- else the project of the test file you name;
- else the project your folder is linked to;
- else your profile’s project (
kane-cli config project <id>, see Test Manager integration).
--testcase <id> with the test case id from Test Manager.
Commands
List bugs
VOTES is the net real-bug vote, then the net root-cause vote when it isn’t zero (rca -1 means more people said the root cause is wrong than right).
Show one bug
BUG-12, bug-12 and 12 all mean the same bug.
Mark a bug
real, not-real, rca-right and rca-wrong are votes. done, not-a-bug and reopen are rulings.
Add a note
Merge a duplicate
Take your feedback back
mark and note, and listed by bugs show. You can take back only your own feedback.
RCA categories
The diagnosis gives every failure one RCA category. It picks one of your organisation’s own categories (the list in Org Preferences → Automatic AI RCA) whenever its description fits the failure, and otherwise the closest built-in category. Whether the failure is a product bug, a test problem or an environment problem is still decided separately.kane-cli bugs categories shows both lists and manages your organisation’s:
- The diagnosis matches failures against a category’s description, so write it as the failures it covers. It uses one of your categories only while it is active and has a description.
- A change applies to the next run, for everyone in your organisation.
- Built-in categories can be listed and shown, never changed.
- Adding, editing and removing need org admin, or the Product Preferences permission when your organisation uses roles.
- A failed step’s reason,
kane-cli bugs showand the run’s evidence name your category. A failure, and a bug, keep a category’s name after it is renamed or removed. - A category never decides which bug a failure joins: the same defect stays one bug whatever category each run gave it.
- A bug keeps the category of the run that first found it. A bug recorded before you added a category doesn’t take it on, even when later runs pick it, so
bugs list --categorydoesn’t list that bug. - The Org Preferences screen saves the whole list it loaded: saving it from a page opened before a change made here undoes that change.
Flags every subcommand takes
Statuses
The latest ruling wins.
reopen drops a bug back to what its votes say.
Votes, people and agents
- Feedback is recorded under the signed-in user, and it changes the bug for everyone in the project.
- One vote per person. You have one real/not-real vote and one root-cause vote on each bug. Voting again replaces your vote; it does not add a second one.
- Agents. When your coding agent runs
kane-cli bugs … --agent, its feedback is recorded as the agent’s, made under your sign-in, and it counts the same as yours.bugs showlabels each piece of feedbackuseroragent, so you can tell them apart. Your vote and your agent’s vote are the same vote: the latest one counts.
For agents
With--agent, or when stdout or stdin is not a terminal, every subcommand prints one JSON line:
0 done, 1 any refusal. A typical agent flow after a saved test fails: read the failure from its evidence pack, kane-cli bugs list <file>_test.md --agent to see what the test has hit before, kane-cli bugs show BUG-n --agent for the bug that matches, then mark and note from what this run’s evidence shows. The kane-cli agent skill carries this flow; see Using kane-cli from an AI coding agent.
Troubleshooting
Next steps
- Evidence packs: where a failed run’s diagnosis and logs live.
- Running test.md files: replay, healing, and what happens when a replay fails.
- Batch runs (testrun): many tests, one execution.
- Troubleshooting: the debugging flow.