Skip to content

process-hooks — soft deterministic guards at the moment of the event - #89

Merged
fall-out-bug merged 7 commits into
mainfrom
change/process-hooks
Sep 2, 2026
Merged

process-hooks — soft deterministic guards at the moment of the event#89
fall-out-bug merged 7 commits into
mainfrom
change/process-hooks

Conversation

@fall-out-bug

Copy link
Copy Markdown
Collaborator

What

Openspec change process-hooks (dev-process tooling, no product behavior changes). Three soft hooks, each naming the protocol rule it serves:

  • H1 leak-stamp (PostToolUse Edit|Write): flags the touched file on leak-gate signatures — the class of failure a review caught in process-fabric only after the fact. Signatures stay single-homed in scripts/leak-gate.sh (--print-patterns, now stdout — dedupe per socratic).
  • H2 harbor-marker reminder (PreToolUse Edit|Write, root AGENTS.md only): the installer-owned block between the harbor markers; hand edits there are reverted on install.
  • H3 quiet session brief (SessionStart): harbor queue + active changes, injected only when non-empty (design D2; buildBrief null-on-all-quiet is unit-tested).

Wiring: tracked .zcode/config.json, hooks.enabled: true, process-type hooks via ${ZCODE_PROJECT_DIR}.

Honesty

The spike (task 1.1) could not confirm workspace-config loading from inside one session — verdict FALLBACK PENDING, carried honestly: the wiring is inert if never loaded, nothing exits 2 anywhere, and docs/workflow.md says live loading is unconfirmed. Next-session checklist lives in reports/task-1-spike-report.md (hookCount at bootstrap, first-edit probe, H3 briefing).

Verification

  • Battery green: bun test 373 pass / 0 fail (378 total, 5 environmental skips), tsc core+acceptance, validate --specs --strict 10/10, validate --changes --strict 1/1, skill checks, leak-gate.
  • Hand-run transcripts for all three hooks (hit, two-hit, quiet, garbage stdin, missing env) in reports/task-2.1-report.md; post-fix H2 root/nested and leak-stamp end-to-end re-verified.
  • Task reviews: PASS/APPROVED. Whole-change review + socratic: findings fixed (signature dedupe, honesty note in served text, 4.1 tick, commit type corrected); socratic SIMPLIFY-FIRST items applied.

Merge prep: @portolan/core 0.4.2 → 0.4.3, CHANGELOG entry.

fall_out_bug added 7 commits September 2, 2026 14:13
…(2.1)

H1 leak-stamp (PostToolUse Edit|Write) reuses the leak-gate signatures
via a new --print-patterns mode; H2 harbor-marker reminder (PreToolUse
Edit|Write) guards the installer-owned AGENTS.md block; H3 quiet session
brief (SessionStart startup|resume) injects context only when the harbor
queue or the change list is non-empty. Soft phase: no exit 2 anywhere,
silent on the happy path. Envelope and payload keys remain assumptions
until a live firing (task 1.1 spike checklist).
Pointers only: the three soft hooks by path, the protocol rule each
serves (leak-gate; the installer-owned harbor block; J1), the soft phase
(warn, never block; CI stays the done-bar), and the two D1 escalation
triggers.
@fall-out-bug
fall-out-bug merged commit ecd4eba into main Sep 2, 2026
5 checks passed
@fall-out-bug
fall-out-bug deleted the change/process-hooks branch September 2, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant