$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 indemo/diffs/ are known-bad and known-good against the standard
seeded corpus:
- Probes with no
repoin the body write noservice_checksrow — they never pollute Coverage/Reporting. Includerepo/branchand they record like a CI run. statements_consideredis 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: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
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 isdemo-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.
