Skip to content

feat(roadmap): move Service work to Workflows and Valkey #4517

Open
16 of 48 issues completed
Open

Description

@dan-petty

Update 2026-11-26 (infra move): the cluster environment moved to dan-petty/homelab.

The product manifests stay in k8s/devops/. The other k8s/ files that this plan and its children name (Argo Workflows chart values, ingress routes, Grafana and Prometheus values, the Valkey instances of namespace llm) are now in dan-petty/homelab. A child that changes only such files belongs there. A child with product and environment parts splits.


Problem or Motivation

The roadmap Service runs every roadmap job in one pod. About 19 releases and ConfigMap edits a day restart it (133 shutdowns in 7 days). Since 2026-11-07, 53 of 71 restarts killed a running stage round, while stage opens about 11 draft pull requests a week. No replica receives webhooks for about 37 minutes a day (about 116 s for each rollout), and GitHub does not redeliver a failed delivery by itself. The shared state of the jobs is on a ReadWriteOnce volume and in process memory.

The owner asked on 2026-11-11 for:

  1. the move of as much Service work as possible to jobs, workflows and event-driven tools, with a central Valkey store for shared data;
  2. repository-prefixed names for Kubernetes and data resources;
  3. roadmap Service API endpoints;
  4. a roadmap Service dashboard;
  5. a cluster start page with links to all services.

Goal

The Service keeps only the webhook router, with 2 replicas and no volume. Each roadmap job runs in a pod of its own on Argo Workflows. A sweep on a cluster schedule replaces the poll and the lanes. valkey-roadmap holds the coordination state; GitHub stays the source of truth. Every name, label, key and telemetry value of a repository comes from one RepoRef rule. A read-only API in the router, a Grafana dashboard and a Homepage start page show the state.

Decisions

  • Engine: Argo Workflows. The owner recorded "warm p95 11 s - go" on 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 on 2026-11-11 (ADR 0008 go: warm p95 11 s against 30 s, cold 54 s, burst p95 24 s, no new 429 or 5xx, 0 of 40 submissions failed). The no-go column (plain Jobs with Valkey slots) is dropped. The controller watches devops through a managed namespace.
  • Cheap fixes first. Intake due on a new issue, the image layer order, the read-back repair of job records and the stage Job cut measured costs before any Valkey or engine work. Stage runs first as a plain Job on the path of feat(k8s): the implement job runs as a cluster Job on a runner image with uv, the dev dependencies and the pinned tools, submitted by the Service #2667, then moves to a WorkflowTemplate in the engine step.
  • No new event tool. The router creates a Workflow with one API call. No DAG chain; a unit that makes work due sets a due mark.
  • Valkey holds coordination state, never the only copy of a decision. A new instance valkey-roadmap (AOF, noeviction, three ACL users). The read-back repair, not a lock, guards a job record.
  • One naming rule. RepoRef and a naming ADR own object names (devops-cli-<row>-<slug>-<n>-<hash>), labels (roadmap.devops-cli/owner|repo|item, component roadmap-<row>), Valkey keys (roadmap:v1:<kind>:<owner>/<name>[:<id>]), mutex names (<row>-<owner>.<name>) and telemetry values (the casefolded key). Namespaces do not change.
  • API: read-only, in the cluster only, in the router, reads Valkey only. Named read tokens. No write route in v1: labels, the argo CLI and GitOps cover a person's writes.
  • Dashboard: Grafana as code, folded into feat(roadmap): a dashboard and alerts for the pipeline #3655, with the Infinity datasource only for two lists from the API. Recording rules hold the shared selectors.
  • Start page: Homepage, links found from Ingress annotations, widgets on Prometheus and recorded series, one API widget.
  • Each step ships alone and deletes the Service path that it replaces (no shim). Each pull request states the lines it removes and adds.

Ordered child list

Each line gives the issue, its title, its child number in the order and the issues to merge first. "Start now" marks an item with no unmet dependency. "+ #n" names an open or in-flight item to merge first.

Filed with this plan as a sub-issue, but held and not in the order. It is a finding of the start page study, and the zone setting is an owner step. The owner keeps the Cloudflare config unchanged for now (owner decision 13):

  • dan-petty/homelab#340 fix(cloudflare): send plain HTTP ingress requests to HTTPS (held). Depends on: none.

Conditional, held, deferred and dropped items (not filed)

