Repository navigation
fix(ci): restore environment variable count ratchet - #125185
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 5:14 AM ET / 09:14 UTC. ClawSweeper reviewWhat this changesThis PR lowers the checked-in Merge readinessThis PR is still necessary: current main retains budget 502 while the scanner’s current source boundary contains 501 names. The one-line decrease is the correct owner-boundary repair; it remains maintainer-labeled and exact-head CI is still running. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s CI ratchet scans production source for flowchart LR
A[Production source] --> B[Environment-name scanner]
B --> C[Distinct name count]
D[Checked-in budget] --> E[CI comparison]
C --> E
E --> F[Pass or failure]
Before merge
Agent review detailsSecurityNone. PR surfaceOther 0. Total 0 across 1 file. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the 501 baseline after the exact-head CI ratchet confirms the same count, preserving the shrink-only invariant without changing production behavior. Do we have a high-confidence way to reproduce the issue? Yes from source: current main has a 502 budget and the scanner-equivalent read-only enumeration finds 501 names. The canonical command was not executable locally because Is this the best way to solve the issue? Yes. Updating the shrink-only budget is the narrow canonical repair; changing the scanner or restoring the retired identifier would conceal the actual source count. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7ce934a8b5d0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #125175
What Problem This Solves
Fixes an issue where the environment-variable count ratchet fails on current
mainbecause the recorded budget is one higher than the actual production-source count.Why This Change Was Made
Restores the shrink-only budget to the measured 501 names after the internal Node-version expression stopped using the
OPENCLAW_*prefix. This preserves the ratchet invariant without adding configuration surface or changing runtime behavior.User Impact
Maintainers can run the environment-variable count gate successfully again, and future
OPENCLAW_*growth remains visible instead of being hidden by an unused budget slot.Evidence
e3d553b73419239a0231aaccd2a029983b9f2717:OPENCLAW_* count 501 is below budget 502node scripts/check-env-var-count.mts --base origin/mainreportsOPENCLAW_* count 501/501git diff --checkpasses.Production/config LOC: +2/-2 (net 0). Tests: unchanged.