You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(cli): failure-diagnosis playbook in generated .verfix/INSTRUCTIONS.md #61
Verfix's captured evidence is only useful if the agent knows it exists and knows the next question to ask. Today .verfix/INSTRUCTIONS.md (generated by cli/src/agents-md.ts → generateAgentsSection()) documents the schema, workflow, and failure table — but not a diagnosis procedure. Agents that hit a failure with an unclear cause fall back to re-running flows and grepping raw artifacts.
We can't enumerate every failure cause, but we can teach a reliable process that works for any cause.
Proposal
Add a short "Diagnosing a failure" playbook to generateAgentsSection():
Read the failure's fix_hint, findings[], and page_state facts in the JSON output — often the answer is already there.
Still unclear → verfix show <id> --timeline --last 30 --output json to see what happened around the failure (steps/console/network interleaved).
Selector-related → verfix show <id> --dom '<selector>' to check the failure-time DOM; also check page_state for open dialogs/overlays.
Suspected app error → verfix show <id> --console / --network for full untruncated logs.
Only after the evidence points at app code should the agent read/change project source (and the source-guard rules still apply).
Keep it in the full reference (.verfix/INSTRUCTIONS.md), not the AGENTS.md stub — per the repo rule the stub stays minimal. A one-line pointer in the stub's existing text is enough if it fits naturally.
Depends on
This documents features from: failure-time facts, show --timeline, show --dom, and the analyzer pipeline. Write it last, matching what actually shipped — don't document flags that don't exist yet.
Acceptance criteria
Playbook section in generateAgentsSection() covering the escalation ladder above
Examples stay generic (no hardcoded flow names — repo rule in CLAUDE.md)
Verified by running npx ts-node src/index.ts init in a clean directory and reading the generated .verfix/INSTRUCTIONS.md
Shipped in #85: a Diagnosing-a-failure escalation ladder in the generated .verfix/INSTRUCTIONS.md — read fix_hint/findings/page_state first, then show --timeline, then show --dom + open_dialogs, then show --console/--network, and only then touch project source. Documents the shipped surface only.
Activity
merge(main): resolve conflicts with page_state + blocking-overlay
Docs/failure diagnosis playbook (#85)
jyotir-aditya commentedon Jul 11, 2026
Shipped in #85: a Diagnosing-a-failure escalation ladder in the generated .verfix/INSTRUCTIONS.md — read fix_hint/findings/page_state first, then show --timeline, then show --dom + open_dialogs, then show --console/--network, and only then touch project source. Documents the shipped surface only.