Skip to content
youdede

Session Checkpoint Guard

OperationsHookv1.0.0

On SessionEnd, append a bounded receipt (timestamp, reason, sequence, chain link, git anchor) to .youdede/session-ledger.jsonl. Rich content belongs to the record-work-checkpoint command; this hook records only what the event proves.

Runs on

Scope
$npx @youdede/toolkit add session-checkpoint-guard --target claude-code

What it does

Append a deterministic, hash-chained session-end receipt to the local session ledger.

When it fires

  • operations
  • handoff

How it behaves

Append a tamper-evident session-end receipt to the chained ledger.

It does not block, delay, or alter the observed event; it records or reports only.

It does not execute submitted content, call an LLM, or transmit any data off the machine.

It does not treat unreadable, symlinked, or oversized state as valid evidence.

Configuration

targets/claude-code/session-checkpoint-guard.mjsnode · writes-files

Version
1.0.0
Requires
node
Licence
RiskThis observer appends a deterministic, hash-chained session-end receipt to the local session ledger; it writes only bounded local receipts and cannot block the event.
Low
ModeHow it works: fixed rules, model instructions, or both.
Deterministic only
Behaviour
Observes, does not intervene
On failure
Allows and continues
LatencyTo append a deterministic, hash-chained session-end receipt to the local session ledger, the entrypoint may run a bounded local subprocess before returning.
Bounded
Data retentionWhether data remains after use and who manages its storage.
Kept locally, bounded
In packs
  • Session continuity

Often used with

All in Operations