ADR 0014 — Panel Handler Deviations from the Siblings
Status: Accepted (★ small deviations from webhooks’ createFetchHandler, collected in one place)
Context
Section titled “Context”The panel handler, routes, auth, authorization and adapters are ported from @xtandard/webhooks and
keep its option names and shapes. A few behaviours differ because the audit domain differs.
Decision
Section titled “Decision”- Readonly answers
423 Locked(webhooks:403). A readonly audit panel still serves reads and exports;423tells clients the resource is frozen, not that they lack permission. - The handler result has
streamsandclose()in place of webhooks’dispatcher. WithstreamRunner: falsethe runner is still created (not started) whenstreamsare configured, so a split deployment’s panel shows lag and can retry;close()stops the runner and the maintenance timer. maintenance: { interval } | false(new): the panel runscore.prune()periodically (default1h, timerunrefed) when the core has a retention policy and the panel is not readonly.- Streaming responses everywhere: the Express adapter and the CLI’s Node bridge stream bodies (webhooks buffers), because exports can be large.
- Roles preset is
admin/auditor/viewer(webhooks: admin / editor / viewer): an auditor reads, exports and verifies but cannot erase, prune or edit the catalog. - No public catalog route (webhooks’
/api/event-types.json); the public routes are the OpenAPI document and the JWKS (/api/integrity/keys, CORS*, cacheable). - CLI drivers and sinks load by subpath (
STORAGE_DRIVER,AUDIT_STREAMSJSON), resolved lazily so a missing optional peer is an actionable runtime error.
Consequences
Section titled “Consequences”- Operators reading the webhooks docs find the same shape with these documented differences (docs/ADAPTERS.md, docs/DEPLOYMENT.md, docs/HTTP_API.md).