queue_webhook_event writes a durable
queued event to the local event
log against an active destination. The contract is explicit:
queue only — no HTTP send, no retry, no source
mutation. Queuing an event never performs an outbound call; it parks the intent
for a later, gated decision.
Product 21 · SDK / MCP / Local API · Wave 2
Webhook & Event Dormancy Manager
Dormant by default — external calls fire only when you say so. Agents queue webhooks and emit events without ever touching the outside world by accident. Delivery is fail-closed: an event can be queued and inspected, but nothing leaves the machine until an explicit, approved activation branch is opened.
An unintended external call is one stray code path away.
An agent that can emit webhooks or fire external events is one stray code path away from
an unintended side effect — a message sent to a real Slack channel, a callback POSTed to
a production endpoint, a retry storm replayed against a third party. The danger is rarely
a deliberate decision; it is a default. A startup path, an environment variable, or an
allow_live=true flag flips delivery on
before anyone meant to activate it.
The safe posture is the inverse: external delivery should be unavailable unless someone deliberately opened it. Queuing an event for later is harmless and useful; delivering it is the act that needs an explicit, recorded gate. Most webhook layers ship the other way around — wired to deliver, with dormancy as an afterthought you have to remember to configure.
Webhook & Event Dormancy Manager makes dormancy the default and activation the exception. Events are queued durably and can be inspected, but every delivery, replay, autodispatch, and outbound integration is checked against a runtime policy that stays locked unless a specific approval and a well-formed activation mode are both present. If the configuration is malformed in any way, the manager fails closed.
Queue → Evaluate → Activate or block
Before any delivery, replay, or Slack send,
evaluate_webhook_runtime_policy is
consulted. The webhook is webhook_locked
by default; it unlocks only when the
dormancy lock is off, WEBHOOK_ACTIVATION_APPROVAL is
approved, the activation mode is valid, and no
routing flags are malformed. Every *_allowed flag is
AND-gated on all of these.
A blocked action returns a blocked_dormancy_detail
string naming exactly why (e.g. "webhook dormancy lock active"). Live delivery via
deliver_webhook_event, autodispatch,
dead-letter replay_dead_letter_event,
and Slack inbound/outbound each require their own flag and an unlocked policy.
Nothing escalates from a queued event to an external call without that branch.
Modes, gated capabilities & fail-closed
The model below is derived directly from the originating agent's webhook runtime policy. An activation mode and a set of routing flags decide what — if anything — is permitted to leave the machine. Absence or garbage means locked; activation requires positive, well-formed configuration.
| Mode | Meaning |
|---|---|
| dormant | Default. No external delivery of any kind. Unknown or malformed modes collapse to this. |
| manual_dispatch | Per-event delivery permitted only when policy is unlocked and WEBHOOK_AUTODISPATCH_ALLOW_LIVE is set. |
| autodispatch | Automatic delivery permitted only when unlocked and WEBHOOK_AUTODISPATCH_ENABLED is set. |
Every capability is AND-gated on the policy being unlocked — lock off and approval present and mode valid and no malformed flags — plus the additional requirement below.
| Capability | Additional requirement (on top of unlocked) |
|---|---|
| live_delivery_allowed | WEBHOOK_AUTODISPATCH_ALLOW_LIVE true, mode ∈ {manual_dispatch, autodispatch} |
| autodispatch_allowed | mode = autodispatch, WEBHOOK_AUTODISPATCH_ENABLED true |
| manual_dispatch_allowed | mode = manual_dispatch |
| dead_letter_replay_allowed | WEBHOOK_DEAD_LETTER_REPLAY_ENABLED true, mode ∈ {manual_dispatch, autodispatch} |
| slack_outbound_queue_allowed | SLACK_OUTBOUND_ENABLED true |
| slack_inbound_delivery_allowed | SLACK_INBOUND_DELIVERY_ENABLED true |
A malformed WEBHOOK_DORMANCY_LOCK, an unrecognized activation mode, or any
malformed routing flag forces dormancy and is named in the policy
reason. Activation requires positive, well-formed configuration —
absence or garbage means locked.
evaluate_webhook_runtime_policy never opens on uncertainty: every
*_allowed flag is AND-gated on lock-off, an
approved WEBHOOK_ACTIVATION_APPROVAL, a valid mode, and the
absence of malformed flags. Queuing an event never sends — only an explicit, approved,
well-formed activation branch can permit an external call.
MCP tools
The MCP tools below ship in the published package (v0.1.1). They were extracted from what the originating agent's webhook routes and services expose today.
queued, no send) against an active destination.*_allowed flag with a reason.allow_live requires live_delivery_allowed).dead_letter_replay_allowed.Install
Webhook & Event Dormancy Manager is a CertaWorks Wave 2 product. It is built, tested, and published on npm. The commands below install the package — an SDK, an MCP server, and a local HTTP API, consistent with the rest of the suite — so you can see exactly what it exposes.
Running it, or want to help shape what comes next? Use the feedback form below.
The package @certaworks/webhook-event-dormancy-manager
is live on npm. Install it globally, or point your MCP client at it with the config below
(its MCP server command is webhook-dormancy-mcp).
npm install -g @certaworks/webhook-event-dormancy-manager
{
"mcpServers": {
"webhook-event-dormancy-manager": {
"command": "npx",
"args": ["-y", "-p", "@certaworks/webhook-event-dormancy-manager", "webhook-dormancy-mcp"]
}
}
}
What Webhook & Event Dormancy Manager does and does not do
- Stay dormant by default — no external delivery without explicit activation
- Queue events durably so they are not lost while dormant
- Fail closed on a malformed lock, mode, or routing flag — garbage means locked
- Gate live delivery, autodispatch, replay, and Slack independently and explicitly
- Surface a human-readable reason for every blocked action
- Run fully local as an MCP server, SDK, and local HTTP API
- Send external calls while dormant — no delivery while the dormancy lock is active
- Activate without explicit approval, or treat missing/garbage config as permission
- Send during queuing — queuing never performs an HTTP call
- Decide for you whether an integration should be on
- Guarantee delivery, ordering, or third-party acceptance once activated
- Replace production webhook infrastructure or its access controls
Related Products
Using Webhook & Event Dormancy Manager? Tell us how it goes
Webhook & Event Dormancy Manager is part of CertaWorks Wave 2 — a second set of built tools productized from a working cognitive agent. It's on npm now. Tell us what you're running it against, what broke, or what you'd want next — we read every note.