Debug a local failure
- Run
./leonaid doctorand first resolve missing locks, secrets, packages, or an unavailable Docker daemon. - Reproduce the fault with the smallest suitable
./leonaid test-…command. Test artifacts stay ignored under.artifacts/. - Inspect
docker compose --env-file .env.local -f infra/compose/compose.yml ps, followed by logs for the affected service only. - Follow ownership: HTTP, policies, and domain data belong to FastAPI Core; companies and people to Twenty; document bytes to RustFS; asynchronous delivery to outbox and worker; rendering to the relevant web app.
- Use a technical correlation ID. Do not copy payloads, tokens, email addresses, or document bytes into issues or logs.
- Add a reproducing test, fix the cause, then run the targeted test followed by all required wider gates.
The VS Code debug profiles attach to Compose services rather than starting a second application, so configuration and data paths match integration tests.