Skip to content

feat(roadmap): keep schedules, intake and ledgers in Valkey #4565

Open

Description

@dan-petty

Problem or Motivation

schedule.json, intake.json, release_comments.json and the failure ledgers are files under an in-process lock (src/devops_cli/roadmap/run.py:169-296; run.py:1093-1145). The chain stamp refine_due lives in the schedule (run.py:456-461). The sweep and the unit pods of refine, alternatives and intake cannot use them from another pod.

Proposed Solution & Architectural Design

Keys from RepoRef under roadmap:v1::

  • sched:<owner>/<name>: hash, row to ISO time. Only the Service (later the sweep) writes it, at the submit. An unreadable schedule raises; the sentinel covers a store that lost its data.
  • due:<owner>/<name>:<row>: string, EX 3600. Replaces refine_due and the chain triggers (run.py:425-434).
  • intake:<owner>/<name>: one string with the whole IntakeRecord as JSON, written only under the intake mutex or lock, because the record has a record-level pending flag and after() replaces the whole record (src/devops_cli/roadmap/intake/intake.py:472-500). Each decided entry carries a "not placed" flag until its labels are on GitHub, so a retry places it with no new model call (run.py:483-504).
  • release:<owner>/<name>: hash, tag to two flags (released, live), as the ledger of release_comments.py:7-8 holds; fields older than 90 days go. The row already reads its marker comments before it comments (release_comments.py:112).
  • failures:<owner>/<name>: hash, <row>:<item> to a count with HINCRBY, plus <row>:<item>:key to the input digest. The row suspension is derived from the unit entries. implement:failures: hash.
  • No import. After the deploy each row is due one time, as at a first run.

Removes: _read_schedule, _write_schedule, _SCHEDULE_LOCK, read_intake_record, _write_intake_record (run.py:169-296), the file part of FailureLedger (run.py:1093), the consecutive-failures file, the refine_due stamp.

Target Subsystem

Workstation Caching & Valkey (roadmap schedules, intake record, ledgers).

Existing Tool Considered

Valkey hashes and HINCRBY through valkey-py. No new tool. Cost: about 130,000 tokens and 6 hours to build, about 5,000 tokens a month to keep, about 15,000 tokens to fix. The first run after the deploy spends the tokens of one round of each row.

Acceptance Criteria

  • Two processes that update different rows of one schedule lose no field.
  • Two processes that count failures of two items keep both counts; a success of one item does not clear the other.
  • An intake run killed after its record write and before its placements places the marked entries in its retry with no model request.
  • With an empty ledger and an existing release marker comment, release_comments posts no second comment (a test of the code of today).
  • Measure: no record file under roadmap/<owner>/<repo>/ on the volume but the clones; no duplicate release comment in 7 days.

Dependencies

  • "feat(service): share the GitHub budget and holds in Valkey".

Source: #4517

