Skip to content

Weave 1.10.0: Hook Determinism

Choose a tag to compare

@AGM1968 AGM1968 released this 28 Feb 21:00
· 182 commits to main since this release

What's New

Exit code hard blocks — pre-action.sh uses exit 2 for unconditional blocks (no active node, contradictions, installed-path edits). No user override possible.

Structured hookSpecificOutput JSON — "Ask" decisions output JSON with decision, reason, and permissionDecisionReason fields for model consumption.

DB health pre-flight — Hooks compute hot zone path via md5sum and exit 0 early if DB is missing, preventing errors in non-Weave repos.

PostToolUse success guard — post-edit-lint.sh checks tool_response.success before running lint.

pre-close-verification.sh — Soft deny on wv done without verification evidence. Model can bypass with --skip-verification.

Makefile wv targets — wv-status, wv-gate, wv-sync targets for CI integration.

Changed

  • Hooks promoted from settings.local.json to settings.json for project-wide enforcement
  • install.sh now scaffolds both settings.json (hooks) and settings.local.json (permissions)

Fixed

  • Exit code correction: pre-action.sh exit 1 → exit 2 for hard blocks
  • GPG signing disabled in test harness for CI environments

Full changelog: https://github.com/AGM1968/weave/blob/main/CHANGELOG.md