Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 11:51 AM ET / 15:51 UTC. ClawSweeper reviewWhat this changesUpdates the internal OPENCLAW_* production environment-variable budget from 507 to 503. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: current main still records 507 while the verified production-source count is 503, so this maintainer-owned PR is the necessary focused repair. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s CI ratchet scans production source roots for distinct OPENCLAW_* names and compares the result with a shrink-only budget. The changed-check gate invokes it when production source or its budget changes, preventing stale configuration headroom from masking cleanup. flowchart LR
A[Source cleanup] --> B[Production source roots]
C[Test and helper paths] --> D[Excluded paths]
B --> E[Environment-variable collector]
D --> E
E --> F[Budget comparison]
F --> G[Changed-check gate]
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. Technical reviewBest possible solution: Retain the strict 503 baseline and merge once exact-head CI confirms the ratchet result. Do we have a high-confidence way to reproduce the issue? Yes—current-main source inspection reproduces the mismatch: the collector’s matching rules yield 503 while the budget remains 507. The repository lacks tsx locally, so exact-head CI should run the canonical command. Is this the best way to solve the issue? Yes—the equality check owns this invariant, so lowering its shrink-only baseline is the narrowest maintainable repair; restoring test-only literals or retaining unused headroom would violate the ratchet contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5e5cf673141b. 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
|
|
Superseded by #121616, which landed the same Verified on current Closing this PR rather than duplicating the already-landed repair. |
What Problem This Solves
Main's environment-variable count gate is red because the production count is 503 while
config/env-var-count-budget.txtstill records 507. The stale budget makescheck-changedfail for unrelated pull requests.Why This Change Was Made
Commit
3b3c540896ab(refactor: remove dead branches and test-only helpers (#121345)) moved two test-only agent helpers out of production-counted paths. That removed these four names from the production surface:OPENCLAW_LIVE_ANTHROPIC_CACHE_MODELOPENCLAW_LIVE_OPENAI_CACHE_MODELOPENCLAW_LIVE_MODEL_FILE_PROBEOPENCLAW_LIVE_MODEL_IMAGE_PROBEThe literals remain only in tests and
src/agents/test-helpers/**; there are no runtime callers or other production locations missed by the collector. This lowers the budget from 507 to 503, which is the ratchet's sanctioned direction per its own header. No source, test, other ratchet, baseline, or expected-failure list changes.User Impact
No runtime behavior changes. The environment-variable ratchet passes again on main and no longer blocks unrelated pull requests.
Evidence
Before:
After:
git diff --checkpasses. Structured autoreview reported no accepted/actionable findings.