Cookbook 22 · Govern
Governed Evidence Review
Take one synthetic missing-document request through approval, one verified effect, complete evidence and non-mutating replay.
GovernBeta30–60 min
What you build. An evidence-review path that stops for a person. An editor admits a run for the pinned Harborlight case; the scripted model proposes
request_missing_document; a distinct approver approves the exact proposal; an operator resumes; the trusted document-request connector commits once and verifies the receipt by read-back. The final export joins the run, proposal, approval, decision, effect and downstream request, and offline replay reports matched without another mutation. The case is synthetic and the scenario never makes a credit decision.
Surfaces: Workflows Observability Audit Log Cookbooks
What you learn
- Read the Beta scope and reference-profile contract before installing a governed effect recipe
- Inspect a run parked at
waiting_approvaland the exact proposal arguments: caseMORT-2026-000184,pay_statement, expected version1 - See the initiating editor refused with
403 project_role_required, then approve as a distinct project user with the platform approver scope - Verify the downstream contract: first commit
201, same-key replay200, staleIf-Match412, and exactly one mutation - Trace causal links across the run, approval, policy decision, receipt and downstream request; export the evidence and replay it without an outbound write
- Check project isolation and fail-closed unknown/unbound verifier paths rather than treating a missing authority as success
Implementation flow
flowchart LR A["Editor admits evidence review"] --> B["waiting_approval"] B --> C["Proposal: request_missing_document"] C --> D["Editor: 403 project_role_required"] C --> E["Distinct approver approves"] E --> F["Operator resumes"] F --> G["Connector: 201 + verified receipt"] G --> H["Case v1 -> v2; one request"] H --> I["Export evidence"] I --> J["Replay: matched, no mutation"]
Step-by-step UI only
Each step shows the exact navigation path, the fields to fill, the button to click, and a snapshot of the CALIBER screen you'll be on.
- Open the Beta scope and reference-profile links before installing the recipe. Confirm that the case is synthetic and the connector is supported only in the configured reference shape.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
- Install the governed evidence-review recipe and start it as the project-A editor. Inspect the run until it is waiting for approval with one request_missing_document proposal.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
- As the initiating editor, try to approve the protected proposal. Confirm the project_role_required refusal and that the downstream ledger is still empty.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
- Sign in as the distinct approver, inspect the exact proposal diff, approve it, then resume the run as the configured operator.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
- Confirm completed and accepted, then read the receipt and Harborlight case. The case is version 2 and the downstream ledger contains exactly one document request.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
- Open the run evidence and audit trail. Confirm the run, proposal, approval, decision, receipt and downstream request ids are linked with no missing or unrecorded links.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
- Download the exact evidence export and replay it offline. Confirm matched and verify that the downstream mutation count remains one.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
- Switch to project B and confirm the run is not readable. Submit a stale If-Match request only to demonstrate the 412 refusal; refresh the case before a legitimate retry.Screen snapshotcaliber · CALIBERRead / inspect this surface — no form to fill.
Evaluation & quality gates
| Quality gate | Target |
|---|---|
| Admission | project-A editor starts the run and it pauses at waiting_approval before a downstream call |
| Authorization | initiating editor receives 403 project_role_required; distinct project approver approves the exact proposal |
| Effect | one committed proposal and one receipt; Harborlight case advances to version 2; downstream ledger records one mutation |
| Downstream contract | first POST 201, same-key replay 200, stale If-Match 412; no duplicate or stale mutation |
| Isolation | project-B and unknown run reads are scoped 404; missing authoritative verifier refuses before proposal creation |
| Evidence and replay | accepted run, complete causal links, stable export ids, replay matched and non-mutating |
Developer notes & gotchas
- Profile. Start from
docs/start/beta-scope.mdand the reference profile. The disposable scenario binds the existing D1 downstream and uses the B15.1 provenance-pinned fixture; it does not create a parallel service. - Two people plus an operator. The initiating editor cannot approve. The approver must be distinct and hold the platform approval scope; the worker lease and resume path remain operator-controlled.
- Refusals are evidence.
project_role_required, scoped404,no_authoritative_verifier,connector_unboundand stale412are expected outcomes, not flaky setup failures. - Deterministic CI. The model, clock and downstream are scripted/local. The fixture is synthetic and not for credit decisions; ordinary tests never call a live provider or customer system.
- Run it.
scripts/cookbook-run-all.sh --labs 22runs the registered API path when the dependent V01 and installed SDK artifacts are present; the browser journey is supplied by B15.3b.