Alternatives check of 2026-12-01: in-use.
The repository already uses this tool.
Tool: valkey-io/valkey-py (https://github.com/valkey-io/valkey-py), MIT, last activity 2026-11-20, maintained.
Reason: Searches and the issue's own alternatives block confirm valkey-py is the project's Valkey client. It gives the hash, counter and string commands that the roadmap store needs for all four records.

Covers:

  • Hash field writes for the schedule
  • HINCRBY counters for each failure item
  • String values for the intake record JSON

Lacks:

  • No roadmap key schema or sentinel
  • No intake placement replay
  • No 90-day release retention

Owner decision 2026-11-13

The approved pipeline split (tracker #5482, Phase 4) removes the due marks: no key roadmap:v1:due:*. Valkey keeps leases (roadmap:v1:lease:<repo>:<item>, value = the unit name, TTL = the unit deadline plus 300 s), failure ledgers, request windows and the listing cache. A lost copy changes only the speed, never the result.

  • Live proof: after the merge and the release, the Service runs as the App for 24 h with the Valkey keys. A comment gives the key count of each class and 0 roadmap:v1:due:* keys.

Proposed design

Problem statement

The Service keeps the roadmap schedule, the intake record, the release ledger and the failure ledgers in files under one in-process lock. The sweep and the refine, alternatives and intake unit pods cannot share those files. This item moves the four records to Valkey keys under roadmap:v1:, removes the file readers, the lock and the refine_due and stage_due stamps, and writes no roadmap:v1:due:* key. The owner decision of 2026-11-13 removes the due marks, and an agent runs the live proof after the merge and the release.

Acceptance criteria

Requirement: Schedule field write

The roadmap schedule store SHALL write the last success time of one row as one HSET field of the hash roadmap:v1:sched:<owner>/<name>.

Scenario: Two lanes record two rows

  • WHEN Two lanes record the last success of different rows of one repository through the schedule store at the same time
  • THEN The hash holds both row fields with their own ISO-8601 times, and no field is lost

Requirement: Unreadable schedule value

The roadmap schedule store MUST raise a RoadmapRunError that names roadmap:v1:sched:<owner>/<name> when a field value is not an ISO-8601 time.

Scenario: A schedule field holds bad text

  • WHEN The schedule hash holds not-a-time for one row and a round reads the schedule
  • THEN The round stops before any row runs, and the error names roadmap:v1:sched:<owner>/<name>

Requirement: Missing sentinel

The roadmap store MUST raise a RoadmapRunError that names roadmap:v1:sentinel when the sentinel key is absent, before any row runs.

Scenario: The store lost its data

  • WHEN roadmap:v1:sentinel is absent and a round starts
  • THEN The round stops before any row runs, and the error names roadmap:v1:sentinel

Requirement: First run after the migration

The roadmap store SHALL treat a repository with no schedule hash as a first run while roadmap:v1:sentinel exists.

Scenario: A repository with no Valkey state

  • WHEN roadmap:v1:sentinel exists and roadmap:v1:sched:<owner>/<name> does not exist
  • THEN The store reports each row with first_run_due as due one time, and the repository data directory holds no schedule.json

Requirement: No due mark

The roadmap store MUST write no key whose name starts with roadmap:v1:due:, and the schedule hash MUST hold no refine_due or stage_due field.

Scenario: A round writes roadmap state

  • WHEN A round records a schedule success, an intake placement and a failure count
  • THEN The fake server holds no key whose name starts with roadmap:v1:due:, and the schedule hash holds no refine_due or stage_due field

Requirement: Intake write under the intake lock

The intake store MUST write roadmap:v1:intake:<owner>/<name> only while the caller holds the intake lock, and MUST raise RoadmapRunError naming that key otherwise.

Scenario: A write without the intake lock

  • WHEN An intake round writes the record while another round holds the intake lock
  • THEN The write raises RoadmapRunError naming roadmap:v1:intake:<owner>/<name>, and the key keeps the record of the round that holds the lock

Requirement: Intake record as one value

The intake store SHALL write the whole IntakeRecord as one JSON string at roadmap:v1:intake:<owner>/<name> in one write.

Scenario: A record with a pending flag and a decided entry

  • WHEN An intake round writes a record whose pending flag is true and that holds one decided entry with its placement
  • THEN The key holds one JSON string, and a read returns a record equal to the one that the round wrote

Requirement: Placement from the record

The intake run SHALL place each decided entry whose placed flag is clear before it calls the model, and SHALL set the flag after GitHub accepts the labels.

Scenario: A run stops before its placements

  • WHEN A run writes the record with a decided entry whose placed flag is clear and stops before GitHub accepts its labels
  • THEN The next run sets the recorded labels with no model request, and the record marks the entry placed

Requirement: Failure count of one item

The failure store SHALL count each entry's failure with HINCRBY on the field <row>:<item> of roadmap:v1:failures:<owner>/<name>, and SHALL delete only the fields of the entry that succeeded.

Scenario: One item succeeds while another fails

  • WHEN Item A fails twice and item B fails once, and then item A succeeds
  • THEN Item B keeps its count and its input digest, and item A has no count and no digest

Requirement: Failure entry keeps its cause and retry time

The failure store SHALL keep the failure class of the last round and the ISO-8601 time of the next probe round beside each entry's count and input digest.

Scenario: A row fails its limit on one class

  • WHEN A row fails service.max_failed_rounds rounds in a row on one input with the class provider
  • THEN The entry holds the count, the input digest, provider and the retry time of that class, and the row runs no round before it

Requirement: Consecutive stops of one class

The failure store SHALL keep the implement row's stops in a row of one failure class in the field consecutive, and SHALL reset the count when a stop of another class or a delivered item follows.

Scenario: A stop of another class

  • WHEN The implement row recorded two stops of class tests and then reports a stop of class provider
  • THEN The field consecutive holds one stop of class provider and no stop of class tests

Requirement: Release ledger retention

The release row SHALL store the flags released and live and the write time of each tag as the fields <tag>:released, <tag>:live and <tag>:at of roadmap:v1:release:<owner>/<name>, and SHALL delete every tag whose <tag>:at is older than 90 days in the same write.

Scenario: A tag passes the retention window

  • WHEN The release hash holds a tag whose <tag>:at is 91 days old and the row writes a new release
  • THEN The old tag's three fields are absent from the hash, and the new tag's fields are present

Requirement: No second release comment

The release row MUST read the marker comment of a tag before it posts a comment.

Scenario: Empty ledger with an existing marker

  • WHEN The release hash holds no entry for a tag and the issue holds the marker comment of that release
  • THEN The row posts no comment

Requirement: No record file on the volume

The roadmap store MUST keep no schedule, intake, release or failure record file under roadmap/<owner>/<repo>/ but the clones.

Scenario: A round after the migration

  • WHEN A round runs for a repository whose state is in Valkey
  • THEN The data directory of the repository holds no schedule.json, intake.json, release_comments.json or failure ledger file

Requirement: Pending a person after the merge

The roadmap store SHALL hold the schedule, intake, release and failure records in Valkey after the merge and the release, with no due key and no duplicate release comment in 7 days.

Scenario: The 24-hour key count and the 7-day duplicate count

  • WHEN The Service runs as the App for 24 hours after the merge and the release, and an agent counts the keys under roadmap:v1: with valkey-cli --scan --pattern through an ACL user of feat(service): share the GitHub budget and holds in Valkey #4563 that may run SCAN; after 7 days the agent counts the release comments that repeat a marker
  • THEN One comment gives the key count of each class, the count of roadmap:v1:due:* keys is 0, no record file stays under roadmap/<owner>/<repo>/ on the volume but the clones, and the duplicate release comment count is 0

Existing Tool Considered

valkey-io/valkey-py (https://github.com/valkey-io/valkey-py), MIT, maintained, is in use per the alternatives check of 2026-11-25 in the issue body. The block lists what valkey-py covers and lacks. This item adds only the thin roadmap store code that the block names: the key schema, sentinel and first-run logic, the intake record JSON and placement replay, the 90-day release retention, and the failure-entry fields. Written cost: about 130,000 tokens and 6 hours to build, about 5,000 tokens a month to keep, and about 15,000 tokens to fix.

Key questions

  • Which state does the owner decision of 2026-11-13 keep in Valkey, and does this item write a due key?: The owner decision removes the due marks, so this item writes no key under roadmap:v1:due: and removes the refine_due and stage_due stamps. Valkey keeps the leases, the failure ledgers, the request windows and the listing cache. This item also moves the schedule, the intake record and the release ledger to Valkey, because the issue title and problem statement require it and ADR 0021 section 3 lists them among the shared state. Without a due key a row waits for the next sweep, which runs every 5 minutes. (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, docs/SERVICE_PATTERNS.md, src/devops_cli/roadmap/run.py]
    • Chosen: Remove the due marks and move the four records to Valkey. The owner decision forbids roadmap:v1:due:*, and the issue title and ADR 0021 section 3 require the four records in shared state.
    • Rejected: Keep roadmap:v1:due:<owner>/<name>:<row> with EX 3600. The owner decision forbids this key.
    • Rejected: Move only the leases, failure ledgers, request windows and listing cache. The schedule, intake record and release ledger would stay in files, so the item would solve no problem.
  • Which code holds the schedule, intake, release and failure records today?: Files under the repository data directory hold them under _SCHEDULE_LOCK in one process. _read_schedule and _write_schedule are in src/devops_cli/roadmap/run.py, read_intake_record and _write_intake_record are in the same file, and FailureLedger is also there. IntakeRecord is in src/devops_cli/roadmap/intake/intake.py, ReleaseLedger in src/devops_cli/roadmap/release_comments.py and ConsecutiveFailures in src/devops_cli/roadmap/implement/consecutive_failures.py. [sources: src/devops_cli/roadmap/run.py, src/devops_cli/roadmap/intake/intake.py, src/devops_cli/roadmap/release_comments.py, src/devops_cli/roadmap/implement/consecutive_failures.py]
  • Which client library connects the Service to Valkey?: Use valkey-py through the project's ValkeyClient in src/devops_cli/valkey/client.py. ValkeyProtocol names the commands it holds, and RepoRef.valkey_key builds the key form roadmap:v1:<kind>:<owner>/<name>[:<id>]. (best practice) [sources: src/devops_cli/valkey/client.py, src/devops_cli/github/repo_ref.py, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md]
    • Chosen: valkey-py through the project's ValkeyClient. It is the project's client, and RepoRef.valkey_key already builds the key form.
    • Rejected: redis-py. It is another server's client; the project uses valkey-py.
    • Rejected: A hand-written RESP client. It adds code that the project must keep and fix for no gain.
  • How does one writer record a row's success without losing another writer's field?: One hash for each repository holds the schedule. One HSET writes the field of the row that succeeded. No writer reads the hash before it writes, so two lanes never lose a field. execute and pipeline already send the command. (best practice) [sources: src/devops_cli/valkey/client.py, tests/github/test_repo_ref.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: One hash with HSET of one field. One command writes one field, so two writers touch different fields and lose nothing.
    • Rejected: A JSON value with WATCH and MULTI. A conflict needs a retry loop, and a lost update stays possible.
    • Rejected: One key for each row. A read of the whole schedule costs many calls.
  • How does the store tell a first run from a store that lost its data, and who writes the sentinel?: The store reads roadmap:v1:sentinel before a round and raises RoadmapRunError when it is absent. A repository with no roadmap:v1:sched:<owner>/<name> hash is a first run while the sentinel exists. The deploy writes the sentinel once, when feat(service): share the GitHub budget and holds in Valkey #4563 provisions valkey-roadmap, and no caller writes it: a caller that recreated it would hide a lost store behind a first run of every row. service_key already builds the key. (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, docs/SERVICE_PATTERNS.md, src/devops_cli/github/repo_ref.py]
    • Chosen: The deploy writes roadmap:v1:sentinel once; each caller reads only. ADR 0021 rule 9 makes each caller fail closed when the sentinel is missing, and a caller that wrote it would turn a lost store into a first run.
    • Rejected: The first caller writes the sentinel when it is absent. A store that lost its data would get the sentinel back at the next round, and every row would look like a first run with no alert.
    • Rejected: A per-repository sentinel written with the first schedule write. A store that lost its data loses that sentinel too, and a new repository with the sentinel present would look like a lost store.
  • How does the intake record stay consistent with its record-level pending flag?: One string key roadmap:v1:intake:<owner>/<name> holds the whole IntakeRecord as JSON. Only the holder of the intake lock writes it, because after() and merged() replace the whole record and pending is a record-level flag. ADR 0017 keeps the scoped intake and the intake job on one lane, and feat(service): share the GitHub budget and holds in Valkey #4563 delivers the holds in Valkey. (best practice) [sources: src/devops_cli/roadmap/intake/intake.py, docs/adr/0017-each-subscribed-webhook-event-runs-the-update-scoped-to-it.md]
    • Chosen: One JSON string under the intake lock. after() computes a whole record, and one write stores it with no partial state.
    • Rejected: A hash of entries. A field write cannot set pending in the same atomic step.
    • Rejected: One key for each entry. pending and the failure map have no place, and a read costs many calls.
  • Where does a decided entry keep the placement that a retry needs?: Waiting today holds only updated_at and decided_at, so each decided entry gains the placement that its IntakeDecision already computes: labels, placement, fields, priority and comment, plus a placed flag. A run places every entry whose flag is clear before it calls the model, and sets the flag after GitHub accepts the labels. The record is written before the placements, so a stopped run can replay them. (best practice) [sources: src/devops_cli/roadmap/intake/intake.py, src/devops_cli/roadmap/run.py]
    • Chosen: Store the placement and a placed flag on each decided entry. The record is written before the placements, and the decision already computes the labels, fields, Priority and comment that the retry replays.
    • Rejected: Call the model again on the retry. The criterion forbids a model request, and a model answer can differ.
    • Rejected: A separate key for each placement. Two writes cannot keep the record and its placement in one atomic step.
  • How does the release ledger drop fields older than 90 days?: The release row keeps the two flags and the write time of each tag in roadmap:v1:release:<owner>/<name>, and deletes every tag whose write time is older than 90 days in the same write, with HSET and HDEL through the existing execute. It does not use HEXPIRE, because ValkeyProtocol has no method for it and a flag write would have to re-arm the TTL. (best practice) [sources: src/devops_cli/roadmap/release_comments.py, src/devops_cli/valkey/client.py]
    • Chosen: A write time for each tag, pruned on write. It uses HSET and HDEL through the existing execute, and the tests stay offline.
    • Rejected: HEXPIRE on each field. ValkeyProtocol has no method for it, and a flag write would have to re-arm the TTL.
    • Rejected: EXPIRE on the whole hash. It drops the tags that are still live.
  • How does one process count an item's failures without clearing another item's count?: One hash roadmap:v1:failures:<owner>/<name> holds the entries. HINCRBY on <row>:<item> counts one entry and <row>:<item>:key holds its input digest; a Service round that names no item uses the fields <row> and <row>:key. A success deletes only the fields of its own entry. (best practice) [sources: src/devops_cli/roadmap/run.py, src/devops_cli/valkey/client.py, tests/support/valkey_scenarios.py]
    • Chosen: HINCRBY on the field of each entry. One command counts one entry, so a success of another entry deletes no count.
    • Rejected: One counter for each row. A success of one item would clear the count of another.
    • Rejected: A read-modify-write of a JSON value. Two writers lose an update.
  • Which fields keep the failure class and the retry time that the suspension reads?: The hash keeps <row>:cause and <row>:retry beside the count and the digest, and <row>:<item>:cause and <row>:<item>:retry for a unit that names an item, because FailureLedger suspends a job on its input digest and its retry time, which is the last failure plus the wait of its class. A row's suspension reads the entries of its own prefix. (best practice) [sources: src/devops_cli/roadmap/run.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: Keep the cause and the retry time as fields of the entry. The suspension and the log line that names each class read them today, and a count and a digest alone would run a suspended row before its retry time.
    • Rejected: Keep only the count and the digest. The retry time and the class would be lost, so a suspended row would run at its next poll.
    • Rejected: Keep the whole entry as one JSON string. HINCRBY cannot add to a count inside a JSON string, and two writers would lose an update.
  • Where do the implement row's stops in a row of one class go?: The state of ConsecutiveFailures, one class and its count for each repository, goes into the same failure hash as the field consecutive, holding the class and the count as JSON, written by the implement row only. A stop of another class or a delivered item resets it, as the gauge does today. (best practice) [sources: src/devops_cli/roadmap/implement/consecutive_failures.py, docs/CLUSTER.md]
    • Chosen: The field consecutive of the failure hash, with one owner. The gauge's state is one class and one count for each repository, and the implement row is its only writer, so one field keeps it with no second key.
    • Rejected: A separate key for each class. A class change resets the other class, so two keys need two writes that a reader can see apart.
    • Rejected: Keep the service-consecutive-failures.json file. The body removes the consecutive-failures file, and a file under the Service home is not shared with the unit pods.
  • How do the unit tests reach the Valkey paths with no server?: Use the existing ValkeyClient and the in-memory FakeServer fake. valkey_client_on connects a real ValkeyClient to a FakeServer, and the fake answers HSET, HDEL and HINCRBY, which the contract suite already proves, so the tests run offline and the client's own code runs. (best practice) [sources: tests/support/fakes/valkey.py, tests/support/valkey_scenarios.py, tests/valkey/test_valkey_contract.py, src/devops_cli/valkey/client.py]
    • Chosen: The existing FakeServer and ValkeyClient. The fake connects a real client to an in-memory server, so the tests run offline and the hash commands are covered by the contract suite.
    • Rejected: A new Store protocol with an in-memory fake. It duplicates the existing client and the fake, and the project already has the seam.
    • Rejected: A live Valkey for every test. The unit tests run offline, and a server adds a dependency to each run.
  • Does the migration import the existing files?: No. The item starts with no schedule, intake, release or failure key. A repository with no schedule hash is a first run while roadmap:v1:sentinel exists, so each row is due one time after the deploy. _read_schedule already treats a missing file as a first run. (best practice) [sources: src/devops_cli/roadmap/run.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: No import; the first round is a first run. The body says no import, and the existing reader treats a missing file as empty.
    • Rejected: A one-time import of the files. It keeps the file format and the lock path alive, and the body says no import.
    • Rejected: Read the files until the first write. It adds a second source of truth and a migration window.
  • Does this item need another item delivered first?: Yes. The body names 'feat(service): share the GitHub budget and holds in Valkey' as its dependency, and that item is feat(service): share the GitHub budget and holds in Valkey #4563. ADR 0021 section 7 orders feat(service): share the GitHub budget and holds in Valkey #4563, feat(roadmap): keep plan records and record locks in Valkey #4564 and feat(roadmap): keep schedules, intake and ledgers in Valkey #4565 as one Valkey step of tracker feat(roadmap): move Service work to Workflows and Valkey #4517, and section 3 lists the schedules, the intake record and the release ledger among what moves to valkey-roadmap. [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
  • Does an open change in this repository test the functions that this item removes?: It is no longer open: change test(roadmap): fault-injection tests prove the pipeline recovers #3075 landed and is archived at openspec/changes/archive/2026-11-19-3075-fault-injection-tests-prove-the-pipeline. Its suite tests/roadmap/test_roadmap_run_state_faults.py exists and imports FailureLedger and read_intake_record from src/devops_cli/roadmap/run.py; its cases 2 to 4 assert _read_schedule, FailureLedger(record=...) and read_intake_record(path). This item therefore rewrites those cases against the Valkey store in the same pull request, and updates the other modules that call read_intake_record with a path, such as tests/roadmap/test_roadmap_run_row_faults.py and tests/roadmap/intake/test_roadmap_intake_failure_class.py. [sources: openspec/changes/archive/2026-11-19-3075-fault-injection-tests-prove-the-pipeline/tasks.md, tests/roadmap/test_roadmap_run_state_faults.py, tests/roadmap/test_roadmap_run_row_faults.py, tests/roadmap/intake/test_roadmap_intake_failure_class.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4563

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    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 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

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

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The searches and the issue's own research point at the same answer: Valkey, reached through the project's ValkeyClient on valkey-py, is a maintained open client for a shared server whose hashes, HINCRBY, HSET/HDEL and SET EX give every operation the item needs, so no new tool is required. Only thin roadmap-specific wrappers (sentinel key, ISO-time parsing, whole-record intake JSON, placement flags, 90-day pruning) have to be written on top of it.

    The item already names this tool.

    Tool: valkey-io/valkey-py (https://github.com/valkey-io/valkey-py)

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

    Covers:

    • One shared server reachable from the Service, the sweep and the unit pods, replacing the in-process file lock
    • Per-field writes on one schedule hash (HSET), so two lanes recording different rows lose no field
    • Atomic failure counting with HINCRBY and field deletes with HDEL for one item only
    • Due stamps with SET ... EX 3600 in place of the refine_due schedule stamp and chain triggers
    • A single string value for the whole IntakeRecord JSON, written under the intake mutex
    • Hash fields for the release ledger, pruned of fields older than 90 days on write
    • The project already uses it: valkey-py through ValkeyClient, with the existing ValkeyClient/FakeServer test seam

    Lacks:

    • Roadmap-specific semantics are not provided: sentinel key, ISO-8601 validation, first-run detection
    • No typed hash helpers yet in ValkeyProtocol; execute/pipeline must be wrapped
    • Placement replay from the intake record and the 90-day release retention must be implemented in project code
    • No import of the existing schedule/intake/release/failure files; the migration itself is project work

    Tools considered:

    Searches run:

    • valkey-py Python client Valkey hashes HINCRBY, results: 5
    • valkey-py documentation Valkey client library, results: 5
    • Valkey in-memory data store open source, 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.

    • Who proves the live keys after the merge and the release? (a person decides)
  8. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Answer to the open question: who proves the live keys after the merge and the release?

    Decision: an agent runs the live proof and posts the evidence. A person does not do this step.

    • Start: the Live since comment on this issue, then 24 hours in which the Service runs as the App.
    • Check: the agent counts the keys of each class that this item writes under roadmap:v1: in valkey-roadmap. It uses valkey-cli --scan --pattern and counts the keys only. It shows no value and no password. It uses an ACL user of feat(service): share the GitHub budget and holds in Valkey #4563 that can run SCAN.
    • Before it runs a command in the valkey-roadmap pod, the agent checks the memory headroom of the pod.
    • Check: the count of roadmap:v1:due:* keys is 0.
    • Check: no record file stays under roadmap/<owner>/<repo>/ on the volume, except the clones.
    • Evidence: one comment on this issue with the key count of each class.
    • Measure: after 7 days, the agent counts the duplicate release comments. The target is 0. The agent posts the count.
    • If a check fails, the agent files a new issue with devops roadmap intake and links it here.

    A person keeps the merge of the pull request. The Secret push for valkey-roadmap belongs to #4563. This proof needs no Secret change.

    This step comes after the merge and the release. It does not hold the item from Ready (decision "Post-merge person step" of 2026-11-11 in tracker 4780). Keep it as an acceptance criterion after the merge, not as an open question. Tracker 4780 is a source, not a dependency of this item.

  10. 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.

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/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions