do-debug
Debug
Find the cause, then change code only after the gate. Done when the chain from trigger to symptom has no gaps, and either a verified fix is ready for the Next block or a diagnosis-only summary has been delivered.
Work in the current checkout. Do not create a branch, add a worktree, commit,
push, or open a PR. Commits happen only through do-commit.
mode:return-to-caller skips the gate and the Next block. Apply a fix that
matches the confirmed cause. A fix that would reverse a deliberate behavior
is status: needs-human, not an edit. Return status: done | blocked | needs-human plus the absolute path to the current checkout as the change
artifact. Do not rename those words.
No credential, token, or connection string goes into a command, a file, or
the summary. Redact with <REDACTED>. If redacting hides the cause, say so
and ask. Do not un-redact.