Repository navigation
fix(publication): restore production publisher capacity - #1097
brokemac79 wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed August 12, 2026, 2:24 AM ET / 06:24 UTC. ClawSweeper reviewWhat this changesThe PR changes production exact-review publication capacity from adaptive 8/32/40 to fixed 50/50/50, with matching tests and operational documentation. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 8 items remain The PR is still needed only if reworked: its fixed 50/50/50 policy reintroduces the loss of GitHub-pressure downshifting that current main deliberately preserves. Priority: P1 Review scores
Verification
How this fits togetherExact-review runs enqueue verdict publication into a Durable Object queue. Production Wrangler settings and GitHub failure feedback determine how many publisher workflows may run before results are sent to GitHub. flowchart LR
A[Exact-review runs] --> B[Durable publication queue]
B --> C[Capacity controller]
D[Production capacity settings] --> C
E[GitHub pressure feedback] --> C
C --> F[Publisher workflows]
F --> G[GitHub verdict publication]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current main and preserve 50 healthy-capacity admission only with a lower pressure floor, then prove a rate-limited Durable Object path reduces capacity and later recovers. Do we have a high-confidence way to reproduce the issue? Yes: the PR sets the controller minimum to 50, while current source clamps rate-limit reductions to that minimum; the resulting no-downshift behavior follows directly from the current code. Is this the best way to solve the issue? No: fixed 50/50/50 restores healthy capacity but removes the existing pressure safeguard; retain a lower floor while allowing the healthy target to reach 50. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a1795973a9e6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
86cf2f1 to
fd6c41b
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing as superseded. The fixed 50/50/50 publication-capacity rollback is no longer planned; current work is pursuing adaptive, quota-aware containment instead. This PR was not merged or adopted, and no current quota-control or adaptive-scheduler work depends on it. |
Summary
Problem
Production publication admission was reduced to an adaptive 8/32/40 range. With all 128 exact-review workers leased, that left only 32 publisher slots at the normal demand tier and constrained verdict publication during backlog drain. The Actions budget is 194, so 128 reviewers plus 50 publishers still preserves the enforced 16-slot control-plane reserve, with no additional unreserved headroom.
Implementation
EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT,BASE_CONCURRENT, andMAX_CONCURRENTto50indashboard/wrangler.tomlconfig/documentation-sync.jsonso docs: add deterministic drift checks #1096's deterministic drift gate owns the restored valuesREADME.md,docs/scheduler.md,docs/live-dashboard.md, anddocs/limits.mdGoal B's durable acknowledgement/retry and shared-installation quota circuit behavior are deliberately out of scope.
Validation
pnpm run check:docs— passednode --test test/check-docs.test.ts— 12/12 passednode --test --test-name-pattern "production doubles exact review claims|full exact-review admission preserves production verdict publication capacity|exact-review publication controller adopts the staged base|direct publication keeps GitHub casing|fallback tuple publication normalizes mixed-case keys" test/dashboard-worker.test.ts— 5/5 passedpnpm run check:limits— passedtsc -p tsconfig.dashboard.json— passedoxfmt --check config/documentation-sync.json dashboard/wrangler.toml test/dashboard-worker.test.ts— passedgit diff --check— passedReal Behavior Proof
Claim: At full 128-review admission, production preserves 50 exact-review verdict publisher slots while retaining the 16-slot control-plane reserve inside the 194-slot Actions budget, and the drift gate requires the same values in active documentation.
Exercised surface: production Wrangler values,
exactReviewPublicationCapacityForStatewith 128 leased review items, the #1096 docs-sync manifest/checker, and #1094 canonical casing/lifecycle regression tests.Scenario: Crabbox synchronized the clean host worktree at exact committed head
fd6c41b0130efb657e0ce738ba073714a2a00fec. The harness verified SHA-256 digests for all seven changed files, constructed 128 live review leases, evaluated production admission with194total Actions slots and fixed50/50/50publication settings, then ran the docs drift contract and affected regression gates.Command/environment: Crabbox
0.40.0,provider=local-container, imagemcr.microsoft.com/playwright:v1.60.0-noble, pnpm11.10.0. Exact-head proof leasecbx_a9c303646f5a.Observed result:
Artifacts: local proof harness
C:\clawsweeper-work\notes\csw-117-goal-a-proof.sh; Crabbox failure bundles are retained locally for diagnostic-only setup attempts.Limits: No deployment, workflow dispatch/rerun, queue or DLQ operation, gate toggle, or production mutation was performed. Raw Windows-to-Linux workspace sync preserves CRLF, so the repository-wide Linux formatter aggregate was not used in the final container run; touched format-owned files passed both host and container checks, and hosted CI runs the full aggregate from a clean checkout. This proves configuration/admission and documentation-drift behavior, not live GitHub runner availability or production drain rate.
Review Closeout
origin/main..fd6c41b0130efb657e0ce738ba073714a2a00fec: no actionable findings; 50/50/50 and128 + 50 + 16 = 194verifiedRisks / Rollout
128 + 50 + 16 = 194, so there is no additional unreserved Actions headroom.pnpm run check:docs.Related