Help
Getting started
Customer onboarding (self-serve hosted, ~10 minutes)
Goal: go from zero → BLOCKED → VALID using the dashboard wizard or supported CLI commands — no source code reading.
Self-service path (dashboard)#
- Sign up at
/signupon your GovAI dashboard deployment. - Complete Getting started (
/getting-started): organization name, Stripe checkout (Hosted Professional — configureGOVAI_STRIPE_PRICE_PROon the audit service), one-time API key reveal, CI/CLI steps, verdict review, export. - Use the issued API key as
GOVAI_API_KEYbelow.
API routes (JWT): POST /api/onboarding/provision, POST /api/onboarding/api-keys, POST /api/onboarding/billing/checkout-session. See reports/self-service-onboarding-foundation.md.
CLI path (after dashboard provisioning)#
You need:
GOVAI_AUDIT_BASE_URL(your hosted audit API base URL)GOVAI_API_KEY(from the dashboard one-time reveal, or operator-provisioned for legacy pilots)
This doc uses the evidence pack flow (same shape as CI):
govai evidence-pack init → govai submit-evidence-pack → govai verify-evidence-pack --require-export → govai check
If you want background and exact file shape, see evidence-pack.md.
Prereqs#
- Python 3.10+
- A working hosted GovAI audit backend (operator responsibility):
GET /readyreturns HTTP 200 (not just/health)
1) Install the CLI#
2) Configure audit service URL and API key#
Preflight (fail-safe: validates local evidence pack + requires backend readiness):
Sanity check (must be 200):
3) Copy-paste runnable onboarding flow (one run id, one out dir)#
This block is the supported customer flow. It uses an explicit RUN_ID and OUT_DIR and reuses the same RUN_ID through init → submit → verify → check.
4) Interpret results (VALID / BLOCKED / INVALID)#
govai check prints the verdict on stdout and exits non-zero unless the verdict is VALID.
VALID: all required evidence is present, evaluation passed, and promotion prerequisites are satisfied. Deployment allowed.BLOCKED: evidence is incomplete or prerequisites (risk/human approval/promotion/digest/export) are not satisfied yet. This is not “failed”; it means “not eligible yet”. Fix is to provide the missing evidence for the sameRUN_ID.INVALID: evaluation explicitly failed policy rules. This is a real failure; fix the underlying issue, then produce new evidence and re-check.
Important: Do not assume you can reach VALID without submit + verify + check. verify-evidence-pack is the artefact/digest continuity gate; check is the verdict readout.
Troubleshooting (first-run failures)#
If you get stuck, capture the exact command output and start with:
Most common issues:
/readynot 200: the backend is not operationally ready (DB/migrations/ledger). This is an operator issue, not a policy verdict. Fix the environment untilgovai readysucceeds.- Missing or wrong
GOVAI_AUDIT_BASE_URL: you are pointing at the wrong environment or an invalid base URL. Re-exportGOVAI_AUDIT_BASE_URLand re-rungovai ready. - Missing or wrong
GOVAI_API_KEY: auth failure (often 401). Re-exportGOVAI_API_KEYfor the correct environment/tenant. APPEND_ERRORduringsubmit-evidence-pack: the server rejected an evidence append (commonly wrong ordering/prereqs, wrong tenant key, or a backend ledger/DB issue). Re-checkgovai ready, confirm the correct API key, and retry submit.RUN_NOT_FOUND: the run does not exist in the tenant/ledger you’re querying (wrongRUN_ID, wrong base URL, or wrong API key/tenant). Ensure you use the sameRUN_IDyou submitted and the correctGOVAI_API_KEYfor that environment.- Digest mismatch (digest mismatch, verify fails): the local
evidence_digest_manifest.jsondoes not match the hosted/bundle-hashfor thatRUN_ID. Regenerate the evidence pack and re-runsubmitthenverifyfor the sameRUN_ID, or use a freshRUN_IDto eliminate stale/partial ingestion. BLOCKEDbecause evidence is incomplete:govai checkwill printBLOCKEDand explain missing evidence / blocked reasons. The fix is to submit the missing evidence (in real customer integration this comes from your CI/app pipeline, not this demo pack).
For a broader matrix, see troubleshooting.md.
What to do next#
- Integrate the CI gate (artefact-bound): see github-action.md.
- Understand the evidence pack shape: see evidence-pack.md.
- Manual evidence control (advanced): see manual-evidence-flow.md.