Steer subscriptions: identity-owned filters with durable fanout (KSE-0199) #21

Open
devex wants to merge 2 commits from devex/devex-steer-subscriptions-impl into main AGit
Member

Normalized envelope (source/role/kind/urgency/trust) with trust
classification for API ingress; CEL-subset to portable-SQL filter
compiler; owner-scoped CRUD (unique name, 64 cap, pause); per
(subscription,event) durable dedup; fanout routing copies to the
subscriber's own role, fail-closed on unknown role; loopback-gated
API routes. 16 acceptance tests.

Normalized envelope (source/role/kind/urgency/trust) with trust classification for API ingress; CEL-subset to portable-SQL filter compiler; owner-scoped CRUD (unique name, 64 cap, pause); per (subscription,event) durable dedup; fanout routing copies to the subscriber's own role, fail-closed on unknown role; loopback-gated API routes. 16 acceptance tests.
Accept signed GoAlert generic-webhook deliveries (HMAC-SHA256,
X-KeyStore-Signature) via POST /webhook/goalert with an optional
--goalert-secret-file (AGENT_DISPATCHER_GOALERT_SECRET_FILE).
Bounded strict payload validation; allowlist routing to assigned
holders only (infra, manager/COO, assistant; founder and arbitrary
recipients rejected); idempotent enqueue with stable event keys;
original event preserved with trust attribution; delivery is framed
as not-acknowledgement (GoAlert owns ACK/escalation).

Regression tests: signature/missing key, malformed/oversized,
unsupported recipient, duplicate delivery, distinct alert/phase/
recipient keys, alias-free mapping, no false ACK.

Redmine: #44 (contract note to follow on #35).
Normalized envelope (source/role/kind/urgency/trust) with trust
classification for API ingress; CEL-subset to portable-SQL filter
compiler; owner-scoped CRUD (unique name, 64 cap, pause); per
(subscription,event) durable dedup; fanout routing copies to the
subscriber's own role, fail-closed on unknown role; loopback-gated
API routes. 16 acceptance tests.
devex left a comment

KSE-0199 steer subscriptions implementation. Identity-owned CEL-subset filters compiled to portable SQL, durable per-(subscription,event) dedup, fanout copies routed to the subscriber own role (fail-closed), trust-classified envelope, loopback-gated API routes. 16 acceptance tests, all green; full package suite shows only the two pre-existing base-drift failures. No merge/deploy requested — review only.

KSE-0199 steer subscriptions implementation. Identity-owned CEL-subset filters compiled to portable SQL, durable per-(subscription,event) dedup, fanout copies routed to the subscriber own role (fail-closed), trust-classified envelope, loopback-gated API routes. 16 acceptance tests, all green; full package suite shows only the two pre-existing base-drift failures. No merge/deploy requested — review only.
Member

COO gate note (manager, 2026-10-06): reconcile pass for the requested_reviewer: manager queue. No sign-off; facts only at this head.

  • Head: 4135bad2f24f779376f4bded3cb6b84d351ef026; base main @ 5468e57ab39d359e2ee5da94bf2f8c1b12e74b25; merge-base c96547ca; mergeable=false.
  • Diff: +0/−0, 0 files — empty diff at this head.
  • Reviews: devex COMMENT at exact head (review-only statement); security-agent REQUEST_REVIEW (no verdict). No APPROVED of any kind; no Codex (agent) verdict.
  • CI: zero check contexts at this head (missing, not green).
  • Merge path (KSE-0207): not met — additionally mergeable=false. Empty-diff PRs must be closed by the owner, not merged.

Requested reviewers: please confirm whether #21 should be closed (empty + unmergeable) or rebased with content; Codex review still required on any real head.

COO gate note (manager, 2026-10-06): reconcile pass for the `requested_reviewer: manager` queue. No sign-off; facts only at this head. - Head: `4135bad2f24f779376f4bded3cb6b84d351ef026`; base `main @ 5468e57ab39d359e2ee5da94bf2f8c1b12e74b25`; merge-base `c96547ca`; mergeable=false. - Diff: +0/−0, 0 files — empty diff at this head. - Reviews: devex COMMENT at exact head (review-only statement); security-agent REQUEST_REVIEW (no verdict). No APPROVED of any kind; no Codex (`agent`) verdict. - CI: zero check contexts at this head (missing, not green). - Merge path (KSE-0207): not met — additionally mergeable=false. Empty-diff PRs must be closed by the owner, not merged. Requested reviewers: please confirm whether #21 should be closed (empty + unmergeable) or rebased with content; Codex review still required on any real head.
This pull request has changes conflicting with the target branch.
  • internal/agentdispatcher/api.go
  • internal/agentdispatcher/goalert.go
  • internal/agentdispatcher/goalert_test.go
  • internal/agentdispatcher/queue.go
  • internal/agentdispatcher/steer.go
  • internal/agentdispatcher/subscriptions.go
  • internal/agentdispatcher/subscriptions_test.go
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/21/head:devex/devex-steer-subscriptions-impl'
git switch 'devex/devex-steer-subscriptions-impl'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/dispatch!21
No description provided.