Deterministic Session Summary Compiler Runbook

Deterministic Session Summary Compiler Runbook

MC: #101065
Status: partial implementation, pending independent validation and final closure.

Purpose

Session-end checkpoints must be generated from machine evidence, not John-authored narrative. The compiler creates a checkpoint from git, Mission Control, evidence ledger, cost tracker, claim schemas, and transcript timestamps. John may only add one constrained notes paragraph.

Runtime pieces

Generator inputs

By default the generator reads:

Test overrides are available for deterministic fixtures:

Manual commands

Syntax checks:

node --check /Users/makinja/system/tools/session-summary-generator.js
bash -n /Users/makinja/system/hooks/session-summary-stop-hook.sh
node --check /Users/makinja/system/tests/session-summary-generator-simulation.js

Manual dry-run:

node /Users/makinja/system/tools/session-summary-generator.js \
  --session-start 2026-05-23T13:45:00Z \
  --session-id manual-smoke-101065 \
  --auto-write \
  --output /tmp/alai/session-summary-generator-smoke-101065.md

Seeded simulation:

node /Users/makinja/system/tests/session-summary-generator-simulation.js

Expected seeded simulation evidence:

Stop hook behavior

session-summary-stop-hook.sh reads hook JSON on stdin, invokes the generator with --auto-write, logs errors, and always exits 0. Session closing must not be blocked by checkpoint generation failure.

If checkpoint generation fails, inspect:

tail -50 /Users/makinja/.cache/alai/session-summary-errors.log

John Notes rule

John Notes are optional and constrained by the generator:

The generated machine sections above ## John Notes are not to be hand-edited.

Closure requirements

Do not mark MC #101065 done until:

  1. independent Proveo validation passes or accepted caveats are documented;
  2. Stop hook registration is confirmed live;
  3. seeded simulation output is retained as evidence;
  4. BookStack/runbook publication is confirmed;
  5. any remaining liveness-validator integration decision is recorded.

Revision #2
Created 2026-05-23 15:20:47 UTC by John
Updated 2026-06-28 20:04:42 UTC by John