Skip to content

fix(roadmap): the brain issue cache follows the shared-tier rules - #7297

Merged
dan-petty merged 2 commits into
mainfrom
fix/7292-brain-issue-cache-shared-tier-rules
Nov 26, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7292-brain-issue-cache-shared-tier-rules

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The issue cache of the project brain (#6013) wrote the issue records of each repository to valkey-devops, under a key that no ACL role user reaches. ADR 0023 section 8 keeps that tier to public repositories.

The cache now uses the visibility check of the listing snapshot, which moves to roadmap/stores/visibility.py. A process sends no command for an issue of a private repository unless it sends the ACL user sweep, and none when the visibility is unknown. It reads such an issue from GitHub each time. The store reads the visibility at most one time in 30 minutes, and only after Valkey answered. The webhook route sends no GitHub read: it takes repository.private of the delivery, else the answer that the process holds.

The key is now valkey:roadmap:v1:issue:<owner>/<name>:<number>, which sweep writes and brain reads. The change has no migration and no delete: the records under the old prefix have a TTL of 24 hours and no reader.

Closes #7292

Change: openspec/changes/archive/2026-11-26-7292-brain-issue-cache-shared-tier-rules/

The issue cache uses the visibility check of the listing snapshot, which moves to
roadmap/stores/visibility.py. A process sends no command for an issue of a private
repository unless it sends the sweep ACL user, and none when the visibility is unknown.
The key moves to valkey:roadmap:v1:issue:<owner>/<name>:<number>. The webhook route
takes the visibility from the delivery and sends no GitHub read.

Refs #7292
@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 26, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: be0f641cbc2fd32ccb466fead8ad2af53058cb87

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy neutral run
Changed-Test Independence success run
CodeQL success run
Plan Check skipped run
Docs Site Build success run
Tests on Main skipped run
Dependency Freshness skipped run
Semantic PR title success run
Test Job Duration skipped run
Fail-to-Pass Check success run
Image Pins success run
Analyze (actions) success run
Analyze (python) success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 3 of 5) success run
Tests & Coverage (shard 5 of 5) success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 2 of 5) success run
Service Image success run
Tests & Coverage (shard 4 of 5) success run
Static Analysis success run
Changed-Test Independence (run 2 of 3) success run
Runner Image success run
Design Tokens success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/45835631096/job/139963602985

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Dependency Freshness
Skipped check: Test Job Duration

@dan-petty

Copy link
Copy Markdown
Owner Author

Review of the coordinator, 2026-11-26, at be0f641.

  • The diff does what fix(roadmap): the brain issue cache follows the shared-tier rules #7292 asks: one visibility check for the snapshot and the issue cache, no command of an entry for a private or an unknown answer, the key under valkey:roadmap:v1:issue, and no change for a public repository. The tests of the acceptance criteria fail on the base and pass on the head, and each check of the head is green.
  • The webhook route takes repository.private of the signed delivery before the answer that the process holds. This is better than the held answer alone: a delivery after a repository becomes private stops the writes at once.
  • Known limit, not in this pull request: the records of a repository that later becomes private stay until their TTL ends, at most 24 hours after their last write. No process reads them after 30 minutes. The bound of the snapshot is 1 hour, so fix(roadmap): remove cached issues when a repository becomes private #7298 adds the removal.
  • No migration: the old keys under roadmap:v1:brain-issue end after 24 hours. valkey-devops restarted on 2026-11-26 13:20 UTC for the ACL file, so the 32 private records of the count on fix(roadmap): the brain issue cache follows the shared-tier rules #7292 are gone already, and new ones stop at the release of this change.

Pending after the release: the SCAN proof of #7292 (25 hours after the deploy).

@dan-petty
dan-petty marked this pull request as ready for review November 26, 2026 14:18
@dan-petty
dan-petty merged commit e1552ab into main Nov 26, 2026
29 checks passed
@dan-petty
dan-petty deleted the fix/7292-brain-issue-cache-shared-tier-rules branch November 26, 2026 14:41
dan-petty-release Bot added a commit that referenced this pull request Nov 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.221.14](v0.221.13...v0.221.14)
(2026-11-26)


### Bug Fixes

* **roadmap:** the brain issue cache follows the shared-tier rules
([#7297](#7297))
([e1552ab](e1552ab))

---
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): the brain issue cache follows the shared-tier rules

1 participant