Item State Condition or reason
feat(github): share stored GitHub answers through Valkey conditional File only if a two-token probe gets 304: GitHub's ETag most likely depends on the token, so a cold pod gets no 304. The in-flight observability and caching study may run the probe.
feat(roadmap): resume a stage plan from its Valkey checkpoint conditional File only if the stage Job shows 2 or more stage pod deaths a week not caused by a deletion.
perf(k8s): pre-pull each release image on every node conditional File only if, after the image layer item, the median create-to-container-start of a runner Job stays over 10 s.
Public host for the API (two issues: a JWT check in the service, and the Ingress behind Access) conditional File only when the owner names a caller outside the cluster with no kubeconfig. Never run devops cloudflare access sync for that host: it adds the IP bypass.
fix(rag): key Qdrant points by repository, not folder name held File when a second repository goes into Qdrant, or when Service work calls Qdrant.
API start, retry and pause routes deferred Labels, the argo CLI and GitOps cover a person; a pause only in Valkey breaks the state rules.
/roadmap Mattermost command delete Owner decision 2026-11-11 (0 uses in 7 days).
Service data under one path per repository; a new prefix for every key; item history and decision routes; a process-memory reader; the no-go engine dropped The move deletes the files; the instance is the namespace; GitHub and Loki hold the history; the router runs 2 replicas; the verdict is go.

Related open items

#3105 and #3655 are children. #4412 merges before child 17 or folds into it. #4485 (in flight) merges before children 10 and 22. #3793 closes as superseded when child 18 merges. #3672, #3942 and #3941 are checked when child 21 merges. #3700 orders with #3105. #3589, #3949 and #3950 (RAG ingest lane) wait for child 16. #3908 (research sweep schedule) can use a CronWorkflow after child 16. #4003 and #4098 (planner run Job) must work from a stage Job (child 10). #3076 (run console) can read the run records of child 32. #4362 and #4363 (tools.lock removal) shape child 8. #2968 (inbox gauges) sits beside child 27.

