Skip to content

fix(roadmap): remove cached issues when a repository becomes private - #7581

Merged
dan-petty merged 2 commits into
mainfrom
fix/7298-remove-private-repo-cached-issues
Nov 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7298-remove-private-repo-cached-issues

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Remove cached issue records (valkey:roadmap:v1:issue:<owner>/<name>:*) when a repository becomes private for any process that does not send the sweep ACL user, enforcing the 1-hour shared-cache bound instead of waiting up to 24 hours for key TTL expiry.

When the issue cache resolves a private visibility answer without sweep, it scans matching repository keys with COUNT 500 within a 5-second and 10,000-key budget, unlinks them, and counts devops_cli_brain_writes_total{store="issue",result="removed"} once per answer window (visibility_generation with 30-minute success and 60-second failure cooldown). Any SCAN, UNLINK, or budget failure stops immediately and fails soft.

Closes #7298

Change: openspec/changes/archive/2026-11-28-7298-remove-private-repo-cached-issues/

@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 28, 2026
@dan-petty
dan-petty force-pushed the fix/7298-remove-private-repo-cached-issues branch from a1e9610 to b3e9964 Compare November 28, 2026 14:11
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 14:21
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: b3e99649fbaa2c1fb99448498f3369e7b583e89a

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

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

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

@dan-petty
dan-petty merged commit 88f9fcc into main Nov 28, 2026
29 checks passed
@dan-petty
dan-petty deleted the fix/7298-remove-private-repo-cached-issues branch November 28, 2026 14:22
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.234.0](v0.233.0...v0.234.0)
(2026-11-28)


### Features

* **roadmap:** add pipeline dashboard and chart deferred Service metrics
([#7590](#7590))
([1b74e1b](1b74e1b))
* **roadmap:** measure the precision of the review unit
([#5522](#5522))
([#7588](#7588))
([d98fd36](d98fd36))
* **service:** webhook events wake the lanes of their jobs
([#7587](#7587))
([c656123](c656123)),
closes [#5555](#5555)


### Bug Fixes

* **roadmap:** remove cached issues when a repository becomes private
([#7581](#7581))
([88f9fcc](88f9fcc))


### Code Refactoring

* **review:** remove dead review conventions plumbing
([#7580](#7580))
([57f9f0e](57f9f0e))
* **roadmap:** split roadmap commands by kind
([#7586](#7586))
([1c232c7](1c232c7))
* **security:** remove unused fallback path from scanner base class
([#7583](#7583))
([d5acca8](d5acca8))

---
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): remove cached issues when a repository becomes private

1 participant