Wake events and delivery receipts
Receive signed operational events at your endpoint and distinguish admission, HTTP acceptance and receiver verification.
On this page
An idle MCP connection cannot receive a push. Give Anectico a public HTTPS endpoint you own. Anectico sends a signed JSON event there when a subscribed change happens. Your receiver can wake your own agent. Anectico does not investigate, decide, fix anything, or run your agent.
A destination belongs to one project and the API key that creates it. Use a management key created by a person in Agents and keys, scoped to that project. An intake key, application key, key created by another key, or OAuth connection cannot create a destination. A key sees only its own destinations. A workspace owner or admin can also inspect, pause, or delete them in the Console. The receiver URL cannot be changed. Create a new destination to move to another endpoint.
Choose the delivery record
This guide covers signed events delivered to an agent destination. For ordinary email, Slack or webhook channels, use notification delivery. A delivery receipt records the sending side's observation; receiver verification and agent work remain separate evidence. For an explicit A2A message, use Drive one registered agent.
Events and schemas
Every document has version: 1, id, type, occurred_at, delivered_at, attempt,
workspace_id, project_id, subject, and facts. The JSON Schema
contains a separate definition for every type. Unknown fields are forbidden. IDs are UUIDs.
Times are UTC. occurred_at is the original change time. delivered_at and attempt change
on a resend. attempt is the reserved attempt number, from 1 to 8.
| Type and schema definition | The same occurrence means | Subject and facts | Read scope |
|---|---|---|---|
issue.first_seen ($defs/issue.first_seen) |
One issue and its original first-seen time | issue; state new |
errors:read |
issue.regressed ($defs/issue.regressed) |
One issue and its regression time | issue; state regressed |
errors:read |
alert.fired ($defs/alert.fired) |
One alert and its first unsuppressed activation time | alert; state firing; optional severity info, warning, or critical |
alerts:read |
alert.recovered ($defs/alert.recovered) |
One alert and its measured recovery time | alert; state recovered |
alerts:read |
incident.opened ($defs/incident.opened) |
One incident and its creation time | incident; state open; optional severity sev1 to sev4 |
incidents:read |
incident.resolved ($defs/incident.resolved) |
One incident and its resolution time | incident; state resolved |
incidents:read |
release.first_seen ($defs/release.first_seen) |
One persisted qualifying release discovery | release; state observed, original observed-first snapshot and closed source |
releases:read |
metric_watch.breached ($defs/metric_watch.breached) |
One confirmed measured breach transition | watch_event; watch, revision, sequence, original run, state breached |
alerts:rules:read, analytics:read, persons:read, insights:read and source scopes |
metric_watch.recovered ($defs/metric_watch.recovered) |
One continuously measured recovery after a breach | watch_event; original run and state recovered |
The same current metric source scopes |
metric_watch.source_lost ($defs/metric_watch.source_lost) |
One confirmed source availability loss | watch_event; closed reason and state source_lost, without a measurement |
The same current metric source scopes |
person_watch.breached ($defs/person_watch.breached) |
One supported explicit-person threshold confirmation | watch_event; watch, revision, sequence, alert and state breached |
alerts:rules:read, alerts:read, persons:read and signal or content scopes |
test ($defs/test) |
One explicit test request; a new ID for each request | destination; state test |
event_destinations:write |
Subscribe to one to eight unique bases: issue.first_seen, issue.regressed, alert.fired,
incident.opened, release.first_seen, metric_watch.breached, metric_watch.source_lost
and person_watch.breached. Set include_recovery: true on an alert, incident or metric
breach subscription to also receive recovery or resolution. Recovery is off by default. Manually closing an alert is not a measured
recovery. Waking a snoozed issue is not a regression. Release observations and watch transitions use their original persisted occurrence clocks.
Workspace-wide notifications have no project destination and are not sent.
Operational alert delivery currently supports raw-metric query rules without a person or other
entity target, while their original rule revision remains active and unchanged. This includes
rules that notify ordinary channels directly. First activation means the first confirmed breach
that is permitted to notify: an initial silence delays it. Later acknowledgment removal,
silence expiry and repeated breach preserve its occurrence ID and do not send another
alert.fired. Ordinary channel resumes continue under their existing suppression rules.
Supported explicit-person confirmations can also supply ordinary alert firing and measured recovery references while the exact immutable confirmation remains readable. These require rule, person and original signal read permissions and current content policy. Their subject remains the alert UUID; the dedicated person breach has its own watch-event subject.
Other alert sources defer while their exact source and privacy authorization is unavailable.
An alerts:read scope alone cannot establish permission to disclose a source fact. Creating an
alert subscription or successfully sending a diagnostic test does not establish operational
alert delivery. HTTP acceptance records the endpoint's response; independently verifying the
signature and deduplicating the event belong to the receiver. Neither proves an agent ran.
Issue and incident delivery continue under their current subject permissions.
For operational events, the ID is deterministic. Join these lines with \n, with no final newline:
anectico.agent-event.v1, type, workspace ID, project ID, subject ID, original UTC transition
time in RFC3339Nano format. Hash the UUID URL namespace bytes
(6ba7b811-9dad-11d1-80b4-00c04fd430c8) followed by those UTF-8 bytes using SHA-256.
Take the first 16 bytes, set the UUID version nibble to 5 and RFC variant bits, and format as a
UUID. This is Anectico's specified SHA-256 derivation; it does not use the usual UUIDv5 SHA-1
algorithm. Re-evaluating or re-delivering the same change keeps this ID.
Documents contain closed state and severity values, not error messages, log lines, user-written titles, labels, person IDs, emails, or event properties. They do not contain measured counts. Missing severity is unknown. A proof URL is present only for an issue or incident with a proof page. Your agent reads details with its own key and permissions through MCP or the CLI. Destination documents never go to your ordinary notification channels. Your ordinary workspace notifications never go to an event destination.
Set up a destination
The key needs event_destinations:write, event_destinations:read, and the read scope for each
subscribed subject. MCP writes also need mcp:write; MCP reads need mcp:read.
The recorded scope ceiling is the key’s concrete scopes at creation. Granting a new read
scope later does not widen an old destination. Create a new destination if the subscription
needs a scope outside that ceiling. Removing a scope still stops existing subscriptions.
Event delivery and the current subject reads are available on every plan.
Create a file containing the receiver and subscriptions:
{
"url": "https://receiver.example.test/anectico",
"subscriptions": [{"type": "incident.opened", "include_recovery": true}]
}
Use anectico event-destinations create --file destination.json --idempotency-key <stable-key>.
The active project supplies the project ID. The first call previews the complete destination.
After approval, repeat identical inputs with the returned --confirm-token to apply.
The confirmed response contains the new destination and a signing secret shown once.
Save it securely in your receiver. Get, list, receipts, and later reads never return that secret.
Keep the creation key: matching retries recover the original destination metadata and create
nothing. The signing secret is withheld on recovery; use a separately approved rotation if it
was lost. Deleting a destination does not make an old creation retry restore it.
Through MCP, discover create_agent_destination with list_write_actions, then use
execute_external_action with action: "create_agent_destination" and one stable
idempotency_key. The first call previews the
owner key, project, exact URL, subscriptions, and active state without creating anything.
Approve those fields using the returned confirmation token. Only the confirmed response shows
the new secret once. Do not include it in notes, audit text, or a conversation transcript.
Verify the signature
Headers are Anectico-Event-ID, Anectico-Timestamp, and Anectico-Signature.
The signature header has the form t=1791536400,v1=<lowercase hexadecimal digest>.
The signed bytes are the decimal Unix timestamp, one ASCII period, then the exact raw request
body bytes. Compute HMAC-SHA-256 using the signing secret's literal UTF-8 bytes. Do not decode
the secret as base64 and do not parse or reserialize the JSON before checking it.
Reject timestamps more than 300 seconds from your receiver's clock. Compare signatures in constant time. Then parse the validated document, require version 1, check the schema and that the body ID matches the header ID, and deduplicate by event ID. Save the ID before starting your agent. A timestamp tolerance alone does not remove duplicates inside that window.
This Python example checks a request using the current secret and, during rotation, the previous one. Both are obtained from your receiver's secure configuration:
import hashlib
import hmac
import json
import time
def verify(raw_body, signature_header, timestamp_header, event_id_header, secrets):
if len(raw_body) > 8192:
raise ValueError("body too large")
fields = [part.split("=", 1) for part in signature_header.split(",")]
timestamps = [value for name, value in fields if name == "t"]
signatures = [value for name, value in fields if name == "v1"]
if len(timestamps) != 1 or timestamps[0] != timestamp_header:
raise ValueError("timestamp mismatch")
timestamp = timestamps[0]
if not timestamp.isascii() or not timestamp.isdecimal():
raise ValueError("invalid timestamp")
if abs(time.time() - int(timestamp)) > 300:
raise ValueError("expired signature")
signed = timestamp.encode("ascii") + b"." + raw_body
valid = False
for secret in secrets:
expected = hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).hexdigest()
for signature in signatures:
valid |= hmac.compare_digest(expected, signature)
if not valid:
raise ValueError("invalid signature")
event = json.loads(raw_body)
if event["id"] != event_id_header or event["version"] != 1:
raise ValueError("event mismatch")
return event # Validate against the published schema before accepting it.
Public test vector: secret example-only; timestamp 1791536400; body bytes {"id":"test"}
with no newline. The digest is
03ba7b3f1fdfcd42bf500da12b56741339d5c0cf355a394cff885e2517b8a255.
The small body demonstrates signing only; it is not a complete event document.
Use anectico event-destinations rotate-secret <id> --confirm-token <approved-token> or the confirmed MCP action
rotate_agent_destination_secret. The new secret is shown once. For one hour Anectico sends
two v1 values: one with the new secret and one with the previous secret. A receiver accepts
either. Install the new secret before removing the old one. Another rotation is refused while
the overlap is active.
Retries, stops, and limits
Delivery is at least once. A lost response can cause the same event to arrive again. Ordering is not guaranteed. Reply with any 2xx status to accept a request. Redirects are failures and are never followed. Response bodies are not kept.
A send times out after 10 seconds. Each attempt has a 20-second work budget. DNS validation also happens on each attempt and the connection pins the validated address. Private, loopback, link-local, and other forbidden addresses are refused. A destination reserves at most one send per second. Bodies are at most 8 KiB. A key can own 5 destinations and a project can have 20. There are at most 4 base subscriptions per destination. Attempt reads default to 50 records, allow at most 100 per page, and refuse cursor offsets above 10,000. The final allowed page can contain records 10,001 to 10,100. This is a navigation bound, not a total. The worker claims at most six deliveries per pass, with at most three due rows per workspace. Both event and ordinary-notification retries share eight concurrent sends per process, with at most one in flight per workspace. A slow receiver cannot fill all eight places. These limits are bounds, not measured activity totals.
Events have no delivery-order guarantee. Independent workspaces run in parallel; sends to a workspace are sequential within each process. Different replicas still serialize sends to a destination. Receivers must deduplicate event IDs and use the event timestamps when order matters.
Transport and HTTP failures retry with exponential backoff: a 30-second starting delay,
doubled per failed attempt up to one hour, then jittered to 50–100% of that delay. There are
at most 8 reserved attempts. A document older than 24 hours from occurred_at is dead-lettered.
Five consecutive failed sends disable the destination. A successful send resets that count.
An address refusal is terminal. The owner can read the reason and explicitly resume a disabled
destination, which resets the failure count.
Before every attempt Anectico checks the project, the current owner key, its recorded scope ceiling, and the required subject read scope. Revoked, frozen, expired, suspended, or contained keys stop deliveries. A deleted project, removed scope or subscription, paused destination, stops the delivery with a recorded reason. These verified stops are terminal and reserve no HTTP attempt. Making the key valid or resuming the destination does not replay stopped events. An unavailable authority service, a timed-out check, a changed authorization reference or unavailable signing material instead defers the same event for another check. These checks consume no HTTP attempt and do not increase the failure count. Rechecks wait 30 seconds, bounded by the original 24-hour age limit; repeated outages do not extend that lifetime. A queued event that has not reached a stop may still send under the normal retry rules while it is less than 24 hours old. An already in-flight request cannot be recalled; freezes prevent further attempts after the next authority check.
Use anectico event-destinations attempts <id> or list_agent_delivery_attempts through
execute_read_action to read recorded times, outcome classes, HTTP status when a response
was received, duration, and reasons. unknown means an attempt was reserved but its outcome
was not recorded, for example after a process interruption. It is neither success nor failure.
Pre-send deferrals and permanent refusals add no HTTP attempt record. An empty attempt page
therefore proves neither delivery nor a terminal stop. A later check cannot rewrite an earlier
unknown HTTP outcome. The result describes the page's population and time window; it does
not claim a total.
Read delivery receipts
Keep the source observation, admitted delivery, observed HTTP response and your receiver's verified durable event-ID record separate. Match the external occurrence ID across the last three. Read source evidence using its returned subject ID and your current permissions; that subject ID is not the delivery occurrence ID. A receiver may have accepted and saved a request even when the sending side records an unknown outcome. Retrying that occurrence must not create another unit of receiver work. None of these records proves your agent started or completed a job.
Read pending work before its first attempt, or a final acceptance or refusal:
anectico event-destinations deliveries <destination-id> --event <external-event-id> --limit 100
anectico event-destinations deliveries <destination-id> --status terminal --limit 50
anectico event-destinations delivery <destination-id> <delivery-id>
The MCP actions are list_agent_deliveries and get_agent_delivery through
execute_read_action. Supply project_id and destination id; list accepts event_id,
status, limit and cursor, and get requires delivery_id. Reads need
event_destinations:read, plus mcp:read for MCP. Only the destination's key or an interactive
workspace owner or admin with that scope can read it. An OAuth delegation does not own it.
| Receipt state | What was recorded |
|---|---|
queued |
Pending, with no reserved HTTP attempt. |
sending |
A sender holds a lease; its current attempt can still be unknown. |
retrying |
A retry or transient pre-send check is deferred until retry_at. |
http_accepted |
A 2xx response was observed after sending. |
terminal |
A permanent refusal or stop; terminal_reason explains it. |
The wire enum uses the prefix AGENT_DELIVERY_RECEIPT_STATE_ and the uppercase state name.
reserved_http_count is the actual attempt count, from zero to eight. Optional
latest_attempt_outcome can be unknown; absent HTTP status and absent clocks remain absent.
A transport failure or timeout does not establish whether the receiver accepted a request.
Pre-send deferral has a closed deferred_reason, no new attempt and no terminal clock.
A later permanent refusal preserves any earlier unknown attempt.
Receipt clocks distinguish original occurrence, creation, last reservation, observed
http_accepted_at or terminal_at, and durable updated_at. A lost response has no app-observed
acceptance or response-completion clock even if your receiver saved the event. Receipts contain
no send payload, endpoint, secret or receiver body. Keep reading the separate attempts API for
individual HTTP status and timing. HTTP acceptance does not prove signature verification,
receiver deduplication or that your agent performed work.
Pages default to 50 and allow at most 100. Use --cursor <next_cursor> with the same project,
destination, event and status filters, limit and credential scope set. Cursors expire after
24 hours; malformed or changed continuations are refused. Rows are newest first, with a unique
tie break. page_population is the number returned, never a lifetime total. Concurrent state
changes, expiry, deletion and erasure can shorten later pages. The result states
retention_seconds, oldest_readable_final_at and limitations. There is no proof page for a
receipt and reading one runs no new source measurement.
Backlog and receipt retention
A project admits at most 5000 pending agent deliveries, including retries, deferred checks
and leased sends. Ordinary notifications use their own delivery path. Every pending admission
reserves room for its eventual final receipt. When pending work is full, a durable
capacity_exceeded receipt records zero attempts and no send payload. Its event will not send
later when capacity becomes available, and a duplicate occurrence creates no new fan-out.
A separate 100000 reserved-record and 128 MiB reservation budget per project bounds retained final metadata, future pending metadata, attempts, private references and occurrence claims. Each delivery reserves ten records and 16 KiB; each occurrence claim and fixed project overhead reserve one record and 1 KiB. These are storage safety bounds, not prices or a throughput guarantee. The maximum pending payload alone is roughly 39 MiB before overhead.
If the metadata budget is also full, the whole new source occurrence or diagnostic test is
backpressured with retryable agent_metadata_capacity_exceeded. No new receipt or partial
fan-out exists for that attempt. Retrying does not extend the original occurrence age.
A source already older than 24 hours is refused before allocating any claim or delivery.
Accepted, stopped and capacity-refused final receipts remain readable for seven days after
the observed final decision. Send payload and retry eligibility are cleared when work becomes
final. Aged pending work becomes maximum_age_exceeded without inventing an HTTP attempt;
cleanup progresses even for an unavailable or paused destination. Bounded cleanup removes
expired final receipts and their attempts. Occurrence claims expire only after old source
re-admission is impossible; pruning a receipt cannot make an old event send again. Cleanup
cadence is not a completion-time guarantee. Deletion and erasure can remove records sooner,
and receipt retention never extends the lifetime of underlying evidence.
Test and manage
Use anectico event-destinations test <id> --confirm-token <approved-token> or the confirmed test_agent_destination
action to request a signed type: "test" document. The response names its event and delivery
receipt and reports admitted_pending or capacity_refused_terminal. A capacity refusal is
terminal and is never sent. Exhausted receipt storage instead returns retryable backpressure
with no new receipt. An admitted test uses the same checks and retry path and does not indicate
an operational problem. Read its receipt and attempts; pending admission alone proves no delivery.
anectico event-destinations list, get <id>, and update <id> --file subscriptions.json
inspect or replace subscriptions. Preview pause <id>, resume <id> or delete <id>, then
repeat the unchanged command with its approved --confirm-token to control delivery. Deleting a destination removes its queued deliveries
and retained receipts and attempt history. Project or workspace deletion removes these records too. Person erasure removes linked pending, accepted, unknown and capacity-refused receipts, private references and replay claims under the shared privacy fence. A shared destination survives erasure. The small public document alone does not establish privacy completion.
Current permissions and the source's privacy and lifetime rules continue to govern opaque references.
Person-linked alert references remain subject to person erasure and export even when the event document omits the person identifier.
The read actions are list_agent_destinations, get_agent_destination, and
list_agent_deliveries, get_agent_delivery, and list_agent_delivery_attempts through
execute_read_action. The other confirmed write actions
are update_agent_destination, pause_agent_destination, resume_agent_destination, and
delete_agent_destination; discover their correct write gateway with list_write_actions.
Ask your agent
Use create_agent_destination through execute_external_action, then
list_agent_delivery_attempts through execute_read_action. The CLI path is
anectico event-destinations create --file destination.json --idempotency-key <stable-key> and
anectico event-destinations attempts <id>.
“When an incident opens, deliver it to my endpoint at this URL so my system can wake you. Include resolutions. Show me the project, owner key and subscriptions before creating it. After I approve, help me store the signing secret securely and send a test event. Check the recorded outcome.”
“Pause this key's event destination, and show me why its last attempt stopped.”
Use the anectico-alerts-setup skill for this optional setup step. Deliver to an endpoint only
when the person asks for it. The foundation anectico-cli skill helps find this capability.
Destination edits, pause, resume, rotation, deletion and tests all show complete
current and proposed state through MCP and the native commands. After approval,
repeat unchanged arguments with --confirm-token; native commands use that
server token. Edits and deletion refuse a destination changed since approval.
Each separately confirmed test requests a new diagnostic occurrence; its admission result states whether work was queued or capacity-refused.
Metric-watch event meanings
Metric event subscriptions and dedicated event reads are available for the closed
source facts metric_watch.breached, metric_watch.recovered and
metric_watch.source_lost. Breach and recovery refer to the original measured transition,
not the watch's health when a message arrives. Source loss means exact saved-source removal
or explicit unavailable current coverage confirmed by a different observation after two
configured periods. It does not mean a product recovered, capture stopped everywhere or an
agent investigated anything.
Every watch definition requires source_loss_grace_periods: 2. Unknown coverage, low samples,
immaturity, a zero baseline, missing or expired evidence, permission loss and one timeout do
not by themselves prove source loss. Source restoration rearms future loss; measured recovery
still needs its own preceding breach and continuous confirmation. Silenced breach facts stay
suppressed after unmute, while source-loss facts have independent subscription meaning.
The signed fact contains only opaque references and closed states, without measurement
values or a proof URL. Reading evidence requires current source permissions and the exact
original result must still be readable. See metric watches.
Release observation follow-up
Follow release.first_seen with get_release_by_id through execute_read_action, or
anectico releases get --id <catalog-release-UUID> --project <project-UUID>. This read needs
releases:read and mcp:read for MCP, and creates no subscription. See
release observations for qualifying evidence,
original occurrence clocks, baseline behavior and capture limits. Release events have no proof link.
Person-linked privacy and archives
Opaque event and alert references can be person-linked. Follow person erasure for linked copy removal and external-delivery limits, and person export for the minimal subject metadata and independent selection boundaries in an archive.
Configured person breach evidence
Subscribe to person_watch.breached for
supported explicit-person watches.
The alert guide owns the threshold population, units and measured confirmation rules. The
signed event identifies the original breach; it does not certify current health or complete capture.
Use the watch-event follow-up below to read its retained original evidence under current authority.
Watch filters and authorized follow-up
Use optional watch_ids on metric_watch.breached, metric_watch.source_lost or
person_watch.breached: at most twenty unique canonical watch UUIDs per subscription.
Metric recovery inherits its breach filter. Other bases reject filters; recovered types
are not independent bases. Preview and confirmed edits include the exact filters.
Filters must belong to the selected project and supported shape, under the presenting
key's current source permissions and policy. Omitting a filter covers currently authorized
watches in that project; it does not grant future source access. Adding scopes to a key
cannot widen a destination's recorded permission ceiling.
Read a pushed watch reference with anectico alerts rules event <subject-id> or
get_watch_event through execute_read_action. Use subject.id, the owning occurrence UUID;
id is the external delivery occurrence used by receipt reads. They are distinct.
Page with anectico alerts rules events <watch-id> --limit 50 --cursor <next-cursor> or
list_watch_events. Select a project, keep the same scope and limit, and follow the returned
cursor. Pages disclose returned population and retention, without a lifetime total.
All reads require alerts:rules:read. Metric measurements also require analytics:read,
persons:read, insights:read and the recorded source permissions. Person detail requires
alerts:read, persons:read, the original signal permission and any inherited content
permissions and policy. MCP additionally needs mcp:read. A missing permission refuses
without disclosing evidence; unavailable or withdrawn measurements are never replaced with
zero or a new query. Source text is untrusted data. A person proof link is returned only
after the authorized read; release and watch pushes have no proof page.
Historical revision, state, transition sequence and occurrence time remain original. Current measured, source and control states are reported separately. Event references are retained until their watch or project is deleted or person erasure removes them. Measurement usability is bounded by current source history, publication expiry and privacy withdrawal. A source-loss fact has no completed measurement. Delivery and read authorization can defer when no retained source evidence can establish current policy. Neither arrival order nor a retained receipt establishes current health, complete capture or customer-agent execution.