Run top to bottom after a deploy, or start at the layer a report points to. $PCX_API_KEY is a real org API key (never reuse demo keys outside the demo estate).

1. Worker is up

2. REST auth + data path

3. The compliance brain (LLM round-trip)

The canned probes in demo/diffs/ are known-bad and known-good against the standard seeded corpus:
Reading the result:
  • Probes with no repo in the body write no service_checks row — they never pollute Coverage/Reporting. Include repo/branch and they record like a CI run.
  • statements_considered is the size of the key’s org’s enforced corpus. A surprising number means you are holding the wrong key.
  • To audit a real check, replay its exact input: gh pr diff <n> --repo <owner>/<repo> piped through the same command.

4. The golden eval suite

The formalised version of step 3 — run it after any model change in Settings → LLM:
Each case is a diff.patch (plus optional tree.txt) and an expect.json — either {"clean": true} or must_find regexes resolved against the target org’s enforced statement text at runtime. No matching statement in the org → the case SKIPs (portable across orgs); a missed expectation FAILs as a false negative; extra findings never fail (review them — the model finding more real issues is not a defect). A weekly GitHub workflow (eval-compliance.yml) runs the same suite with the POLICYCODEX_EVAL_API_KEY repo secret.

5. Audit chain integrity

The verifier recomputes every entry_hash from content alone; it trusts nothing but the hashes it carries.

6. Email pipeline (growth)

7. Demo estate

The console’s health grid is the smoke test (eight tiles). From a terminal, the equivalent is demo-api’s health action, or:

Workspace definition of done

Any change: pnpm lint and pnpm test pass, and the thin-slice demo path still works end-to-end. That last clause is what the demo estate’s S1–S6 arc exercises.