Skip to content

Commit fd6c41b

Browse files
committed
fix(publication): restore production publisher capacity
1 parent 0559e03 commit fd6c41b

7 files changed

Lines changed: 36 additions & 37 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ enqueues a separate durable publication lease, and then releases its review
438438
lease without checking out or pushing the state repository. The queue retries
439439
publication independently, so a cancelled publisher does not rerun Codex. The
440440
source fallback uses adaptive minimum/base/maximum values of 4/24/48; production
441-
overrides them with 8/32/40 and enables direct
441+
overrides them with 50/50/50 and enables direct
442442
publication plus up to 8 concurrent size-8 batches. The Durable Object validates
443443
each artifact's workflow run, queue tuple,
444444
target, decision digest, file inventory, sizes, and SHA-256 hashes before a
@@ -726,9 +726,9 @@ yield when priority work is active. Exact-item runs use a durable Worker queue
726726
that coalesces item deliveries, leases at most 128 concurrent reviews, and admits
727727
up to 120 active exact reviews per target repository. Other lanes retain the
728728
checked-in 128-worker scheduling model. A separate 194-slot exact-review
729-
Actions budget supports the production maximum of 40 publisher slots, the
730-
enforced 16-slot control-plane reserve, and 10 additional slots of current
731-
configuration headroom even when all 128 review leases are active.
729+
Actions budget supports 50 publisher slots and the enforced 16-slot
730+
control-plane reserve even when all 128 review leases are active. That fully
731+
allocates the 194-slot budget, leaving no additional configuration headroom.
732732
Use `workers.max` first when turning total Codex usage up or down; use
733733
`lanes.repair.cluster_max_live_runs` to tune the imported legacy cluster-repair
734734
lane separately, and individual environment overrides only for temporary

