Skip to content

fix(roadmap): scoped intake reads a bounded page count - #4740

Merged
dan-petty merged 2 commits into
mainfrom
fix/3670-scoped-intake-snapshot
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/3670-scoped-intake-snapshot

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The intake of the Service read the whole issue listing (47 pages here) in each triage round and each scoped intake, because only devops roadmap intake read through the snapshot of #4448.

  • The triage lane and the scoped intake read every issue through intake_listing(), the snapshot in listing of the Service's state directory. A round reads only the issues changed since the watermark. The full read every 24 hours stays (ADR 0017).
  • The triage lane runs its rounds and scoped updates one at a time, so one writer keeps each snapshot. The status and model lanes keep the whole read.
  • The snapshot keys to the sha256 of the IssueRecord JSON schema, not to the package version, so a release keeps it. A test pins the key.
  • The issue proposed a cap of 10 pages. A capped listing misses old items in the duplicate check, so the change uses the snapshot.

Closes #3670

Change: openspec/changes/archive/2026-11-11-3670-scoped-intake-reads-a-bounded-page/

The intake rounds of the triage lane and the scoped intake of each
delivery read every issue through the listing snapshot in the state
directory of the Service. A round with a kept snapshot reads only the
issues changed since the watermark, not the 47 pages of the whole
listing. The snapshot keys to the schema of IssueRecord, not to the
package version, so a release that keeps the schema keeps it.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

dan-petty commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner Author

Measurements

Prometheus, 2026-11-11, before this change:

Query Value
sum by (row) (increase(devops_cli_github_requests_total{job="roadmap-service",row=~"other|intake"}[24h])) intake 5,034, other 23,283: 28,317 requests
the same, by status, 24 h 12,000 answers of 200, 16,085 answers of 304
GET of rows intake and other, last 2 h (after #4522 moved the scoped intake to intake) 2,852
increase(devops_cli_service_jobs_total{lane="triage",result="success"}[2h]) 78 rounds, so about 33 GET requests a round

Snapshot of this repository on a workstation: 4,692 records, 23.7 MB. ListingSnapshot.model_validate_json 0.95 s, model_dump_json 0.92 s. The volume of the Service had 414 MB under roadmap/ and 1.2 TB free on the disk.

Checks

  • uv run devops ci fail-to-pass --base origin/main: 3 failed on base and 2 modules failed to collect on base (the new names intake_listing and LISTING_SCHEMA_KEY); 99 passed on base.
    • test_the_triage_lane_alone_reads_every_issue_through_the_snapshot_in_the_state_dir: [None, None, None] on base.
    • test_a_scoped_update_reads_every_issue_through_the_snapshot_in_the_state_dir: no listing on base.
    • test_a_dry_run_reads_the_changes_since_the_snapshot_or_else_every_issue[False]: the condition text.
    • Collection failures: tests/roadmap/stores/test_listing_snapshot.py, tests/roadmap/test_roadmap_run_scoped_update.py.
  • uv run devops ci test on the covering tests of the changed files: 23,081 passed, 2 skipped.
  • uv run devops ci typecheck: no issues in 796 files. ci lint, ci format, ci docs, openspec check: pass.

Live steps after the merge and the image rollout

No ConfigMap or Secret changes. The Service writes /home/devops/.data/roadmap/listing/<owner>/<name>.json on its first intake round.

  1. Check that the file exists: kubectl -n devops exec deploy/roadmap-service -- ls -la /home/devops/.data/roadmap/listing/dan-petty/.
  2. 24 hours after the rollout, run sum(increase(devops_cli_github_requests_total{job="roadmap-service",row=~"other|intake"}[24h])). The target is less than 3,000 (28,317 before).
  3. Rollback needs no step: an older image of the Service does not read the file, and reads the whole listing as before.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 18:27
@dan-petty
dan-petty merged commit f89ccc5 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/3670-scoped-intake-snapshot branch November 11, 2026 18:27
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.3](v0.112.2...v0.112.3)
(2026-11-11)


### Bug Fixes

* **ai:** record the duration of each agent model request
([#4717](#4717))
([1930b71](1930b71))
* **devcontainer:** poll the Docker daemon through the clock
([#4721](#4721))
([be32268](be32268))
* **roadmap:** confine repair fix turns to the plan files
([#4689](#4689))
([d2e7597](d2e7597))
* **roadmap:** name the nearest test of a module
([#4696](#4696))
([b746c95](b746c95))
* **roadmap:** scoped intake reads a bounded page count
([#4740](#4740))
([f89ccc5](f89ccc5))
* **roadmap:** stage context reads runner facts from the package
([#4723](#4723))
([05e09dc](05e09dc))
* **roadmap:** stage holds an item where openspec is not set up
([#4749](#4749))
([45bd54a](45bd54a))
* **roadmap:** trace gate reads a tool call citation
([#4694](#4694))
([5c71ad4](5c71ad4))


### Performance Improvements

* **ci:** cancel superseded CodeQL runs and idle triggers
([#4763](#4763))
([c951368](c951368))


### Code Refactoring

* **ai:** delete orphan prompts and the prompt fallbacks
([#4710](#4710))
([38a1b13](38a1b13))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): scoped intake reads a bounded page count

1 participant