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 changes no Service code, and its one Service touch is an alert rule on a counter the Service already emits. So the rule stays in this item instead of being split out, and the chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 block comment of 2026-10-11 no longer applies.
- Decision D6 (owner, 2026-10-17): "Mattermost push notifications and the remote Marketplace are off." This answers 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 open question, so the blocker can be built as its body proposes.
- 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." Only live check (d) needs a running Service, so (d) waits for that identity work or a reinstatement. The merge does not.
status/blockedstays but now points 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 instead of chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562, because none of what this item builds on exists yet: themattermostnamespace, its perimeter, the derived push-table entries and the in-cluster base URL constant.- The rule groups by
(repo, lane). 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) gave the counter alanelabel, and grouping byrepoalone would let a succeedingstatuslane hide amodellane whose every round fails. - The receiver test is renamed for the new Secret (
test_alertmanager_sends_nowhere_until_the_mattermost_secret_exists), because its old name describes a receiver that this item removes.
Scope
- Unchanged except for the rule's grouping, its summary and Loki hint, and when check (d) can run.
- At 0 replicas the counter has no series. The rule is therefore merged silent and starts evaluating when the Service runs again.
Delivery
- One PR, size S, after 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 pieces merge. The receiver swap and the guard's
secretNameextension land together, because extending_secret_referenceson its own would fail the guard on today'salertmanager-webhookmount, which has no table row.
Acceptance criteria
These replace the matching parts of the rule criterion and of check (d). Every other criterion below stands, including these: the hook is locked to its channel and the receiver sets no channel or username; the hook is typed at a hidden prompt and stored under its keyring key; --dry-run lists the key with no value; the mount is read-only and optional; and the 8065 path admits only Alertmanager's pods.
-
RoadmapServiceJobsFailing, severity warning,for: 30m, readssum by (repo, lane) (increase(devops_cli_service_jobs_total{result="error"}[1h])) > 0 unless on (repo, lane) sum by (repo, lane) (increase(devops_cli_service_jobs_total{result="success"}[1h])) > 0. - Its summary names the repository and the lane. Its description gives
{namespace="devops"} | json | repo="<repo>" | lane="<lane>". -
test_the_baseline_rule_setlists the rule, and a test asserts that both selectors group by and match on exactlyrepoandlane. Whichever of this item 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 lands second still addsconsumer="roadmap"to both selectors. - The header comment of the values file describes the
mattermostreceiver and its Secret, and the textalertmanager-webhookno longer appears underk8s/ortests/. The comment aboveAlertmanagerNotificationsFailingand the README's self-health row name thealertmanager-mattermostSecret instead of the webhook Secret. - Pending a person: once the Service runs again (after D2's identity work or a reinstatement lifts
replicas: 0), run check (d) per repository and lane. In Grafana's Alerting page,RoadmapServiceJobsFailingshows only for a repository and lane whose rounds have all failed for 90 minutes. Compare withsum by (repo, lane) (increase(devops_cli_service_jobs_total{result="error"}[1h]))in Prometheus.
Current references (checked at 3dd7fa6)
k8s/monitoring/prometheus-values.yaml:36-41: the header comment.:60-65: thealertmanager-webhookmount.:73-76: thecritical|warningroute.:77-82: the receivers.:442-443: the comment naming the webhook Secret.:444-445:AlertmanagerNotificationsFailingand itskube_secret_infoselector.k8s/monitoring/networkpolicy.yaml:147-157: public egress, on 443 and 80 only.k8s/devops/networkpolicy.yaml:25-33: the namespace-only peer shape.k8s/README.md:270-281: the Receiver section, with thekubectl create secretstep at:277.:245-262: the alert table, whose self-health row at:262names the webhook Secret.tests/test_k8s_monitoring_alerting.py:30-75:SERVED_SERIES.:123:test_the_baseline_rule_set.:199: the receiver test.tests/test_k8s_push_secrets.py:221-235:_secret_references.:270and:275: the guard tests.src/devops_cli/server/service.py:144: therepoandlanelabels.:272-274: the counter.:261-267: the error log, which carries both labels (:265).src/devops_cli/config/constants.py:1060: the counter's name.:1070-1072: the lanesrelease,modelanddefault. feat(release): release-please makes every release from main #1952 renamedreleasetostatus, which runs onlymetrics.k8s/devops/roadmap-service/deployment.yaml:10-12:replicas: 0under chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562.:23-25: the scrape annotations.
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, the blocker: open, in v0.2.38, not labelled blocked. Nothing from it has landed yet (no
mattermostundersrc/,k8s/ortests/). The native blocked-by link to it already exists, and D6 answered its open question. If 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 is split, this item waits only for the parts that deliver themattermostnamespace and perimeter, the derived entries and the in-cluster base URL constant. - 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, soft, for coordination only: open, in v0.2.38, labelled
status/blocked. Whichever of the two lands second adds theconsumer="roadmap"selector. - chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562: closed 2026-10-11. Its hold remains at
deployment.yaml:10-12and holds back only check (d). - Milestone: none. After 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 merges, a person sets its milestone.
Problem
Checked on 2026-10-08: release/v0.2.29 at 910b823, and the cluster read-only.
- Alerts go nowhere.
- Critical and warning alerts go to receiver
webhook. It reads itsurl_filefrom the optional Secretalertmanager-webhook(k8s/monitoring/prometheus-values.yaml:56-61,:64-78). - The Secret doesn't exist (
kubectl -n monitoring get secret <masked-token>answers NotFound). - In the 7 days to 2026-10-08, Alertmanager attempted 65 webhook notifications and all 65 failed. The alerts behind them were
NodeNotReady(critical),NodeRebootedandTargetDown. AlertmanagerNotificationsFailingwaits for the Secret to exist (:437-447), so it stayed silent.
- Critical and warning alerts go to receiver
- The generic webhook can't post to Mattermost.
- It sends Alertmanager's own webhook JSON. A Mattermost incoming webhook takes
text, or Slack-style attachments. - Alertmanager v0.34.1, the running image, has
mattermost_configs, withwebhook_url_fileand default templates (docs/configuration.md,<mattermost_config>). It reads the file on every notification.
- It sends Alertmanager's own webhook JSON. A Mattermost incoming webhook takes
- This Secret is the only one made by hand.
- The README tells a person to run
kubectl create secret(k8s/README.md:257-261). - The guard
test_every_secret_referenced_under_k8s_has_a_table_row(tests/test_k8s_push_secrets.py:270-272) never saw it._secret_referencesyields onlysecretKeyRef,secretRefand*existingSecret(:221-235), notextraSecretMounts[].secretName.
- The README tells a person to run
- There is no path to Mattermost.
- No monitoring egress rule allows TCP 8065. The address-range rules allow 80 and 443 (
k8s/monitoring/networkpolicy.yaml:149-158,k8s/README.md:263), and 443, 6443, 8443, 9100 and 10250 (:79-101). - Mattermost listens on 8065, in namespace
mattermost(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).
- No monitoring egress rule allows TCP 8065. The address-range rules allow 80 and 443 (
- Roadmap Service failures alert no one.
- In the 24 h to 02:30 UTC on 2026-10-08,
increase(devops_cli_service_jobs_total[24h])gave about 105 failed rounds and 797 successful ones. About 67 of the failures were this repository's, and the six other failing repositories had about 6 each. - From 23:51 UTC on 2026-10-07, every round for this repository stopped on the GraphQL reserve guard: "GraphQL has N points left until HH:MM UTC, and reading board #N items costs about 11 with 250 kept in reserve, so the run stopped" (
src/devops_cli/roadmap/board_read.py:247, in Loki). At 04:33 UTC it had 0 successful rounds in the last 5 hours, against about 39 failed ones. Nobody was told. - The counter is scraped through the pod's annotations (
k8s/devops/roadmap-service/deployment.yaml:21-23). - No rule selects it, and
SERVED_SERIES(tests/test_k8s_monitoring_alerting.py:31-75) lists none of the Service's series.
- In the 24 h to 02:30 UTC on 2026-10-08,
Acceptance criteria
In the gate. New tests touch no network, and each one's call phase stays under 1 s, as uv run pytest tests/test_k8s_monitoring_alerting.py tests/test_k8s_push_secrets.py tests/test_k8s_network_policies.py --durations=0 shows.
-
Receiver.
alertmanager.config.receiversare exactlynullandmattermost.mattermosthas onemattermost_configsentry:webhook_url_file: /etc/alertmanager-mattermost/url,send_resolved: true, Alertmanager's default templates and an emptytitle_link.- It sets no
channeland nousername: the hook is locked to its channel (feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390). - The
critical|warningroute goes to it. - Receiver
webhookand its mount are removed. test_alertmanager_sends_nowhere_until_the_webhook_secret_exists(tests/test_k8s_monitoring_alerting.py:199) checks the same for the new receiver and mount.
-
Mount.
extraSecretMountsmounts Secretalertmanager-mattermostat/etc/alertmanager-mattermost, read-only and optional. So Alertmanager starts before a person has created the hook. -
The Secret's row. The push table gains
monitoring/alertmanager-mattermost, stackinfra.- Key
urlis a derived entry (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). Its value is the in-cluster base URL constant, then/hooks/, then the value of the managed optionmattermost.alerts_hook. - That option is typed at a hidden prompt. It has keyring key
mattermost_alerts_hook, and it is inSECRET_CONFIG_OPTIONS,KEYRING_KEYSandOPTION_TO_ENV_VAR. - The entry is optional: if the keyring lacks the key, the push skips it with a warning.
- It restarts nothing, because Alertmanager reads the file at each notification.
tests/test_k8s_push_secrets.pyasserts the row, and that--dry-runlists its key with no value.- The
homelabproject ignores the Secret as an orphan.
- Key
-
The guard sees mounted Secrets.
_secret_referencesalso yieldssecretName, as used inextraSecretMountsand in a volume'ssecret.test_a_reference_without_a_row_fails_the_guard(tests/test_k8s_push_secrets.py:275) gains a case for it. -
Self-health.
AlertmanagerNotificationsFailingreadskube_secret_info{namespace="monitoring", secret="alertmanager-mattermost"}. -
Path.
- The monitoring perimeter gains egress to namespace
mattermoston TCP 8065, as a namespace-only peer withports:, the shapek8s/devops/networkpolicy.yaml:25-33explains. - The
mattermostperimeter admits only Alertmanager's pods on 8065: one peer with namespacemonitoringand pod labelapp.kubernetes.io/name: alertmanager. tests/test_k8s_network_policies.pyasserts both.
- The monitoring perimeter gains egress to namespace
-
A rule for the roadmap Service.
RoadmapServiceJobsFailing, severity warning,for: 30m:
sum by (repo) (increase(devops_cli_service_jobs_total{result="error"}[1h])) > 0 unless on (repo) sum by (repo) (increase(devops_cli_service_jobs_total{result="success"}[1h])) > 0- Its summary names the repository. Its description gives the Loki query
{namespace="devops"} | json | repo="<repo>". SERVED_SERIESgainsdevops_cli_service_jobs_total, with a comment that names the scrape.test_the_baseline_rule_set(tests/test_k8s_monitoring_alerting.py:123) lists the rule.- 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 adds a
consumerlabel to the counter. Whichever of the two lands second makes both selectorsconsumer="roadmap", so other consumers' failures don't count as roadmap rounds.
- Its summary names the repository. Its description gives the Loki query
-
Guide. The "Receiver" section of
k8s/README.mdsays how to wire the channel:- create the incoming webhook for
alerts, with "Lock to this channel" ticked; uv run devops config set mattermost.alerts_hook;uv run devops k8s push-secrets --only monitoring/alertmanager-mattermost --context <context>.
The
kubectl create secretstep is removed. The alert table gainsRoadmapServiceJobsFailing. The section states the limit from feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390: no alert arrives while Mattermost, Alertmanager or the node under either is down. - create the incoming webhook for
-
uv run devops pr check-readinesspasses. -
uv run devops cipasses within its 5-minute budget.
Pending a person, after merge and after #1391:
- (a) Create the
alertshook, locked to its channel, store its key and push. Within about a minute,kubectl -n monitoring exec statefulset/prometheus-alertmanager -c alertmanager -- ls /etc/alertmanager-mattermostlistsurl. - (b) Send a test alert:
kubectl -n monitoring exec statefulset/prometheus-alertmanager -c alertmanager -- amtool --alertmanager.url=http://localhost:9093 alert add MattermostTest severity=warning --annotation=summary=test --end=<now plus 5 minutes, RFC 3339>- A firing message arrives in
alertswithin about a minute (group_waitis 30 s). - A resolved message arrives within about 10 minutes.
- A firing message arrives in
- (c)
alertmanager_notifications_total{integration="mattermost"}has risen, andalertmanager_notifications_failed_total{integration="mattermost"}has not. - (d) In Grafana's Alerting page (Alertmanager datasource),
RoadmapServiceJobsFailingshows only for a repository whose rounds have all failed for 90 minutes. Compare withincrease(devops_cli_service_jobs_total{result="error"}[1h])in Prometheus.
Key questions
- Alertmanager's native receiver, or the generic webhook through a converter, or through the Service? Proposed: native.
- It is in the running version, reads its URL from a file and formats the message.
- A converter would be one more service to run.
- 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 takes no Alertmanager provider: no Service job acts on an alert, and the Service is down while its pod restarts after each release. So this item owns Alertmanager's receiver set alone.
- Default templates? Proposed: yes, with
title_linkempty.- They give the alert's name, summary and description.
- The default title links to Alertmanager's own URL, which a browser can't reach. A reachable link would put a homelab host in git.
- Why an alert for Service failures, rather than a post from the Service?
- Alertmanager groups alerts, repeats them every 4 h, sends a resolution, and lets a person silence them.
- The Service polls each repository every 300 s, so a post per failed round would mean 12 posts an hour for each repository.
- Why this threshold, and is the rule right to fire today? One failed round, from a model timeout or a REST 502, is ordinary. The rule needs an hour with no successful round, and then 30 more minutes.
- It would be firing today for this repository, after more than four hours of GraphQL reserve refusals (Problem).
- Proposed: that is a true positive. For those hours the roadmap did nothing for the repository, and nobody knew.
- fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 keeps every failed round in
result="error", and proposes, as an extension of refactor(github): the github session owns transport, ledger, error classes and link pagination #983, a subclass for the reserve refusal so that it logs without a traceback. 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 cuts the GraphQL cost of a round. If either changes how a refusal is counted, this rule follows the counter. - The six repositories without
roadmap.tomlfailed for about half an hour before a person fixed them (feat(roadmap): onboard checks a repository for the roadmap jobs #1359), so the rule would not have fired for them.
- Keep the generic webhook receiver too? Proposed: no. It was a placeholder that never delivered anything, and before 1.0 the codebase keeps no leftovers.
- Delivery from outside the cluster? Out of scope; see feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390.
Strategic alignment
- Priority: P2.
- Every notification since Alertmanager arrived has failed.
- This is the shortest path to a person seeing
NodeNotReady, or a repository whose roadmap rounds have all failed for hours. - It waits for 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.
- Value: H. Effort: S.
- Library-first: Alertmanager's
mattermost_configsand its default templates, plus the push table for the Secret. The only code is the table row and the guard change. - 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 (Mattermost, its perimeter, the derived entries and the base URL constant).
- Blocks: nothing. Every later alert rule, Metrics for the rest of the platform #551's Argo CD alerts and feat(rag): Index managed repos, exclude private from unscoped search #1389's
RagIngestBehindamong them, reaches chat through this receiver. - Related:
- feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390: the parent;
- 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: takes no Alertmanager provider, and adds the
consumerlabel this rule then selects on; - Alerts fire into nothing: no Alertmanager, and k3s false positives #549: Alertmanager;
- fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365, 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 refactor(github): the github session owns transport, ledger, error classes and link pagination #983: the Service's failure records and the GraphQL reserve refusals this alert surfaces;
- fix(roadmap): the metrics job walks release tags in each repository's own clone, and a missing or type-less labels.yml stops intake as a configuration error before any model call #1358 and feat(roadmap): onboard checks a repository for the roadmap jobs #1359: the onboarding failures;
- fix(k8s): deploy-stack applies the monitoring namespace perimeter #913: the monitoring perimeter reaching the cluster;
- fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130: who scrapes the Service.
Proposed design
Problem statement
Every Alertmanager notification has failed since the receiver points to a webhook Secret that does not exist. There is no path to Mattermost: no egress on port 8065, no native receiver configured, and no network policy allowing the traffic. Additionally, no alert rule fires when a repository's roadmap Service rounds all fail for an extended period, so a person is never told that a repository has stopped producing results.
Acceptance criteria
- Criterion 1: The receivers list contains exactly null and mattermost. The mattermost entry has one mattermost_configs with webhook_url_file set to /etc/alertmanager-mattermost/url, send_resolved true, default templates, and empty title_link. It sets no channel and no username.
Verification: Inspect k8s/monitoring/prometheus-values.yaml receivers section. Run uv run pytest tests/test_k8s_monitoring_alerting.py -k receiver. - Criterion 2: The critical and warning route points to the mattermost receiver. The old webhook receiver and its extraSecretMounts entry are removed.
Verification: grep -r 'alertmanager-webhook' k8s/ tests/ returns no matches. The route in prometheus-values.yaml lists mattermost as its receiver. - Criterion 3: extraSecretMounts mounts Secret at /etc/alertmanager-mattermost, read-only and optional.
Verification: Inspect the extraSecretMounts block in k8s/monitoring/prometheus-values.yaml. Run uv run pytest tests/test_k8s_monitoring_alerting.py -k mount. - Criterion 4: The push table gains a row for monitoring/alertmanager-mattermost with stack infra. The key url is a derived entry using the in-cluster base URL constant, /hooks/, and the managed option mattermost.alerts_hook.
Verification: Run uv run pytest tests/test_k8s_push_secrets.py -k mattermost. Run uv run devops k8s push-secrets --dry-run and confirm the key appears with no value. - Criterion 5: The option mattermost.alerts_hook has keyring key mattermost_alerts_hook and is present in SECRET_CONFIG_OPTIONS, KEYRING_KEYS, and OPTION_TO_ENV_VAR.
Verification: Run uv run pytest tests/test_k8s_push_secrets.py -k dry_run. Inspect src/devops_cli/config/options.py and src/devops_cli/config/env.py for the three mappings. - Criterion 6: _secret_references also yields secretName as used in extraSecretMounts and in a volume's secret. The guard test gains a case for this reference type.
Verification: Run uv run pytest tests/test_k8s_push_secrets.py -k 'reference_without_a_row'. Confirm the new case passes and the old alertmanager-webhook mount no longer fails the guard. - Criterion 7: AlertmanagerNotificationsFailing reads kube_secret_info with namespace monitoring and secret .
Verification: Inspect the rule in k8s/monitoring/prometheus-values.yaml. Run uv run pytest tests/test_k8s_monitoring_alerting.py -k NotificationsFailing. - Criterion 8: The monitoring perimeter gains egress to namespace mattermost on TCP 8065 as a namespace-only peer with ports.
Verification: Inspect k8s/monitoring/networkpolicy.yaml for the new egress rule. Run uv run pytest tests/test_k8s_network_policies.py -k mattermost. - Criterion 9: The mattermost perimeter admits only Alertmanager pods on 8065: one peer with namespace monitoring and pod label app.kubernetes.io/name alertmanager.
Verification: Inspect the mattermost network policy file. Run uv run pytest tests/test_k8s_network_policies.py -k alertmanager. - Criterion 10: RoadmapServiceJobsFailing rule exists with severity warning, for 30m, and the PromQL expression groups by and matches on exactly repo and lane.
Verification: Inspect the rule in k8s/monitoring/prometheus-values.yaml. Run uv run pytest tests/test_k8s_monitoring_alerting.py -k baseline_rule_set. - Criterion 11: The rule summary names the repository and the lane. Its description gives the Loki query with namespace devops, repo, and lane filters.
Verification: Inspect the summary and description fields of the rule in k8s/monitoring/prometheus-values.yaml. - Criterion 12: SERVED_SERIES in the test file gains devops_cli_service_jobs_total with a comment naming the scrape.
Verification: Inspect tests/test_k8s_monitoring_alerting.py SERVED_SERIES set. Run uv run pytest tests/test_k8s_monitoring_alerting.py. - Criterion 13: The header comment of the values file describes the mattermost receiver and its Secret. The text alertmanager-webhook no longer appears under k8s/ or tests/.
Verification: grep -r 'alertmanager-webhook' k8s/ tests/ returns no matches. Inspect the header comment in k8s/monitoring/prometheus-values.yaml. - Criterion 14: The k8s/README.md Receiver section documents the three-step wiring process and removes the kubectl create secret step. The alert table gains RoadmapServiceJobsFailing. The self-health row names the alertmanager-mattermost Secret.
Verification: Inspect k8s/README.md Receiver section and alert table. Confirm no kubectl create secret step remains and the new rule is listed. - Criterion 15: The receiver test is renamed to test_alertmanager_sends_nowhere_until_the_mattermost_secret_exists and checks the new receiver and mount.
Verification: Run uv run pytest tests/test_k8s_monitoring_alerting.py -k mattermost_secret. Confirm the old test name no longer exists. - Criterion 16: All new tests touch no network and each call phase stays under 1 second.
Verification: Run uv run pytest tests/test_k8s_monitoring_alerting.py tests/test_k8s_push_secrets.py tests/test_k8s_network_policies.py --durations=0. Confirm no test exceeds 1 s in its call phase. - Criterion 17: uv run devops pr check-readiness passes.
Verification: Run uv run devops pr check-readiness and confirm exit code 0. - Criterion 18: uv run devops ci passes within its 5-minute budget.
Verification: Run uv run devops ci and confirm all checks pass within 300 seconds.
Key questions
- Alertmanager's native receiver, or the generic webhook through a converter, or through the Service?: Native receiver. It is in the running version, reads its URL from a file, and formats the message. A converter adds a service to run. The Service is down while its pod restarts after each release, so it cannot act on alerts. (proposed)
- Use default templates?: Yes, with title_link empty. They give the alert's name, summary, and description. The default title links to Alertmanager's own URL, which a browser cannot reach. A reachable link would put a homelab host in git. (proposed)
- Why an alert for Service failures rather than a post from the Service?: Alertmanager groups alerts, repeats them every 4 hours, sends a resolution, and lets a person silence them. The Service polls every 300 seconds, so a post per failed round would mean 12 posts per hour per repository. (proposed)
- Why this threshold, and is the rule right to fire today?: One failed round is ordinary. The rule needs an hour with no successful round, then 30 more minutes. It would fire today for this repository after more than four hours of GraphQL reserve refusals. That is a true positive: the roadmap did nothing for the repository and nobody knew. (proposed)
- Keep the generic webhook receiver too?: No. It was a placeholder that never delivered anything. Before 1.0 the codebase keeps no leftovers. (proposed)
- Delivery from outside the cluster?: Out of scope. See feat(k8s): the homelab hosts mattermost, and the cluster's alerts and argo cd deploys post to its channels #1390. (proposed)
- Does the rule group by repo alone or by (repo, lane)?: By (repo, lane). Issue 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 gave the counter a lane label. Grouping by repo alone would let a succeeding status lane hide a model lane whose every round fails. [sources: src/devops_cli/server/service.py:144, src/devops_cli/config/constants.py:1070-1072]
- Does the chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 block apply to this item?: No. Decision D1 states that 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. This item changes no Service code. Its one Service touch is an alert rule on a counter the Service already emits. At 0 replicas the counter has no series, so the rule merges silent and starts evaluating when the Service runs again. (proposed) [sources: k8s/devops/roadmap-service/deployment.yaml:10-12]
- Can check (d) run now?: No. Check (d) needs a running Service. It waits for the identity work in D2 or a reinstatement to lift replicas to 0. The merge does not wait. (proposed) [sources: k8s/devops/roadmap-service/deployment.yaml:10-12]
Open questions
- It is in the running version, reads its URL from a file and formats the message.
- A converter would be one more service to run.
- 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 takes no Alertmanager provider: no Service job acts on an alert, and the Service is down while its pod restarts after each release. So this item owns Alertmanager's receiver set alone.
- Default templates? Proposed: yes, with
title_linkempty. - They give the alert's name, summary and description.
- The default title links to Alertmanager's own URL, which a browser can't reach. A reachable link would put a homelab host in git.
- Why an alert for Service failures, rather than a post from the Service?
- Alertmanager groups alerts, repeats them every 4 h, sends a resolution, and lets a person silence them.
- The Service polls each repository every 300 s, so a post per failed round would mean 12 posts an hour for each repository.
- It would be firing today for this repository, after more than four hours of GraphQL reserve refusals (Problem).
- Proposed: that is a true positive. For those hours the roadmap did nothing for the repository, and nobody knew.
- fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 keeps every failed round in
result="error", and proposes, as an extension of refactor(github): the github session owns transport, ledger, error classes and link pagination #983, a subclass for the reserve refusal so that it logs without a traceback. 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 cuts the GraphQL cost of a round. If either changes how a refusal is counted, this rule follows the counter. - The six repositories without
roadmap.tomlfailed for about half an hour before a person fixed them (feat(roadmap): onboard checks a repository for the roadmap jobs #1359), so the rule would not have fired for them.
Fit
Fits in one pull request.
Suspected block
Issue #1391 has not landed: no mattermost namespace, no perimeter, no derived push-table entries, and no in-cluster base URL constant exist yet.
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.
Critical alerts (NodeNotReady, TargetDown) have been silently failing for at least 7 days and 67 roadmap-service failures in 24 h went unreported, leaving the team blind to outages.Spans Alertmanager config, a new Secret and mount, network-policy rules, alerting rules, the push-secrets table, and updates to several test files, but each piece is well-scoped.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 but not urgent and requires other dependencies.The change improves monitoring and alerting which is valuable to the project.The effort involves multiple components including alert rules, secret handling, and service deployment.alertmanager posts critical and warning alerts to mattermost's alerts channelas the change that both ask for.Both items ask for alertmanager to post alerts to mattermost's alerts channel, but item 1394 is about releases and this item is about jobs failing.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.
title_linkempty.result="error", and proposes, as an extension of refactor(github): the github session owns transport, ledger, error classes and link pagination #983, a subclass for the reserve refusal so that it logs without a traceback. 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 cuts the GraphQL cost of a round. If either changes how a refusal is counted, this rule follows the counter.roadmap.tomlfailed for about half an hour before a person fixed them (feat(roadmap): onboard checks a repository for the roadmap jobs #1359), so the rule would not have fired for them.feat(monitoring): the roadmap Service's identity refusals, failing an…
feat(k8s): derived push entries, Secret types, one stack list (#2618)
feat(k8s): post alertmanager alerts to mattermost
chore(main): release 0.32.0 (#2900)