Repository navigation
Description
Update 2026-11-26 (infra move): the k8s/llm/ manifests that this item names are in dan-petty/homelab, and step 17 (#7290) deletes them here.
- The
valkey-roadmapinstance is in this repository: feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 addedk8s/devops/valkey-roadmap(feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7302). Do not createk8s/llm/valkey-roadmap.yaml. - A change to
valkey-devopsorvalkey-runsbelongs in dan-petty/homelab.
Problem or Motivation
The roadmap Service paces its GitHub requests with a 103 KB file that it rewrites about 2,000 times an hour (RequestBudget, src/devops_cli/server/service.py:222). Every process sees GitHub's real quota through the rate-limit headers (rate_limiter.py:1-12,602-605), but only the Service counts against the self-cap of 3,000 an hour, and each runner Job keeps its own ledger (app_installation.py:55-59). Writes are paced at 1 s under a file lock on one node (defaults.py:940; rate_limiter.py:1065-1069,1086-1090). The GraphQL pause is in memory (service.py:359), the identity halt is a file, and the delivery cache is in memory (DeliveryLRUCache, src/devops_cli/server/routes/webhooks.py:561). The window is at 98 % or more of the cap in 25.5 % of the minutes. When the roadmap jobs run in many pods, these must be shared.
Proposed Solution & Architectural Design
- Delivered by feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 (feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7302): the instance
valkey-roadmapis ink8s/devops/valkey-roadmap/, with the userdefaultoff and the ACL usersbrain,agentandmetrics. This item adds the ACL usersrouterandsweep(owner decision of 2026-11-26, below). The first plan of the instance is in the edit history of this body. - Delivered by feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294: the settings
roadmap.state.urlandroadmap.state.username, and the credentialroadmap.state.password. - A state module (for example
src/devops_cli/roadmap/shared_state.py) on the existing client (src/devops_cli/valkey/client.py). All key names come fromRepoRef(casefoldedroadmap:v1:<kind>:<owner>/<name>[:<id>]):limitsmoving windows with Valkey storage andkey_prefixroadmap:v1:limits: all requests an hour (service.github_requests_per_hour), and content-generating requests a minute and an hour (settings under GitHub's 80 and 500). No refund for a 304.roadmap:v1:hold:graphql:<installation>withEXAT <reset>.roadmap:v1:halt:<installation>, no TTL; the router exports the gauge; a commanddevops roadmap halt --clear --confirmthat a person runs in the router pod.roadmap:v1:delivery:<id>withSET NX EX 86400, set after the delivery target accepted the delivery.roadmap:v1:sentinel, written at the first start; a missing sentinel fails every caller closed and fires an alert.
- The Service and the runner Job hit the same windows. A pod checks the window before it takes a slot or a lock.
- Fail closed at the start of a round when Valkey does not answer. The router still accepts a delivery. The implement deadline row still runs.
- Check which clock
limitsuses for the moving window; if it is the client clock, measure the node clock skew and state it. - Alerts:
redis_up == 0for 5 minutes, and a missing sentinel.
Removes: the file and the deque of RequestBudget (service.py:191-324 file part), its refund, StateRecord kinds budget and halt, RoundPause._until, service-halt.json, DeliveryLRUCache, the ledger file of the runner Job.
Secrets (owner decision 2026-11-11): register the two passwords of the users router and sweep (#7294 registered brain, agent and metrics) as generated managed credentials in src/devops_cli/k8s/cluster_secrets.py, as mcp_token is (token_urlsafe(32)). devops k8s push-secrets then makes them, keeps them in the keyring and writes them to Secret devops-cli and to the Secret that the valkey-roadmap ACL file reads. Agents write no secret value; the person step is to run uv run devops k8s push-secrets --plan, then uv run devops k8s push-secrets, after the merge.
Target Subsystem
Workstation Caching & Valkey (src/devops_cli/k8s/cluster_secrets.py, src/devops_cli/roadmap/, src/devops_cli/server/).
Existing Tool Considered
limits 5.8.0 (MIT; moving window, Valkey storage since 4.3; https://limits.readthedocs.io/en/stable/storage.html). It has no refund; in short pods a 304 is about 0.25 % of the answers, so no refund is needed. Valkey 9.1.3 and valkey-py 6.2.0 (pinned). A hand-built Lua window is rejected. valkey-devops (evicts keys, keeps no file) and valkey-runs (any source can reach its NodePort) are rejected for this state. Cost: about 200,000 tokens and 9 hours to build (instance 60,000; module and command 140,000), about 10,000 tokens a month to keep, about 20,000 tokens to fix. New resources: none. The pod and its volume came with #7294.
Acceptance Criteria
- Two clients on one fake server hit at most the limit in one window, together; the write limits hold across two clients.
- A hold set by one client stops a round in the other until the reset.
- A halt stays after a client restart; the gauge shows it; the clear command removes it only with
--confirm. - A repeated delivery id gets the outcome of a repeated delivery from a second router process; a delivery whose target failed is not marked.
- With Valkey down: no round starts, the router answers 202, the deadline row runs. With the sentinel missing: every caller fails closed.
- Live (as
devops k8schecks): the entries of a runner Job appear in the same window; a pod in another namespace cannot connect on 6379; each ACL user reaches only its keys. - The ConfigMap example and
README.mdlist the new settings. - Measure: budget file writes go to 0; secondary-limit answers (403 with
retry-after) a week: 0.
Dependencies
- "docs(roadmap): record the roadmap Service move to jobs and Valkey".
- "test(valkey): add a contract suite for the Valkey fake".
- "feat(roadmap): name each repository's resources from one RepoRef".
- feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 (the instance, its URL setting and its ACL users; it holds the step of a person for the passwords).
Source: #4517
Owner decision 2026-11-26
Parts 1 and 2 of this item moved to #7294: the valkey-roadmap instance, the setting of its URL, and the ACL users brain, agent and metrics with their generated passwords. The users router and sweep stay in this item: it adds them to the aclfile with the key kinds that they reach. #7294 puts the instance in k8s/devops, built from the Valkey base of dan-petty/infra (ADR 0032), not in k8s/llm. This item keeps parts 3 to 7 (the request windows, the GraphQL hold, the halt, the delivery ids, the sentinel, the fail-closed rule and the alerts) and depends on #7294.
Alternatives check of 2026-12-01: in-use.
The repository already uses this tool.
Tool: limits (https://pypi.org/project/limits), MIT, last activity 2026-02-05, maintained.
Reason: The issue already names limits, and its storage docs give shared moving windows on Valkey with an existing pool. It covers the request windows only, not the hold, halt, delivery marker, sentinel or alerts.
Covers:
- Moving windows in Redis and Valkey storage
- Valkey scheme since 4.3 with the valkey client
- Reuse of one existing connection pool
- Per-minute and per-hour strategies with key prefix
Lacks:
- No GraphQL hold key with EXAT reset
- No halt key without TTL or gauge
- No delivery-id marker with SET NX EX
- No sentinel check or fail-closed rule
- No wait that a stop can end
- No ACL, network perimeter or alert rules
Owner decision 2026-11-13
The per-pod request budget (#5497, Phase 1) comes first. This item replaces it with the shared window in Valkey and deletes the fixed per-pod value (no shim). Source: tracker #5482, Phase 4.
- Live proof: after the merge and the release, the Service and 2 Jobs run as the App for 24 h. A comment gives the shared window and 0 requests outside it.
Proposed design
Problem statement
The roadmap Service and each runner Job keep separate GitHub request ledgers, so many pods can exceed the shared self-cap. The GraphQL hold, halt and delivery cache live in one process or on one node. #7294 added the valkey-roadmap instance, its URL and user settings, and its password credential. This change uses limits for shared moving windows in Valkey. It builds the hold, halt, delivery marker, sentinel, ACL perimeter and alerts around limits, and removes the file-based budget and halt state and the fixed per-pod budget. It fails closed when Valkey does not answer.
Acceptance criteria
Requirement: Shared hourly window
The GitHub request window SHALL count every client's requests in Valkey under service.github_requests_per_hour, so two clients together stay within the hourly limit.
Scenario: Two clients share one window
- WHEN Two clients on one fake Valkey server each request admission until the hourly limit is reached.
- THEN The server admits exactly the limit, and the next request of either client waits.
Requirement: Content-generating windows
The state module MUST count content-generating requests in a one-minute and a one-hour window, and MUST NOT refund a 304 answer.
Scenario: A 304 keeps its place
- WHEN Two clients send content-generating requests up to the per-minute limit, and one of them gets a 304.
- THEN The next content-generating request of either client waits.
Requirement: Shared GraphQL hold
A GraphQL hold SHALL stop a round in every client until its reset time.
Scenario: A hold set by one client stops the other
- WHEN One client sets
roadmap:v1:hold:graphql:<installation>withEXAT <reset>, and the other client starts a round before the reset. - THEN The second client starts no round before the reset, and it starts one after the reset.
Requirement: Halt survives restart
The halt key MUST survive a client restart, MUST show on the router gauge, and MUST be removed only by devops roadmap halt --clear --confirm.
Scenario: A halt outlives the process and needs confirmation
- WHEN A test sets
roadmap:v1:halt:<installation>, restarts the client, and runsdevops roadmap halt --clearwith and without--confirmagainst the fake server. - THEN The gauge reads 1 after the restart, the key stays after the run without
--confirm, and the run with--confirmdeletes the key.
Requirement: Delivery deduplication across routers
A repeated delivery id SHALL get the first delivery's outcome from any router process, and a failed target MUST NOT mark the id.
Scenario: Two router processes see one delivery id
- WHEN One router process delivers an event to its target, a second process receives the same delivery id within 24 hours, and the target of a third delivery raises an error.
- THEN The second process drops the repeat, and the id of the third delivery is absent from Valkey.
Requirement: Fail closed without Valkey
A client MUST fail closed at a round start when Valkey does not answer or roadmap:v1:sentinel is absent.
Scenario: Valkey is unreachable and the sentinel is gone
- WHEN The Valkey server refuses connections, a webhook delivery arrives, and a later start finds
roadmap:v1:sentineldeleted. - THEN No round starts, the router answers 202, the implement deadline row runs, and the later start raises the fail-closed error.
Requirement: Alert rules for downtime and missing sentinel
The alert rules MUST fire when redis_up == 0 for 5 minutes or when the sentinel is missing.
Scenario: promtool tests the two alerts
- WHEN
promtool test rulesruns on the rule-unit test file of the two new alerts intests/fixtures/prometheus_rules/. - THEN promtool exits 0 and the test shows both alerts fire.
Requirement: Keys from RepoRef
Every repository key SHALL use the casefolded RepoRef owner/name as roadmap:v1:<kind>:<owner>/<name>[:<id>], and every other key as roadmap:v1:<kind>[:<id>].
Scenario: Two spellings of one repository
- WHEN One caller builds the key of
Dan-Petty/DevOps-CLIand another builds the key ofdan-petty/devops-cli. - THEN Both callers get the same key, and the global limits and sentinel keys keep the
roadmap:v1:prefix with no repository segment.
Requirement: No file state remains
The Service MUST NOT write budget, halt, pause or delivery state files, and the file-based budget, halt, pause and delivery code SHALL be removed.
Scenario: The source holds no file state
- WHEN A test searches the source for the removed budget, halt, pause and delivery state.
- THEN The test finds no
RequestBudget, noStateRecordkindbudgetorhalt, noRoundPause._until, noservice-halt.json, noDeliveryLRUCache, and no runner Job ledger file.
Requirement: Per-pod budget removed
The fixed per-pod request budget from #5497 MUST be removed, and the shared Valkey window MUST replace it with no shim.
Scenario: No fixed per-pod budget remains
- WHEN A test searches the settings and the Service for the fixed per-pod budget.
- THEN The test finds no fixed per-pod budget setting or class, and the Service admits requests through the shared window.
Requirement: Stop keeps the cut
The shared window MUST keep the stop behaviour: after close a request that would wait raises, and after cut every request raises.
Scenario: A stop cuts a round in flight
- WHEN The Service receives SIGTERM and the drain wait ends.
- THEN A round in flight ends at its next request with
ServiceStoppingError, and no request reaches GitHub.
Requirement: Clock skew measured
The state module MUST measure the caller clock against Valkey TIME at each round start and expose the difference as a gauge.
Scenario: A caller's clock is 30 seconds from Valkey
- WHEN A caller starts a round while Valkey's
TIMEis 30 seconds from the caller's clock. - THEN The gauge reports 30 seconds and the round logs the skew.
Requirement: Live cluster check
devops k8s valkey-roadmap-check MUST check the perimeter, ACL users, settings, clock skew and shared window, and MUST exit 1 when a check fails.
Scenario: An open namespace, a bad setting and a skewed clock fail the check
- WHEN
uv run devops k8s valkey-roadmap-checkruns against a server that admits another namespace, whoseappendonlyisno, and whoseTIMEis 90 seconds from the caller's clock. - THEN It exits 1 and names all three failures.
Requirement: ACL template adds router and sweep
ROADMAP_STATE_VALKEY_ACL_TEMPLATE MUST add the router and sweep users with their key patterns, and the default user MUST stay off.
Scenario: The ACL template renders the two users
- WHEN A test loads
CLUSTER_SECRETSand renders thevalkey-roadmapACL template. - THEN The template names
routerwith the brain, limits, hold, halt, delivery and sentinel patterns, namessweepwith the limits, hold, halt and sentinel patterns, and starts withuser default off.
Requirement: Generated credentials
The router and sweep passwords MUST be generated keyring entries of devops/valkey-roadmap-auth with SecretGenerator("urlsafe", 32), and no agent SHALL write a secret value.
Scenario: The cluster secret table resolves the two credentials
- WHEN A test loads
CLUSTER_SECRETSfromsrc/devops_cli/k8s/cluster_secrets.pyand resolves therouterandsweeppassword entries ofdevops/valkey-roadmap-auth. - THEN Each entry has a keyring source and the
urlsafe32-byte generator, and the derivedusers.aclentry names both.
Requirement: Settings and command documented
The docs MUST list the router and sweep users, their keyring entries and the halt key, and the generated docs MUST list devops roadmap halt.
Scenario: The k8s and docs rows and the halt help validate the documentation
- WHEN
uv run devops ci --check --only k8s,docsruns, anduv run devops roadmap halt --helpruns. - THEN The k8s and docs rows exit 0, and the help names
--clearand--confirm.
Requirement: One vetted client per role
The state module MUST run limits on the ValkeyClient pool and MUST authenticate with roadmap.state.username and roadmap.state.password, and roadmap.state.url MUST hold neither.
Scenario: The pool is shared and the URL holds no userinfo
- WHEN A test builds the state module against the fake Valkey server with
roadmap.state.usernameset torouter. - THEN The fake server records the window commands through the client's pool with the user
router, androadmap.state.urlholds no user name or password.
Requirement: Pending a person after the merge
A person MUST push the devops/valkey-roadmap-auth secrets after the merge and MUST run the 24-hour live proof and the one-week secondary-limit measurement after the release.
Scenario: The person pushes the generated passwords and runs the live proof
- WHEN A person runs
uv run devops k8s push-secrets --only devops/valkey-roadmap-auth --planand thenuv run devops k8s push-secrets --only devops/valkey-roadmap-authafter the merge, and the Service and 2 Jobs run as the App for 24 hours after the release. - THEN The plan names the two new entries, the push writes each value to Secret
devops/valkey-roadmap-auth, the budget file writes are 0, the shared window shows 0 requests outside it, and the secondary-limit answers (403 withretry-after) are 0 for a week.
Existing Tool Considered
limits (MIT, maintained; the alternatives check of 2026-11-25 in the issue body gives the verdict in-use and names version 5.8.0). That block lists what limits covers and lacks; this proposal cites it and does not restate the list. This change builds the parts that limits lacks: the GraphQL hold, halt, delivery marker, sentinel, ACL perimeter, alerts and the wait that a stop can end. The built parts cost about 140,000 tokens and most of the 9 hours that the body gives. Keep costs about 10,000 tokens a month and fix costs about 20,000 tokens. The instance is in #7294, so this item adds no pod or PVC.
Key questions
- What does the owner decision of 2026-11-26 require?: Parts 1 and 2 moved to feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294: the
valkey-roadmapinstance ink8s/devops, its URL and user settings, its password credential, and thebrain,agentandmetricsACL users. This item keeps parts 3 to 7 and adds therouterandsweepusers. It depends on feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294. (best practice) [sources: docs/CLUSTER.md, src/devops_cli/k8s/cluster_secrets.py, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Move parts 1 and 2 to feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294. The owner decision of 2026-11-26 moves the instance and its base users to feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294.
- Rejected: Keep the instance and all users in this item. The owner decision moved them, and feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 already delivered them.
- What does the owner decision of 2026-11-13 require?: The per-pod request budget (feat(service): give each roadmap pod an hourly request budget #5497, Phase 1) comes first. This item replaces it with the shared Valkey window and deletes the fixed per-pod value with no shim. (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]
- Chosen: Replace the per-pod budget with the shared window. The owner decision says the shared window replaces the per-pod value with no shim.
- Rejected: Keep the per-pod budget beside the shared window. The owner decision forbids a shim.
- Which open, maintained tool covers the shared moving windows?: limits. The alternatives check of 2026-11-25 in the issue body gives the verdict
in-useand names limits 5.8.0. Its block lists what limits covers and lacks. This item builds the parts that limits lacks. (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]- Chosen: limits with Valkey storage. ADR 0021 section 4 records limits, and its storage documentation covers the
valkey://scheme and an existing connection pool. - Rejected: A hand-built Lua window. The body rejects it, and it loses the tested semantics of limits.
- Rejected: valkey-devops. It evicts keys and keeps no file.
- Rejected: valkey-runs. Any source can reach its NodePort.
- Chosen: limits with Valkey storage. ADR 0021 section 4 records limits, and its storage documentation covers the
- Which clock does the moving window use, and how is clock skew bounded?: The limits storage documentation does not state which clock the window uses. Measure the caller clock against Valkey
TIMEat each round start. Expose the difference as a gauge and log it. Fail the live check above the project clock-skew bound. (best practice) [sources: src/devops_cli/config/constants.py, CHANGELOG.md]- Chosen: Measure the caller clock against Valkey
TIME. The storage documentation leaves a caller-clock window possible, and oneTIMEcall per round settles it. - Rejected: Rely on the Valkey server clock. The storage documentation does not establish that the window uses the server clock.
- Rejected: Build a Lua window on the server clock. The body rejects a hand-built window, and it loses the tested semantics of limits.
- Chosen: Measure the caller clock against Valkey
- What does each ACL user reach?: The template from feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 defines
brain,agentandmetrics. This item addsrouterandsweep.routeris the Service pod user: it reads and writes the brain index and the limits, hold, halt and delivery keys, and reads the sentinel.sweepis the sweep and runner Job user: it reads and writes the limits, hold and halt keys, and reads the sentinel. The default user stays off. (best practice) [sources: src/devops_cli/k8s/cluster_secrets.py, docs/CLUSTER.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Add
routerandsweepusers, and run the runner Job onsweep. The router handles deliveries and the brain index, and the runner Job writes the windows and hold. - Rejected: Run the runner Job on
agent. feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 definesagentas read-only on the brain index, so it cannot write the limits and hold. - Rejected: Use the default user with a password. The body turns the default user off.
- Chosen: Add
- Which command clears the halt, and where does a person run it?: Add
devops roadmap haltto the roadmap command group. It shows the halt.--clear --confirmdeletes the key. A person runs it in the router pod, because the webhook endpoint is the only exposed route. The generated docs list it. (best practice) [sources: src/devops_cli/commands/roadmap.py, docs/CLI_REFERENCE.md, docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md]- Chosen:
devops roadmap halt --clear --confirmin the router pod. It uses the existing command group and cluster access, and it needs no new route. - Rejected: A kubectl exec call that deletes the key. It leaves no record and does not refresh the gauge.
- Rejected: A new HTTP route on the Service. It exposes a new route, and ADR 0009 keeps the router to the webhook path.
- Chosen:
- Where does the shared state module live, and which client does it use?: Add
src/devops_cli/roadmap/shared_state.pyon theValkeyClientthatroadmap_state_tier()gives. feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 builds that tier fromroadmap.state.urland authenticates withroadmap.state.usernameandroadmap.state.password. The tier helpers fail soft, so the module usestier.clientdirectly to fail closed. Expose the client pool and give it to limits'RedisStorage. Do not put the user inroadmap.state.url. (best practice) [sources: src/devops_cli/valkey/cache.py, src/devops_cli/valkey/client.py, src/devops_cli/config/settings.py, tests/valkey/test_roadmap_state_tier.py]- Chosen: A new
roadmap/shared_state.pyon the tier client, with its pool shared with limits. The roadmap owns its keys, the client vets every address, and limits gets the tested window without a second dial path. - Rejected: Let limits dial
roadmap.state.urlitself. It bypasses the vetted connection and the egress check. - Rejected: Extend
valkey/cache.py. It holds cache helpers with eviction, not moving windows.
- Chosen: A new
- Which settings name the instance and hold the passwords?:
roadmap.state.url,roadmap.state.usernameand the credentialroadmap.state.passwordalready exist from feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294.roadmap.state.urlholds only the scheme, host, port and database. Therouterandsweeppasswords are keyring entries ofdevops/valkey-roadmap-authwithSecretGenerator("urlsafe", 32), asmcp_tokenuses. A pod reads its user key asDEVOPS_CLI_ROADMAP_STATE_PASSWORD. (best practice) [sources: docs/ENV_VARS.md, src/devops_cli/config/settings.py, src/devops_cli/k8s/cluster_secrets.py, k8s/README.md, k8s/devops/roadmap-service/deployment.yaml]- Chosen: One URL, one user setting and one password credential, with a keyring entry for each user. The host and port appear once, the URL holds no secret or user, and each process sends its own user and password.
- Rejected: Put the ACL user in the URL. The URL would carry a credential, and each caller would need its own URL.
- Rejected: Use one password for all users. It gives no per-caller limit.
- Rejected: Use
SecretGenerator("hex", 32)asbrain,agentandmetricsuse. The owner decision of 2026-11-11 namestoken_urlsafe(32), so this item followsmcp_token.
- What replaces the in-memory
DeliveryLRUCache?: Writeroadmap:v1:delivery:<id>withSET NX EX 86400after the delivery target accepts the delivery. A repeat within 24 hours is dropped by any router process. A failed target leaves no key. The cache and its capacity go. (best practice) [sources: src/devops_cli/server/routes/webhooks.py, src/devops_cli/server/service.py, docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md]- Chosen: A Valkey marker with a 24-hour TTL. Every router process sees the same marker, and the key expires without a sweep.
- Rejected: Keep the LRU beside the marker. The body removes the cache, and two routers still diverge.
- Rejected: A Valkey list of 10,000 ids. It grows without a bound and has no expiry.
- How do the alert rules and docs prove their result without a test that reads a config file?: Use
promtool test rulesfor the alert rules, with the case file intests/fixtures/prometheus_rules/run bytests/prometheus/test_k8s_monitoring_alerting.py. Useuv run devops ci --check --only docsfor the generated docs. Use the live checkuv run devops k8s valkey-roadmap-checkfor the cluster state.docs/TESTING.mdforbids a test that asserts a manifest or config value. (best practice) [sources: docs/TESTING.md, docs/CLUSTER.md]- Chosen: Use the project validators and the live check. The project forbids a test that asserts a manifest or config value and names these commands as the proof.
- Rejected: Add a pytest test that reads the manifest or config file.
docs/TESTING.mdrefuses it.
- Where do the docs describe the shared state?: Update
docs/CLUSTER.mdto describe the shared Valkey keys anddevops roadmap halt. Put therouterandsweepusers and their keyring entries indocs/CLUSTER.mdand the Cluster Secrets table ofk8s/README.md. Put the command in the generateddocs/CLI_REFERENCE.mdanddocs/commands/roadmap.md. (best practice) [sources: docs/CLUSTER.md, k8s/README.md, docs/ENV_VARS.md, docs/CLI_REFERENCE.md]- Chosen: Update
docs/CLUSTER.md, the Cluster Secrets table and the generated docs.docs/CLUSTER.mdnames the files being removed, and the generated references are the documented home of the command. - Rejected: Add the command matrix to
README.md. The generateddocs/CLI_REFERENCE.mdis the home of the command matrix;README.mdlists settings only.
- Chosen: Update
- Which parts need a person after the merge?: The password push, the 24-hour live proof and the one-week secondary-limit measurement need the merge, a release and a cluster run. They are post-release person steps. Put them in an acceptance criterion named
Pending a person after the merge, not in a deferred issue. The rest of the change fits one pull request. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, docs/guidelines/agentic-jobs.md]- Chosen: A post-release acceptance criterion for the password push, the live proof and the measurement. They need a release and a cluster run, outside the pull request, and the roadmap workflow records such steps as a person criterion.
- Rejected: Defer the live proof and measurement to a test issue. The workflow records a post-release live proof as a person criterion, not as a deferred item.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(service)scope of the title gives the scope.Needed for multi-pod scaling but the Service works in single-pod mode today.Unblocks running the Service in multiple pods without double-spending the GitHub quota.New Valkey deployment, shared-state module, ACL, network policy, alerts, secrets, and removal of several existing in-memory and file-based stores.Both touch the Service's RequestBudget in service.py, but #2547 fixes the counting logic while the candidate changes the storage backend to Valkey so multiple pods share one window.devops-cli-service commentedon Nov 11, 2026
Refine cannot set this item to Ready at 1db29f7 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.
devops k8s push-secrets, and when? (a person decides)devops-cli-service commentedon Nov 12, 2026
Alternatives check: partly
Reason: The searches and the limits storage docs confirm that limits provides distributed moving-window rate limits in Redis/Valkey, shared by every process and able to reuse an existing connection pool — exactly the shared hourly and per-minute windows the issue needs. It covers only that counting part: the GraphQL hold, the halt key and its gauge/clear command, the delivery-dedup marker, the sentinel and the fail-closed behaviour, the ACL/NetworkPolicy perimeter and the alerts still have to be built.
Tool: limits (https://pypi.org/project/limits)
Covers:
Lacks:
devops roadmap halt --clear --confirmcommandTools considered:
Searches run:
Sources:
Checked on 2026-11-12. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 14, 2026
Refine cannot set this item to Ready at 79eb893 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.
devops-cli-service commentedon Nov 19, 2026
The result in the alternatives block of the issue body changed. Before this check:
partly, tool https://pypi.org/project/limits. A person decides what the new result means for the item.Searches (2)
Tools considered:
Searches run:
Sources:
1 remaining item
dan-petty commentedon Nov 19, 2026
This comment reports that four scenarios of this body assert values of a manifest or a config file, and that one of the asserted values is already out of date.
docs/TESTING.md:61-62forbid a test that asserts a value of a manifest or a config file, such as a version, a tag, a mode, a key, a port or an interval. Thetest-treerow refuses a new test that reads one (tests/gate/tree_checks/config_values.py). These scenarios ask for such a test:redis_up == 0for 5 minutes and a missing-sentinel rule (the fail-closed part tests code and can stay)k8s/llm/valkey-roadmap.yamlk8s/llm/valkey-roadmap.yamlThe image tag is already out of date. Body line 7, the requirement "Valkey roadmap instance" (line 194) and the key question at line 254 name
valkey/valkey:9.1.3-alpine. Renovate moved the Valkey images ofk8s/llm/to9.1.4-alpineon 2026-11-19 (#6344:k8s/llm/valkey.yaml:49,k8s/llm/valkey-runs.yaml:74,k8s/llm/valkey-devops.yaml:55). A test of "The manifest renders the instance" would need a change at each such update, which is the case that #6060 removes.This body was refined on 2026-11-14, before #6080 changed the plan rules on 2026-11-17. Give each of these requirements a validator command or a live check as its proof, in the form of #6080 and #6083. Examples:
promtoolfor the alert rules, thek8srow ofdevops ci(uv run devops ci k8s) for the manifest, and the live checkdevops k8s valkey-roadmap-checkthat this body already defines for the perimeter and the ACL users. Write the image as "the tag that Renovate keeps" rather than as a fixed version.devops-cli-service commentedon Nov 19, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 21, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
feat(k8s): add the valkey-roadmap instance, its setting and ACL users (…
dan-petty commentedon Nov 27, 2026
Design check, 2026-11-26
Body, 7 corrections
k8s/devops/valkey-roadmap/, the settingsroadmap.state.urlandroadmap.state.username, the credentialroadmap.state.password, and the usersbrain,agentandmetrics(src/devops_cli/k8s/cluster_secrets.py:83-85).router,sweep) and no pod.k8s/llm/.RequestBudgetis atsrc/devops_cli/server/service.py:222.DeliveryLRUCacheis atsrc/devops_cli/server/routes/webhooks.py:561.Refine block: it agrees with the owner decision of 2026-11-26. No error found.
Not verified: the other line references of the Problem, and the live criterion "a pod in another namespace cannot connect on 6379".
Dependencies: #4527, #4533, #4557 and #7294 are closed. #5497 is open, and its body names the hold #6521.
devops-cli-service commentedon Nov 27, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 30, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.