Repository navigation
v0.12.0
turnstile v0.12.0
This release adds the decision ledger: turnstile now records the human side of the pipeline — every prompt you give it and every permission denial you make — into a secret-redacted, observe-only journal you can query with a new prov command. Capture is dumb and derivation is offline: rows are verbatim (after mechanical redaction), never classified at write time, and never coupled to enforcement — no new gates, no state changes, replay-inert.
New: decision ledger (#277)
- Capture — every admitted parent-session prompt journals a
prov:statedentry (secret-redacted at write time, capped at 2000 chars with atruncatedmarker), and each human permission denial at the plan/landing/hands-on ask sites journals aprov:deniedentry with the ask kind. Capture is gated on the newdecisionLedger.enabledkey (defaulttrue);falsesilences allprov:*journaling with no other behavior change. opencode-turnstile prov— new read-only CLI subcommand printing the ledger: every session interleaved, or one session by ID;--jsonfor raw rows,--tail <n>to bound output.- Redaction — a fixed pattern list (API keys, AWS access keys, bearer/authorization headers, GitHub tokens, key/token assignments, private-key blocks) replaces matches with
[REDACTED]before truncation, so a secret straddling the cap boundary is never left half-visible. - Mechanics — new pure modules
src/decision-ledger.ts(entry builders) andsrc/decision-ledger-redact.ts(redaction); payloads are canonically serializable so a future tamper-evidence chain needs no migration of existing rows.prov:*entries are replay-inert and capture is fail-open (an error journals and never throws).
New: hero/demo showcase (#278)
The README hero and demo SVGs now include the decision ledger in the rendered pipeline.
Added
decisionLedger.enabledconfig key (defaulttrue), mirrored inexamples/turnstile.example.jsonandschemas/turnstile.schema.json.opencode-turnstile prov [sessionID] [--json] [--tail <n>]subcommand.
Changed
- Docs,
d02-hooksdiagram, usage configuration table, and README updated for the ledger and theprovcommand.
Install
npx opencode-turnstile@0.12.0 init