Repository navigation
Description
os-queue-duration-budget — machine-findable marker for this generated card. ⛔ Do not delete this line: it is how the weekly reading finds this card instead of filing a new one.
merge queue over its speed budget
Swept 2026-11-23T07:26:28.012Z · weekly while the queue stays over budget · run · commit e9fa6b5d06d39cd4cdbde74e60b7bf6ab5e4d4b1 · trigger schedule.
The merge queue has a speed budget: a 22-minute median and a 32-minute p90 alarm, held in
scripts/ci/queue-budget.json and read weekly by .github/workflows/queue-duration-budget.yml. This week's reading is over it, so this card asks
for a speed-up. Nothing is blocked by it, and the body is refreshed in place each week the queue stays over.
This week's reading
objectstack-ai/objectstack — merge_group runs created 2026-11-16T07:20:26Z .. 2026-11-23T07:20:26Z · verdict OVER
- Reading: p90 32.7 min is over the 32-minute alarm.
- First start to last end over all-green SHAs (n=1263): p50 21.6 min · p90 32.7 min · max 54.7 min.
- Budget (
scripts/ci/queue-budget.json, the maintainer's numbers): median ≤ 22 min · p90 alarm ≤ 32 min. Baseline merge_group runs 2026-11-17..19: p50 21.7 · p90 31.9 · max 34.5 min over 176 SHAs. - Head SHAs: 1431 seen · 1263 all-green · 158 red · 10 cancelled · 0 other · 0 still running (7155 runs).
- Queue failure rate: 158 of 1431 completed SHAs had a red run (11.0%).
- Workflows read: CI, Governed Surface Guard, Lint & Type Check, PR-Body Guards, Spec Liveness Check.
- The run that finished last (the critical run), per all-green SHA: CI 1262 · Lint & Type Check 1.
Slowest jobs of the critical run, median over 40 sampled all-green SHAs:
| Job | Median duration | Median wait, job created to started | Sampled |
|---|---|---|---|
| CI / Test Core (8/8) | 26.6 min | 0 min | 3 |
| CI / Test Core (7/8) | 26.1 min | 0 min | 3 |
| CI / Test Core (9/10) | 18.1 min | 0 min | 19 |
| CI / Test Core (1/8) | 17.1 min | 0 min | 3 |
| CI / Test Core (4/8) | 16.7 min | 0 min | 3 |
What answers this card
- A change that brings the queue back under budget: shorten or split the slowest job of the critical run above,
cut runner waits, or move a family off the queue run. Its PR reports the affected job's before/after median. - ⛔ Not a looser budget: changing a number in
scripts/ci/queue-budget.jsonis the maintainer's call. - Re-measure by hand:
node scripts/ci/queue-duration.mjs --since 7d(node --use-env-proxybehind an HTTPS proxy).
Filed by .github/workflows/queue-duration-budget.yml. Generated by Claude Code
Activity
objectstack-fleet commentedon Nov 23, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: area,
pm:queueand p2 stand as generated; type Task. rationale: area:fleet · the weekly reading finds the merge queue over its speed budget (a 22-minute median target). Queue time slows every merge but blocks none → p2.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAjMMU8pcMXmiLEMMG4
Claim: PM loop round 1 · 2026-11-24T15:47Z
Session:
session_01J8VVAjMMU8pcMXmiLEMMG4Account:
huangyiireneBranch:
claude/issue-36646-queue-speedWorktree:
objectstack-issue-36646Domain:
domain:devxSeat:
repo:objectstack#2Area: f2-E
File surface:
scripts/ci/**(Test Core shard planning and timing inputs,plan-test-core-shards.mjs,select-shard-*), their self-tests (stop on breach; explain in the report). A measured fix that needs.github/workflows/ci.ymloutside thetemporal-conformancejob, orscripts/ci/queue-budget.json, is NOT built here: the dev stops and reports, and the area hands it to the seat (ci.yml is governed, Tier H; the budget numbers are the maintainer's).Container & model:
M,mode:subagent,model: default — dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)" (floor sonnet · default opus · ceiling fable),effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (a speed budget reading)
Thread-read: 7094718096
Premise: holds — re-measured at 2026-11-24T15:39Z with
node --use-env-proxy scripts/ci/queue-duration.mjs --since 7donorigin/maina73edb3: merge_group runs over the 7 days to that reading, all-green SHAs n=1120, p50 21.5 min · p90 33.3 min (alarm 32) · max 54.7, verdict OVER. Slowest critical-run jobs now: Test Core (9/10) 17.6 min, Dogfood Regression Gate (3/3) 17.2, (2/3) 16.6, Test Core (3/10) 16.1, Test UI (11/16) 16.0 (the 8-shard rows in the card body predate the 8→10 widening, 7d904e0).Pre-claim lane:
scripts/ci/**is area f2-E's lease;domain:devx(CI helpers).Pre-claim deps: no
Blocked-by:and no "after #N";overlap-check.mjsexit 0 (empty change set before the claim); re-run before every push.Prior rulings read:
check-prior-rulings.mjs --card 36646 --paths scripts/ci/: 145 ⛔ hit lines in 15 files, read as gate-internal prose; none names a ruling about the queue budget beyond the card's own: "⛔ Not a looser budget: changing a number inscripts/ci/queue-budget.jsonis the maintainer's call." Same-day churn on these paths: none.Serial constraints cleared: none in flight on
scripts/ci/**; area f2-E's #36614 (ci.yml temporal-conformance job) is not started and is serialised after this card's ci.yml question, if any.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAjMMU8pcMXmiLEMMG4
os-dev-report
{ "issue": 36646, "status": "done", "branch": "claude/issue-36646-queue-speed", "pr": "https://github.com/objectstack-ai/objectstack/pull/37073", "session": "session_01J8VVAjMMU8pcMXmiLEMMG4", "premise_still_valid": true, "summary": "Measured the slow tail on 620 green merge_group CI runs (2026-11-21..24, run p90 35.1 min). Test Core (9/10) is the last matrix job to end on 47 of the 63 slowest. Its job median there is 32.6 min, against 18.6 min on the rest. It runs a 13.4-13.9 min whole-package leg and then the CLI slice 2/3 leg, 17.3-18.0 min. The CLI's 3 slices hold equal file counts but unequal seconds: slice 2 is the heaviest on all 5 runs read (2178-2347 s of file time against 1171-2164 s for its siblings). PR #37073 (Part of, not Fixes) balances the slices by weight at the producer, packages/cli/vitest.config.ts's sequencer, using the test-budget each heavy file already declares. Replaying it on the five runs' per-file readings gives the heaviest slice -3.2% to -14.4% (a planner prediction, not a queue reading). The larger lever is the 22-day-stale shard-timings dataset. Its weekly refresh #36637 is green and open, and landing it is a seat act this PR does not duplicate.", "tests": "head 96c83ea0da. pnpm --filter @objectstack/cli exec vitest run --project unit --maxWorkers=2 at 9b0861a2d9: Test Files 444 passed (444), Tests 6342 passed (6342), lock VERDICT command-exit 0. The only later commit adds one pin to the new test file; test/vitest-slices.test.ts at 96c83ea0da passes 17/17. The integration layer is declared to CI. pnpm --filter @objectstack/cli typecheck exit 0 at 96c83ea0da. End to end through vitest: the unit project run as OS_TEST_SHARD 1/3, 2/3 and 3/3 reported 141/151/152 files, union 444, all distinct, all 5 declaration readers in slice 1. Ablation via scripts/ablation-replace.mjs, replacing the heaviest-first sort with path order on the committed fix: attempt 1 stayed green 16/16 (a pin gap). After adding a pin with the heavy file last in path order, attempt 2 went red: 'expected [ 9, 3 ] to deeply equal [ 6, 6 ]', exit 1. Restore: git diff HEAD empty and hash-object equal to the HEAD blob. No build or dist step, because the test imports the source by relative path.", "gates": "local: dispatch-gates --commands at 9b0861a2d9 derived 53 families, all run and each recorded ':: exit 0'. check:dual-build-cjs-loads exited 3 on the first pass and 0 on a captured re-run. --ran: '53 derived famil(ies) accounted for — 53 run, 0 NOT-MEASURED (a DERIVED zero)'. Re-run at 96c83ea0da: cross-package-test-inputs, test-source-alias, tier-file-adoption, cli-test-child-env, nul-bytes, doc-authoring and issue-citations, all exit 0. partition-test-shards --self-test OK (outside the derivation). Control-byte self-scan: no hits. check-commit-card-trailers exit 0. overlap-check VERDICT clean before every push. CI on PR #37073 at 96c83ea0da, one read at open: in_progress 16, skipped 10, success 2, with Check Changeset success; the rest in_progress.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (repository_dispatch, run 45457907506 → PR #37073 with assignee and skip-changeset label); post-stamped issue comment on #36646 (this report). git push is not counted.", "open_questions": [ { "question": "Land the green shard-timings refresh #36637?", "options": ["A land it now (a seat act, consistent with the maintainer's earlier order to merge the 11-16 refresh)", "B wait for the next weekly refresh"], "recommendation": "A. The dataset was measured 2026-11-02, and every slow-decile Test Core (9/10) log read carries DRIFT at 2.00-2.10x. Planner prediction on #36637's weights: the slowest shard's modelled tests step goes from 1293 s with today's placement to 1127 s with #36637's." }, { "question": "Further Test Core tail levers that need a decision (ranked by measured leg size)", "options": ["A run the CLI slice leg beside the whole leg instead of after it (ci.yml, Tier H): the legs measured 13.4-13.9 + 17.3-18.0 min serial, contention unmeasured, and the #25968 revert history applies", "B a fourth CLI slice: the partitioner's slice-count pin refuses 4 under ruling record 6634084947", "C slice spec, the next floor: Test Core (3/10) median 22.3 min on the slow decile"], "recommendation": "Re-read the queue after #36637 and this PR land before choosing; A has the largest measured leg and also the highest risk." } ], "security_findings": "none", "out_of_scope_findings": ["carrier: seat (refresh lane) · the weekly shard-timings refresh PRs went unlanded for three weeks (11-09 closed superseded, 11-16 closed after going stale behind the pre-widening pin-3d red, 11-23 #36637 open and green). Noted, not filed."] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAjMMU8pcMXmiLEMMG4
Claim amendment · 2026-11-25T00:12Z · claim 7136624263's File surface widens, under its producer clause, to
packages/cli/vitest-slices.ts,packages/cli/vitest.config.ts,packages/cli/test/vitest-slices.test.tsandpackages/cli/tsconfig.test.json(PR #37073): the dev measured that the CLI's Test Core slice membership is produced bypackages/cli/vitest.config.ts's sequencer, not byscripts/ci/**. overlap-check on the PR head: clean (0 PR heads share these files). The seat accepted the extension; L1 ACCEPT 7148221772.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAjMMU8pcMXmiLEMMG4
Release: area f2-E · 2026-11-25T01:13Z · part landed as
Part of; the card goes back to the queue.Resume-from: none
Landed (both merged at 2026-11-25T01:08Z):
e45265ee3e): the CLI's Test Core slices are balanced by each file's declared test budget instead of equal file counts (packages/cli/vitest-slices.ts, sequencer inpackages/cli/vitest.config.ts, pinpackages/cli/test/vitest-slices.test.ts); L1 ACCEPT 7148221772. Measured cause (os-dev-report 7140483109): on the slowest decile of 620 green queue runs Test Core (9/10) ended last 47 of 63 times, running a 13–14 min whole-package leg then the CLI slice 2/3 leg of 17–18 min. Planner prediction, not a queue reading: heaviest CLI slice −3% to −14%.b90dcf4870): the Test Core shard-timings dataset refreshed (main's was measured 2026-11-02; slow-decile logs showed 2.0–2.1x drift); ceilings held.Remaining:
node --use-env-proxy scripts/ci/queue-duration.mjs --since 7donce the window holds post-landing runs (the weekly reading re-files this card if still over). Before reading: p50 21.5 · p90 33.3 min (2026-11-24T15:39Z)..github/workflows/ci.yml(Tier H) or a ruling, none built: run the CLI slice leg beside the whole leg; a fourth CLI slice (refused under ruling record 6634084947); slice@objectstack/spec(Test Core (3/10) median 22.3 min on the slow decile).No branch carries open work. Back to
pm:queue, unassigned; the seat holds p2 under the maintainer's p1-only order of 2026-11-25T00:23Z.3 remaining items
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
Claim: PM loop round 1
Session:
session_016WV4cxRDKprCtjpEdtiPFWAccount:
os-elon-muskBranch:
claude/issue-36646-queue-speed-r2Worktree:
objectstack-issue-36646Domain:
domain:devxSeat:
repo:objectstack#1Area:
o1-FFile surface:
scripts/ci/**(Test Core shard planning and timing inputs) and their self-tests; a test package's own slice/sequencer config only after a claim amendment naming it. ⛔ Notscripts/ci/queue-budget.json(the maintainer's numbers) and not.github/workflows/**(#37935 holds ci.yml): a fix that needs either is reported, not built.Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility:
the merge_group critical run in objectstack (Test Core shard tail, per the 2026-11-23 reading) | PR #37073 (CLI slices by declared budget, landed 2026-11-25) covers part | every merge through the queueThread-read: 7149335046
Premise: inbox — the body's reading (p90 32.7 min) predates PR #37073; the dev re-measures the queue since 2026-11-25T01:08Z first and stops with
premise_still_valid: falseif it is under budgetSerial constraints cleared:
none — no open PR touches scripts/ci/**; ci.yml is held by #37935 (this card does not touch it)Pre-claim lane:
domain:devxper triage (card body + 7149335046 release); pathsscripts/ci/**, stays in this seat.Pre-claim deps: none named.
Prior rulings read: card body verbatim "⛔ Not a looser budget: changing a number in
scripts/ci/queue-budget.jsonis the maintainer's call."; previous round's release 7149335046 (part landed as PR #37073,Part of).objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
os-dev-report
{ "issue": 36646, "status": "blocked", "branch": "claude/issue-36646-queue-speed-r2", "pr": null, "head_sha": null, "session": "session_016WV4cxRDKprCtjpEdtiPFW", "premise_still_valid": true, "premise_reading": "node --use-env-proxy scripts/ci/queue-duration.mjs --since 2026-11-25T01:08:00Z --json, read 2026-11-28T02:44Z on origin/main 815e882b: 3235 runs, 647 head SHAs (520 all-green, 118 red, 3 cancelled, 6 running). p50 23.5 min, p90 30.1, max 32.3. Verdict over: the median 23.5 is over the 22-minute budget. The p90 is now under the 32-minute alarm (it was 32.7 and 33.3 before). Critical run: CI on 520 of 520. Slowest critical-run jobs: Test Core (3/10) 21.2 min, (5/10) 20.1, (6/10) 19.9, Dogfood Regression Gate (3/3) 17.7, (1/3) 17.6.", "summary": "The premise holds: the median is over budget; the p90 is not. Over 576 green attempt-1 merge_group CI runs in the same window (run wall p50 24.1, p90 30.2), the 308 runs that start all ten Test Core shards (53%) have p50 28.0 and p90 30.7, and Test Core ends last on 276 of them. Runs with 0, 1-3 or 4-9 shards have p50 20.8, 19.7 and 21.4, and Dogfood or Test UI ends last on them. The slowest shard on the full runs carries a CLI slice. I read 12 full-plan runs, sampled at even time intervals. On those runs the slices sit on shards 1, 5 and 6. A slice shard runs its whole-package leg first (p50 287 s, p90 475 s: service-automation, lint, organizations and others) and then the serial slice leg (p50 887 s, p90 1034 s). Its tests step reads p50 1016 s and p90 1453 s, against 722 s and 982 s on the whole-only shards. The planner balances bin sums (1580-1610 s each) and places a slice at its plain weight, so shards 5 and 6 still get 870 s of whole packages. A whole shard's wall tracks its heaviest single package (max/wall 0.93-1.00), not sum/2.9. The fixes the measurement points at are all outside this claim's scripts/ci/** surface (see open_questions), so nothing was built and no PR was opened. The one lever inside the surface (lever E) has a modelled ceiling of -0.5 min on the p50 and was not built.", "tests": "No code change, so no tests ran. Readings: (1) queue-duration.mjs as in premise_reading, exit 0. (2) A REST read of every completed merge_group CI run created since 2026-11-25T01:08Z: 642 runs, 576 green on attempt 1, with their jobs and steps. (3) The Test Core shard logs of 30 runs at even time intervals (19 started Test Core, 12 of them all ten shards) and of the slowest run 46091765509 (33.1 min): per shard the item list, the turbo leg Time lines and the per-package Duration lines. (4) A replay of the committed scripts/test-shard-timings.json full list through the partitioner's own planShards() at 10 shards, plus a wall-aware variant. Planner predictions, not queue readings. Live split: slice shards 5 and 6 carry 870 s and 869 s of whole packages; modelled wall max(heaviest package, sum/2.9) + slice is 1173 s and 1150 s; spec's shard is 1314 s. Variant (slices placed first, whole packages placed by modelled wall, with WHOLE_LEG_CAP_SECONDS and LOAD_SENSITIVE_APART held): slice shards 1034-1035 s, but five whole shards land at 1866-1868 s against the 1868 s cap, so the cap binds at 10 shards. (5) What-ifs on the 576 runs: if Test Core never ended last, run p50 would be 21.7 (the floor set by Dogfood and Test UI, whose gates end at p50 23.4 and 23.2 on the full runs). With Test Core ending 2, 4 or 6 min sooner: p50 23.1, 22.3 or 22.1. On the 12 full-plan sample runs, cutting the slice shards' whole legs to 120 s moves the sample median 30.0 to 26.0 min; cutting them to 0 moves it to 24.9.", "gates": "Local: none ran, because the diff is empty (files_changed: none). CI: no PR, so there are no check-runs.", "line_budget": "n/a (no diff)", "files_changed": [], "deviations": "No worktree and no branch were created, and no empty-branch probe was pushed, because the fix the measurement points at lies outside the claimed surface and nothing was edited. Every GitHub read went through gh api REST. 110 job logs were downloaded into the scratchpad. Artifacts could not be read: their blob host is refused by the egress proxy, so shard timings come from the job logs.", "dogfood_battery": "n/a (no PR)", "mcp_calls": "0", "api_writes": "1: this os-dev-report comment on #36646 via post-stamped.mjs and the relay. git push: none.", "open_questions": [ { "question": "The levers on the full-plan Test Core tail, and where each lives. None is in scripts/ci/** except E. PM to route them: widen the surface, or send them to the decision thread with axes. The dispatch carried no axes.", "options": [ "A: wall-aware slice placement in scripts/partition-test-shards.mjs. Slice shards carry little whole work. Modelled cut on the slice shards is about 120-140 s at 10 shards, because the whole-leg cap binds. Five whole shards would sit at the 1868 s cap, the density that PR 25968 hit before its revert. File is outside the claim surface.", "B: widen the Test Core matrix 10 to 12 together with A (ci.yml, Tier H; #37935 holds ci.yml). Nine whole shards' capacity (16812 s) then holds every whole package, so the slice shards carry only the reader slice's riders. Sample replay: full-run median about 24.9, bounded by Dogfood and Test UI. Overall-p50 what-if: about 22.1-22.3.", "C: run the CLI slice leg beside the whole leg instead of after it (ci.yml, Tier H). Contention not measured; the revert history of PR 25968 applies.", "D: rebalance the CLI slices: 2/3 and 3/3 read 1000-1070 s, 1/3 reads 565-948 s (packages/cli sequencer, needs an amendment).", "E: a faster history fetch in scripts/ci/fetch-history.sh, the only in-surface lever. The fetch is 66-69 s, paid twice on Test Core's path (test-plan, then each shard). At a 15 s fetch the modelled p50 goes 24.1 to 23.6. A treeless or blobless fetch was not measured, and the history readers (turbo --affected, spec's merge-base anchor, tests that read git) are a correctness risk." ], "recommendation": "A with B. It is the only modelled path that takes the full-plan Test Core tail under the Dogfood and Test UI floor. Even then the queue median lands at about 22.1-22.3, so getting under 22 also needs Dogfood Regression Gate (19.4 min shard median on full runs) to come down. A alone is about -1 to -2 min, and that puts every whole shard at the cap." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (shard-timings refresh lane). On the slowest run 46091765509, Test Core (10/10) read shard-timing-drift DRIFT 1.72x (2707.5 s measured against 1578.0 s predicted) and (9/10) read WARN 1.41x. plugin-security measured 1027 s against its 549 s dataset entry. Noted, not filed.", "carrier: none. The queue failure rate over the window is 118 of 641 completed SHAs (18.4%), up from 11.0% in the card body's window. Noted, not filed." ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
Release: area
o1-F· 2026-11-28T03:07Z · claim 7232548735 measured the premise and built nothing; os-dev-report 7232799392Resume-from: none (no branch was created)
scripts/partition-test-shards.mjsplus a wider Test Core matrix (10 → 12) in.github/workflows/ci.yml. The modelled queue p50 is ~22.1–22.3.packages/clisequencer.Blocked-by: #38124
State:
pm:dispatched→pm:blocked, assignee cleared, in this stroke. When #38124 merges, the next claim builds A+B on one branch, measures before and after, and lands it asPart of #36646.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
Claim: PM loop round 1
Session:
session_016WV4cxRDKprCtjpEdtiPFWAccount:
os-elon-muskBranch:
claude/issue-36646-queue-shards-abWorktree:
objectstack-issue-36646Domain:
domain:devxSeat:
repo:objectstack#1Area:
o1-FFile surface:
scripts/partition-test-shards.mjs(wall-aware slice placement, lever A) and the Test Core matrix width in.github/workflows/ci.yml(10 → 12, lever B), with before/after medians; ⛔ notscripts/ci/queue-budget.json(the budget is the maintainer's number)Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility:
.github/workflows/ci.yml Test Core matrix + scripts/partition-test-shards.mjs in objectstack | none | every merge-queue group: p50 23.5 min against the 22-min budget, measured 2026-11-25→28 (release 7232820216)Thread-read: 7232820216
Premise: holds at bd5407e (the release's reading; the dev re-measures with
queue-duration.mjs --since 7dfirst)Serial constraints cleared:
#38124 (the Blocked-by) merged 7605e0c9cc; ci.yml is shared with this area's #38132/#38133 claim (the ui paths-filter rows vs the Test Core matrix: disjoint hunks); overlap-check before every push, the later PR merges mainPre-claim lane:
domain:devxper triage 7232820216; stays in this seat (留道). Governed (.github/workflows/**) → Tier H, the PR goes to the seat for the hand-off.Pre-claim deps:
Blocked-by: #38124— merged;pm:blockedcomes off in this stroke.Prior rulings read: the release 7232820216 (levers A+B together; C and E not taken, D left); PR #25968 (reverted at five whole shards at the 1868 s cap) — the density this build must not reach. Dispatch order: the maintainer, 2026-11-28T09:59Z in the area thread, 「CI 和合并队列 可以派」 (the CI and merge-queue p2 group) and 「并发5」.
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
os-dev-report
{ "issue": 36646, "status": "done", "branch": "claude/issue-36646-queue-shards-ab", "pr": "https://github.com/objectstack-ai/objectstack/pull/38258", "head_sha": "f7e02acb1f", "session": "session_016WV4cxRDKprCtjpEdtiPFW", "premise_still_valid": true, "premise_reading": "node --use-env-proxy scripts/ci/queue-duration.mjs --since 7d at 2026-11-28T10:09Z, tree e42520c67b: 1319 all-green SHAs, p50 22.9 min, p90 32.3 min, verdict OVER on both (median over the 22-min budget, p90 over the 32-min alarm). The critical run is CI on 1318 of 1319. Slowest critical-run job: Test Core (3/10), median 19.6 min.", "summary": "Levers A and B landed on one branch as draft PR #38258 (Part of #36646). A: scripts/partition-test-shards.mjs places any split that carries a slice by modelled wall (placeByWall/wallOfBin, called from placeItems). Slices go first; whole packages then land on the slice-free shards within WHOLE_LEG_CAP_SECONDS with LOAD_SENSITIVE_APART kept apart, and spill least-wall first only past that. A split with no slice is still plain LPT. B: the Test Core matrix in ci.yml goes 10 to 12 (job name, roster fallback, --shard k/12, attestation --total/artifacts, the gate's --leg test/12 and planned fallback, capture and prune labels), and the landing-k self-test pin moves with it. At twelve, on the 2026-11-23 dataset, the whole legs read 53/0/0 on the slice shards and 1515-1520 s on the nine others (max/mean 1.18x). At ten, wall placement alone would put seven whole legs at 1866-1868 s, the PR #25968 density, which a new pin refuses. The after numbers are modelled: the slowest Test Core job p50 goes 19.2 to 18.3 min, and the queue p50 to about 22.2 min, still over 22. The reader slice's closure shard, the runtime shard and the Dogfood shards set the next floor. A real post-merge reading is owed.", "tests": "node scripts/partition-test-shards.mjs --self-test on f7e02acb1f: exit 0, 'self-test OK (82 measured packages -> 84 shard items, 12 shards, max/mean 1.18x <= 1.3x ... whole legs 53/0/0/1515/1517/1517/1518/1518/1518/1519/1517/1520s within 1868s, file-level slices: @objectstack/cli x3)'. A new battery 'a split that carries a slice is placed by wall (#36646)' has 8 cases (3 on the committed dataset, 5 fixtures); the floor goes 18 to 19. Two existing pins were re-stated for the new placement: the 3e reader-room pin and the closure-allowance refusal fixture. Ablation 1, via scripts/ablation-replace.mjs: placeItems routed back to partition(). The mutation landed (anchor 1->0, blob 18e01104a20d->adfbed35e9c3), the self-test exited 1 with 'wall placement: the committed dataset at 12 shards puts whole packages beside a slice (@objectstack/service-settings on shard 5, ...)', and the file was restored to blob 18e01104a20d with git diff HEAD empty. Ablation 2: the cap filter dropped from placeByWall. Landed (blob->e76084fdaefa), exit 1 with 'the spill fixture split as [c 1/2 | c 2/2 | w,x,y,z]', restored the same way. Other self-tests green: plan-test-core-shards (23), ci-shard-matrix (27, live test=12), check-shard-attestation (360), select-shard-timings-run, landing-k (47). Before/after model: the 60 latest green merge_group CI runs (job payloads, plan logs and slice-shard leg logs) were replayed through planShards(), before at 10 and after at 12, with a whole-leg fit from 297 legs (-45 + 0.326*sum + 0.351*heaviest, median error 20.6%). The slowest Test Core job p50 goes 19.2 -> 18.3 min (measured 21.9) over the 42 runs with Test Core, and 22.1 -> 19.1 on the 28 all-ten runs. The CI run wall over the 60 goes p50 25.7 -> 25.0 and p90 34.1 -> 29.1.", "gates": "Local, the dispatch-gates --commands derivation on f7e02acb1f: 65 families. Exit codes were captured before any pipe into the scratchpad's gate-results file. 59 exited 0, among them check:pm-dispatch-gates (fast tier, 2369 cases, 540.8 s), check:shard-attestation, check:required-contexts, check:stall-guard-budget, check:stall-guard-headroom and check:nul-bytes. check-self-test-workflow-commands exited 1 the first time, spawnSync ETIMEDOUT under box load; rerun it exited 0. Five exited 3, PREREQUISITE NOT MET because no package dist was built (the diff touches no package, so no closure was built): check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content, check:type-check-debt. Those five are NOT MEASURED locally; CI ran them. dispatch-gates --ran: '65 derived famil(ies) accounted for — 65 run, 0 NOT-MEASURED' (the runner's claim; the five exit-3 families are named above). CI check-runs on head f7e02acb1f, all completed: Lint & Repo Gates success, TypeScript Type Check success, Test Core success (Test Core (1/12), (2/12) and (3/12) success; the plan started 3 of 12, no slice in the PR's affected set), Build Core success, Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success (its shards skipped on pull_request), Check Changeset success. In total 36 success, 14 skipped, 0 failure.", "line_budget": "n/a (no skills/** diff)", "files_changed": [".github/workflows/ci.yml", "scripts/partition-test-shards.mjs", "scripts/ci/plan-test-core-shards.mjs", "scripts/pm/landing-k.mjs"], "deviations": "The PR run's affected set carried no CLI slice, so CI has not yet exercised placeByWall on a real run. The first such run is a merge-queue build after the maintainer enqueues. test:repo was not run locally: no diff touches that project.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — (1) pr_create via fleet-write relay run 46135185797: POST /repos/objectstack-ai/objectstack/pulls (draft) plus its assignees leg POST /issues/38258/assignees and labels leg POST /issues/38258/labels (skip-changeset), read back identical; (2) this os-dev-report comment, POST /repos/objectstack-ai/objectstack/issues/36646/comments via post-stamped.mjs. git push: 2 (the empty-branch probe and f7e02acb1f), not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (the next speed lever on #36646) · On the 28 all-ten runs sampled, the runtime shard was the slowest on 9: @objectstack/runtime alone measured 19.5-22 min, against a 1035 s dataset weight that serialFloorOf halves to 517 s (tasks=2). Neither lever moves that, and with Dogfood Regression Gate shards at a 17 min median the modelled queue p50 stays at about 22.2. Noted, not filed.", "carrier: none · After this change the reader slice's shard (CLI 1/3 plus its 270 s declaration closure) is the heaviest modelled Test Core shard: modelled 1150 s against 827 s on the other slice shards. Noted, not filed." ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW
Follow-ups from PR #38258 (levers A and B) · 2026-11-28T11:14Z · from L1-a's ACCEPT 7238348047 and contract record 7238340742. None blocks the landing. Each is folded into this card's next PR.
.github/workflows/ci.ymlstill says "ten deterministic bins".scripts/partition-test-shards.mjsare stale afterplaceByWall().test-nightly-tiers.yml,--shard k/4) now goes throughplaceByWall()too. That is judged right, but the PR body does not name it, so the next PR's body should.