STRΛTΛ19

Hooks

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

Strata19 installs two hooks. Both 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.

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, both hooks start inert

Plugin hooks are non-managed on Codex. The user must run /hooks once to review and trust these two hook definitions by content hash before either 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.