Skip to content

feat(service): share the GitHub budget and holds in Valkey #4563

Open

Description

@dan-petty

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.


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

  1. 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-roadmap is in k8s/devops/valkey-roadmap/, with the user default off and the ACL users brain, agent and metrics. This item adds the ACL users router and sweep (owner decision of 2026-11-26, below). The first plan of the instance is in the edit history of this body.
  2. Delivered by feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294: the settings roadmap.state.url and roadmap.state.username, and the credential roadmap.state.password.
  3. 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 from RepoRef (casefolded roadmap:v1:<kind>:<owner>/<name>[:<id>]):
    • limits moving windows with Valkey storage and key_prefix roadmap: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> with EXAT <reset>.
    • roadmap:v1:halt:<installation>, no TTL; the router exports the gauge; a command devops roadmap halt --clear --confirm that a person runs in the router pod.
    • roadmap:v1:delivery:<id> with SET 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.
  4. The Service and the runner Job hit the same windows. A pod checks the window before it takes a slot or a lock.
  5. 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.
  6. Check which clock limits uses for the moving window; if it is the client clock, measure the node clock skew and state it.
  7. Alerts: redis_up == 0 for 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 k8s checks): 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.md list the new settings.
  • Measure: budget file writes go to 0; secondary-limit answers (403 with retry-after) a week: 0.

Dependencies

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> with EXAT <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 runs devops roadmap halt --clear with and without --confirm against the fake server.
  • THEN The gauge reads 1 after the restart, the key stays after the run without --confirm, and the run with --confirm deletes 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:sentinel deleted.
  • 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 rules runs on the rule-unit test file of the two new alerts in tests/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-CLI and another builds the key of dan-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, no StateRecord kind budget or halt, no RoundPause._until, no service-halt.json, no DeliveryLRUCache, 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 TIME is 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-check runs against a server that admits another namespace, whose appendonly is no, and whose TIME is 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_SECRETS and renders the valkey-roadmap ACL template.
  • THEN The template names router with the brain, limits, hold, halt, delivery and sentinel patterns, names sweep with the limits, hold, halt and sentinel patterns, and starts with user 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_SECRETS from src/devops_cli/k8s/cluster_secrets.py and resolves the router and sweep password entries of devops/valkey-roadmap-auth.
  • THEN Each entry has a keyring source and the urlsafe 32-byte generator, and the derived users.acl entry 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,docs runs, and uv run devops roadmap halt --help runs.
  • THEN The k8s and docs rows exit 0, and the help names --clear and --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.username set to router.
  • THEN The fake server records the window commands through the client's pool with the user router, and roadmap.state.url holds 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 --plan and then uv run devops k8s push-secrets --only devops/valkey-roadmap-auth after 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 with retry-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-roadmap instance in k8s/devops, its URL and user settings, its password credential, and the brain, agent and metrics ACL users. This item keeps parts 3 to 7 and adds the router and sweep users. 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]
  • 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-use and 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.
  • 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 TIME at 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 one TIME call 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.
  • What does each ACL user reach?: The template from feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 defines brain, agent and metrics. This item adds router and sweep. router is the Service pod user: it reads and writes the brain index and the limits, hold, halt and delivery keys, and reads the sentinel. sweep is 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 router and sweep users, and run the runner Job on sweep. 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 defines agent as 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.
  • Which command clears the halt, and where does a person run it?: Add devops roadmap halt to the roadmap command group. It shows the halt. --clear --confirm deletes 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 --confirm in 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.
  • Where does the shared state module live, and which client does it use?: Add src/devops_cli/roadmap/shared_state.py on the ValkeyClient that roadmap_state_tier() gives. feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 builds that tier from roadmap.state.url and authenticates with roadmap.state.username and roadmap.state.password. The tier helpers fail soft, so the module uses tier.client directly to fail closed. Expose the client pool and give it to limits' RedisStorage. Do not put the user in roadmap.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.py on 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.url itself. It bypasses the vetted connection and the egress check.
    • Rejected: Extend valkey/cache.py. It holds cache helpers with eviction, not moving windows.
  • Which settings name the instance and hold the passwords?: roadmap.state.url, roadmap.state.username and the credential roadmap.state.password already exist from feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294. roadmap.state.url holds only the scheme, host, port and database. The router and sweep passwords are keyring entries of devops/valkey-roadmap-auth with SecretGenerator("urlsafe", 32), as mcp_token uses. A pod reads its user key as DEVOPS_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) as brain, agent and metrics use. The owner decision of 2026-11-11 names token_urlsafe(32), so this item follows mcp_token.
  • What replaces the in-memory DeliveryLRUCache?: Write roadmap:v1:delivery:<id> with SET NX EX 86400 after 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 rules for the alert rules, with the case file in tests/fixtures/prometheus_rules/ run by tests/prometheus/test_k8s_monitoring_alerting.py. Use uv run devops ci --check --only docs for the generated docs. Use the live check uv run devops k8s valkey-roadmap-check for the cluster state. docs/TESTING.md forbids 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.md refuses it.
  • Where do the docs describe the shared state?: Update docs/CLUSTER.md to describe the shared Valkey keys and devops roadmap halt. Put the router and sweep users and their keyring entries in docs/CLUSTER.md and the Cluster Secrets table of k8s/README.md. Put the command in the generated docs/CLI_REFERENCE.md and docs/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.md names the files being removed, and the generated references are the documented home of the command.
    • Rejected: Add the command matrix to README.md. The generated docs/CLI_REFERENCE.md is the home of the command matrix; README.md lists settings only.
  • 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.

