Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
5c6d67e
refactor(skill): extract testmd reference from SKILL.md
siddhant573 May 26, 2026
b00f13d
refactor(skill): inline exit-code table and tag directory-tree fence …
siddhant573 May 31, 2026
ecc7049
refactor(skill): extract NDJSON parsing reference from SKILL.md
siddhant573 May 31, 2026
4628e8f
refactor(skill): extract debug + bug-report reference from SKILL.md
siddhant573 May 31, 2026
4695573
refactor(skill): tag directory-tree fence in debug reference
siddhant573 May 31, 2026
1b84c1e
refactor(skill): extract parallel execution reference from SKILL.md
siddhant573 May 31, 2026
bdf18de
refactor(skill): extract setup/variables/config reference from SKILL.md
siddhant573 May 31, 2026
b0edad5
refactor(skill): rewrite SKILL.md as thin entry point with §1 narration
siddhant573 May 31, 2026
4210440
chore(skill): resync repo dev mirrors with new layout
siddhant573 May 31, 2026
53e81aa
chore(skill-installer): bump to 1.1.0 for skill decomposition
siddhant573 May 31, 2026
fc76c3d
feat(skill-installer): stamp VERSION file in each install target
siddhant573 May 31, 2026
ff64fe7
Merge remote-tracking branch 'origin/main' into docs/21-05-26
siddhant573 May 31, 2026
bfc3e9b
feat(skill): add objectives-cookbook reference for run + testmd share…
siddhant573 May 31, 2026
8313379
docs(checkpoints): add user guide for checkpoint types and DevTools a…
siddhant573 May 31, 2026
7bf1f37
feat(skill): require Monitor for live kane-cli narration in Claude Code
siddhant573 May 31, 2026
2bdc9ae
feat(kiro-powers): mirror skill update — add checkpoint analyze metho…
siddhant573 May 31, 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
847 changes: 149 additions & 698 deletions .agents/skills/kane-cli/SKILL.md

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions .agents/skills/kane-cli/references/debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!-- Read this when a kane-cli run failed and you need to diagnose. Owns log file locations (session_dir/run_dir/actions.ndjson/tui.log), the debugging flow, the common-failure-patterns table, and when to file a bug report vs not. -->

# Failure Handling & Log Inspection

When a run fails, diagnose before suggesting fixes.

## Log Locations

The `run_end` event provides `session_dir` and `run_dir` paths. Use those directly.

```text
{session_dir}/
├── session.json # Session metadata, run list, upload status
├── tui.log # Timeline: session start, run start/end, errors
└── runs/{n}/
└── run-test/
└── actions.ndjson # Step-by-step record of agent actions
```

## Debugging Flow

1. **Parse the `run_end` event** from stdout — it has `status`, `reason`, and `summary` plus the `session_dir` / `run_dir` paths.
2. **Read `actions.ndjson`** in `{run_dir}/run-test/` — each line is one agent action with its intent and outcome.
3. **Check `tui.log`** in `{session_dir}/` — for session-level issues (Chrome launch, auth, upload).

## Common Failure Patterns

| Symptom | Likely Cause | Fix |
|---------|-------------|-----|
| 🔄 Agent repeats same action | Stuck in a loop / page didn't change | Rephrase objective, add explicit wait or assertion |
| 🎯 Agent clicks wrong element | Ambiguous UI, multiple similar elements | Be more specific: "click the **blue** 'Submit' button in the **checkout form**" |
| 👁️ Agent says done but didn't finish | Objective too vague | Add explicit assertions: "assert the confirmation page shows order number" |
| 💀 Exit code 2, no steps | Auth or Chrome failure | Check `kane-cli whoami`, verify Chrome is available |
| ⏱️ Exit code 3 | Timeout or cancelled | Increase `--timeout` or `--max-steps`, or split into smaller objectives |
| 🚫 "CDP endpoint not reachable" | Chrome not running | Let kane-cli manage Chrome (remove `--cdp-endpoint`) |

## Filing a bug report

If the failure looks like a **kane-cli bug** (not auth, timeout, or a vague objective), offer to file a report:

> This looks like it might be a bug in kane-cli. Want me to file a report?

File at: **https://github.com/LambdaTest/kane-cli/issues**. Gather the details automatically — don't ask the user to dig through log files.

**Do NOT suggest bug reports for:** auth issues, low timeouts, vague objectives, or website errors (500s, CAPTCHAs).
Loading