Playbook: Debug And Verify
Load when a run fails, output is wrong, CLI and UI disagree, or proof needs to be
collected before closing work.
Default Loop
- Identify target and lifecycle: draft, live, installation, version, interface,
input, and workspace. - Inspect the failing run or command result. Keep workflow id, output URL,
resource URIs, error code, and recovery action URLs in the session capsule.
Prefer exact recovery links fromerror.actions[].urlfirst, then
meta.webUrl.breyta runs events <workflow-id> --limit 100returns a bounded timeline
of run and step events for live debugging, including in-flight step updates
when the execution store has them. Add--step <step-id>for one step, or
--installation-id <id>when inspecting a run through an installed profile.breyta runs inspect <workflow-id> --step <step-id>returns compact step
input/output/error/cost without opening the whole run payload.breyta runs step <workflow-id> <step-id>is the short alias for the same
step I/O inspection and includes that step's event timeline when available.
Add--fullonly when captured step output/error payloads are required.
- Check for target mismatch:
flows pushupdates draft onlyflows releaseorflows promoteupdates live- UI install paths usually follow live/install targets
- Narrow to the touched primitive:
- read the step config
- run a focused docs search for that primitive
- use
breyta steps runorbreyta steps recordwhen the step can be tested
outside the full flow - add
--flow <slug> --source draftfor draft-only templates/functions or
--installation-id <id>for installed connection slots - start with inline
--params '<json>'for small inputs; move to
--params-filewhen the input gets long or reused - inspect compact
data.resultPreview.valuefirst; expand with
--result-path,--preview-depth,--preview-items,--preview-runes,
or--result-filebefore using--full
- Rerun the smallest flow entrypoint that can prove the fix:
- manual:
breyta flows run <slug> --interface-id <id> --input '<json>' --wait - HTTP:
breyta flows interfaces call <slug> <interface-id> --input '<json>' --wait - live/install: add
--target liveor--installation-id <id> - when a run is waiting for approval, use
breyta runs continue <workflow-id> --approve-latest-waitto approve the latest active approval wait, then inspect the run again
- manual:
- Read back user-facing output and side effects:
breyta resources read <resource-uri> --limit 20- table query/read commands for table resources
- external system records, emails, files, or callbacks when those are the proof
- rendered notifications/emails: recipient, sender, subject, body, required
wording, and absence of debug fields
Do not rely on terminal status alone after a run returns output or artifacts.
Inspect the actual user-facing artifact from the intended user's perspective.
Escalate Only If
- two edit/run cycles do not isolate the cause
- the same command result conflicts with docs/help
- a UI surface fails while CLI proof succeeds
- a public/install path cannot be verified from available tools
When platform behavior appears wrong, submit breyta feedback send with full
URLs, workflow ids, output/resource URLs, target, interface id, and steps tried.
Also submit feedback when the fix required excessive trial/error, docs/help were
misleading, or CLI/API behavior made the intended agent loop unclear.
Proof Contract
Final proof should name:
- command run
- workflow id
- target/version/installation
- interface id or HTTP interface id
- output/resource URLs
- side effect evidence
- unverified surfaces, especially
web UI not verified