Repository navigation
pm-stack: pin POOL_STATE_PATH in the quota-gatherer unit (#12718) - #12720
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #12718 (does not close it — the deployment step remains, see below).
Change
nixos/services/pm-stack/default.nix: thequota-gathererunit'sEnvironmentgainsPOOL_STATE_PATH=${home}/.local/state/opencode-claimant/pool-state.json, pinning the babysitter pool-state feed's writer path explicitly. The unit already pinned everyQUOTA_*path; this was the one path left to the code default (gather-quota.tsresolves the identical path from$HOME, so behaviour is unchanged — the contract is now visible in the unit definition and immune to a HOME change).doc/fleet-schedule-registry.md:quota-gatherer.timerrow review date updated to 2026-11-22, per the registry rule for unit-definition changes.Evidence
POOL_STATE_PATHhas 0 matches in the unit definition at origin/main; the deployed unit on the laptop (Nix-store binarypm-aggregator-0.1.0, store path369fydsa…) likewise carries noPOOL_STATE_PATHand predates feat(pm-stack): quota gatherer writes the babysitter pool-state feed (#1338) #12689.nix-instantiate --parseon the edited module passes (run on the laptop at this branch's head).projectPoolStatefrom current main over the productionquota-current.jsonprojected 29 pools;babysitter.read_pool_stateparsed the result with statusread, including pools currently walled at 100% (cline-pass, opencode-go, _openai, opendesign). With every entry'smeasuredAtaged 2h, the projection asserts zero walls, null percents,stalestates — feat(pm-stack): quota gatherer writes the babysitter pool-state feed (#1338) #12689's stale contract.Remaining deployment step (not in this PR)
The deployed aggregator binary itself still predates #12689 (merged 2026-11-22T22:10Z, after the laptop's 2026-11-22 morning rebuild). Redeploying it is the laptop's NixOS/home rebuild, which is Drewry's
./rebuild— recorded on #12718 rather than run by this lane. Once a rebuild picks up a code source at or after690bbc7e999(any current main), one gather tick writespool-state.jsonand the next babysitter round recordspool_state: "read"; that verification closes #12718.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.