Repository navigation
Description
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D1 (owner, 2026-10-17): "chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds the roadmap Service's deployment only; Service code is built, tested offline and merged at 0 replicas (replicas: 0, its test, and the no-scale/no-restart/no-secret-push rules stay)." This item is built, tested offline and merged while the Service stays at 0 replicas, once the block-scope docs item lands (see Dependencies). Only its post-merge live checks wait for the Service to run again.
- Decision D2 (owner, 2026-10-17): "in-cluster jobs act as an organization-owned GitHub App installation (organization takes the owner's current login after the personal account is renamed); appeal the suspension in parallel." The live checks wait for that identity or for a reinstatement.
- Decision D3 (owner, 2026-10-17): "feat(service): one webhook router verifies each provider its own way, parses a typed payload and delivers each event only to the consumers subscribed to it #1386 and feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 build on today's in-process lanes, with schedules left to feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's CronWorkflows; feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 3 later swaps the delivery seam." For this item, this replaces the 2026-10-09 comments about consumer schedules and Workflow-submit delivery.
- Decision D4 (owner, 2026-10-17): "feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 is re-scoped to step 1 now [...]; steps 2-6 are filed after its go/no-go." The seam swap therefore waits for a step 3 item that has not been filed yet.
- Decision D5 (owner, 2026-10-17): "Argo CD records deployments with its own Deployments-only GitHub App, with no Service hop; opt-in for GitHub-sourced single-source Applications; the App's owner follows D2." Argo CD gets no provider on this router, and feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 adds nothing to it.
- Decision D11 (owner, 2026-10-17): "feat(rag): Index managed repos, exclude private from unscoped search #1389 is split into a CLI ingestion pass now and an Argo cluster lane later (new item)." The first push consumer is the cluster lane, not the CLI pass.
- Push routing moves to feat(rag): Index managed repos, exclude private from unscoped search #1389's cluster lane. Reason: that lane is its first production user, and the receiver design ships no code that nothing calls. The lane's draft makes a push-triggered run optional, after this item and feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's router step.
- This item does not build workers keyed by consumer and subject, the shared-worker mode, or a
consumerlabel on the worker series. Reason: fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532's lanes already label those series{repo, lane}(service.py:144), and feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's cleanup step deletesRepoWorker. They go to feat(rag): Index managed repos, exclude private from unscoped search #1389's cluster lane, the first consumer that needs its own worker, because under D5 feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 has no Service consumer. That lane's draft runs its consumer as a WorkflowTemplate under onerag-ingestmutex, so its own worker comes from Argo Workflows, not from aRepoWorker. - The
AuthorizationTokenverifier comes with feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 (schemeToken). Reason: D5 leaves feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 as its only user. - Consumers that take validated payloads come with feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533's Service-dispatch half. Reason: once D5 removed feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387's
deploymentsconsumer, feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 became the first consumer that reads a payload. - The ADR takes the next free number in
docs/adr/at merge time, and no number is named now. Reason: 0005 is taken (docs/adr/0005-review-findings-come-from-tools-not-models.md), and feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 adds an ADR too (which feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's body says also records its engine). - Priority: P0 under the owner's blocker rule, because feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 (P0) step 3 swaps this item's delivery seam (D3). chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 also lists "a full round for every webhook delivery" among the suspension's likely causes, so this item lands before any restart. A person sets the label.
Scope
- This item delivers the provider registry with
POST /webhooks/github, theHmacSha256verifier, typed GitHub payloads, consumer subscriptions, the per-delivery log record and counter labels, the Ingress pin, the ADR and the README line. - It has one consumer,
roadmap. Its delivery target is today's seam,ServiceManager.enqueue_trigger(service.py:370-376), which enqueues on the repository's release-lane and model-laneRepoWorker. The router calls nothing else in the workers, so feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 3 can swap that seam for a Workflow submit without touching verification, parsing, rules, logging or counting. - The poll tick keeps today's
_tick_loopand_poll(service.py:350-368). No consumer declares a schedule here (D3). - Every
pushgets 200no_subscriberand runs nothing, like every other event without a subscriber. - Why the cost is now higher than the body says: each accepted delivery starts a round in both lanes (
service.py:370-376), and any non-empty batch reads changes (roadmap/run.py:946-954). - Moved elsewhere:
- default-branch push routing, the
pushmodel (ref,deleted) andrepository.default_branchgo to feat(rag): Index managed repos, exclude private from unscoped search #1389's cluster lane (D11; drafted, not filed); - a consumer's own worker, the shared-worker mode and a
consumerlabel go to the same cluster lane, whose draft runs them as an Argo WorkflowTemplate under onerag-ingestmutex rather than as aRepoWorker; - the
AuthorizationTokenverifier goes to feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395; - consumers that take validated payloads go to feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533's Service-dispatch half;
- consumer schedules go to feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's CronWorkflows (D3);
- Workflow-submit delivery and deleting
DeliveryLRUCachego to feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 3, filed after step 1's go/no-go (D4).
- default-branch push routing, the
Delivery
- One pull request, size M, with
Fixes #1386. It is smaller than the body's design: no push routing, no new worker mode and no second verifier.
Acceptance criteria
These body criteria stand unchanged:
- "One route per declared provider". The strict-routes test is now at
tests/test_server_service.py:583. - "A provider is a declaration, not a copy of the route".
- "An HMAC verifier from the standard library". Its
AuthorizationTokenbullet now points to feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395. - "GitHub's own rules stay with the GitHub provider".
- "Exposure is pinned".
uv run devops cipasses within its 5-minute budget.- The changelog fragment.
The criteria below replace the body's criteria of the same name.
- Receiver design table. Each extension lands with its first production user:
| Extension | Added by |
|---|---|
HmacSha256, application/json bodies, delivery through ServiceManager.enqueue_trigger to today's lane workers |
this item |
AuthorizationToken(scheme), exactly as the body describes it (get_authorization_scheme_param, scheme match, secrets.compare_digest, 401 for a missing header, another scheme or a wrong token, 401 for every request plus one start-up warning when no token is configured) |
#1395 (Token) |
| consumers that take validated payloads | #1533's Service-dispatch half |
| default-branch push routing; a consumer's own worker or a shared worker | #1389's cluster lane (an Argo WorkflowTemplate under a mutex; its push trigger after #1535's router step) |
per-provider content types (application/x-www-form-urlencoded) and the synchronous responder |
#1395 |
delivery as a Workflow submit; DeliveryLRUCache deleted |
#1535 step 3 |
- Typed payloads.
- GitHub payloads validate into pydantic v2 models in
src/devops_cli/models/webhooks.py. Every event validates into a base model, andissues,pull_request,milestoneandreleasehave their own. - The models use
extra="ignore"and declare onlyaction,repository.full_nameandsender.login. - A body that fails validation gets 400 with the failing field's path, capped at 256 characters (AGENTS.md:36).
- No
.geton a webhook payload remains undersrc/devops_cli/server/(today atwebhooks.py:144-145,:173-174and:231). The WebSocket request read atsrc/devops_cli/server/routes/stream.py:97is not a webhook payload and is outside this item.
- GitHub payloads validate into pydantic v2 models in
- Consumers subscribe.
- A consumer is a declaration with a name, the provider events it takes (optionally narrowed by a predicate on the typed payload), whether it takes the poll tick, and its delivery target.
- The roadmap consumer's target is
ServiceManager.enqueue_trigger. RepoWorker, its coalescing and drain,RoundPauseand the{repo, lane}series are unchanged, and none gains aconsumerlabel.
- The roadmap consumer takes only what its jobs read.
- It takes
issues,pull_request,milestoneandrelease, plus the poll tick, and each reaches both lanes as today. - Its
TriggerBatchkeys stay("webhook", <event>, <action>)and("poll", "", ""), so the intake, closure and reprioritize batch keys (constants.py:2289-2300) still match. - The machine-account filter (
webhooks.py:172-176) becomes this consumer's predicate.
- It takes
- Unsubscribed events. Every
push,issue_commentandcreate, and any other event no consumer takes, gets 200{"status": "no_subscriber"}and enqueues nothing on either lane. - Each delivery is logged and counted.
- Every request that reaches verification writes one INFO record with
provider,event,action,delivery,repoandoutcome. It never includes the body, the signature or an Authorization header value. devops_cli_service_webhook_deliveries_totalgainsproviderandeventlabels and the outcomeno_subscriber. Events the models don't declare count asother.CONTEXT_LOG_KEYS(json_logs.py:13-23) gains onlyprovider. Theconsumerkey comes with feat(rag): Index managed repos, exclude private from unscoped search #1389's cluster lane.
- Every request that reaches verification writes one INFO record with
- The decision is recorded as an ADR under the next free number in
docs/adr/at merge time, with every link updated.- It says everything the body lists.
- It also says that delivery to a consumer goes through one seam: today the lane workers, which feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 3 replaces with Workflow submits.
- It also says that Argo CD records deployments through its own GitHub App and has no provider (D5).
- The setup step matches.
k8s/README.md:372(step 8) already lists Issues, Pull requests, Milestones and Releases. Its last sentence changes to say that events without a subscriber, pushes included, are acknowledged and start no round, so a hook that sends every event or only pushes is harmless. feat(rag): Index managed repos, exclude private from unscoped search #1389's cluster lane adds Pushes to the step if it subscribes to them. - Tests, in
tests/test_server_service.py, through the app and the workers' public methods:- every existing case passes, changed only where it names the route or the machine-account rule's new place;
- an undeclared provider gets 404;
- an
issue_comment, acreateand a default-branchpusheach getno_subscriberand enqueue nothing on either lane's worker; - an
issuesdelivery reaches both lanes' workers as("webhook", "issues", <action>), and one sent by the machine account reaches neither; - a consumer declared in the test, with a recording delivery target, receives only the events it subscribes to;
- a payload without
repository.full_namegets 400 naming the field, capped at 256 characters; - one delivery writes one record with the six keys and no body, signature or Authorization value;
- no test reaches the network, each call phase stays under 1 s (
--durations=0), and no new test patches a devops-cli name (test(cli): tests double only process edges and mirror the source tree #1307).
- Pending a person, once the Service runs again (after chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562's revert, which needs D2's App identity or a reinstatement): the body's redelivery checks. That is one
issuesand oneissue_commentdelivery, Loki holding anacceptedand ano_subscriberrecord, and the counter counting each under its event.
Current references (checked at 3dd7fa6)
src/devops_cli/server/routes/webhooks.py::35-50: the HMAC check;:52-69:DeliveryLRUCache;:72-90: the body cap;:93-112: content type and headers;:115-159: the per-repository secret loop and parse;:144-145,:173-174and:231: the.getreads on the payload;:172-176: the machine-account filter;:184-247: the router, with its only route at:188and the enqueue call at:232-237.
src/devops_cli/server/service.py::45-53:TriggerBatch;:130-307:RepoWorker, one per repository and lane, with labels at:144, the thread name at:161and_execute_batchat:235-280;:350-368: the tick and poll;:370-376:enqueue_triggeron every lane;:418-433: the secrets fallback, withexcept Exception:at:431;:436-444:_warn_missing_secrets.
src/devops_cli/commands/serve.py:62-81: the command's secrets parser.src/devops_cli/roadmap/run.py::657-704: the lane rows andDEFAULT_DUE_TABLE;:946-954: any non-empty batch reads changes;:1035-1042:SERVICE_JOBS.
src/devops_cli/config/constants.py::1053: the body cap;:1058: the deliveries counter;:1070-1072: the lanes;:2289-2300: the batch keys, withmilestone/closedandrelease/publishedalready included.
src/devops_cli/server/json_logs.py:13-23:CONTEXT_LOG_KEYS.tests/test_server_service.py:583: the strict-routes test.tests/test_k8s_roadmap_service.py:158andk8s/devops/roadmap-service/ingress.yaml:17: the public path.k8s/devops/roadmap-service/networkpolicy.yaml:26-33: the monitoring namespace reaches port 8000.k8s/devops/roadmap-service/deployment.yaml:10-12:replicas: 0.k8s/README.md:363: the suspension note.k8s/README.md:372: the webhook step.AGENTS.md:147-151: the suspension rules.
Dependencies and order
- Policy: the docs item that writes D1 into
AGENTS.md:147-151andk8s/README.md:363is drafted but not filed. The plan makes it P0 and stages it for v0.2.38. Until it merges,AGENTS.md:151keeps this item blocked, sostatus/blockedstays. A person then removes the label and comments that only the live checks wait. - chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 has been closed (completed) since 2026-10-11, and
replicas: 0stays. - fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532 closed in v0.2.33. Its lanes are this item's delivery seam.
- test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334 is open, P2, with no milestone. Whichever of test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334 and this item lands second uses the other's secrets parser, as in the body's key question.
- fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 is open, labelled
status/blocked, with no milestone. It changesRepoWorker._execute_batch(service.py:235-280), which this item leaves unchanged, and both add cases totests/test_server_service.py, so the second of the two to land rebases. - Release: v0.2.38. Decision D16 (owner, 2026-10-17): "v0.2.38 may go over the cap of 16 for now; unblocking work goes first."
- Blocks, through native links: feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533, and feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 (which also waits on feat(k8s): mattermost team edition runs under argo cd from the mattermost operator, on a cloudnativepg database and a protected volume, at https://mattermost.<domain> through the tunnel #1391, in v0.2.38). feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533's body says it is built after this item delivers each event's typed payload to its consumers; under this plan, feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533's Service-dispatch half adds that delivery itself, on this item's models and router.
- The native link from feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 (added 2026-10-17) no longer holds under D5, and a person removes it. The re-scoped feat(rag): Index managed repos, exclude private from unscoped search #1389 CLI pass (D11) no longer depends on this item.
- Not yet filed: feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 3, which depends on this item once it is filed, and feat(rag): Index managed repos, exclude private from unscoped search #1389's cluster lane, whose draft lists this item as related only; its optional push trigger waits for this item and feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's router step.
Problem
The roadmap Service (devops serve --service, deployment k8s/devops/roadmap-service) has one webhook route, built for one sender and one consumer. Requests from 2026-10-08 need more than that: #1389 re-ingests each managed repository's default branch into RAG when it changes, and #1395 answers a Mattermost slash command inside the cluster. #1387 adds Argo CD as a sender.
One sender, one consumer
- The route is GitHub's alone. It is
POST /webhooks/github(src/devops_cli/server/routes/webhooks.py:188-245).- Every request needs
X-GitHub-EventandX-GitHub-Delivery(:93-112) and asha256=HMAC (:35-50). - The HMAC is checked against each managed repository's secret in turn (
:124-130).
- Every request needs
- The payload is never typed. It stays a
dict[str, Any](:133-142).repository.full_name,sender.loginandactionare read with.getchains (:144-145,:173-174,:231).- So a renamed or missing field becomes an empty string or a 401, never a validation error.
- Every event has one destination. Every accepted delivery goes to
ServiceManager.enqueue_trigger(src/devops_cli/server/service.py:279-285), into the repository's oneRepoWorker(:243-245). That worker's only job isservice_job(src/devops_cli/commands/serve.py:141-149). - A worker can carry neither a payload nor a second consumer.
RepoWorker.enqueuetakes only(source, event, action)(service.py:93-105), andTriggerBatchholds only those counts and two timestamps (:42-50). No payload reaches a job.- The thread name, the span name, the queue-depth and job-start gauges and the two job counters carry the repository alone (
:88,:103,:150,:159,:164,:190,:194). A second worker for the same repository would overwrite the first one's gauges and merge its counts.
Events no job reads still cost a roadmap round
- The hooks send more than the README lists. Step 9 of the Roadmap service setup (
k8s/README.md:354) asks for Issues, Pull requests and Milestones. On 2026-10-08, of the 8 repositories inservice.repos, 3 hooks (this repository's included) sent every event (*) and 5 sent onlypush. None used the README's set. - Each accepted delivery joins a roadmap round. This repository's last 100 deliveries (from 00:35 UTC on 2026-10-08) were 65
issues, 32issue_comment, 1create, 1milestoneand 1push. 90 were accepted and 10 ignored. Every push to the 5 push-only repositories is accepted too. - A round reads GitHub whatever the event.
service_jobopens the roadmap (src/devops_cli/roadmap/run.py:870), and any non-empty batch reads changes (:820). Awebhookkey then skips the idle return (:821-823), so the current release is read (:827-828) and every job's due check runs.- Yet no job is due on
push,issue_commentorcreate. The batch keys name onlyissuesandpull_requestevents (src/devops_cli/config/constants.py:2455-2461), and reprioritize also matchesmilestone(run.py:596-610). - fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 measured 940 webhook triggers in one hour for this repository. Triggers coalesce while a round runs, so there are fewer rounds than deliveries, but each one is a full round of reads.
- Yet no job is due on
No record of what arrived
- Only uvicorn's access line is logged. It holds the path and the status code (
uvicorn.access, routed to the JSON formatter atsrc/devops_cli/server/json_logs.py:74).- No record carries the event, action, delivery id, repository or outcome, and the module's own logger (
webhooks.py:32) is never called. - The JSON formatter already passes
event,action,deliveryandoutcomethrough (json_logs.py:13-22). - fix(roadmap): a shipped release starts the next one without a person: the poll reports the ship, and close and reprioritize run before a capped intake batch #1360 had to infer a milestone event from its timing, because event names are not logged.
- No record carries the event, action, delivery id, repository or outcome, and the module's own logger (
- The delivery counter can't tell deliveries apart.
devops_cli_service_webhook_deliveries_totalcarries onlyoutcome(webhooks.py:190-240).- From the pod's start at 23:48 UTC on 2026-10-07 to 02:31 UTC on 2026-10-08, it counted 203 accepted and 7 ignored.
- Nothing says which event, repository or sender each one was.
Which integrations can push events, and which the Service should take
| Integration | How it can push | Authentication it offers | Endpoint | Reason |
|---|---|---|---|---|
| GitHub | repository webhooks, today (3 of the 8 managed hooks send every event, 5 only push) |
HMAC-SHA256 in X-Hub-Signature-256, one secret per repository (service.webhook_secrets) |
moves onto the router (this item) | Roadmap triggers today. Default-branch pushes for RAG ingestion (#1389), and releases for #1360. |
| Argo CD | notifications controller, disabled (k8s/argocd/values.yaml:84-85) |
request headers that reference its Secret; no signature | #1387, in-cluster | The Service records deploys in GitHub as the machine account. Argo CD's own GitHub notifier needs a GitHub App. |
| Mattermost (#1390) | outgoing webhooks and slash commands | a per-command token, sent as Authorization: Token <token>; no signature |
#1395, in-cluster | A read-only /roadmap status command, answered in the request. Alerts, deploys and release posts go to Mattermost directly, not through the Service. |
| Alertmanager v0.34.1 | its webhook receiver posts to the URL in Secret alertmanager-webhook, which by design doesn't exist until a channel is chosen (k8s/monitoring/prometheus-values.yaml:35-40). All 65 webhook notifications since the pod started on 2026-10-03 failed, including a critical NodeNotReady in the last 7 days. |
bearer token from a file (http_config.authorization.credentials_file); no signature |
not now | It has its own Mattermost receiver (mattermost_configs; the running Alertmanager already exports alertmanager_notifications_total{integration="mattermost"}), and no Service job acts on an alert. #1392 uses it to post alerts to chat. |
| Gitea (#1081) | repository webhooks, once deployed | X-Gitea-Signature, plus GitHub-compatible X-Hub-Signature-256, X-GitHub-Event and X-GitHub-Delivery; an optional Authorization header |
later | Nothing consumes Gitea events yet: Argo CD polls it (#1082, #1291). It would reuse the HMAC verifier, with its own secrets, over Service DNS. |
| Grafana alerting | webhook contact point with optional HMAC | HMAC-SHA256 header | no | Grafana has no Grafana-managed alert rules (0 on 2026-10-08). The rules live in Prometheus and route through Alertmanager, and k8s/monitoring/grafana-values.yaml:86 keeps any Grafana-managed alert out of that Alertmanager. |
| Cloudflare | Notifications webhooks | shared secret in cf-webhook-auth; no signature |
no | A tunnel alert would arrive through the tunnel it reports on. Published GitHub and Cloudflare status is already polled every 15 minutes by the roadmap metrics job (src/devops_cli/config/defaults.py:801, src/devops_cli/roadmap/run.py:487-499; added by #1235). A second public path would need another Access bypass and break ADR 0003's single path. |
| LLM gateway (LiteLLM) | budget webhooks (beta) and Slack-format alerts | none | no | Budgets need a database, and the gateway runs without one (k8s/llm/gateway/configmap.yaml). Its failures are already Prometheus series (:169). Its Slack-format alerts can go to Mattermost directly. |
| Statuspage (GitHub, Cloudflare status) | webhook subscriptions | none; each subscription asks for an email address | no | Unsigned, and the address is personal data. Polled instead (row above). |
| Prometheus rules | through Alertmanager | none of its own | no | As for Alertmanager. |
| Qdrant, Valkey, the OpenTelemetry collector | no outbound events | none | no | Nothing to receive. |
| In-cluster registry | the registry's notification endpoints | static headers | no | Nothing consumes image pushes, and #1082 moves images to Gitea. |
Acceptance criteria
The receiver design. This item builds the one receiver for every inbound endpoint of the Service; later items extend it instead of adding routes. A provider declares its verifier, its content type, where its event name, action, delivery id and subject come from, its payload models, its rules and its exposure. A consumer declares the events it takes, whether it takes the poll tick, its job and its worker mode. Each extension lands with its first production user, so the router ships no code that nothing calls:
| Extension | Added by |
|---|---|
HmacSha256 verifier, application/json bodies, one coalescing worker per consumer and subject |
this item |
AuthorizationToken(scheme) verifier: the header is split with FastAPI's get_authorization_scheme_param, the scheme must match, and the token is compared with secrets.compare_digest. A missing header, another scheme or a wrong token gets 401. With no token configured, every request gets 401, and the Service logs one warning at start naming the setting |
the first of #1387 (Bearer) and #1395 (Token) to land; the other reuses it |
| consumers that take validated payloads | #1387 |
| one shared worker for a consumer, whose batch carries the subjects that became due | #1389 |
per-provider content types (application/x-www-form-urlencoded), and a provider answered in the request by a synchronous responder instead of consumers |
#1395 |
-
One route per declared provider. Providers are a registry keyed by a
StrEnuminsrc/devops_cli/config/constants.py, holdinggithub.create_webhook_routerregistersPOST /webhooks/<provider>for each declared provider. An undeclared provider gets 404 from routing. (An enum path parameter would answer 422 with fastapi 0.142.2.)test_service_app_strict_routes(tests/test_server_service.py:557) also asserts thatPOST /webhooks/<undeclared>gets 404, and that the app serves exactly/readyz,/healthz,/metricsand/webhooks/<provider>for each declared provider.
-
A provider is a declaration, not a copy of the route. A frozen model per provider names:
- its verifier;
- where its event name, action, delivery id and subject come from;
- its payload models;
- its rules;
- its exposure,
tunnelorcluster.
The route takes the same steps for each provider: it refuses while draining (503), requires the provider's content type (
application/jsonfor every provider in this item), caps the body atCONST_SERVICE_MAX_BODY_BYTES, verifies, parses, applies the provider's rules, drops a repeated delivery id and delivers. -
An HMAC verifier from the standard library.
HmacSha256takes a header name, an optional prefix and a secret per subject, and checks withhmac.newandhmac.compare_digest.- GitHub's check (
webhooks.py:35-50,:115-159) moves into it unchanged. - A provider with no secret configured refuses every request with 401. The Service logs one warning at start naming the setting, as
_warn_missing_secretsdoes for a repository (service.py:343-351). - The
AuthorizationTokenverifier comes with its first user (the receiver design above).
- GitHub's check (
-
Typed payloads. GitHub payloads validate into pydantic v2 models in
src/devops_cli/models/webhooks.py.- Every event validates into a base model. The events a consumer reads (
issues,pull_request,milestone,releaseandpush) have their own. - The models use
extra="ignore"and declare only the fields read:action,repository.full_name,repository.default_branchandsender.login.pushaddsrefanddeleted. - A body that fails validation gets 400 with the failing field's path, capped at 256 characters (AGENTS.md:40).
- No
.geton a payload remains undersrc/devops_cli/server/.
- Every event validates into a base model. The events a consumer reads (
-
Consumers subscribe.
- A consumer is a declaration: a name, the provider events it takes (optionally narrowed by action or by a predicate on the typed payload), whether it takes the poll tick, and its job.
- Workers are keyed by consumer and subject. Each is a
RepoWorkerwith its coalescing and drain unchanged, so a long RAG ingestion never waits behind a roadmap round, and a round never waits behind an ingestion. - The worker's thread name, span name and span attributes carry the consumer.
devops_cli_service_queue_depth,devops_cli_service_job_start_timestamp_seconds,devops_cli_service_jobs_totalanddevops_cli_service_job_seconds_totalgain aconsumerlabel, bounded by the declared consumers. No dashboard or rule underk8s/reads these series today.
-
The roadmap consumer takes only what its jobs read.
- It takes
issues,pull_request,milestoneandreleaseevents, plus the poll tick. - Its
TriggerBatchkeys stay("webhook", <event>, <action>)and("poll", "", ""). SoCONST_ROADMAP_*_BATCH_KEYS, reprioritize'smilestonematch (run.py:596-610) and the keys fix(roadmap): a shipped release starts the next one without a person: the poll reports the ship, and close and reprioritize run before a capped intake batch #1360 adds still match. - The machine-account filter (
webhooks.py:170-176) becomes the roadmap consumer's predicate. It exists so the roadmap ignores its own writes, so it no longer hides the machine account's events from other consumers.
- It takes
-
Pushes and unsubscribed events.
- A
pushwhoserefis the repository's default branch and whosedeletedis false reaches every consumer subscribed to pushes, as a("webhook", "push", "")key in that consumer's next batch. No consumer in this item takes pushes; feat(rag): Index managed repos, exclude private from unscoped search #1389 adds the first. - Any other push, and any event with no subscriber (
issue_commentandcreateincluded), gets 200{"status": "no_subscriber"}and runs nothing.
- A
-
GitHub's own rules stay with the GitHub provider.
pingstill getspong, and repeated delivery ids are still dropped throughDeliveryLRUCache. -
Each delivery is logged and counted.
- Every request that reaches verification writes one INFO record with
provider,event,action,delivery,repoandoutcome. It never includes the body, the signature or an Authorization header value. devops_cli_service_webhook_deliveries_totalgainsproviderandeventlabels, plus the outcomeno_subscriber. Events that the provider's models don't declare count asother, so the label set stays bounded.CONTEXT_LOG_KEYSgainsproviderandconsumer.
- Every request that reaches verification writes one INFO record with
-
Exposure is pinned.
tests/test_k8s_roadmap_service.pychecks that the roadmap-service Ingress routes exactly/webhooks/<provider>for the providers markedtunnel.- Today that is only
/webhooks/github(k8s/devops/roadmap-service/ingress.yaml:17, checked today attests/test_k8s_roadmap_service.py:158). - A
clusterprovider is reached only athttp://roadmap-service.devops.svc.cluster.local:8000/webhooks/<provider>.
- Today that is only
-
The decision is recorded as an ADR under the next free number in
docs/adr/at merge time, with every link updated. (0005 is claimed by docs(cli): docs/TESTING.md holds the test conventions, ADR 0005 records that tests double only process edges, and AGENTS.md and the contributor docs point to them #1308 and by feat(review): evidence-first code review — tools find, version-pinned facts ground, models explain and plan, fixes are re-checked #1137 for feat(review): devops review score scores saved review sessions against a label file offline and reproduces the S11 and loop baselines #1138.) It says:- Every sender comes in through one router, and each provider authenticates itself. Network policy is not authentication: the monitoring namespace already reaches every route on port 8000 (
k8s/devops/roadmap-service/networkpolicy.yaml:26-33). - Only GitHub is public, and in-cluster senders use Service DNS. ADR 0003's single public path holds.
- A sender gets a provider only once a consumer or a responder acts on its events.
- No consumer depends on a single delivery. Each one either has a poll (ADR 0003) or a sender that re-sends until it is acknowledged.
- Chat: Alertmanager and Argo CD post to Mattermost with their own integrations (feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392, feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393), and the Service posts its own release events (feat(roadmap): the roadmap service posts each release cut, ship and start to mattermost's releases channel #1394). The only chat sender the router takes is Mattermost's slash command (feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395), as a
clusterprovider.
- Every sender comes in through one router, and each provider authenticates itself. Network policy is not authentication: the monitoring namespace already reaches every route on port 8000 (
-
The setup steps match.
k8s/README.md(Roadmap service, step 9) lists Issues, Pull requests, Milestones and Releases, and says Pushes are needed once a consumer takes them. It also says that a hook sending every event, or only pushes, is harmless: events without a subscriber are acknowledged and start no round. -
Tests, in
tests/test_server_service.py, through the app and the worker's public methods:- every existing case passes, changed only where it names the route or the machine-account rule's new place;
- an undeclared provider gets 404;
- an
issue_comment, acreateand a default-branch push each getno_subscriberand enqueue nothing for the roadmap worker; - with a push consumer declared in the test:
- a default-branch push reaches its worker and not the roadmap worker;
- a push to another branch, and a branch deletion, reach no consumer;
- a default-branch push sent by the machine account still reaches it;
- two consumers' workers for one repository report separate
devops_cli_service_jobs_totalanddevops_cli_service_queue_depthseries; - a payload without
repository.full_namegets 400; - one delivery writes one record with the six keys.
No test reaches the network, each call phase stays under 1 s (
--durations=0), and no new test patches a devops-cli name (test(cli): tests double only process edges and mirror the source tree #1307). -
uv run devops cipasses within its 5-minute budget. -
A
changelog.d/<n>.mdfragment exists, andCHANGELOG.mdanddocs/ROADMAP.mdare untouched. -
Pending a person, after merge, once the Service runs a release that contains this:
- redeliver one recent
issuesdelivery and oneissue_commentdelivery from this repository's webhook settings; - check that Loki holds a record for each (
{namespace="devops"} | json | provider="github"), the firstacceptedand the secondno_subscriber; - check that
devops_cli_service_webhook_deliveries_total{provider="github"}counts each under its event.
- redeliver one recent
Key questions
- Should Alertmanager and Argo CD post everything to the Service, so chat has one hub? Proposed: no. They post to Mattermost directly (feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392, feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393), and the ADR records it.
- The Service is one replica with the Recreate strategy (
k8s/devops/roadmap-service/deployment.yaml:11-12). - It is down on every release merge until the release image exists (
k8s/README.md, "When a release merges intomain", step 3; feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343). - This item adds a provider only when a Service consumer acts on its events.
- The Service is one replica with the Recreate strategy (
- Narrow the roadmap consumer by action as well? Proposed: no.
- An
issuesevent such aslabelednames no batch key. But it makes a job whose change predicate matches due at once, instead of at the next 300 s poll. - fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 owns the cost of each round.
- An
- githubkit for verification and typed GitHub models? Proposed: no.
- Its
verifyandparsewould fit. But it brings hishel and githubkit-schemas (every GitHub REST and webhook model) for the five fields the Service reads. - Narrow pydantic models, checked against GitHub's documented example payloads, cover those fields.
- Revisit if consumers start reading many event types.
- Its
- A webhook gateway (Convoy) or Argo Events in front of the Service? Proposed: no. Each adds a stateful service (Convoy needs PostgreSQL and Redis; Argo Events needs an EventBus) for one public sender and one in-cluster sender. FastAPI already serves the route.
- CloudEvents or Standard Webhooks as the envelope? Proposed: no. None of these senders emits either.
- Where are provider secrets parsed? Proposed: in the public function that test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334 puts
_validate_service_modebehind, underserver/.- Today there are two parsers. The command's (
commands/serve.py:63-79) runs fordevops serve --service, which passes the parsed secrets to the app (:146-149). - The app has a fallback that runs only when no secrets are passed, and it drops a parse error (
service.py:325-340,except Exception: passat:338). - Whichever of the two items lands second uses the other's function.
- Today there are two parsers. The command's (
- What about repeated deliveries from a provider that sends no delivery id? Proposed: they aren't dropped. GitHub's
X-GitHub-Deliverykeeps its cache. A provider without an id relies on its consumers to tolerate a repeat. - Should a
clusterprovider refuse a request that came through Traefik? Proposed: no. A check on forwarding headers would trust headers that any in-cluster caller can set. The Ingress test pins the public paths, and each provider authenticates. - Does the poll stay? Yes. ADR 0003 holds: if the RAG consumer polls too, a missed push only delays an ingestion until the next tick.
Strategic alignment
- Priority: P2.
- Every push to the 5 push-only repositories, and every comment or branch creation in the 3 others, runs a roadmap round today. fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 measured 940 webhook triggers in an hour.
- RAG ingestion of each managed repository's default branch (feat(rag): Index managed repos, exclude private from unscoped search #1389), asked for on 2026-10-08, needs pushes to reach a consumer other than the roadmap.
- fix(roadmap): a shipped release starts the next one without a person: the poll reports the ship, and close and reprioritize run before a capped intake batch #1360's diagnosis lacked the event names.
- Not P1: rounds coalesce, the poll covers a miss, and fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 owns the GraphQL cost of a round.
- Value: M. Effort: M.
- Library-first: no new dependency and no hand-rolled helper.
- FastAPI routes.
- The standard library's
hmac. - pydantic v2 models.
- The existing
DeliveryLRUCache,RepoWorker,GLOBAL_METRICSandJsonLogFormatter.
- Depends on: none.
- Blocks: feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387, feat(rag): Index managed repos, exclude private from unscoped search #1389 and feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395, which each extend the receiver.
- Related:
- feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 (the second provider, the
AuthorizationTokenverifier unless feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 lands first, and consumers that take payloads). - feat(rag): Index managed repos, exclude private from unscoped search #1389 (the first push consumer, and the shared-worker mode), feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395 (form bodies and the synchronous responder) and feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390 (chat routing, recorded in the ADR).
- fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 (the cost of webhook rounds).
- fix(roadmap): a shipped release starts the next one without a person: the poll reports the ship, and close and reprioritize run before a capped intake batch #1360 (batch keys; event names). fix(roadmap): the job clone tracks the current release's branch while origin has it and the default branch otherwise, so close, refine and metrics run between a ship and the next release's start #1366: its tests drive
run_due_jobswith a("webhook", "pull_request", "closed")batch, which the roadmap consumer keeps. - fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 (also changes
RepoWorker._execute_batch's logging), test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour #1334 (service configuration moves intoserver/), test(cli): tests double only process edges and mirror the source tree #1307 (test fakes). - docs(cli): docs/TESTING.md holds the test conventions, ADR 0005 records that tests double only process edges, and AGENTS.md and the contributor docs point to them #1308 and feat(review): devops review score scores saved review sessions against a label file offline and reproduces the S11 and loop baselines #1138 (the ADR 0005 claims).
- feat(k8s): the homelab runs gitea under argo cd as a read-write internal forge, served in-cluster over http and to workstations at https://git.<domain> through the cloudflare tunnel, with its admin secret pushed from the keyring #1081, feat(k8s): Point Argo CD to Gitea for git and PR dev images #1082 and feat(k8s): Read homelab config from in-cluster Gitea, drop overrides #1291 (Gitea), feat(telemetry): monitor GitHub and Cloudflare published service status #1235 (published status, polled), Metrics for the rest of the platform #551 (Argo CD metrics), feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343 (rollout outage), feat(roadmap): onboard checks a repository for the roadmap jobs #1359 (onboarding sets up no webhook).
- refactor(github): one github session per identity owning token, quota and transport #767 and refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (one GitHub session). refactor(github): the github session owns transport, ledger, error classes and link pagination #983's out-of-scope list still names
verify_webhook_signatureandWebhookEventDispatcheringraphql.py. feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 moved the first (nowwebhooks.py:35) and deleted the second. - ADR 0001, ADR 0002, ADR 0003.
- feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 (the second provider, the
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
It unblocks #1389, #1395, and #1387 but the current single-provider, single-consumer path still works for the existing roadmap job.It is the shared routing layer that three open features depend on and eliminates wasted roadmap rounds from unhandled events.It requires redesigning verification per provider, introducing typed payload models, building a subscription/dispatch mechanism, and updating the worker and metrics infrastructure.dan-petty commentedon Oct 8, 2026
Linked: #1387, #1389 and #1395 build on this item's router; #1387 and #1395 share the
AuthorizationTokenverifier whichever lands first adds. Found by the 2026-10-08 backlog review.dan-petty commentedon Oct 9, 2026
Finding: v0.2.29 Service gap assessment (2026-10-09)
Measured on the devops-cli hook over 3 days: 9,648 deliveries, 9,269 answered 202, only 221 carrying a batch key; the top accepted events were
workflow_job(2,446),check_run(2,288) andworkflow_run(1,287). Each accepted delivery starts a full round, so during CI rounds ran about 4x as often as polling needs. Of the 8 managed repositories' hooks, 3 subscribe to*and 5 only topush, so those 5 never deliver a close, intake or reprioritize hint.The simplest fix is a settings change, no code: subscribe every hook to
issues,pull_request,milestoneandrelease(and add Releases tok8s/README.mdstep 8). Optional first criterion here: the route answers 200 "ignored" to any (event, action) no batch key names.docs(service): subscribe each webhook to issues, pull_request, milest…
feat(release): v0.2.30 (#1473)
dan-petty commentedon Oct 9, 2026
Owner direction (2026-10-09): consumers declare schedules beside their events
The Service must manage both event-driven triggers and scheduled tasks (see #1533's ADR). One addition to this item's design, so the consumers it routes to don't each grow their own timer loop:
roadmap/run.py,DEFAULT_DUE_TABLE) becomes the roadmap consumer's declared schedule. feat(rag): Index managed repos, exclude private from unscoped search #1389, feat(roadmap): a /roadmap slash command in mattermost shows each repository's roadmap service state, answered in-cluster through the service's webhook router #1395, feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 and feat(k8s): alertmanager posts critical and warning alerts to mattermost's alerts channel, and a roadmap service repository whose rounds all fail for an hour alerts #1392 use the same registration.dan-petty commentedon Oct 9, 2026
The owner chose Argo Workflows as the Service's engine on 2026-10-09 (#1535). That changes this item's delivery step. A consumer declares its events, its schedules (as CronWorkflows) and its lane. The router delivers an event by creating a Workflow named from the delivery ID before it returns 2xx, so it needs no dispatch queue, threads or retries of its own. The full mapping is in #1535's migration table.
dan-petty commentedon Oct 11, 2026
Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.
Generated by Claude Code
feat(service): one webhook router verifies each provider its own way …
dan-petty commentedon Oct 22, 2026
What changed
#1827, merged into
release/v0.2.39as e6714e5.14 file(s) changed.
How it was verified
Check runs at 30191bb:
Acceptance Criteria of
docs/agent/tasks/task-1386-webhook-router.md:/readyz,/healthz,/metricsand/webhooks/<provider>for each declared provider (tests/test_server_service.py::test_service_app_strict_routes).HmacSha256verifies in constant time against each subject's secret and names the matching subjects (test_hmac_sha256_verifier_checks_the_header_digest_against_each_subjects_secret). A signature header with non-ASCII text gets 401 (test_a_signature_header_with_non_ascii_text_is_refused_with_401).issue_comment, acreate, a default-branchpushand aworkflow_runeach get 200no_subscriberand enqueue nothing on either lane (test_an_event_no_consumer_subscribes_to_gets_no_subscriber_and_starts_no_round).issues,pull_request,milestoneandreleasereaches both lanes as("webhook", <event>, <action>)(test_the_roadmap_consumer_takes_the_events_its_jobs_read_into_both_lanes), and one sent by the machine account reaches neither and is answeredignored_machine_account(test_the_machine_accounts_own_event_reaches_neither_lane).test_a_consumer_receives_only_the_events_it_subscribes_to).repository.full_namegets 400 naming the field within 256 characters, and an unsigned one gets 401 first (test_a_payload_missing_a_field_the_service_reads_gets_400_naming_the_field,test_whole_error_text_for_a_payload_without_a_repository_name).test_a_content_length_over_the_cap_gets_413_whatever_its_number_of_digits,test_a_content_length_padded_with_zeros_is_judged_by_its_value).test_the_detail_of_an_invalid_payload_is_cut_to_the_bound_on_error_details).test_the_machine_accounts_event_is_refused_by_the_roadmap_consumer_alone).test_when_every_subscribed_consumer_refuses_the_first_refusals_status_answers,test_a_consumer_whose_refusal_is_empty_text_still_refuses_the_payload).test_one_delivery_writes_one_record_with_its_six_keys_and_no_secret). The event and delivery id are cut to 256 characters, and an undeclared event counts asother(test_header_values_in_the_record_and_the_counter_are_bounded).test_every_path_counts_its_delivery_by_provider_event_and_outcome).tunnel(tests/test_k8s_roadmap_service.py::test_ingress_has_class_traefik_one_host_and_a_prefix_path_for_each_tunnel_provider).replicas: 0stays pinned by the same file.tests/test_server_service.pypasses. The ten bulk deliveries oftest_multi_concurrency_coalescing_and_multi_repoareissuesevents instead ofpush, since apushnow has no subscriber, and the signature test namesHmacSha256.tests/test_swallowed_failures_ratchet.pypasses with the ceiling forsrc/devops_cli/server/routes/webhooks.pylowered from 1 to 0 (pydantic's validation error replaces the broadexcept Exception).k8s/README.mdstep 8 andchangelog.d/1386.md.uv run devops ciis the pull request's gate.issuesdelivery and oneissue_commentdelivery, picking deliveries sent while the Service was down, since GitHub redelivers under the original delivery id and the pod answers a delivery id it already holds asduplicate. In Loki,{namespace="devops"} | json | provider="github"holds anacceptedrecord for the first and ano_subscriberrecord for the second.devops_cli_service_webhook_deliveries_total{provider="github"}counts the first underevent="issues"and the second underevent="other".feat(release): v0.2.39 (#1947)