chieflab_query_proof_ledger
P80 — query the persistent proof ledger. USE WHEN the user (or a dashboard) asks 'what has ChiefLab actually shipped for this workspace?' or 'show me the launch history.' Returns the proof rows for executed publishes / sends / manual-posts with the artifact URLs, channels, execution modes, and measurement state. Persistent across cold starts when deps.proofLedgerStore is wired to Supabase; falls back to in-memory (warm function lifetime) otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size (1-500, default 50). | |
| runId | No | Optional. Filter to one run's proofs. | |
| workspaceId | No | Optional workspace id (defaults to auth workspace). | |
| sinceTimestamp | No | Optional ISO timestamp; only return proofs published at or after. | |
| measurementDueOnly | No | When true, returns only rows with measurement_due_at <= now AND measured_at IS NULL. Use this to find what's ready for 24h readback. |