Front Door & Webhooks (Intake)
Checks incoming requests and webhooks at the door, blocks duplicates, and turns them into tasks.
A webhook retried 3 times spawns 3 duplicate agents working on the exact same customer order.
Duplicate event IDs are ignored automatically, spoofed callers are rejected, and raw payloads are marked untrusted.
What It Does (In Plain English)
Intake is the front receptionist for your workspace. It verifies that incoming webhooks come from a registered trusted source, ignores duplicate redeliveries forever, rejects out-of-order stale updates, and lets you configure automatic event triggers that safely treat raw external data as untrusted.
Real-World Example
- 1Stripe sends an
invoice.payment_failedwebhook to/webhooks/stripe. - 2Intake verifies the HMAC signature and checks if this event ID was already seen.
- 3A duplicate delivery 10 seconds later is ignored cleanly.
- 4A new task is created with safe envelope fields and the raw payload marked untrusted.
When Should You Turn It On?
Included at Level 1 (review) in every standard workspace.
Safety level note: Level 1 · Review — Read-only. Can inspect and answer, never changes outside systems.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-intake@0.1.0"
kitConfigs:
intake:
requireTrustedProducer: trueKits It Works With
Technical Details & Configuration Options (5 settings)
| Package | @neusym/kit-intake |
|---|---|
| Provides Ports | intake@1 |
| Requires Ports | tasks@1 |
| Optional Ports | None |
| Publishes Events | intake.acceptedintake.rejectedexternal.event.received |
| Owned DB Collections | intake_recordstrigger_stateintake_rate_bucketsintake_intent_heads |
Configuration Options (kitConfigs.intake)
| Setting | Type | Default | Description |
|---|---|---|---|
requireTrustedProducer | boolean | true | — |
trustedContextProducers | array | [] | — |
maxEventClockSkewSeconds | integer | 300 | — |
producerRateLimit | object | — | — |
triggers | array | [] | Event triggers: each rule admits a task when a live event matching `on` / `onAny` (exact, `<prefix>.*`, or `*`) and symbolic `where` predicates is committed. The prompt may name only envelope fields ({{type}}, {{id}}, {{source}}, {{runId}}, {{taskId}}, {{actorId}}). |