‎config/documentation-sync.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
{
55
"path": "dashboard/wrangler.toml",
66
"expect": {
7-
"EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT": "8",
8-
"EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT": "32",
9-
"EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT": "40",
7+
"EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT": "50",
8+
"EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT": "50",
9+
"EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT": "50",
1010
"EXACT_REVIEW_PUBLICATION_BATCHING_ENABLED": "1",
1111
"EXACT_REVIEW_DIRECT_PUBLICATION_ENABLED": "1",
1212
"EXACT_REVIEW_PUBLICATION_BATCH_SIZE": "8",

‎dashboard/wrangler.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ CACHE_TTL_SECONDS = "20"
5555
INCLUDE_CI_STATUS = "1"
5656
EXACT_REVIEW_QUEUE_MAX_CONCURRENT = "128"
5757
EXACT_REVIEW_TARGET_MAX_CONCURRENT = "120"
58-
EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT = "8"
59-
EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT = "32"
60-
EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT = "40"
58+
EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT = "50"
59+
EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT = "50"
60+
EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT = "50"
6161
EXACT_REVIEW_DISPATCH_LEASE_MS = "360000"
6262
EXACT_REVIEW_EXECUTION_LEASE_MS = "7800000"
6363
EXACT_REVIEW_HEARTBEAT_GRACE_MS = "1200000"

‎docs/limits.md‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The mental model:
6969
| `workers.minimum_background` | 16 | Target floor for background progress when enough global capacity is available. |
7070
| `lanes.exact_review.max_concurrent` | 128 | Maximum concurrent exact-item review workflow runs admitted to Codex. |
7171
| `lanes.exact_review.target_max_concurrent` | 120 | Maximum concurrent exact-item review workflow runs one target repository may consume. |
72-
| `lanes.exact_review.actions_budget` | 194 | At 128 reviews and 40 publishers, preserves the 16-slot hard reserve plus 10 slots of headroom. |
72+
| `lanes.exact_review.actions_budget` | 194 | At 128 reviews and 50 publishers, preserves the 16-slot hard reserve. |
7373
| `lanes.assist.max` | 10 | Maximum concurrent lightweight assist jobs. |
7474
| `lanes.repair.cluster_max_live_runs` | 2 | Default live repair workflow cap for imported gitcrawl cluster dispatches. |
7575

@@ -188,11 +188,11 @@ those priority workers start, normal and hot-intake planners
188188
count them and reduce their next background wave.
189189

190190
`EXACT_REVIEW_ACTIONS_BUDGET` is deliberately separate from the 128-slot Codex
191-
worker budget. Its production value is 194: 128 exact reviews, up to 40
192-
publisher slots, the enforced 16-slot control-plane reserve, and 10 slots of
193-
headroom under the current publication maximum. Full review admission therefore
194-
cannot reduce verdict publication to zero, while repair and broad review
195-
derivations remain anchored to `workers.max = 128`.
191+
worker budget. Its production value is 194: 128 exact reviews, 50 publisher
192+
slots, and the enforced 16-slot control-plane reserve. Full review admission
193+
therefore cannot reduce verdict publication to zero, but it leaves no additional
194+
configuration headroom. Repair and broad review derivations remain anchored to
195+
`workers.max = 128`.
196196

197197
Fresh webhook work waits for `EXACT_REVIEW_DISPATCH_DEBOUNCE_MS` (90 seconds by
198198
default) so rapid edits and pushes coalesce before dispatch. Repeated pending
@@ -226,12 +226,11 @@ advance the queue revision, revoke a lease, or count as new work.
226226

227227
Exact-review result publication has a separate adaptive Actions lane. Source
228228
fallback minimum, base, and maximum are 4, 24, and 48; production overrides
229-
them to 8, 32, and 40. The controller records GitHub
230-
pressure, cooldown, recovery, and demand telemetry, and can scale within that
231-
production range. Admission enforces a 16-slot control-plane reserve inside
232-
`EXACT_REVIEW_ACTIONS_BUDGET`; with 128 active exact reviews and the current
233-
production maximum of 40 publisher slots, another 10 slots remain as configuration
234-
headroom rather than protected reserve.
229+
them to 50, 50, and 50. The controller records GitHub pressure, cooldown,
230+
recovery, and demand telemetry, while the fixed production range holds capacity
231+
at 50. Admission enforces a 16-slot control-plane reserve inside
232+
`EXACT_REVIEW_ACTIONS_BUDGET`; with 128 active exact reviews and 50 publisher
233+
slots, the 194-slot budget leaves no additional configuration headroom.
235234
Its checkout, artifact handling, comment sync, and result routing are
236235
deterministic control-plane work: they consume GitHub runners, but not Codex
237236
slots. The comment router and the singleton lease reconciler follow the same

‎docs/live-dashboard.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ recovery progress, and last classified GitHub pressure failure. `/api/status` re
346346
`control_plane` compatibility field, but the dashboard no longer renders that
347347
low-actionability section.
348348

349-
Production overrides publication minimum, base, and maximum capacity to 8, 32,
350-
and 40, while source fallback values are 4, 24, and 48. The controller records
351-
failure, cooldown, recovery, and demand telemetry and scales within the
352-
production range. The publication lane also
349+
Production overrides publication minimum, base, and maximum capacity to 50, 50,
350+
and 50, while source fallback values are 4, 24, and 48. The controller records
351+
failure, cooldown, recovery, and demand telemetry, while the fixed production
352+
range holds effective capacity at 50. The publication lane also
353353
exposes `batches` and `direct`: production enables up to 8 concurrent size-8
354354
batches, reserves two fresh-lane members per batch, and enables direct
355355
publication with retry/batch fallback. Document effective production values from

‎docs/scheduler.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ cohort from becoming eligible in lockstep; coordination and ordinary failure
8282
retries keep their existing timing.
8383
Review publication and apply/comment sync use separate non-dropping queues.
8484
The source fallback publication minimum, base, and maximum are 4, 24, and 48,
85-
but production overrides them to 8, 32, and 40. The adaptive controller
85+
but production overrides them to 50, 50, and 50. The controller still
8686
classifies GitHub pressure:
8787
a 403/429 or
8888
explicit rate-limit failure records a 15-minute cooldown, while GitHub 5xx
89-
failures record a 5-minute cooldown. Demand and recovery signals scale effective
90-
capacity within the production range. Production batch
89+
failures record a 5-minute cooldown. Demand and recovery signals remain visible,
90+
but the fixed production range holds effective capacity at 50. Production batch
9191
preparation is enabled for up to 8 concurrent size-8 batches, including 2
9292
fresh-lane members per batch. Direct publication is also enabled and falls back
9393
to the retry/batch path when the direct result is retryable. Apply/comment sync

‎test/dashboard-worker.test.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ test("production doubles exact review claims and canonical publication batches",
203203
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_BATCH_SIZE = "8"/);
204204
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_BATCH_MAX_CONCURRENT = "8"/);
205205
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_BATCH_DISPATCH_COOLDOWN_MS = "5000"/);
206-
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT = "8"/);
207-
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT = "32"/);
208-
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT = "40"/);
206+
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT = "50"/);
207+
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT = "50"/);
208+
assert.match(wrangler, /EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT = "50"/);
209209
assert.match(wrangler, /EXACT_REVIEW_TARGET_RATE_PER_HOUR = "300"/);
210210
assert.match(wrangler, /EXACT_REVIEW_TARGET_BURST = "30"/);
211211
assert.match(wrangler, /EXACT_REVIEW_PENDING_SOFT_LIMIT = "600"/);
@@ -1064,7 +1064,7 @@ test("lifecycle telemetry counts durable terminal coverage without treating ackn
10641064
assert.equal(JSON.stringify(summary).includes("openclaw/openclaw"), false);
10651065
});
10661066

1067-
test("full review admission does not inflate staged publication capacity", () => {
1067+
test("full exact-review admission preserves production verdict publication capacity", () => {
10681068
const state = {
10691069
items: Object.fromEntries(
10701070
Array.from({ length: 128 }, (_, index) => {
@@ -1077,14 +1077,14 @@ test("full review admission does not inflate staged publication capacity", () =>
10771077
exactReviewPublicationCapacityForState(
10781078
{
10791079
EXACT_REVIEW_ACTIONS_BUDGET: "194",
1080-
EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT: "8",
1081-
EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT: "32",
1082-
EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT: "40",
1080+
EXACT_REVIEW_PUBLICATION_MIN_CONCURRENT: "50",
1081+
EXACT_REVIEW_PUBLICATION_BASE_CONCURRENT: "50",
1082+
EXACT_REVIEW_PUBLICATION_MAX_CONCURRENT: "50",
10831083
},
10841084
state,
10851085
Date.now(),
10861086
),
1087-
32,
1087+
50,
10881088
);
10891089
});
10901090

0 commit comments

Comments
 (0)