CAT PAW

All workflows

Software Engineering

Diagnose a Software Bug with Competing Hypotheses

A reproducible bug with a supported root-cause explanation and a minimal, verified fix or a sharply bounded next investigation.

The process

Work it in this order.

  1. Capture the symptom, expected behavior, environment, timing, and the smallest known reproduction without changing the system.
  2. Collect logs, traces, failing inputs, recent changes, and control cases; separate observed facts from interpretations.
  3. Write a short ranked list of plausible causes and identify one discriminating test for each.
  4. Run the least invasive experiment that can rule a hypothesis in or out, changing one variable at a time.
  5. Reduce the reproduction and localize the faulty component, then add a regression test that fails before the fix.
  6. Apply the smallest corrective change, run the regression and surrounding suites, and record root cause, evidence, and residual risk.

Bring this

Inputs the cat will ask for.

  • Bug report or symptom
  • Access to relevant code and runtime evidence
  • Expected behavior
  • Safe reproduction environment

Router + one playbook

Route first. Choose one.

Cat Paw loads one playbook per task rather than merging several. Start with this router; the remaining paths are workflow-specific candidates it can inspect.

  • Router: engineering-pack
  • skills/engineering/mattpocock/diagnosing-bugs/SKILL.md

Guardrails

The boundaries travel with the prompt.

  • Do not modify production while still gathering baseline evidence unless mitigation is explicitly authorized.
  • Treat correlation as a hypothesis, not a root cause.
  • Redact secrets and personal data from logs and reports.

Done means

A checkable finish.

The bug is reproducible, a regression test demonstrates it, the identified cause is supported by experiments, and the fix passes the relevant suite or a documented blocker names the next discriminating test.

Sources

Where this process came from.

  1. sre.google/sre-book/effective-troubleshooting/
  2. sre.google/workbook/postmortem-culture/

Sources establish the workflow pattern. Reddit and community posts, where present, are treated as practitioner anecdotes rather than universal facts.

AI acts. You decide.

A human brake for AI.

Latch shows every command, click, and file change before it happens — so you can say yes, no, or not yet.

Plow Latch · macOS Cat Paw Latch · Windows + Linux · build from source
Cat Paw Latch

Behind the number

Two harnesses. One line.

Same number, same $100 credit. Pick the harness that answers when you text.

Hermes

Nous Research's terminal-native agent. It runs on your machine, keeps memory between sessions, and opens one playbook per task.

Text Hermes
OpenClaw

The open-source assistant that runs on your own computer and answers in the channels you already use. One playbook per task.

Text OpenClaw

One line for both harnesses +1 628 246 3032

Opens Messages with that harness already chosen.