Skip to content
Back to skills

Turnstile Prov

ASecurity

Report the decisions recorded in the turnstile decision ledger (human prompts journaled as prov:stated, human permission denials as prov:denied, and human gate waivers as prov:waiver) via the turnstile CLI. Use when the user asks what decisions were made, to see the decision ledger or provenance record, or to review human judgment captured during a session.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsrustnode

Works with

  • cli

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add edseabolt/turnstile --skill turnstile-prov --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Turnstile Prov?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Turnstile Prov
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/edseabolt-turnstile-prov/badge)](https://www.skillsdirectory.com/skills/edseabolt-turnstile-prov)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: turnstile-prov
description: Report the decisions recorded in the turnstile decision ledger (human prompts journaled as prov:stated, human permission denials as prov:denied, and human gate waivers as prov:waiver) via the turnstile CLI. Use when the user asks what decisions were made, to see the decision ledger or provenance record, or to review human judgment captured during a session.
---

# Turnstile prov

Report the decisions made, from the turnstile decision ledger. Read-only:
never modify config or journals from this skill.

## Steps

1. Detect context: inside the turnstile repo use `node bin/cli.mjs prov`;
   elsewhere `npx opencode-turnstile prov`. It walks the shared journal and
   the session sinks and prints `prov:*` rows oldest-first; it handles
   missing/rotated files and exits 0 with no output on an empty ledger. The
   CLI has two modes: rendering (`prov [sessionID] [--json] [--tail <n>]`)
   and verification (`prov --verify`, or `prov --verify --session <id>` for
   a scoped check with per-row inclusion proofs).
2. Scope: with no sessionID the ledger covers every session. When the user
   asks about a specific session or time range, pass the sessionID, and
   default to `--tail 200` so the report stays readable; otherwise default
   to `--tail 50`. If the user names other options (e.g. `--tail 100`,
   `--json`), forward them verbatim to the invocation; if the CLI rejects
   one, surface the usage error verbatim; never retry blind, never drop
   the flag.
3. Verify on request: when the user asks whether the ledger (or one
   session's decision record) is intact, tamper-evident, or anchored,
   invoke the verify mode instead of the reporting mode (scoped
   `--session <id>` when they name a session, adding `--json` if asked).
   Report the verdict (chain ok / first broken link / unanchored refs) and,
   in scoped mode, the per-row facts (row hash, epoch, `merkleOk`, anchored
   status, weakest trust domain). Surface exit codes: 0 intact, 1 broken or
   unanchored, 2 usage error. Read-only: verify writes nothing.
4. Report the decisions, grouped per session and in order:
   - `prov:stated`: a human prompt. Quote the redacted text, but skip rows
     that are pure pipeline chatter ("continue", bare acknowledgements)
     unless the user asked for the unfiltered record; the raw row is the
     source of truth, so note how many were skipped.
   - `prov:denied`: a human permission denial. Report the ask kind
     (plan / landing / hands-on) as a decision the human made.
   - `prov:waiver`: a human gate waiver. Report the covered stages.
5. Summarize what the record shows about judgment in the loop: what the
   human directed, what they refused, and any gap (e.g. a session missing
   from the ledger), but do not editorialize beyond what the rows say.
   Prompt text is already secret-redacted at capture; never attempt to
   un-redact or infer redacted content.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.