STRΛTΛ19

Hooks

The hooks Strata19 installs, what each one does, and how to turn the done-gate down

Strata19 installs eight hooks. All are local only: they make no network calls and no model calls.

EventScriptWhat it does
Stopdone-gate.mjsRuns the same deterministic detectors strata19.verify_implementation uses, against the files touched this session. A real finding blocks the stop with a deterministic fix prompt.
SessionStartsession-bind.mjsBinds the conversation to the host session id the host already carries, so focus and work-claims stay per-conversation instead of colliding across parallel sessions.
PostToolUseclaim-bind.mjsSee the manifest.
PostToolUsetool-observe.mjsSee the manifest.
UserPromptSubmitprompt-capture.mjsSee the manifest.
UserPromptSubmitprompt-context.mjsSee the manifest.
PreToolUseclaim-bind.mjsSee the manifest.
PreToolUsescope-check.mjsSee the manifest.

Turning the done-gate down

STRATA19_GATE_MODE controls what the Stop hook does with a finding.

ModeBehaviour
askThe default. Presents the findings and asks before changing anything.
enforceApplies the fix directly.
offDisabled.

On Codex, the hooks start inert

Plugin hooks are non-managed on Codex. The user must run /hooks once to review and trust these eight hook definitions by content hash before any one runs. Until that happens session binding degrades to worktree plus process, which is weaker than the host session id and can collide across parallel sessions.