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). So this item is built and merged once 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 and 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 land, and only checks (a)-(d) wait for the Service to run again.
- 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. So the
mattermostprovider declares no schedule, and its responder reads today's in-process workers. - 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. So 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 no longer adds a provider to the router, and this item adds the
AuthorizationTokenverifier as its only user. - Report per repository and lane: since 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 (v0.2.33) each repository has one worker per lane (today
statusandmodel), so one line per repository would hide which lane is running. - The responder reads one read-only
ServiceManagermethod, neverRepoWorkerdirectly, so when a later 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 item replaces the workers with Workflow objects only that method changes; that item, not this one, decides how it reads them. - "Queue depth" in the reply is the number of triggers pending in the worker, because the
devops_cli_service_queue_depthgauge holds only 0 or 1.
Scope
- Unchanged: the
mattermostprovider on 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's router with form bodies and the synchronous responder, the read-only/roadmapstatus command, its counter, the Mattermost-side setting and policies, the roadmap-service ingress peer, and the guide. - Changed: state and replies are per repository and lane; this item adds
AuthorizationToken(scheme)itself, and the "If 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 hasn't added the verifier yet" condition is dropped (D5). - Not here: schedules (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); milestone progress (the project gauges still carry no
repolabel); reading Workflow state once 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 later steps deleteRepoWorker.
Delivery
- One PR, size M, with
Fixes #1395: the router's form content type, responder mode andAuthorizationToken; per-lane last-round state and the status method; the commands and counter; the Mattermost setting and both policy changes; tests; the guide. It merges with roadmap-service still atreplicas: 0.
Acceptance criteria
These replace the body's matching criteria. Every other criterion stands, including the 401 handling, the token kept out of every log record, cluster exposure, the Ingress pin to tunnel providers, the NetworkPolicy and setting changes with their tests, and the no-network, no-#1307-patch, under-1-s test rules.
- AuthorizationToken. This item adds the router's
AuthorizationToken(scheme)verifier as 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's receiver design describes (get_authorization_scheme_param, scheme match,secrets.compare_digest), and themattermostprovider uses it with schemeToken, reading the secret optionmattermost.command_token(keyringmattermost_command_token, envDEVOPS_CLI_MATTERMOST_COMMAND_TOKEN, an optional entry in thedevops/devops-clirow). - The last round, per lane. Each
RepoWorker(one per repository and lane) records its last round's start, end and result. One read-onlyServiceManagermethod returns, for every repository and lane, running or idle, pending triggers, and the last round or none. The responder reads only that method. Tested through the public methods, with a fake job per lane. - Commands. The
textis split withshlex.split.status, or no text, gives one line per repository inservice.reposand per lane: running or idle; pending triggers; the last round's start and end (UTC) and result, or "no round yet".status <owner/name>gives that repository's lanes; an unknown name gets the list of known ones. Anything else gets a usage line. No GitHub request is made. The reply isephemeral, and its texts live insrc/devops_cli/lang/en/messages.py, each one line (AGENTS.md:187). - No schedule. The
mattermostprovider declares a responder and no consumer or schedule (D3). - The hold stays.
k8s/devops/roadmap-service/deployment.yaml:12keepsreplicas: 0, and its test (tests/test_k8s_roadmap_service.py:49) passes unchanged. - Tests also cover two lanes of one repository reported on separate lines, one running and one idle.
- Pending a person: once the deployment hold lifts (D1), 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's Mattermost runs and the Service runs a release with this item, create
/roadmap, setmattermost.command_tokenand pushdevops/devops-clias the guide says, then run checks (a)-(d); that secret push and (b)'s restart are steps D1 keeps forbidden until then.
Current references (main 3dd7fa6)
RepoWorker, one per repository and lane:src/devops_cli/server/service.py:130-307; its_execute_batch, which records only counters and the start gauge::235-280; workers keyed(repo, lane)::333-337.- Queue-depth gauge set to 1 and to 0:
src/devops_cli/server/service.py:175and:232. - Lane jobs:
SERVICE_JOBSatsrc/devops_cli/roadmap/run.py:1035-1042; lane names atsrc/devops_cli/config/constants.py:1070-1072. - Project gauges cleared and rewritten per repository:
src/devops_cli/github/metrics.py:646, in_record_workflow_and_milestone_metrics(:628-657), called throughsrc/devops_cli/roadmap/run.py:635. - Router today: one route,
POST /webhooks/github(src/devops_cli/server/routes/webhooks.py:188),application/jsononly with 415 (:93-100); the body's:35-50,:52-69,:72-90and:184still hold. - roadmap-service ingress policy:
k8s/devops/roadmap-service/networkpolicy.yaml:15-33; Ingress path atk8s/devops/roadmap-service/ingress.yaml:17, pinned attests/test_k8s_roadmap_service.py:158. - The one-line rule for
lang/en/texts isAGENTS.md:187, not:440. TheAGENTS.md:252-265kubectl block no longer exists (AGENTS.md has 220 lines); that reference is dropped. - Suspension rule:
AGENTS.md:147-151. Guide section:k8s/README.md:361, with its suspension note at:363. - Nothing for Mattermost exists yet under
src/,k8s/,tests/ordocs/; 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 addsmattermosttoTARGET_NAMESPACES(tests/test_k8s_network_policies.py:34).
Dependencies and order
- 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 (open, v0.2.38, not blocked, effort L, may be split): Mattermost under Argo CD, with the
mattermostnamespace and perimeter this item extends. Decision D6 (owner, 2026-10-17): Mattermost push notifications and the remote Marketplace are off, which settled its last open question. - 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 (open, v0.2.38,
status/blockeduntil D1 is written intoAGENTS.md:147-151by the drafted, not yet filed, block-scope item): the provider router, built on in-process lanes (D3). - Native blocked-by links from 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 and 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 to this item exist.
status/blockedstays here, re-pointed from chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 to 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 and 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; it comes off when both close.- Related, not blocking: 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 (re-scoped by D5, now shares nothing with this item); 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 (open, v0.2.38, P0,
status/blocked). 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 later 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 items filed after that go/no-go re-implement the status method. Priority stays P3, and this item blocks nothing.
Problem
Checked on 2026-10-08: release/v0.2.29 at 910b823; Mattermost's developer docs.
- Seeing the Service's state needs kubectl or Grafana.
- For each repository, a person wants to know whether its worker is running a round, its queue, and its last round's start, end and result.
- The running state and the queue live in
RepoWorker(_is_activeand the pending counts,src/devops_cli/server/service.py:63-82). The last round's result is kept nowhere:_execute_batchonly increments the cumulativedevops_cli_service_jobs_total{repo, result}and sets the start gauge (:154-200). - AGENTS.md:252-265 gives several kubectl commands for the same check.
- Milestone progress per repository isn't available either. The milestone gauges have no
repolabel, and each repository's metrics job clears and rewrites them (reg.clear_metric(PROJECT_ITEMS_TOTAL.name),src/devops_cli/github/metrics.py:640-651, called fromsrc/devops_cli/roadmap/run.py:479-482). With eight repositories,/metricsholds only whichever ran last. So this command doesn't report milestone progress. - Only GitHub can reach the Service from outside.
- Its one public route is
POST /webhooks/github, which is HMAC-verified (src/devops_cli/server/routes/webhooks.py:35-50,:188). - The Ingress exposes only that path (
k8s/devops/roadmap-service/ingress.yaml), and ADR 0003 keeps every other route private. - Its ingress policy admits only Traefik and namespace
monitoring, on 8000 (k8s/devops/roadmap-service/networkpolicy.yaml:15-33).
- Its one public route is
- How a Mattermost slash command works (docs, "Custom slash commands").
- Mattermost POSTs
application/x-www-form-urlencodedwithtoken,user_name,text,commandandresponse_url, and sends the token again asAuthorization: Token <token>. - The reply is JSON with
response_type(ephemeralby default, orin_channel) andtext. Work longer than 3 s replies later throughresponse_url. response_urlis built on the site URL,https://mattermost.<domain>, which sits behind Access. So the Service can only answer in the request.- Mattermost won't call a private address unless its host is in
ServiceSettings.AllowedUntrustedInternalConnections. It matches hostnames before resolving them.
- Mattermost POSTs
- The inbound pieces are GitHub's alone today. The body cap is
_read_and_cap_body(webhooks.py:72-90), the duplicate cache isDeliveryLRUCache(:52-69), and the delivery counters are incremented increate_webhook_router(from:184). 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 makes them one receiver for every provider.
Acceptance criteria
-
A
mattermostprovider on 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, withclusterexposure, so its route isPOST /webhooks/mattermostand no Ingress routes it.- Its content type is
application/x-www-form-urlencoded. This item adds per-provider content types to the router; every other provider stays onapplication/json, and anything else gets 415. - Its verifier is the router's
AuthorizationTokenwith schemeToken, reading the secret optionmattermost.command_token(keyringmattermost_command_token, envDEVOPS_CLI_MATTERMOST_COMMAND_TOKEN, an optional entry in thedevops/devops-clirow). If 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 hasn't added the verifier yet, this item adds it as 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's receiver design describes. - A missing header, another scheme or a wrong token gets 401 and one WARNING without the token. With the option unset, every request gets 401, and startup logs one WARNING naming the setting.
- Its payload model reads
text,user_nameandcommand, withextra="ignore". The event is thecommandvalue; there is no delivery id and no subject. - The router's exposure test still pins the Ingress to the
tunnelproviders only.
- Its content type is
-
A synchronous responder. This item adds the router's responder mode: a provider may declare a responder instead of consumers. The router runs its shared steps (drain, content type, cap, verify, parse, log, count), calls the responder with the validated payload, and returns its JSON reply. A responder reads only in-process state and makes no request.
-
The last round, per worker.
RepoWorkerrecords its last round's start, end and result, and exposes them with its running state and queue depth through one read-only method. Tested through the worker's public methods. -
Commands. The
textis split withshlex.split.status, or no text, gives one line per repository inservice.repos, from the roadmap consumer's workers:- running or idle;
- the queue depth;
- the last round's start and end (UTC) and result, or "no round yet".
- No GitHub request is made.
status <owner/name>gives the same for one repository. An unknown name gets the list of known ones.- Anything else gets a usage line.
- The reply is
ephemeral. Its texts live insrc/devops_cli/lang/en/messages.py, each one line (AGENTS.md:440).
-
Metrics.
devops_cli_service_chat_commands_total{command, result}, beside the router's delivery counter. -
Mattermost side.
- The
Mattermostobject'smattermostEnvgainsMM_SERVICESETTINGS_ALLOWEDUNTRUSTEDINTERNALCONNECTIONS=roadmap-service.devops.svc.cluster.local, with that host only. - The
mattermostperimeter gains a policy selectingapp: mattermostthat allows egress to namespacedevopson 8000, as a namespace-only peer withports:. The database pods get no such egress. - roadmap-service's ingress policy admits only Mattermost's pods on 8000: one peer with namespace
mattermostand pod labelapp: mattermost. tests/test_k8s_network_policies.pyandtests/test_k8s_roadmap_service.pyassert all three.
- The
-
Tests. A FastAPI
TestClientovercreate_service_app, with a fake job, covers:- the real header shape
Authorization: Token <token>, a wrong token, a missing header and aBearerheader; - a JSON body (415) and a form body;
- each command, including a repository that has had no round;
- 401 for every request when the option is unset.
No test reaches the network, no test patches a devops-cli name (test(cli): tests double only process edges and mirror the source tree #1307), and each call phase stays under 1 s.
- the real header shape
-
Guide. The "Roadmap service" section of
k8s/README.mdcovers:- creating the slash command
/roadmap: POST tohttp://roadmap-service.devops.svc.cluster.local:8000/webhooks/mattermost, with autocomplete on; uv run devops config set mattermost.command_token;uv run devops k8s push-secrets --only devops/devops-cli --context <context>.
- creating the slash command
-
uv run devops pr check-readinesspasses. -
uv run devops cipasses within its 5-minute budget.
Pending a person, after merge, after #1391 and once the Service runs a release with this item:
- (a)
/roadmapin any channel replies within 3 s, only to the caller, with one line per repository. - (b) After
kubectl -n devops rollout restart deploy/roadmap-service,/roadmapreplies again once/readyzanswers 200. - (c) From outside the cluster,
curl -s -o /dev/null -w '%{http_code}\n' -X POST https://hooks.<domain>/webhooks/mattermostprints none of the route's own codes (200, 401, 415): Traefik's 404 or an Access redirect both pass. - (d)
devops_cli_service_webhook_deliveries_total{provider="mattermost"}counts the commands from (a) and (b).
Key questions
- Through 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, or a route of its own? Proposed: through the router. It already caps, verifies, logs, counts and pins exposure for every provider. A second route would repeat that, and feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390 sends every inbound chat call through the router.
- A responder mode, or answer later through
response_url? Proposed: a responder.response_urlis on the public site URL behind Access, which the Service can't reach, and the answer comes from memory well within 3 s. - Commands that change things, such as
pollorintake? Proposed: none in this item.- The Service acts as the machine account (ADR 0002). A chat user who triggers a write through it would make it unclear who acted.
- A poll on demand would save at most one 300 s tick.
- Milestone progress in the reply? Proposed: not until the project gauges carry a
repolabel (Problem). Reading GitHub per command would spend the quota that 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 and fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 show is already short. - A slash command, or an outgoing webhook? Proposed: a slash command.
- Outgoing webhooks fire on trigger words, and only in public channels.
- A slash command is explicit, works in direct messages, and replies only to its caller.
- Exposure? Mattermost calls the Service by its in-cluster name. Nothing crosses the tunnel, and ADR 0003's single public path stands.
- A Mattermost plugin or the Apps framework instead? Proposed: no.
- Both need a build and a deployment inside Mattermost, and v11 dropped manually installed plugins.
- A slash command is configuration plus one provider.
Strategic alignment
- Priority: P3. It gives a person the Service's state from the chat they already have open. Grafana and kubectl give the same today.
- Value: L. Effort: M. It adds two router features (form bodies and the responder) and the per-worker last-round state.
- Library-first:
- FastAPI's form parsing and
get_authorization_scheme_param; secrets.compare_digest;shlex;- 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's receiver;
- no Mattermost SDK.
- FastAPI's form parsing and
- Depends 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 and 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.
- Blocks: nothing.
- Related:
- feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390: the parent;
- 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: shares the
AuthorizationTokenverifier, which whichever lands first adds; - fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974: project metrics as gauges, where a
repolabel would belong; - fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 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;
- ADR 0002 and ADR 0003.
Proposed design
Problem statement
A person needs to see the state of each repository's roadmap Service lanes from Mattermost, without kubectl or Grafana. Today, the Service exposes only the GitHub webhook route, and the last round's result is not recorded. This item adds a /roadmap slash command that reads in-process state and replies with one line per repository and lane.
Acceptance criteria
- Criterion 1: The router's AuthorizationToken(scheme) verifier exists and the mattermost provider uses it with scheme Token, reading the secret option mattermost.command_token.
Verification: A test sends Authorization: Token and gets 200; a wrong token, a Bearer header, and a missing header each get 401 with one WARNING that names no token value. With the option unset, every request gets 401 and startup logs one WARNING naming the setting. - Criterion 2: Each RepoWorker records its last round's start, end and result. One read-only ServiceManager method returns, for every repository and lane, running or idle, pending triggers, and the last round or none. The responder reads only that method.
Verification: A test through the public methods with a fake job per lane confirms the method returns per-lane state. A test with two lanes of one repository reports them on separate lines, one running and one idle. - Criterion 3: The text is split with shlex.split. status or no text gives one line per repository and lane. status gives that repository's lanes. An unknown name gets the list of known ones. Anything else gets a usage line. No GitHub request is made. The reply is ephemeral and its texts live in src/devops_cli/lang/en/messages.py, each one line.
Verification: TestClient tests cover each command shape, the unknown-repo reply, the usage line, and assert no HTTP call to GitHub. The messages.py entries each hold one line (AGENTS.md:187). - Criterion 4: The mattermost provider declares a responder and no consumer or schedule.
Verification: The provider declaration in the router shows a responder and no schedule field. No cron or poll entry references the mattermost provider. - Criterion 5: k8s/devops/roadmap-service/deployment.yaml:12 keeps replicas: 0 and its test passes unchanged.
Verification: Run tests/test_k8s_roadmap_service.py:49 and confirm it passes. Inspect the YAML and confirm the value is 0. - Criterion 6: The mattermost provider has cluster exposure, its route is POST /webhooks/mattermost, and no Ingress routes it. Its content type is application/x-www-form-urlencoded; every other provider stays on application/json; anything else gets 415.
Verification: The router exposure test pins the Ingress to tunnel providers only. A JSON body to the mattermost route gets 415. A form body gets 200. - Criterion 7: The router's responder mode runs shared steps (drain, content type, cap, verify, parse, log, count), calls the responder with the validated payload, and returns its JSON reply. A responder reads only in-process state and makes no request.
Verification: The responder function signature takes the validated payload and returns a dict. No outbound HTTP call appears in the responder code path. - Criterion 8: The counter devops_cli_service_chat_commands_total{command, result} is incremented beside the router's delivery counter.
Verification: A test asserts the counter increments after a command and after a usage reply. - Criterion 9: The Mattermost object's mattermostEnv gains MM_SERVICESETTINGS_ALLOWEDUNTRUSTEDINTERNALCONNECTIONS=roadmap-service.devops.svc.cluster.local. The mattermost perimeter gains a policy selecting app: mattermost that allows egress to namespace devops on 8000. roadmap-service's ingress policy admits only Mattermost's pods on 8000.
Verification: tests/test_k8s_network_policies.py and tests/test_k8s_roadmap_service.py assert all three policies. - Criterion 10: TestClient over create_service_app covers the real header shape, wrong token, missing header, Bearer header, JSON body (415), form body, each command, a repository with no round, and 401 when the option is unset. No test reaches the network, no test patches a devops-cli name, and each call phase stays under 1 s.
Verification: Run the new test module. Confirm no socket or requests import in the test. Confirm no devops-cli name is patched. Confirm each test's wall time is under 1 s. - Criterion 11: The Roadmap service section of k8s/README.md covers creating the slash command, setting the token, and pushing the secret.
Verification: Read k8s/README.md:361 and confirm the three steps are present with the correct endpoint, command and push command. - Criterion 12: uv run devops pr check-readiness passes.
Verification: Run the command and confirm exit code 0. - Criterion 13: uv run devops ci passes within its 5-minute budget.
Verification: Run the command and confirm all checks pass within 300 s.
Key questions
- Through 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, or a route of its own?: Through the router. It already caps, verifies, logs, counts and pins exposure for every provider. A second route would repeat that. (proposed) [sources: src/devops_cli/server/routes/webhooks.py:188]
- A responder mode, or answer later through response_url?: A responder. response_url is on the public site URL behind Access, which the Service cannot reach, and the answer comes from memory well within 3 s. (proposed) [sources: src/devops_cli/server/routes/webhooks.py:35-50]
- Commands that change things, such as poll or intake?: None in this item. The Service acts as the machine account (ADR 0002). A chat user who triggers a write through it would make it unclear who acted. A poll on demand would save at most one 300 s tick. (proposed) [sources: docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md]
- Milestone progress in the reply?: Not until the project gauges carry a repo label. Reading GitHub per command would spend the quota that 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 and fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 show is already short. (proposed) [sources: src/devops_cli/github/metrics.py:646]
- A slash command, or an outgoing webhook?: A slash command. Outgoing webhooks fire on trigger words and only in public channels. A slash command is explicit, works in direct messages, and replies only to its caller. (proposed)
- Exposure?: Mattermost calls the Service by its in-cluster name. Nothing crosses the tunnel, and ADR 0003's single public path stands. (proposed) [sources: docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md]
- A Mattermost plugin or the Apps framework instead?: No. Both need a build and a deployment inside Mattermost, and v11 dropped manually installed plugins. A slash command is configuration plus one provider. (proposed)
- D1: Does the 0-replica hold block this item's build and merge?: No. This item is built and merged at replicas: 0. Only post-merge checks (a)-(d) wait for the Service to run again. (proposed) [sources: k8s/devops/roadmap-service/deployment.yaml:12]
- D3: Does the mattermost provider declare a schedule?: No. The provider declares a responder and no consumer or schedule. Schedules are 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. (proposed) [sources: src/devops_cli/config/constants.py:1070-1072]
- D5: Does 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 add the AuthorizationToken verifier?: No. 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 no longer adds a provider to the router. This item adds the AuthorizationToken verifier as its only user. (proposed) [sources: src/devops_cli/server/routes/webhooks.py:93-100]
Open questions
- The Service acts as the machine account (ADR 0002). A chat user who triggers a write through it would make it unclear who acted.
- A poll on demand would save at most one 300 s tick.
- Outgoing webhooks fire on trigger words, and only in public channels.
- A slash command is explicit, works in direct messages, and replies only to its caller.
- Both need a build and a deployment inside Mattermost, and v11 dropped manually installed plugins.
- A slash command is configuration plus one provider.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
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 improves operator visibility into service state but does not fix a defect, security gap, or blocking issue.It requires a new provider on the shared router, a synchronous responder mode, token verification, per-provider content-type handling, network-policy and ingress changes, and depends on #1386 (and possibly #1387).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
dan-petty commentedon Oct 26, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The item is important for user experience but not critical or urgent.Users will benefit from seeing roadmap service status directly in Mattermost.The work requires building a new command and integrating with the service's webhook router.a /roadmap slash command in mattermost shows each repository's roadmap service stateas the change that both ask for.Both items add a /roadmap slash command in mattermost that shows roadmap service state.A person closes one of the two if that is so.dan-petty commentedon Oct 28, 2026
Refine cannot set this item to Ready at d509dba until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
chore(main): release 0.33.0 (#2907)