sdg:PostCommit

sdg:PostCommit is the value of sdg:hookKind for hooks that fire after the atomic commit. A post-commit hook observes a transaction that has already happened: it can log, emit events, or kick off follow-up work, but it cannot retroactively decline the publish. A failing post-commit hook is logged and the commit stands (Phase 1; Phase 4 adds retry with backoff).

It is currently the only hook kind shipped: Phase 1 wires post-commit observers only. A sdg:PreCommit kind is planned for Phase 4, when gate 4 of the approval pipeline (Authz → Core invariants → Schema → Pre-commit hooks) is wired to accept synchronous, veto-capable hooks. Hooks observe and react — they do not replace the four admission gates — but a pre-commit hook runs inside gate 4 and can decline a transaction.

Usage

  • Used as the object of sdg:hookKind on sdg:HookDefinition documents — both the demo log hook and the dependent-doc-changed hook declare it.
sdg:PostCommit — Sparqdown Docs