Owner questions

  1. Decided 2026-11-11: the three valkey-roadmap passwords (users router, sweep, agent) are generated managed credentials of devops k8s push-secrets (child 13, feat(service): share the GitHub budget and holds in Valkey #4563). The person runs uv run devops k8s push-secrets after the merge.
  2. Decided 2026-11-11, approved as proposed. Model concurrency: stage Jobs at once before the engine (setting roadmap.stage.jobs, proposed 1), then the semaphores agent and triage (proposed 2 and 2; today 1 slot for the whole Service). This sets the spend an hour.
  3. Decided 2026-11-11: DeepSeek builds the plan (Sonnet is on hold).
  4. Decided 2026-11-11: delete the Mattermost /roadmap command.
  5. Decided 2026-11-11: the API serves read-only dashboard routes and the webhook routes; no write routes. (Was: is the API in the cluster only enough for v1 (Grafana, the start page, the CLI through kubectl port-forward)? Name an outside caller to open the public host item.)
  6. Decided 2026-11-11: item titles of private repositories may show in Grafana. (Was: through Grafana, the API lists are readable with no login from the home address. May item titles of private repositories show there, or do the routes return numbers only?)
  7. Decided 2026-11-11: no write routes. (Was: do labels, comments, the argo CLI and GitOps cover your start, retry and hold needs, or do you name a caller for write routes?)
  8. Decided 2026-11-11: the three API read tokens (grafana, startpage, cli) in service.api.tokens are generated managed credentials of devops k8s push-secrets (child 31, feat(service): serve a read-only roadmap API with OpenAPI #4586). The person runs it after the merge.
  9. Decided 2026-11-11: fold the dashboard design into feat(roadmap): a dashboard and alerts for the pipeline #3655.
  10. Decided 2026-11-11: expose the Argo Workflows UI behind Access, and show Workflow runs, logs and controller metrics in Grafana and Loki. Child 40 (#4530) does this.
  11. Decided 2026-11-11: the start page host name is start on the homelab domain (the placeholder in git stays start.example.com).
  12. Decided 2026-11-11: skip the apex redirect for now.
  13. Decided 2026-11-11: Cloudflare config stays unchanged for now; the HTTP item dan-petty/homelab#340 is held.

Measure of the whole

Measure Today Target
Stage rounds killed by a Service shutdown 53 of 71 restarts since 2026-11-07 0 a week
Draft pull requests that stage opens 11 a week more
Wait of a lost scoped update of a new issue up to 30 min 5 min or less
Minutes a day with no available receiver 36.9 0
Failed deliveries with no redelivery not counted 0 a week
Request windows for the App installation 1 self-cap in the Service + 1 ledger in each runner Job 1 shared set
Image bytes that a release changes about 0.5 GB under 50 MB
Runner Job create to first gateway call, median 204 s under 90 s

Target Subsystem

SDLC, Git & PR Governance (roadmap Service), with Kubernetes manifests, the container image, Valkey and monitoring.

Existing Tool Considered

Argo Workflows (installed), Kubernetes Jobs, Valkey 9.1.3 with valkey-py, limits 5.8.0, fakeredis with lupa, GitHub's webhook redelivery API, uv's Docker layer pattern, git partial clone, Prometheus recording rules, Grafana and the Infinity datasource, FastAPI OpenAPI, Homepage, OpenTelemetry VCS conventions, Cloudflare "Always Use HTTPS". Rejected with reasons in the ADRs: WorkflowEventBinding, Argo Events, KEDA, DBOS, a Valkey stream queue, DAG chains, a timer in the router, a Kubernetes Lease, a hand-built Lua window, a shared installation token, a pre-pull DaemonSet as the first image fix, generateName for Service units, a new web page or the TUI as the dashboard.

Written cost of the children (estimates from the two studies; the surface studies use a higher token rate for each hour): the move (children 1, 3, 6-8, 10, 11, 13-22) about 1.9M tokens and about 85 hours; names and telemetry about 0.8M tokens and 8 hours; the API about 1.2M tokens and 16 hours; the dashboard about 1.45M tokens and 18.5 hours; the start page and the HTTP item about 1.1M tokens and 15.5 hours. Sum: about 6.4M tokens and about 143 hours of agent time, plus reviews and live checks. On the implement model (about 0.33 USD an issue) about 13 USD; at Sonnet gateway prices (about 11 USD an issue) about 440 USD (estimates).

Findings outside this plan

  • valkey-runs holds no keys, and its NodePort is open to any source on the network. It is open to workstations by design; ask whether it still has a user before a change.
  • The three existing Valkey instances run 9.1.2; 9.1.3 is a security release. The cluster pins Argo Workflows v4.1.5; v4.1.6 is out.
  • defaults.py:1062-1065 gives "the Service's model tier serves one call at a time" as the reason for one model slot; the Service model is a hosted route now. Child 17 removes the slot from the Service and corrects the reason.
  • The study note that refine writes a body with no check for a person's edit is not true at main: refine checks with _body_unchanged_since_read (src/devops_cli/roadmap/refine/refine.py:2798). No item.

Acceptance Criteria

  • Each child is merged, or closed with evidence.
  • The measures of the whole meet their targets over 7 days after child 22 merges.
  • No roadmap row runs in the router pod; the router runs 2 replicas with no volume.

Dependencies

None for the tracker. The children carry their own.

Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows), Apache-2.0, last activity 2026-11-25, maintained.
Reason: Searches found no single tool that covers the move, and the repository facts confirm Argo Workflows, which the issue already names as installed, as the maintained Kubernetes-native workflow engine; it covers the per-pod job engine and scheduled sweep only, not Valkey state, naming, API, dashboard or start page.

Covers:

  • Runs each roadmap job in a pod of its own
  • CronWorkflow replaces the poll with a cluster schedule
  • Semaphores and mutexes bound concurrency; retries are built in
  • Workflow runs and logs are observable

Lacks:

  • No coordination store for shared keys, locks and ledgers
  • No repository naming rule for objects, labels and keys
  • No read-only roadmap API, Grafana dashboard or start page

Proposed design

Problem statement

The roadmap Service runs every roadmap job in one pod, and about 19 releases and ConfigMap edits a day restart it. Since 2026-11-07, 53 of 71 restarts killed a running stage round, and no replica receives webhooks for about 37 minutes a day. The shared state sits on a ReadWriteOnce volume and in process memory. This tracker records the approved move of each job to its own Argo Workflows pod, the coordination state in valkey-roadmap, and the phase order that #5482 holds.

Acceptance criteria

Requirement: Phase order is recorded

The move record SHALL list the 8 phases 0 to 7 in order, and each phase SHALL name its contents.

Scenario: The record has 8 ordered phases

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds phase headings 0 to 7, with the stage Job in Phase 1, the PR jobs in Phase 3, the Valkey and engine in Phase 4, the intake and triage in Phase 5, the research and resolve in Phase 6, and the tests and review in Phase 7.

Requirement: Child tracker is named

The move record SHALL name #5482 as the sub-issue that holds the ordered child list and #5014 as the tracker of the Phase 3 PR jobs.

Scenario: The record names #5482 and #5014

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds #5482 as the sub-issue with the ordered child list and #5014 as the Phase 3 PR jobs tracker.

Requirement: Decisions D1 to D10 are recorded

The move record SHALL list decisions D1 to D10 with their approved answers.

Scenario: The record has D1 to D10

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds each of D1 to D10, including D8's four webhook events pull_request, pull_request_review, check_suite and issue_comment, and D10's rule of no PriorityClass.

Requirement: Due marks are replaced by due_jobs

The move record SHALL state that due_jobs(subject) (#5504) is the only source of what is due, and that #5502 amends ADR 0021.

Scenario: The record has no due mark rule

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds due_jobs(subject), #5504 and #5502, and it finds no rule that a unit of work sets a due mark.

Requirement: Stage split is recorded

The move record SHALL state that #4559 is split into #5483 for part 1 and #4559 for part 2, and that #4558 is in Phase 0 and #4957 is in Phase 1.

Scenario: The record has the stage split

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds #5483 with the template, the one-item entry point, the stage keys and the stage request budget, #4559 with the submit row, #4558 in Phase 0 and #4957 in Phase 1.

Requirement: Replaced issues are recorded

The move record SHALL list each replaced issue and its replacement: #4078 by #5505, #3049 and #2867 by #5521, #3109 by #5506, #4617 by #5502, and #5474 as a duplicate of #5482.

Scenario: The record has the replacement pairs

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds each pair, including #4078 with #5505, #3049 with #5521, #2867 with #5521, #3109 with #5506, #4617 with #5502, and #5474 with #5482.

Requirement: Delivery rule is recorded

The move record SHALL state the delivery rule: each job issue has a live proof after the merge and release; a build or live job that keeps failing is divided into smaller sub-issues and refined, not retried; the worst-failing job is worked first and the open children are ranked again after each phase.

Scenario: The record has the delivery rule

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds the live proof rule, the condition of two failed build attempts or a job under band 70 after its phase, and the rule to work the worst-failing job first and rank the open children after each phase.

Requirement: Owner steps are recorded

The move record SHALL list the owner steps of each phase, including Phase 0 fix_plan after #5411, Phase 2 the ADR records #5502, #5245, #5246 and #5235, Phase 3 the four webhook events and O3, Phase 4 O4, Phase 5 the 30 premise verdicts and the daily cap, and Phase 6 and 7 the research caps and the 30 review verdicts.

Scenario: The record has the owner steps

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds each owner step with its phase, including #5411 in Phase 0, #5502, #5245, #5246 and #5235 in Phase 2, and the 30 review verdicts in Phase 7.

Requirement: Measures of the whole are recorded

The move record SHALL give each measure of the whole with its today value and its target.

Scenario: The record has 8 measures

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds the 8 measures, including 0 stage rounds killed a week, 0 minutes with no available receiver, 0 failed deliveries with no redelivery, and the image bytes from about 0.5 GB to under 50 MB.

Requirement: Completion condition is recorded

The move record SHALL state that the tracker is complete when each child is merged or closed with evidence, and the measures meet their targets over 7 days after #4575 merges.

Scenario: The record has the completion condition

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds the completion condition with #4575 and the 7-day measure window.

Requirement: Argo Workflows UI host is recorded

The move record SHALL name workflows.<domain> as the host of the Argo Workflows UI behind Cloudflare Access.

Scenario: The record names the workflows host

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds workflows.<domain> and the Cloudflare Access rule for the Argo Workflows UI.

Requirement: Router target is recorded

The move record SHALL state that the roadmap Service router runs 2 replicas, mounts no PersistentVolumeClaim and runs no roadmap row.

Scenario: The record has the router target

  • WHEN A test reads docs/roadmap/service-move.md
  • THEN It finds the router target of 2 replicas, no PersistentVolumeClaim and no roadmap row.

Existing Tool Considered

Argo Workflows is in use. The alternatives check of 2026-11-11 returned in-use: the item already names Argo Workflows (argoproj/argo-workflows, Apache-2.0, last activity 2026-11-11, maintained). It covers the engine: each job runs in its own pod, CronWorkflow schedules the sweep, and it gives mutexes, semaphores and retries. It lacks a coordination store (the separate valkey-roadmap instance holds keys, locks and ledgers), the RepoRef naming rule, the read-only FastAPI roadmap API in the router, the Grafana dashboard and the Homepage start page. The project builds those parts. The body writes the cost as about 6.4M tokens and about 143 hours of agent time, plus reviews and live checks. The engine is pinned at v4.1.6 (k8s/argo-workflows/values.yaml:12).

Key questions

  • What did the owner decide on 2026-11-13 for the pipeline split?: The owner approved the pipeline split design on 2026-11-13 and the recommended answers of D1 to D10, with phase order 0 to 7. Tracker feat(roadmap): track the roadmap pipeline split into jobs #5482 holds the ordered child list as a sub-issue of feat(roadmap): move Service work to Workflows and Valkey #4517, and feat(roadmap): track the Service step jobs #5014 keeps the PR jobs of Phase 3. The stage Job is the first phase: feat(roadmap): add the stage Job template and one-item entry point #5483 is part 1 of 2 of feat(roadmap): run each stage item in its own Job #4559, and the stage CronJob template already exists. (best practice) [sources: openspec/changes/archive/2026-11-13-5483-stage-job-template-entry/proposal.md:5, openspec/changes/archive/2026-11-13-5553-each-roadmap-job-in-its-own-lane/design.md:13, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:314, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:323, docs/CLUSTER.md:76]
  • Which engine runs the roadmap jobs?: Argo Workflows, pinned at v4.1.6 in k8s/argo-workflows/values.yaml. ADR 0008 records the measured go and ADR 0021 records the 2026-11-11 go verdict. The controller runs alone in namespace argo-workflows. (best practice) [sources: docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:3, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:5, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:7, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:13, k8s/argo-workflows/values.yaml:12, k8s/argo-workflows/values.yaml:24]
  • Where does the coordination state live?: In valkey-roadmap, a Valkey instance with AOF, noeviction, a maxmemory bound below its container memory limit, and three ACL users (router, sweep, agent). GitHub stays the source of truth, so Valkey never holds the only copy of a decision. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md:3, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:80, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:81, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:87, k8s/llm/valkey-runs.yaml:88, k8s/llm/valkey-runs.yaml:91, src/devops_cli/valkey/client.py:1]
    • Chosen: Valkey valkey-roadmap. The run-index instance shows the durable pattern (AOF and noeviction), and ADR 0021 names the instance, its three users and its keys.
    • Rejected: Process memory and a ReadWriteOnce volume. The move deletes the volume and the router runs two replicas, so a restart loses the state.
  • What naming rule do the resources of a repository use?: One RepoRef value builds every object name, label value, annotation, Valkey key, mutex name and telemetry value of a repository. ADR 0022 gives the rule, and src/devops_cli/github/repo_ref.py holds it. (best practice) [sources: docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:43, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:47, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:56, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:78, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:85, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:92, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:103, src/devops_cli/github/repo_ref.py:1, ARCHITECTURE.md:226]
    • Chosen: One RepoRef rule. One rule covers every name, label, key and telemetry value, so telemetry can join them.
    • Rejected: Per-resource naming. Names diverge, and a new resource repeats the rule.
  • How many stage Jobs and model slots run at once?: One stage Job before the engine (roadmap.stage.jobs), then the Argo semaphores agent and triage each admit 2, and steward admits 1 pod of resolve and split. The owner decided this count on 2026-11-11. Today the Service keeps one model call in flight. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:67, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:97]
    • Chosen: 1 stage Job, agent 2, triage 2, steward 1. ADR 0021 records the owner's 2026-11-11 limits: one stage Job before the engine, then the semaphores.
    • Rejected: 1 stage Job, agent 1, triage 1. It keeps today's one model slot, and the owner raised both semaphores.
    • Rejected: One slot for the whole Service. A process-wide slot cannot span Workflow pods, and the Service model is a hosted route now.
  • How does the reconcile sweep run?: As an Argo CronWorkflow on a cluster schedule every 5 minutes. due_jobs(subject) (feat(roadmap): one due_jobs function names the due jobs of an item #5504) is the only source of what is due, and docs(adr): record the roadmap job split and the due_jobs rule #5502 amends ADR 0021 to remove due marks. The poll and the repository lanes go. (best practice) [sources: docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md:3, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:56, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:62]
  • How does a failed webhook delivery reach the router again?: A short row asks GitHub to redeliver each failed delivery through the redelivery API, one call for each delivery, and records the outcome. GitHub does not redeliver a failed delivery by itself. (best practice) [sources: docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md:3, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:315]
    • Chosen: GitHub redelivery API. GitHub holds the delivery record, and the router keeps no state.
    • Rejected: A retry timer in the router. It adds state to the router, and a restart loses the retry.
  • How is a job record guarded against a parallel write?: By a read-back repair, not a lock. After a write, the job reads the record back and writes any mark that a parallel write lost. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:81, src/devops_cli/roadmap/refine/refine.py:3052]
    • Chosen: Read-back repair. The refine job already guards a write with a read-back check, and the repair needs no lock.
    • Rejected: A Kubernetes Lease or a Valkey lock. A lock adds a holder that can die and a second copy of the state.
  • What is the scope of the roadmap Service API in v1?: Read-only, in the cluster only, in the router, and it reads Valkey only. It serves the dashboard, the start page and the CLI read through kubectl port-forward. It has no write route. (best practice) [sources: docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md:3, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:51]
    • Chosen: Read-only, cluster-only API. It covers Grafana, the start page and the CLI, and the owner named no outside caller.
    • Rejected: Public API with write routes. No outside caller is named, and a write route adds a state path that Valkey cannot own.
  • Which dashboard and start page tools does the plan use?: Grafana with dashboards as code for the pipeline, folded into feat(roadmap): a dashboard and alerts for the pipeline #3655, with the Infinity datasource only for two lists from the API. Homepage for the start page, with links from Ingress annotations and widgets on Prometheus and the recorded series. (best practice) [sources: k8s/monitoring/grafana-values.yaml:1, docs/DESIGN.md:261, openspec/changes/archive/2026-11-11-4542-set-the-homelab-domain-in-container/proposal.md:23]
    • Chosen: Grafana and Homepage. Grafana is installed with dashboards as code, and Homepage reads Ingress annotations and Prometheus.
    • Rejected: A new web page or the TUI as the dashboard. It builds code that the project must keep, and it does not cover the start page.
  • Does the plan expose the Argo Workflows UI?: Yes. Child 40 (#4530) exposes argo-server behind Cloudflare Access, and Grafana shows the Workflow runs, their Loki logs and the controller metrics. The current values run the controller with no argo-server. (best practice) [sources: docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:7, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:136, k8s/argo-workflows/values.yaml:29, k8s/argo-workflows/values.yaml:30]
    • Chosen: argo-server behind Access. The owner asked for the Workflow drill-down on 2026-11-11.
    • Rejected: No UI. The owner now wants the drill-down, so the controller-only values change.
  • Which host does the Argo Workflows UI use?: workflows.<domain>. argocd.<domain> is Argo CD, so workflows.<domain> keeps the engine's UI apart. start.<domain> is the start page, chat.<domain> is Open WebUI and ai.<domain> is the LLM gateway. (best practice) [sources: k8s/ingress/ingress-routes.yaml:35, k8s/ingress/ingress-routes.yaml:59, k8s/ingress/ingress-routes.yaml:379]
    • Chosen: workflows.<domain>. It keeps the engine's UI apart from Argo CD's argocd.<domain>.
    • Rejected: argo.<domain>. It reads as Argo CD's base URL.
    • Rejected: argocd.<domain>. Argo CD already uses it.
  • Does the plan keep the Mattermost /roadmap command?: No. Delete it, with its token and its cluster Secret entry. It had 0 uses in 7 days, the owner decided its removal on 2026-11-11, and the move deletes the read model that answers it. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:316, docs/CLUSTER.md:109, src/devops_cli/server/routes/webhooks.py:460]
    • Chosen: Delete the command. No uses in 7 days, the owner decided it on 2026-11-11, and the read model that answers it goes with the move.
    • Rejected: Keep the command. It would need a new read path after the move and a token to keep.
  • What host name does the start page use?: start.<domain>. The owner kept the host start on 2026-11-11, and only the placeholder start.example.com changes. The apex homelab.<domain> stays Open WebUI and no item routes or redirects it. (best practice) [sources: k8s/ingress/ingress-routes.yaml:35, openspec/changes/archive/2026-11-11-4542-set-the-homelab-domain-in-container/design.md:10]
    • Chosen: start.<domain>. The owner kept this host in the decision of 2026-11-11, and the deploy-stack gate already treats start.example.com as its placeholder.
    • Rejected: home.<domain>. The decision keeps start, so no rename is needed.
    • Rejected: The apex homelab.<domain>. Open WebUI answers there, and the owner skipped the apex redirect.
  • What does the roadmap Service Deployment run today?: One replica with the Recreate strategy, one uvicorn worker and the roadmap-service-home PersistentVolumeClaim mounted at /home/devops, because its volume is ReadWriteOnce. No replica receives webhooks for about 116 s at each rollout. [sources: k8s/devops/roadmap-service/deployment.yaml:13, k8s/devops/roadmap-service/deployment.yaml:15, k8s/devops/roadmap-service/deployment.yaml:64, k8s/devops/roadmap-service/deployment.yaml:148, docs/CLUSTER.md:42]
  • Who creates the three valkey-roadmap passwords?: devops k8s push-secrets generates them as managed credentials of users router, sweep and agent (child 13, feat(service): share the GitHub budget and holds in Valkey #4563); a person runs devops k8s push-secrets --plan and then devops k8s push-secrets after the merge. Agents do not create secret values. (best practice) [sources: docs/CLUSTER.md:14, docs/CLUSTER.md:15, docs/CLI_REFERENCE.md:106, SECURITY.md:64, src/devops_cli/k8s/cluster_secrets.py:126, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:88]
    • Chosen: devops k8s push-secrets. The command generates managed credentials, and the owner decided this on 2026-11-11.
    • Rejected: Create the passwords by hand. Agents do not create secret values, and the command keeps them managed.
  • Who creates the three API read tokens?: devops k8s push-secrets generates the tokens grafana, startpage and cli of service.api.tokens as managed credentials (child 31, feat(service): serve a read-only roadmap API with OpenAPI #4586); a person runs devops k8s push-secrets after the merge. (best practice) [sources: docs/CLUSTER.md:14, docs/CLUSTER.md:15, docs/CLI_REFERENCE.md:106, src/devops_cli/k8s/cluster_secrets.py:126]
    • Chosen: devops k8s push-secrets. The command generates managed credentials, and the owner decided this on 2026-11-11.
    • Rejected: Create the tokens by hand. Agents do not create secret values, and the command keeps them managed.
  • Who confirms that the move is complete and closes the tracker?: The owner closes it when each child is merged or closed with evidence, and the measures of the whole meet their targets over 7 days after child 22 (feat(service): make the webhook router stateless #4575) merges. (a person decides)

Open questions

  • Who confirms that the move is complete and closes the tracker? (a person decides)

Fit

Needs splitting into 8 items:

  1. Phase 0: plan fixes and measures
  2. Phase 1: the stage Job (feat(roadmap): add the stage Job template and one-item entry point #5483 part 1, feat(roadmap): run each stage item in its own Job #4559 part 2)
  3. Phase 2: the ADR record and due_jobs (docs(adr): record the roadmap job split and the due_jobs rule #5502, feat(roadmap): one due_jobs function names the due jobs of an item #5504)
  4. Phase 3: the PR jobs of feat(roadmap): track the Service step jobs #5014
  5. Phase 4: Valkey and the engine
  6. Phase 5: intake and triage
  7. Phase 6: research and resolve (feat(roadmap): add incident and supervise jobs that read the SLOs #5477, feat(roadmap): supervise gives an incident P0 item extra resources #5511)
  8. Phase 7: tests and review

Suspected block

None.

Dependencies

None.

Sub-issues

Sub-issues

16 of 48 Issues completed
Loading 48 sub-issues

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/high
    effort/high
    on Nov 11, 2026
  2. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

  3. added
    priority/p1-high
    on Nov 11, 2026
  4. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Owner decisions, 2026-11-11:

    Still open: model concurrency (question 2), the build model (question 3), the API audience and visibility (questions 5 to 7), the dashboard fold into #3655 (question 9), the Argo Workflows UI (question 10), the apex domain (question 12) and "Always Use HTTPS" (question 13).

  5. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 9087b39 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.

    • Who creates the three valkey-roadmap passwords? (a person decides)
    • What host name does the start page use? (a person decides)
  6. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Owner decisions, 2026-11-11 (second set):

    • Model concurrency. As proposed: stage Jobs run 1 at a time before the engine; then the Argo semaphores agent = 2 and triage = 2.
    • Build model. DeepSeek builds this plan. Sonnet stays on hold.
    • API audience. Read-only routes for the dashboard (Grafana, the start page widgets, the CLI read) and the webhook routes. No write routes.
    • Grafana visibility. Item titles of private repositories may show in Grafana.
    • Dashboard. Fold the dashboard design into feat(roadmap): a dashboard and alerts for the pipeline #3655 (Grafana as code).
    • Argo Workflows UI. Expose it behind Access, and show Workflow runs, their logs (Loki) and the controller metrics in Grafana. A new sub-issue covers it.
    • Apex domain. It redirects to the start page. Build the redirect in the cluster only if it needs no Cloudflare change.
    • Cloudflare. The config stays unchanged for now. The item "send plain HTTP ingress requests to HTTPS" is held until the owner lifts the hold.

    All owner questions of this tracker now have an answer.

  7. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Correction, 2026-11-11: the owner skips the apex redirect to the start page for now. The start page keeps the host start, and no item routes or redirects the apex domain until the owner asks for it.

  8. 36 remaining items

  9. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The searches and the repository facts confirm Argo Workflows as an actively maintained, Apache-2.0, Kubernetes-native workflow engine that runs each job in a pod of its own and schedules CronWorkflows, which is exactly the engine the move needs, and the issue already names it as installed with ADR 0008 recording the measured go. The remaining plan pieces reuse other pinned open tools (Valkey, FastAPI, Grafana, Homepage); only the RepoRef naming rule is project-specific.

    The item already names this tool.

    Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows)

    • License: Apache-2.0
    • Last activity: 2026-11-11
    • Maintained: yes

    Covers:

    • Runs each roadmap job as its own pod in a Workflow instead of inside the Service pod
    • Provides the CronWorkflow schedule for the reconcile sweep that replaces the poll and repository lanes
    • Gives retries, template checks and semaphores behind mutexes with no queue code of the project's own
    • argo-server supplies the Workflow runs/logs UI that child 40 exposes behind Access

    Lacks:

    • A coordination state store (the separate valkey-roadmap instance holds keys, locks and ledgers)
    • The RepoRef naming rule for object names, labels, Valkey keys and telemetry values
    • The read-only roadmap API served by FastAPI in the router
    • The Grafana dashboard and the Homepage start page

    Tools considered:

    Searches run:

    • Argo Workflows run each job in its own Kubernetes pod workflow engine, results: 5
    • Argo Workflows steps run in separate pods CronWorkflow documentation, results: 5
    • Valkey open source key value store AOF persistence ACL users, results: 5
    • valkey github valkey-io, results: 5
    • argoproj argo-workflows, results: 5
    • argo-workflows.readthedocs.io workflow templates steps, results: 5

    Sources:

    Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.

  10. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 87ae9ee 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.

    • Which host does the Argo Workflows UI use? (a person decides)
    • Who creates the three valkey-roadmap passwords? (a person decides)
    • Who creates the three API read tokens? (a person decides)
    • Who confirms that the move is complete and closes the tracker? (a person decides)
  11. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    Owner decision 2026-11-13: the roadmap pipeline split

    The owner approved the pipeline split design on 2026-11-13: "proceed as recommended with the service jobs refactor". The approval covers the recommended answer of each decision D1 to D10 and the phase order 0 to 7. Tracker #5482 holds the ordered child list. It is a sub-issue of #4517. #5014 keeps the PR jobs of Phase 3 and their order.

    What changes for #4517 and #5014

    Decisions (approved)

    • D1: scaffold is a step module with its own command and result line, and no placeholder commit. A trial arm uses the trial field of feat(roadmap): trial a model tier on a share of a job's attempts #5177.
    • D2: no -n branch suffix now; a two-branch check; parallel work goes to split sub-issues.
    • D3: one Staged rule for each item by the effort pass, never two paths on one head.
    • D4: no new label; remove the labels that nothing writes (chore(github): delete the labels that nothing writes #5503).
    • D5: the record stays in the issue body, with one writer, the updated_at check and the outside-text compare.
    • D6: the tests job pushes failing tests behind a gate, only after E3.
    • D7: watch drafts a bot PR only on deterministic verdicts (at most 3 cycles); review posts a COMMENT review and never approves.
    • D8: the App gets the events pull_request, pull_request_review, check_suite and issue_comment; new permissions are deferred.
    • D9: spend switches go on in steps, each from a measured cost.
    • D10: extra P0 resources only for incident classes, under a daily cap; no PriorityClass.

    Phase order

    0 plan fixes and measures; 1 the stage Job; 2 the ADR record and due_jobs (in parallel with 1); 3 the PR jobs of #5014; 4 Valkey and the engine; 5 intake and triage (in parallel with 3 and 4); 6 research and resolve (after band 70 and the safe-outputs split); 7 tests and review.

    Delivery rule

    • Each job issue has a live proof. After the merge and the release, the job runs as the App in the cluster against real issues, branches and PRs. A comment gives the result lines.
    • When a build or a live job keeps failing, divide it into smaller sub-issues and refine them. Do not retry it. "Keeps failing" means two failed build attempts, or a job under band 70 after its phase.
    • Work the worst-failing job first, and rank the open children again after each phase from the job grades and the funnel.

    Owner steps

  12. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at ffce5d9 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.

    • Who confirms that the move is complete and closes the tracker? (a person decides)
  13. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Answer to the open question: who confirms that the move is complete and closes the tracker?

    Decision: an agent confirms it with evidence and closes the tracker. A person can open it again.

    The agent closes the tracker only when all of these are true:

    The agent posts one comment with the query and the value of each measure. Then it closes the tracker as completed.

    If a measure misses its target, the agent keeps the tracker open and files an issue for the gap. The owner then accepts the miss with a reason, or keeps the work open.

    Note: refine does not read a tracker since #5963. This comment records the decision. #6446 removes the old refine wait from the inbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p1-highscope/roadmapsource/agentstatus/newtype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions