open-standards/jcp/jcp-rs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 76092ae036 joulehook: reference claude-code gate binding (joulehook-hook)
A real Claude Code PreToolUse hook implementing SPEC §3: reads the pending tool
action on stdin, decides it against a JCP capability+budget set via
jcp-bridge::LocalToolGate (outside the model), seals every allow/deny as a JCR-1
receipt, and emits Claude Code's permissionDecision JSON. An ungranted tool is
denied before it executes; unconfigured, it observes and discloses non-enforcement
(§7). Drops into .claude/settings.json as a PreToolUse command hook.

Also adds jcp-bridge::LocalToolGate::receipts() so an adapter can persist the
sealed decision log. 4 tests + a live allow/deny/observe run; clippy-clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-04 11:29:26 -04:00
..
conformance/v1 jcp: energy backends, revocation + chain enforcement, jcp/1 wire binding 2026-06-10 02:00:58 -04:00
crates joulehook: reference claude-code gate binding (joulehook-hook) 2026-07-04 11:29:26 -04:00
Cargo.lock jcp-efficiency: the energy-efficiency spec as a sealed receipt 2026-07-03 07:15:09 -04:00
Cargo.toml jcp-efficiency: the energy-efficiency spec as a sealed receipt 2026-07-03 07:15:09 -04:00