Dependencies

#7294, #5497, #4527, #4557, #4533

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/service
    status/new
    value/high
    effort/high
    on Nov 11, 2026
  3. 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.

  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    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.

    • Who runs devops k8s push-secrets, and when? (a person decides)
  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    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)

    • License: MIT
    • Last activity: 2026-02-05
    • Maintained: yes

    Covers:

    • Distributed moving-window rate limits stored in Redis/Valkey, so several processes share one window
    • Valkey support (valkey:// scheme) on top of valkey-py, added in limits 4.3
    • Reuse of an already-created connection pool, so the existing vetted pool can be handed to the storage
    • Per-minute and per-hour window limits, as the issue's request and content-generating windows need
    • No refund mechanism, which matches the issue's rule that a 304 keeps its place

    Lacks:

    • A shared GraphQL hold key with EXAT reset time
    • A halt key without TTL, its gauge and the devops roadmap halt --clear --confirm command
    • Delivery deduplication across router processes (SET NX EX 86400 marker)
    • A sentinel key with fail-closed behaviour and its alert rule
    • The ACL users, NetworkPolicy ingress perimeter and the redis_exporter alerting
    • Removal of the existing budget/halt files, RoundPause, DeliveryLRUCache and the runner Job ledger

    Tools considered:

    Searches run:

    • limits python distributed rate limiting Valkey Redis storage moving window, results: 5
    • limits.readthedocs.io storage Redis moving window rate limiter, results: 5
    • distributed rate limiter shared budget Redis Valkey webhook delivery deduplication library python, results: 5

    Sources:

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

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

    @devops-cli-service
    Contributor

    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.

    • How do the four passwords reach the cluster? (a person decides)
  8. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    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:

    • limits python distributed rate limiting redis valkey moving window, results: 5
    • alisaifee limits redis storage documentation moving window, results: 5

    Sources:

  9. 1 remaining item

  10. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor

    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-62 forbid 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. The test-tree row refuses a new test that reads one (tests/gate/tree_checks/config_values.py). These scenarios ask for such a test:

    Scenario Body line What it asserts
    The sentinel is deleted after the first start 133-135 the alert rules hold redis_up == 0 for 5 minutes and a missing-sentinel rule (the fail-closed part tests code and can stay)
    The rendered manifest restricts the perimeter and the writes 161-163 the NetworkPolicy and the ACL file of k8s/llm/valkey-roadmap.yaml
    The documentation lists the setting and the command 168-170 the ConfigMap example names the new setting
    The manifest renders the instance 196-198 the image, the flags, the claim, the strategy, the Service, the exporter and the ACL users of k8s/llm/valkey-roadmap.yaml

    The 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 of k8s/llm/ to 9.1.4-alpine on 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: promtool for the alert rules, the k8s row of devops ci (uv run devops ci k8s) for the manifest, and the live check devops k8s valkey-roadmap-check that 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.

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

    @devops-cli-service
    Contributor

    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.

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

    @devops-cli-service
    Contributor

    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.

  13. added
    priority/p1-high
    and removed
    priority/p2-medium
    on Nov 26, 2026
  14. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor

    Design check, 2026-11-26

    Body, 7 corrections

    • feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 delivered solution items 1 and 2: k8s/devops/valkey-roadmap/, the settings roadmap.state.url and roadmap.state.username, the credential roadmap.state.password, and the users brain, agent and metrics (src/devops_cli/k8s/cluster_secrets.py:83-85).
    • This item adds 2 passwords (router, sweep) and no pod.
    • This repository has no k8s/llm/.
    • RequestBudget is at src/devops_cli/server/service.py:222. DeliveryLRUCache is at src/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.

  15. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    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.

  16. added
    status/ready
    and removed
    status/new
    on Nov 30, 2026
  17. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  18. added
    owner/service
    and removed
    owner/service
    on Nov 30, 2026
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/servicesource/agentstatus/readytype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions