You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(test-shards): Test Core's two slowest shards set every core PR's wall clock at ~28 min (5.6 min dependency build + ~20 min tests) while the other six finish in 7–17 — re-derive the cli slicing and shard balance on post-merge readings #25870
area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratedomain:devxDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
Ruled: 6439314592 · letter A (re-ruled from B, 6435350063) · 2026-10-27T10:22Z
Filing gate ③ (maintainer-directed). Maintainer, 2026-10-26 01:45Z, in the project thread that measured post-merge CI speed: 「创建issue」 (asked after reading the ranked fix list; this is item 5, the largest wall-clock lever).
谁付代价(业务筛): every PR that touches a core package waits for the slowest Test Core shard, and so does every core merge-queue entry. The ui/ merge did not change this (core PRs were 28–29 min before and ~31 min after), but it is now the floor that every core PR and queue entry pays.
Measured (pull_request runs, 2026-10-25/26)
run
slowest shards
other shards
40211990811
5/8 27.6 min, 4/8 18.2
8.4–17.0
40211391950
4/8 28.1, 5/8 27.4
7.7–17.1
40219925686
5/8 27.8, 4/8 27.3, 3/8 25.3
7.5–16.8
40248884869
4/8 29.6, 5/8 23.4
7.3–17.8
On the long shards, "Build this shard's dependencies" takes 5.3–5.8 min and "Run this shard's tests" 20–22 min. On the short ones the build is 0.3–0.9 min.
The merged timing table from run 40248884869: @objectstack/cli 2542 s summed over its 3 slices (pinned 2899 s), and the slowest files are all cli integration files (data-commands.absent-database.integration.test.ts 364 s, stack-conversion-record-door.test.ts 330 s, …). Many other packages run at 0.35–0.6× their pinned weight (objectql 0.35×, metadata-protocol 0.52×), so the dataset over-weights them and under-fills other legs.
Wanted
Find out what makes 3/8–5/8 long: the cli slices, the dependency closure they build (5.6 min against <1 min elsewhere), or stale weights.
Then do the cheapest of: refresh the weights, re-derive the cli slice count, or pre-build the shared closure once.
⛔ No test skipped or quarantined, and no timeout raised to make it fit.
Acceptance
Slowest Test Core shard ≤ ~20 min on 3 consecutive pull_request runs that touch packages/spec. Readings go on the card.
Expected saving: ~8 min wall clock per core PR and per core queue entry. Size: M. Clause-②: no. Metadata-protocol: none.
Dedupe
search_issues 2026-10-26 01:50Z 「Test Core shard long pole 4/8 5/8 rebalance shard timings wall clock」: 11 hits, all closed. Earlier rounds of the same shape: #22075, #25376 (6→8 shards), #25390 (cli slice refresh), #21758, #16173. Nothing open. New.
p2: a CI wall-clock lever, filed on the maintainer's 「创建issue」. Nothing is red. The acceptance already forbids skipping, quarantining or raising a timeout.
Measure first (the cli slices, the 5.6 min dependency closure, stale weights), then take the cheapest fix. This is not ui-merge epic scope, although it reads post-merge numbers.
Claim: PM loop · 2026-10-26T06:09Z
Session: session_01CLvWYcHLpbpu8X8PvozD7F (card thread, dispatched by seat session session_01LKHDniRQSWjRJyDtacwpEd)
Account: os-elon-musk
Branch: claude/project-thread-lbjl7f (the harness-pinned branch for the card thread; it names no issue, so this claim is the identity record)
Worktree: objectstack-issue-25870
Domain: domain:devx
Seat: domain:devx#1 (seat post #6023)
File surface: scripts/partition-test-shards.mjs, scripts/test-shard-timings.json (via its generator), scripts/ci/** shard tooling, .github/workflows/ci.yml Test Core job only if the fix needs it (stop on breach; explain in the report)
Container & model: M, mode:thread, model: default tier, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: p2: find what makes Test Core 3/8–5/8 long and take the cheapest fix; slowest shard ≤ ~20 min
Thread-read: none
Serial constraints cleared: #25771 (seat) edits ci.yml/lint.yml schedules — merge origin/main before each push
Dispatched under the maintainer's 「同意」 to the director's ruling batch 1, item 5A (devx dispatches p1–p3). Dispatch order: /mnt/project-files/pm-devx-seat/dispatch-25870.md.
{
"issue": 25870,
"status": "rework",
"branch": "claude/project-thread-lvcw23",
"pr": "https://github.com/objectstack-ai/objectstack/pull/25968",
"session": "session_01NPH84ZP1jWcst3tpRwfrJL (card thread)",
"premise_still_valid": true,
"summary": "Diagnosis (56 pull_request runs' step timings + slice-leg Duration/turbo Time on 18 slice-shard jobs of 6 packages/spec runs): the long shards are always the 3 cli-slice shards; on a spec PR the slowest is ~1.5 setup + 5.5-6.3 cold DTS closure (cli is a DTS reader) + 2.2-5.7 whole-package leg + 13.6-17.5 cli slice leg. The whole-package leg is the partitioner's doing: partition() balanced plain sums though a slice runs serially after the 4-wide leg (step ~ wholeSum/2.9 + slice), so each slice shard was filled with ~900s of whole packages (predicted 1277s vs 643s elsewhere). Stale weights are not the cause (refresh #25960 still gives 1107s vs 518s). PR #25968 places bins by the wall model (scripts/partition-test-shards.mjs only, not governed; non-sliced splits byte-identical): predicted 966s/830s. Expected slowest on the six spec runs 22.3-25.1 min (from 25.7-28.8). status rework = acceptance (<= ~20 min) not reached by this PR; PR says Part of #25870.",
"tests": "partition-test-shards --self-test OK (walls 966/966/966/830/830/830/829/829s, max/mean 1.10x); revert of the bin choice to total reds pin 2 (1.45x, 1277s vs 881s), restored blob == HEAD; measure-test-shard-timings, check-test-completeness, ci/select-shard-timings-run, nightly-tiers, check-test-suite-ceilings self-tests OK.",
"gates": "dispatch-gates --commands: 33 families, all exit 0 at 8ca31e08; --ran: 33 derived, 33 run, 0 NOT-MEASURED. Head ec177ae8 = clean merge of origin/main (no touched surface), partitioner self-test re-run green. CI families: read from PR #25968 check-runs (in_progress at report time).",
"dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
"mcp_calls": "read-only: issue_read x2, get_job_logs x2 (+24 via a read-only subagent); 0 writes",
"api_writes": "2 relay strokes: pr_create (#25968), this comment + pr_request_reviewers",
"open_questions": [
{
"question": "Which step closes the remaining ~2-5 min gap to <= ~20 min?",
"options": [
"A four cli slices: heaviest ~780s, est ~20.5 min; pin 3c must move to a wall-model derivation, PREVIOUS_FILE_SHARDED_PACKAGES={cli:3}, +1 shard paying the DTS closure",
"B declarations only on the slice that reads them (3 cli files read built .d.ts): ~5.8 -> ~1 min closure on the other slice shards; edits ci.yml (Tier H) and must predict vitest's sha1 file split",
"C weight-balanced cli slices via a sequencer in packages/cli/vitest.config.ts: heaviest ~1040 -> ~820s; needs a per-file weight source"
],
"recommendation": "Measure this PR first on 3 spec PRs, then A (scripts-only, not Tier H, cheapest that plausibly reaches ~20); B if A falls short."
}
],
"out_of_scope_findings": [
"carrier: none - ci.yml Test Core header says each slice is placed at its PLAIN weight; stale after this PR, left because the edit is Tier H (noted in PR Acceptance notes)",
"carrier: seat - #25960 (lane dataset refresh) open, opened by GITHUB_TOKEN so it has no CI; independent of this PR"
]
}
Seat ACCEPT on PR #25968 at head ec177ae (Part of; this card stays open for the gap to ≤ ~20 min): see the PR's 席位核对 comment. Next: 3 spec-touching pull_request readings after landing, then option A/B/C.
Seat re-ACCEPT on PR #25968 at head b323410. It now also carries the 2026-10-26 dataset refresh (#25960, closed as superseded) and the CLI at 4 slices. The predicted slowest shard is 18.5–20.9 min. This card stays open until 3 spec-touching pull_request readings come in after landing.
Landed: PR #25968, merged 2026-10-26T08:35:40Z (merge f36f6190a8, on origin/main). The merge brings two changes:
wall-based bin placement;
the 2026-10-26 refreshed dataset, with @objectstack/cli at 4 slices. On origin/main, scripts/partition-test-shards.mjs:402 reads '@objectstack/cli': 4.
This card stays open with pm:dispatched. It still needs readings: the slowest Test Core shard on 3 consecutive spec-touching pull_request runs whose head contains f36f6190a8. The card thread scheduled that check for 11:36Z. Predicted range: 18.5–20.9 min. Acceptance is ≤ ~20 min. If the readings miss it, the next step is B or C from the PR body. The seat will rule on that.
#25968 reverted: what the wall placement did to the whole-package shards, and why the model missed it
#25968 (wall-model bin placement + the 2026-10-26 refresh + CLI ×4) landed at 08:35Z. It is being reverted by #26077 (card #26074), because merge_group Test Core went red on 5 of 27 full builds since 08:16Z, against 0 of 19 on the old layout. Every red was a load-sensitive test: objectql hook-run-as on cold import, plugin-security shipped-sets taking more than 5s, and the cli hook-timeout CONTROL test. This comment records the mechanism so that a second attempt can avoid it. No acceptance reading was taken, because the layout is being reverted.
Placement, full list (turbo ls, dogfood excluded), replayed through planRun()
Each cell is the whole-package seconds on that shard, with the package count in brackets.
shard
before: main cdd4eea (plain sum, 10-23 dataset, cli ×3)
Clearing the whole-package leg off the slice shards moved about 2,850 s of four-wide work onto the other shards. Before, five shards each carried about 1,866 s. After, four shards each carried about 2,141 s, which is 15% more contended time per shard. objectql and plugin-security ended up on the same shard. Before the change, plugin-security had sat on a slice shard with only 899 s of whole-package work.
The cli test test/hook-timeout-override-refusal.test.ts moved from slice 1/3 to slice 2/4. vitest's sha1 split was reproduced locally and matches run 40274911131 file for file. A slice runs alone after its shard's whole leg, so that test's neighbours are cli files only.
Why the wall model missed it
wholeSum / 2.9 + slice predicts a shard's step time, which is a throughput figure. It says nothing about how slow one test runs while other suites share the leg. Each shard's step did fall to ~738 s in the prediction, but the tests that broke have per-test wall budgets, and those budgets depend on what runs alongside them.
The density cap (2697 s) is a ceiling on plain sums. 2141 s passed it, so nothing in the self-test graded co-run intensity or which suites share a leg.
Read any placement change against the merge-queue red rate as well as shard wall.
Lowest-risk candidate, replayed: the old plain-sum placement with the 10-26 refresh and cli ×4. The 2026-11-02 refresh will hit pin 3c at ×3 again, so cli ×4 is needed anyway. In the replay, whole-package shards come out at ~1500 s each, which is less than today's 1866 s. Slice shards come out at 826 s whole + 674 s slice, giving a predicted step of 959 s against 1277 s today. objectql and plugin-security land on different shards (7/8 and 6/8). This needs no change to placement logic.
If whole-package work is moved off the slice shards again, cap each shard's whole sum at roughly the old mean, or keep the known load-sensitive suites apart (objectql, plugin-security), or weight the whole leg by a measured co-run slowdown rather than a flat 2.9.
Option B, declarations only on the slice that reads .d.ts (Tier H, ci.yml), shortens the slice shards without moving any package.
New reading and the maintainer's order for this card: priority p2 → p1, and pm:on-hold → pm:queue. ⛔ Not a claim.
The 2026-11-08 CI assessment (window 2026-11-01..07) ranked this work first. The maintainer answered it in the project thread, verbatim: 「同意,立卡」 · 「高优先」 (2026-11-08T12:30Z). This card already carries the work, so nothing new is filed.
Sample: 90 successful CI runs on 2026-11-06 (30 each of pull_request, merge_group, push). 55 of them started at least 4 Test Core shards.
The median of each run's slowest-to-mean ratio is 1.64. 4/8's median against the mean of the eight medians is 1.53, the same figure as 6683757685 over 980 runs.
The partition's own prediction for the full package list is equal bins of about 1,584–1,586 s (max/mean 1.00); @objectstack/cli weighs 1,432 s and @objectstack/spec 1,008 s.
So 1/8 and 3/8 are long too. The work is a re-weighting of the whole partition from measured shard wall, not moving one package off 4/8. 6683959694's caveat applies: derive weights from full-plan runs (merge_group, schedule).
The 4/8 flakes are not a reason to move cli. The four push-side Test Core reds on 4/8 in the window were one test: packages/cli/test/validate-build-gate-parity.test.ts › "the command sources use no call shape this scan cannot read", at the 5 s vitest default (jobs 127442019825, 127581420952, 127633035590, 127715680517; 11-05 18:48Z to 11-06 05:01Z). All four predate test(cli): the parity scan reads a few characters before each call site, not the file up to it #30811 (2038c56ec, 11-06 05:08Z), which made that scan read a few characters before each call site.
Expected saving: the slowest shard from ~19 to ~13 min, so 5–6 min off every core PR and core queue entry.
Next: a domain:devx seat dispatches it at p1. The acceptance in the body stands: the slowest Test Core shard ≤ ~20 min on 3 consecutive spec-touching pull_request runs. The 11-06 medians suggest ~13 min is reachable.
Claim: PM loop round 2 · 2026-11-08T13:20Z
Session: session_01QsR2jUHzPuDW81yN7XfvLG (card thread, dev) · seat session_01QsR2jTo666XXx9e1Gm21C6
Account: zhuangjianguo
Branch: claude/project-thread-hcba7r
Worktree: objectstack-issue-25870
Domain: domain:devx
Seat: domain:devx#2
File surface: scripts/ci/** shard timings data and planner (plan-test-core-shards.mjs, select-shard-packages.sh, select-shard-timings-run.mjs) with their self-tests; .github/workflows/ci.yml only if the lever needs it (then Tier H); skip-changeset; ⛔ no test skipped, no timeout raised
Container & model: M, mode:thread, model: default tier (no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: this repo's CI shard partition (scripts/ci/**) | none: the weights are stale against measured shard wall | every core PR and core queue entry waits on the slowest Test Core shard (6721688065: 4/8 median 19.0 min)
Thread-read: 6721688065
Premise: holds per 6721688065 (90-run sample on 2026-11-06); the dev re-measures on full-plan runs before code
Serial constraints cleared: PR #31429 (devx#3) edits ci.yml and scripts/ci/select-shard-packages.sh; a fix touching either waits for it to land, step 1 runs now
Scope: re-weight the partition from measured full-plan shard wall (6721688065, caveat 6683959694); acceptance as in the body. PR says Fixes #25870. Brief: /mnt/project-files/issue-25870/brief.md. Summons: the maintainer's 「开一个 devx 车道」 (this project, 2026-11-08T11:03Z); priority from the maintainer's 「同意,立卡」 · 「高优先」 as recorded on the card.
Claim: PM loop round 2 · amendment · 2026-11-08T13:34Z
Amends: 6722015711 (File surface only; every other line stands)
File surface: adds scripts/partition-test-shards.mjs (FILE_SHARDED_PACKAGES, the PREVIOUS map, the docblock) and its self-test; ⛔ pin 3c (sliceCountProblems(), SLICE_COUNT_HYSTERESIS, ruling record 6634084947 on #29826) is unchanged on this claim; a change to what it measures goes to the maintainer first
Step 1 (dev, 79 full-plan runs): the closure build is 0.1–0.4 min everywhere, so the long pole is the serial CLI slice; the lever is the CLI slice count.
{
"issue": 25870,
"status": "done",
"branch": "claude/project-thread-hcba7r",
"pr": "https://github.com/objectstack-ai/objectstack/pull/31543",
"head": "6c8eba8449",
"session": "session_01QsR2jUHzPuDW81yN7XfvLG (mode:thread, card thread)",
"premise_still_valid": true,
"summary": "Re-measured on origin/main: 79 full-plan runs (57 merge_group 2026-11-08, 22 schedule since 11-04T16Z) with all eight Test Core shards green. The two CLI slice shards are the slowest: 4/8 median 19.4 min (slowest in 52/79), 1/8 16.8; the others 9.3-14.8. On 112 full shard logs the cause is the serial slice leg after the whole leg (4/8 = 313 s whole + 873 s cli 2/2); the closure build is 0.1-0.4 min median everywhere. Lever (seat-approved): FILE_SHARDED_PACKAGES cli 2 -> 3, the one count above 2 that pin 3c accepts unchanged (n=4 and n=5 refused, 'Lower it to 3'/'to 4'), PREVIOUS map 4 -> 2, docblock re-derivation. Predicted slowest shard median 19.4 -> ~16.4 min (the 8/8 CLI shard).",
"tests": "At 6c8eba8449 (merge of origin/main): partition-test-shards --self-test exit 0, 'self-test OK (79 measured packages -> 81 shard items ... whole legs 291/1553/1553/1551/1553/1553/1074/1076s within 1868s, file-level slices: @objectstack/cli x3)'. At 4bc0c344e: measure-test-shard-timings, ci/plan-test-core-shards, ci/select-shard-timings-run, nightly-tiers, check-test-completeness --self-test all exit 0; plan-test-core-shards re-run at 6c8eba8449 exit 0. Model check: per-file slice model reproduces cli 1/2 at 770 s vs 776.5 s measured; planRun() sim reproduces CI's 2-slice plan byte for byte. No ablation: config-only change to a scheduling constant.",
"gates": "dispatch-gates --commands at 4bc0c344e: 31 derived, all 31 exit 0 (captured before any pipe; check:pm-dispatch-gates fast tier 2205 cases, 421 s). --ran: '31 derived, 31 run, 0 NOT-MEASURED, 0 UNRUN'. PR body gates on the final body: check-changeset-no-major exit 0, check-adr-0087-registration exit 0, check-closing-keyword-parity exit 0, check-partof-closing-keyword exit 0. CI check-runs: in_progress at report time (the seat reads them).",
"line_budget": "1 file, +31/-3 (34 changed lines) vs 3000 threshold",
"files_changed": ["scripts/partition-test-shards.mjs"],
"deviations": [
"File surface: scripts/partition-test-shards.mjs is outside the claim's literal scripts/ci/** surface; the seat put it in bounds before code (seat answer in the card thread, 2026-11-08T13:34Z) and amends the claim.",
"Lever count: step 1 recommended 5 slices; pin 3c refuses 4 and 5 unchanged, so the seat approved 3 with no pin change. The 5-slice re-grounding is in the PR's Acceptance notes as a possible follow-up for the seat to decide.",
"PR opened without assignees or reviewers, per the seat's common rule 10."
],
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "1 — mcp__github__issue_read (get #25870); 0 MCP writes. Other reads via gh api GET (runs, jobs, job logs, issue comments, search).",
"api_writes": "2 — pr_create via fleet-write relay (run 42487463534, PR #31543, body read back byte-identical), this comment via post-stamped. Not REST: 2 git pushes.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #25870 (seat) · noted, not filed: pin 3c judges a slice beside the heaviest other package's task, but a slice runs after its shard's whole leg; re-grounded on whole/WHOLE_LEG_WALL_DIVISOR + slice it would admit 5 slices (predicted slowest ~15 min). Ruled gate (ruling record 6634084947), so the maintainer's call.",
"carrier: #25870 (seat) · noted, not filed: serialFloorOf halves spec and runtime (two tasks), but one task dominates each (runtime:test ~840 s, spec:test:repo ~746 s measured alone), so the dataset reads their floors ~494/504 s; these set the run's floor once the CLI is no longer the pole."
]
}
ACCEPT → PR #31543 comment 6722647269 · head 8f410384 · ready and auto-merge armed 2026-11-08T14:23Z; this card closes on merge. The seat posts the Acceptance readings here after landing: slowest Test Core shard on 3 consecutive pull_request runs that touch packages/spec.
merged 2026-11-08T14:44Z through the merge queue as 5ea7789a97
this card
closed completed by the PR's Fixes; pm:dispatched removed in this act
Owed by this seat: the Acceptance readings (slowest Test Core shard on 3 consecutive pull_request runs that touch packages/spec, against ≤ ~20 min) are posted here once three such runs on a base containing 5ea7789a97 have finished. Follow-up named in the PR, not filed: re-grounding pin 3c to read a slice after its shard's whole leg is a ruled gate's change (6634084947 on #29826) and needs a maintainer decision if 4 or 5 slices are wanted.
area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratedomain:devxDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
Activity
objectstack-fleet commentedon Oct 26, 2026
Triage: first grade —
tooling·priority:p2·domain:devx·area:devpath·pm:queue· triage seat ·session_01AavokzJ5DndAwitDXvKy4U· 2026-10-26T01:54Z⛔ Not a claim, ⛔ not a dispatch.
Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
Claim: PM loop · 2026-10-26T06:09Z
Session:
session_01CLvWYcHLpbpu8X8PvozD7F(card thread, dispatched by seat sessionsession_01LKHDniRQSWjRJyDtacwpEd)Account:
os-elon-muskBranch:
claude/project-thread-lbjl7f(the harness-pinned branch for the card thread; it names no issue, so this claim is the identity record)Worktree:
objectstack-issue-25870Domain:
domain:devxSeat:
domain:devx#1(seat post #6023)File surface:
scripts/partition-test-shards.mjs,scripts/test-shard-timings.json(via its generator),scripts/ci/**shard tooling,.github/workflows/ci.ymlTest Core job only if the fix needs it (stop on breach; explain in the report)Container & model:
M,mode:thread,model: default tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility: p2: find what makes Test Core 3/8–5/8 long and take the cheapest fix; slowest shard ≤ ~20 min
Thread-read: none
Serial constraints cleared: #25771 (seat) edits ci.yml/lint.yml schedules — merge origin/main before each push
Dispatched under the maintainer's 「同意」 to the director's ruling batch 1, item 5A (devx dispatches p1–p3). Dispatch order:
/mnt/project-files/pm-devx-seat/dispatch-25870.md.objectstack-fleet commentedon Oct 26, 2026
os-dev-report
{ "issue": 25870, "status": "rework", "branch": "claude/project-thread-lvcw23", "pr": "https://github.com/objectstack-ai/objectstack/pull/25968", "session": "session_01NPH84ZP1jWcst3tpRwfrJL (card thread)", "premise_still_valid": true, "summary": "Diagnosis (56 pull_request runs' step timings + slice-leg Duration/turbo Time on 18 slice-shard jobs of 6 packages/spec runs): the long shards are always the 3 cli-slice shards; on a spec PR the slowest is ~1.5 setup + 5.5-6.3 cold DTS closure (cli is a DTS reader) + 2.2-5.7 whole-package leg + 13.6-17.5 cli slice leg. The whole-package leg is the partitioner's doing: partition() balanced plain sums though a slice runs serially after the 4-wide leg (step ~ wholeSum/2.9 + slice), so each slice shard was filled with ~900s of whole packages (predicted 1277s vs 643s elsewhere). Stale weights are not the cause (refresh #25960 still gives 1107s vs 518s). PR #25968 places bins by the wall model (scripts/partition-test-shards.mjs only, not governed; non-sliced splits byte-identical): predicted 966s/830s. Expected slowest on the six spec runs 22.3-25.1 min (from 25.7-28.8). status rework = acceptance (<= ~20 min) not reached by this PR; PR says Part of #25870.", "tests": "partition-test-shards --self-test OK (walls 966/966/966/830/830/830/829/829s, max/mean 1.10x); revert of the bin choice to total reds pin 2 (1.45x, 1277s vs 881s), restored blob == HEAD; measure-test-shard-timings, check-test-completeness, ci/select-shard-timings-run, nightly-tiers, check-test-suite-ceilings self-tests OK.", "gates": "dispatch-gates --commands: 33 families, all exit 0 at 8ca31e08; --ran: 33 derived, 33 run, 0 NOT-MEASURED. Head ec177ae8 = clean merge of origin/main (no touched surface), partitioner self-test re-run green. CI families: read from PR #25968 check-runs (in_progress at report time).", "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm", "mcp_calls": "read-only: issue_read x2, get_job_logs x2 (+24 via a read-only subagent); 0 writes", "api_writes": "2 relay strokes: pr_create (#25968), this comment + pr_request_reviewers", "open_questions": [ { "question": "Which step closes the remaining ~2-5 min gap to <= ~20 min?", "options": [ "A four cli slices: heaviest ~780s, est ~20.5 min; pin 3c must move to a wall-model derivation, PREVIOUS_FILE_SHARDED_PACKAGES={cli:3}, +1 shard paying the DTS closure", "B declarations only on the slice that reads them (3 cli files read built .d.ts): ~5.8 -> ~1 min closure on the other slice shards; edits ci.yml (Tier H) and must predict vitest's sha1 file split", "C weight-balanced cli slices via a sequencer in packages/cli/vitest.config.ts: heaviest ~1040 -> ~820s; needs a per-file weight source" ], "recommendation": "Measure this PR first on 3 spec PRs, then A (scripts-only, not Tier H, cheapest that plausibly reaches ~20); B if A falls short." } ], "out_of_scope_findings": [ "carrier: none - ci.yml Test Core header says each slice is placed at its PLAIN weight; stale after this PR, left because the edit is Tier H (noted in PR Acceptance notes)", "carrier: seat - #25960 (lane dataset refresh) open, opened by GITHUB_TOKEN so it has no CI; independent of this PR" ] }Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
Seat ACCEPT on PR #25968 at head
ec177ae(Part of; this card stays open for the gap to ≤ ~20 min): see the PR's 席位核对 comment. Next: 3 spec-touchingpull_requestreadings after landing, then option A/B/C.Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
Seat re-ACCEPT on PR #25968 at head
b323410. It now also carries the 2026-10-26 dataset refresh (#25960, closed as superseded) and the CLI at 4 slices. The predicted slowest shard is 18.5–20.9 min. This card stays open until 3 spec-touchingpull_requestreadings come in after landing.Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
Landed: PR #25968, merged 2026-10-26T08:35:40Z (merge
f36f6190a8, onorigin/main). The merge brings two changes:@objectstack/cliat 4 slices. Onorigin/main,scripts/partition-test-shards.mjs:402reads'@objectstack/cli': 4.This card stays open with
pm:dispatched. It still needs readings: the slowest Test Core shard on 3 consecutive spec-touchingpull_requestruns whose head containsf36f6190a8. The card thread scheduled that check for 11:36Z. Predicted range: 18.5–20.9 min. Acceptance is ≤ ~20 min. If the readings miss it, the next step is B or C from the PR body. The seat will rule on that.Generated by Claude Code
objectstack-fleet commentedon Oct 26, 2026
#25968 reverted: what the wall placement did to the whole-package shards, and why the model missed it
#25968 (wall-model bin placement + the 2026-10-26 refresh + CLI ×4) landed at 08:35Z. It is being reverted by #26077 (card #26074), because merge_group Test Core went red on 5 of 27 full builds since 08:16Z, against 0 of 19 on the old layout. Every red was a load-sensitive test: objectql hook-run-as on cold import, plugin-security shipped-sets taking more than 5s, and the cli hook-timeout CONTROL test. This comment records the mechanism so that a second attempt can avoid it. No acceptance reading was taken, because the layout is being reverted.
Placement, full list (
turbo ls, dogfood excluded), replayed throughplanRun()Each cell is the whole-package seconds on that shard, with the package count in brackets.
Clearing the whole-package leg off the slice shards moved about 2,850 s of four-wide work onto the other shards. Before, five shards each carried about 1,866 s. After, four shards each carried about 2,141 s, which is 15% more contended time per shard. objectql and plugin-security ended up on the same shard. Before the change, plugin-security had sat on a slice shard with only 899 s of whole-package work.
The cli test
test/hook-timeout-override-refusal.test.tsmoved from slice 1/3 to slice 2/4. vitest's sha1 split was reproduced locally and matches run 40274911131 file for file. A slice runs alone after its shard's whole leg, so that test's neighbours are cli files only.Why the wall model missed it
wholeSum / 2.9 + slicepredicts a shard's step time, which is a throughput figure. It says nothing about how slow one test runs while other suites share the leg. Each shard's step did fall to ~738 s in the prediction, but the tests that broke have per-test wall budgets, and those budgets depend on what runs alongside them.FILE_SHARDED_PACKAGEShistory records that ci(test-shards): grade the Test Core split on predicted shard wall and slice the CLI per run #22415 placed slices at 4× weight, piled the remaining whole packages onto three shards at ~2641 s, and inflated windows 1.5–1.9× until it was reverted (806b03e). ci(test-shards): place Test Core bins by predicted wall, and cut the CLI into 4 slices on the refreshed dataset #25968 used 2.9× and reached 2141 s. That is milder, but it is the same mechanism, and the queue's load-sensitive tests are what detected it.For a second attempt
.d.ts(Tier H, ci.yml), shortens the slice shards without moving any package.Generated by Claude Code
48 remaining items
objectstack-fleet commentedon Nov 8, 2026
coordinator#1 · os-steve · session_01ADHkmRWWb3MUYRQZiCKQcX
New reading and the maintainer's order for this card: priority p2 → p1, and
pm:on-hold→pm:queue. ⛔ Not a claim.The 2026-11-08 CI assessment (window 2026-11-01..07) ranked this work first. The maintainer answered it in the project thread, verbatim: 「同意,立卡」 · 「高优先」 (2026-11-08T12:30Z). This card already carries the work, so nothing new is filed.
CIruns on 2026-11-06 (30 each ofpull_request,merge_group,push). 55 of them started at least 4 Test Core shards.@objectstack/cliweighs 1,432 s and@objectstack/spec1,008 s.merge_group,schedule).packages/cli/test/validate-build-gate-parity.test.ts› "the command sources use no call shape this scan cannot read", at the 5 s vitest default (jobs 127442019825, 127581420952, 127633035590, 127715680517; 11-05 18:48Z to 11-06 05:01Z). All four predate test(cli): the parity scan reads a few characters before each call site, not the file up to it #30811 (2038c56ec, 11-06 05:08Z), which made that scan read a few characters before each call site.Next: a
domain:devxseat dispatches it at p1. The acceptance in the body stands: the slowest Test Core shard ≤ ~20 min on 3 consecutive spec-touchingpull_requestruns. The 11-06 medians suggest ~13 min is reachable.objectstack-fleet commentedon Nov 8, 2026
domain:devx#2 · zhuangjianguo · session_01QsR2jTo666XXx9e1Gm21C6
Claim: PM loop round 2 · 2026-11-08T13:20Z
Session:
session_01QsR2jUHzPuDW81yN7XfvLG(card thread, dev) · seatsession_01QsR2jTo666XXx9e1Gm21C6Account:
zhuangjianguoBranch:
claude/project-thread-hcba7rWorktree:
objectstack-issue-25870Domain:
domain:devxSeat:
domain:devx#2File surface:
scripts/ci/**shard timings data and planner (plan-test-core-shards.mjs,select-shard-packages.sh,select-shard-timings-run.mjs) with their self-tests;.github/workflows/ci.ymlonly if the lever needs it (then Tier H);skip-changeset; ⛔ no test skipped, no timeout raisedContainer & model: M,
mode:thread,model: default tier(no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility: this repo's CI shard partition (
scripts/ci/**) | none: the weights are stale against measured shard wall | every core PR and core queue entry waits on the slowest Test Core shard (6721688065: 4/8 median 19.0 min)Thread-read: 6721688065
Premise: holds per 6721688065 (90-run sample on 2026-11-06); the dev re-measures on full-plan runs before code
Serial constraints cleared: PR #31429 (devx#3) edits
ci.ymlandscripts/ci/select-shard-packages.sh; a fix touching either waits for it to land, step 1 runs nowScope: re-weight the partition from measured full-plan shard wall (6721688065, caveat 6683959694); acceptance as in the body. PR says
Fixes #25870. Brief:/mnt/project-files/issue-25870/brief.md. Summons: the maintainer's 「开一个 devx 车道」 (this project, 2026-11-08T11:03Z); priority from the maintainer's 「同意,立卡」 · 「高优先」 as recorded on the card.objectstack-fleet commentedon Nov 8, 2026
domain:devx#2 · zhuangjianguo · session_01QsR2jTo666XXx9e1Gm21C6
Claim: PM loop round 2 · amendment · 2026-11-08T13:34Z
Amends: 6722015711 (File surface only; every other line stands)
File surface: adds
scripts/partition-test-shards.mjs(FILE_SHARDED_PACKAGES, the PREVIOUS map, the docblock) and its self-test; ⛔ pin 3c (sliceCountProblems(),SLICE_COUNT_HYSTERESIS, ruling record 6634084947 on #29826) is unchanged on this claim; a change to what it measures goes to the maintainer firstStep 1 (dev, 79 full-plan runs): the closure build is 0.1–0.4 min everywhere, so the long pole is the serial CLI slice; the lever is the CLI slice count.
objectstack-fleet commentedon Nov 8, 2026
domain:devx#2 · zhuangjianguo · session_01QsR2jUHzPuDW81yN7XfvLG
os-dev-report
{ "issue": 25870, "status": "done", "branch": "claude/project-thread-hcba7r", "pr": "https://github.com/objectstack-ai/objectstack/pull/31543", "head": "6c8eba8449", "session": "session_01QsR2jUHzPuDW81yN7XfvLG (mode:thread, card thread)", "premise_still_valid": true, "summary": "Re-measured on origin/main: 79 full-plan runs (57 merge_group 2026-11-08, 22 schedule since 11-04T16Z) with all eight Test Core shards green. The two CLI slice shards are the slowest: 4/8 median 19.4 min (slowest in 52/79), 1/8 16.8; the others 9.3-14.8. On 112 full shard logs the cause is the serial slice leg after the whole leg (4/8 = 313 s whole + 873 s cli 2/2); the closure build is 0.1-0.4 min median everywhere. Lever (seat-approved): FILE_SHARDED_PACKAGES cli 2 -> 3, the one count above 2 that pin 3c accepts unchanged (n=4 and n=5 refused, 'Lower it to 3'/'to 4'), PREVIOUS map 4 -> 2, docblock re-derivation. Predicted slowest shard median 19.4 -> ~16.4 min (the 8/8 CLI shard).", "tests": "At 6c8eba8449 (merge of origin/main): partition-test-shards --self-test exit 0, 'self-test OK (79 measured packages -> 81 shard items ... whole legs 291/1553/1553/1551/1553/1553/1074/1076s within 1868s, file-level slices: @objectstack/cli x3)'. At 4bc0c344e: measure-test-shard-timings, ci/plan-test-core-shards, ci/select-shard-timings-run, nightly-tiers, check-test-completeness --self-test all exit 0; plan-test-core-shards re-run at 6c8eba8449 exit 0. Model check: per-file slice model reproduces cli 1/2 at 770 s vs 776.5 s measured; planRun() sim reproduces CI's 2-slice plan byte for byte. No ablation: config-only change to a scheduling constant.", "gates": "dispatch-gates --commands at 4bc0c344e: 31 derived, all 31 exit 0 (captured before any pipe; check:pm-dispatch-gates fast tier 2205 cases, 421 s). --ran: '31 derived, 31 run, 0 NOT-MEASURED, 0 UNRUN'. PR body gates on the final body: check-changeset-no-major exit 0, check-adr-0087-registration exit 0, check-closing-keyword-parity exit 0, check-partof-closing-keyword exit 0. CI check-runs: in_progress at report time (the seat reads them).", "line_budget": "1 file, +31/-3 (34 changed lines) vs 3000 threshold", "files_changed": ["scripts/partition-test-shards.mjs"], "deviations": [ "File surface: scripts/partition-test-shards.mjs is outside the claim's literal scripts/ci/** surface; the seat put it in bounds before code (seat answer in the card thread, 2026-11-08T13:34Z) and amends the claim.", "Lever count: step 1 recommended 5 slices; pin 3c refuses 4 and 5 unchanged, so the seat approved 3 with no pin change. The 5-slice re-grounding is in the PR's Acceptance notes as a possible follow-up for the seat to decide.", "PR opened without assignees or reviewers, per the seat's common rule 10." ], "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "1 — mcp__github__issue_read (get #25870); 0 MCP writes. Other reads via gh api GET (runs, jobs, job logs, issue comments, search).", "api_writes": "2 — pr_create via fleet-write relay (run 42487463534, PR #31543, body read back byte-identical), this comment via post-stamped. Not REST: 2 git pushes.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #25870 (seat) · noted, not filed: pin 3c judges a slice beside the heaviest other package's task, but a slice runs after its shard's whole leg; re-grounded on whole/WHOLE_LEG_WALL_DIVISOR + slice it would admit 5 slices (predicted slowest ~15 min). Ruled gate (ruling record 6634084947), so the maintainer's call.", "carrier: #25870 (seat) · noted, not filed: serialFloorOf halves spec and runtime (two tasks), but one task dominates each (runtime:test ~840 s, spec:test:repo ~746 s measured alone), so the dataset reads their floors ~494/504 s; these set the run's floor once the CLI is no longer the pole." ] }objectstack-fleet commentedon Nov 8, 2026
domain:devx#2 · zhuangjianguo · session_01QsR2jTo666XXx9e1Gm21C6
ACCEPT → PR #31543 comment 6722647269 · head
8f410384· ready and auto-merge armed 2026-11-08T14:23Z; this card closes on merge. The seat posts the Acceptance readings here after landing: slowest Test Core shard on 3 consecutivepull_requestruns that touchpackages/spec.objectstack-fleet commentedon Nov 8, 2026
domain:devx#2 · zhuangjianguo · session_01QsR2jTo666XXx9e1Gm21C6
Landed · #25870 · PR #31543
5ea7789a97Fixes;pm:dispatchedremoved in this actOwed by this seat: the Acceptance readings (slowest Test Core shard on 3 consecutive
pull_requestruns that touchpackages/spec, against ≤ ~20 min) are posted here once three such runs on a base containing5ea7789a97have finished. Follow-up named in the PR, not filed: re-grounding pin 3c to read a slice after its shard's whole leg is a ruled gate's change (6634084947 on #29826) and needs a maintainer decision if 4 or 5 slices are wanted.