Skip to content

v0.12.0

Choose a tag to compare

@edseabolt edseabolt released this 09 Nov 03:22
· 179 commits to dev since this release
4392f3f

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:stated entry (secret-redacted at write time, capped at 2000 chars with a truncated marker), and each human permission denial at the plan/landing/hands-on ask sites journals a prov:denied entry with the ask kind. Capture is gated on the new decisionLedger.enabled key (default true); false silences all prov:* 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; --json for 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) and src/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.enabled config key (default true), mirrored in examples/turnstile.example.json and schemas/turnstile.schema.json.
  • opencode-turnstile prov [sessionID] [--json] [--tail <n>] subcommand.

Changed

  • Docs, d02-hooks diagram, usage configuration table, and README updated for the ledger and the prov command.

Install

npx opencode-turnstile@0.12.0 init