Repository navigation
Description
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA
Filing gate ①: the shard-partitioner self-test red on PR #34314 (the 2026-11-16 Test Core timings refresh the maintainer ordered merged), read by area o2-C at head 5009c644 (run 44035625632, job 133877684767) and reproduced locally. Dedupe: WHOLE_LEG_CAP_SECONDS, Test Core shards; no open card (#31518 is the merge-queue cascade card, not this).
Suggested-grade: p2 · domain:devx · blocks #34314
维护者速读
- 现象:按 11-16 刷新的耗时数据,Test Core 8 片里有 5 片的整包合计约 2195s,超过 1868s 上限,分片器自检拒绝,chore(ci): refresh the Test Core shard-timings dataset #34314 合不进去。
- 为什么要修:不是数据坏了,也不是装箱器的 bug。79 个共有包的总耗时从 11636s 涨到 16472s,各包中位数涨了 1.36 倍,8 片下任何分法都过不了上限。数据集只决定怎么分,实际跑的时长已经是这个量级,所以现在 main 上的分片在真实 CI 里也已经超载。
- 需要你做的:无(分诊定级)。修法照源码现有规则:加宽矩阵。动
.github/workflows/ci.yml,PR 会走 Tier H,由 os-zhuang 批。
Readings (area o2-C, head 5009c644)
- Self-test:
whole leg, committed dataset at 8 shards (sums 2195/663/2193/2194/1446/1445/2193/2195s); shards 1, 3, 4, 7, 8 past the 1868s cap;@objectstack/objectqland@objectstack/plugin-securityshare shard 8/8. - Whole packages 14524s + CLI 2245.53s (3 slices) + the declaration-reading slice's closure charge 783s; (14524 + 2245.53 + 783) / 1868 = 9.4, so at least 10 shards with CLI kept at 3 slices. 9 shards average about 1950s and still exceed the cap. Slicing CLI to 8 still leaves about 1913s and is refused by pin 3c. Slicing another package (e.g.
spec) needsOS_TEST_SHARDsupport in that package and a generator decode change: a larger card. - Biggest rises: service-analytics x2.85, verify x2.55, driver-sql x2.32, spec x1.75, plugin-auth x1.60. The new window's 3 runs each ran all 82 packages; the old window's 6 runs ran 43 to 79 (less co-run contention, possibly lower readings; a guess, not measured).
Governing text
scripts/partition-test-shards.mjs, the WHOLE_LEG_CAP_SECONDS docblock: "When a refresh grows the whole legs past the cap, the remedy is a wider matrix or a finer slice, never a denser shard." and "Raising this number needs a merge-queue red-rate reading at the new figure, not a balance figure". So the cap stays and the matrix widens.
Change
- Widen the Test Core matrix from 8 to 10 shards: the
testjob's matrix in.github/workflows/ci.yml(including its|| '[1, ..., 8]'fallback) and whateverscripts/ci-shard-matrix.mjsliveShardTotal('test')and the generator's decode read, soSHARD_COUNTfollows. - Re-plan the committed dataset at 10 shards and keep every self-test pin green, including
LOAD_SENSITIVE_APART. - Then chore(ci): refresh the Test Core shard-timings dataset #34314 rebases onto it and lands.
Done when
node scripts/partition-test-shards.mjs --self-test passes on main with the 2026-11-16 dataset of #34314, and #34314 merges.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p2 ·
domain:devx·pm:queue· 2026-11-17T07:56Z⛔ Not a claim.
.github/workflows/ci.yml→domain:devx. Tier H.os-zhuangapproval covers the cost knowingly.o2-Cholds the readings, so it is the natural claimer.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRH4UCX1tvddXMS7cq
Claim: PM loop · area o2-C · 2026-11-17T08:25Z
Session:
session_01ADHkmRH4UCX1tvddXMS7cq(area o2-C; the dev is anos-devsubagent of this session)Account:
os-steveBranch:
claude/issue-34710-test-core-ten-shardsWorktree:
objectstack-issue-34710Domain:
domain:devxSeat:
repo:objectstack#2Ruling-ref: the governing text in
scripts/partition-test-shards.mjs(WHOLE_LEG_CAP_SECONDSdocblock: "the remedy is a wider matrix or a finer slice, never a denser shard"); triage first touch 6942184207 (p2, Tier H, the added runner-minutes stated in the quick-read for theos-zhuangapproval).File surface:
.github/workflows/ci.yml(the Test Coretestjob: its matrix and fallback list, the/8spellings in its name,--shardarguments and cache and site labels),scripts/ci-shard-matrix.mjs,scripts/partition-test-shards.mjs(count-derived constants, docblock figures and pins re-derived at 10),scripts/ci/plan-test-core-shards.mjs,scripts/measure-test-shard-timings.mjs(only if its decode reads the shard count), and their self-tests. ⛔ No change toWHOLE_LEG_CAP_SECONDS,LOAD_SENSITIVE_APARTor the datasetscripts/test-shard-timings.json.Container & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack CI: the refreshed Test Core timings no longer fit 8 shards under the 1868s whole-leg cap | a 10-shard Test Core matrix | every PR and merge-queue run of Test CoreThread-read: 6942184207
Premise: holds at
origin/main77b42a1ed0:ci.ymlruns Test Core as(${{ matrix.shard }}/8)with the fallback'[1, 2, 3, 4, 5, 6, 7, 8]', andSHARD_COUNT = liveShardTotal('test'). PR #34314 at5009c644reds the partitioner self-test on the whole-leg cap at 8 shards (the card's readings).Pre-claim lane: devx tooling; full-repo seat, area o2-C.
Pre-claim deps: no
Blocked-by:. Open-PR scan: no open PR touchesci.yml,scripts/partition-test-shards.mjs,scripts/ci-shard-matrix.mjs,scripts/ci/plan-test-core-shards.mjsorscripts/measure-test-shard-timings.mjs(#34314 changes the dataset only and waits on this card).Prior rulings read:
check-prior-rulings.mjs --card 34710→ 223 term hits (ADR-0054 §4, ADR-0061 D2, ADR-0127 D6, ADR-0145 D2, ADR-0005 §5, ADR-0021 D2, ADR-0022 §4, ADR-0029 D6), none on the Test Core shard count; thread: none.Serial constraints cleared: none needed.
Lease:
lease:o2-C.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRH4UCX1tvddXMS7cq
os-dev-report
{ "issue": 34710, "status": "done", "branch": "claude/issue-34710-test-core-ten-shards", "pr": "https://github.com/objectstack-ai/objectstack/pull/34727", "head": "67be267b99cb39800838d8a99ce504576b3ef118", "session": "session_01ADHkmRH4UCX1tvddXMS7cq", "premise_still_valid": true, "summary": "Test Core widened from 8 to 10 shards: every width spelling in the ci.yml test job and test-gate moves to 10 (job name, matrix fallback, --shard N/10 twice, --site/--label strings, artifact names *-of-10, attestation --total 10, gate --leg test/10 and OS_TEST_PLAN fallback); SHARD_COUNT follows through liveShardTotal('test'). No bound or dataset changed and no pin reds at 10, so nothing was re-derived in code; the partitioner's SHARD_COUNT docblock gains RE-DERIVED AT 10 (arithmetic (14524 + 2245.53 + 783) / 1868 = 9.4, 8/9/10/11 table on #34314's dataset), the closure-allowance docblock its 87.00s figure at 10, and the planner header reads N/10. CLI stays at 3 slices, so FILE_SHARDED_PACKAGES / PREVIOUS_FILE_SHARDED_PACKAGES and the generator's slice decode are unchanged; the refresh lane judges each run at its own width, so retained 8-wide runs stay readable. Cost for the quick-read: +3.6 runner-min per full Test Core run (2 shards x 1.67 min median pre-tests + 0.12 min tail, 16 Test Core (N/8) jobs of schedule runs 44014522626 / 43985144717; today a full run is 135.6 / 148.0 runner-min, so about +2.5%); wall model on #34314's dataset: slowest tests step ~1247s to ~1095s, whole-only shards ~757s to ~605s.", "tests": "At 6c44fc53b9 (code) / 67be267b99 (head): node scripts/partition-test-shards.mjs --self-test (a) committed dataset at 10 :: exit 0, 'self-test OK (79 measured packages -> 81 shard items, 10 shards, max/mean 1.05x, floor 1009s, ... within the 1432.04s density cap, whole legs 44/1236/1236/1235/1234/1236/1236/1234/757/756s within 1868s, file-level slices: @objectstack/cli x3)'; (b) 5009c644's dataset in a scratch worktree (not committed) at 10 :: exit 0, '82 measured packages -> 84 shard items, 10 shards, max/mean 1.01x, floor 1769s, ... within the 2245.53s density cap, whole legs 1769/222/1754/1754/1006/1005/1753/1756/1753/1754s within 1868s, @objectstack/cli x3'; control (b) at 8 on origin/main 77b42a1ed0 :: exit 1, 'whole leg, committed dataset at 8 shards (sums 2195/663/2193/2194/1446/1445/2193/2195s)', shards 1/3/4/7/8 past the cap, objectql+plugin-security on 8/8. Other width readers at 10, all exit 0: plan-test-core-shards --self-test (23 cases), pnpm check:shard-attestation (ci-shard-matrix self-test + 360 assertions), pnpm check:required-contexts, select-shard-timings-run --self-test, pnpm check:ci-filter-parity, check-self-test-workflow-commands --self-test. No ablation: config/workflow/comment change only, no tested behaviour changed. No test file names the two edited scripts (git grep over *.test.*/*.spec.*).", "gates": "Local subset at 67be267b99: dispatch-gates --commands --repo objectstack-ai/objectstack derived 65 families; each run with stdin from /dev/null, exit captured before any pipe: 65 x exit 0 (check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content first exited 3 for want of dist, re-run after a locked 'pnpm build --concurrency=2', VERDICT command-exit 0, 119/119 tasks). dispatch-gates --ran :: exit 0, '65 derived, 65 run, 0 NOT-MEASURED, 0 UNRUN'. File: /mnt/project-files/objectstack-seat2/34710-gates-ran.txt (re-read after writing: 69 lines). PR #34727 check-runs at 67be267b99 (CI run 44049951912 / 44049951878), all completed: Test Core success (Test Core (1/10), (2/10), (3/10) success; plan started 3 of 10), Lint & Repo Gates success, TypeScript Type Check success, 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, Check Changeset success, Check PR Size success, PR-body guards success.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "n/a — no skills/** or ratcheted ledger touched", "files_changed": [ ".github/workflows/ci.yml (+51/-33: 17 width spellings, width comments, TEN and cost paragraphs)", "scripts/partition-test-shards.mjs (+32/-3: docblock only)", "scripts/ci/plan-test-core-shards.mjs (+5/-4: header only)" ], "mcp_calls": "6 — reads only: issue_read x2 (get, get_comments), actions_list x3 (list_workflow_runs, list_workflow_jobs x2), pull_request_read x1 (get_check_runs); no write tool", "api_writes": "2 relay dispatches — fleet-write pr_create (POST /pulls draft, POST /issues/34727/assignees os-steve, POST /issues/34727/labels skip-changeset; read back byte-identical, labels and assignee listed) and post-stamped comment on #34710 (this report). One issue_patch of the PR body was REFUSED by the relay before sending (no write). git push x3 (branch probe, commit, merge) is not REST.", "deviations": [ "PR body Verification still says the local gate run was in progress at opening: the issue_patch that filled it was refused by the relay because a PR body rewrite must end in a signed HTML-comment trailer, which this order forbids the dev to write. Readings are in this report and in the gates file; the seat may add the trailer and patch.", "An unquoted heredoc in a scratch command expanded backticks as command substitution with cwd /home/user/objectstack (the shared checkout): it ran dispatch-gates --commands (read-only) and attempted 'pnpm build' and 'pnpm lint', both failing at once for missing node_modules. git status of the shared checkout is clean afterwards and HEAD unchanged (a34eb0716a); no file written.", "A first, unlocked run of check-self-test-workflow-commands was auto-backgrounded by the harness and stopped with TaskStop (no leftover process); it was re-run in the gate pass, exit 0.", "scripts/ci/select-shard-timings-run.mjs keeps SHARD_COUNT = 8 (its matchers' and self-test fixtures' default) though the Test Core order said to spell 10 everywhere: it is outside the claimed file surface and the live lane never reads that default (runIsEligible reads each run's own width). Named in the PR's Acceptance notes and below." ], "open_questions": [ { "question": "Contract-tier review owed (Tier H, .github/workflows/ci.yml) at head 67be267b99, then os-zhuang approval; route via the seat.", "options": [ "A route to the L2 review seat now at 67be267b99", "B wait for a further head" ], "recommendation": "A, because the head is final and every check-run is green." }, { "question": "Align select-shard-timings-run.mjs's SHARD_COUNT default (8) with the live width?", "options": [ "A leave it: test-only default, the live lane reads each run's own width, no wrong answer anywhere", "B a follow-up card makes it liveShardTotal('test') and respells its 8-wide fixtures" ], "recommendation": "A, because no reading changes; B only removes a stale comment ('the LIVE matrix')." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — select-shard-timings-run.mjs comment calls its SHARD_COUNT = 8 'the Test Core shard count of the LIVE matrix'; now stale at 10 (drift, no consumer reads it outside its self-test).", "carrier: none · noted, not filed — on the 2026-11-16 dataset @objectstack/spec's whole 1769.27s is the heaviest bin at 10 and its whole leg at any width (99s under the 1868s cap); a refresh taking spec past 1868s needs a spec slice (OS_TEST_SHARD support + FILE_SHARDED_PACKAGES entry), not more shards." ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRH4UCX1tvddXMS7cq
Claim amendment (claim 6942771051) · 2026-11-17T09:30Z
File surface, added:
scripts/ci/select-shard-timings-run.mjsand its self-test fixtures. The seat ruled that itsSHARD_COUNT = 8default, and the comment calling that the live width, belong to this card's change. They move to the live width in PR #34727, read from the same source as the partitioner where that is possible.Clause-②: no
Metadata-protocol: none
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRH4UCX1tvddXMS7cq
os-dev-report
{ "issue": 34710, "status": "done", "branch": "claude/issue-34710-test-core-ten-shards", "pr": "https://github.com/objectstack-ai/objectstack/pull/34727", "head": "b238da2b57c2140ceeee2a1fffb334f132f5d94c", "session": "session_01ADHkmRH4UCX1tvddXMS7cq", "premise_still_valid": true, "summary": "Delta round 1 on PR #34727, head b238da2b57: scripts/ci/select-shard-timings-run.mjs now reads SHARD_COUNT from ci.yml's test matrix through liveShardTotal('test') (scripts/ci-shard-matrix.mjs, the partitioner's source) instead of a literal 8, and its comment says so; it remains only the matchers' default, the live lane still judges each run at its own width. Self-test: the name-matcher pins are spelled at the live width W (non-live width W + 1), each with an added assertion inside the same case that an 8-wide name parses at its own width (retained pre-resize runs stay pinned); the eligibility and candidate fixtures stay 8-wide runs judged at their own width on purpose; the firing control's silent `return` when the live width is 6 became a named red. The partitioner's note on this file follows. Merged origin/main f6f5b50a05 once. PR body What changes, Tests, Acceptance notes and Verification updated through the relay, signed trailer last. Round 0 stands: Test Core matrix 8 to 10 in ci.yml, no bound or dataset moved, +3.6 runner-min per full Test Core run in the quick-read.", "tests": "At b238da2b57: node scripts/ci/select-shard-timings-run.mjs --self-test :: exit 0 ('select-shard-timings-run: self-test OK'). Cases per battery via a temporary instrumented copy, before (67be267b99) and after: self-test 37, width change 9, candidate selection 13, empty vs ineligible 17, NOT MEASURED path 18, accumulation depth 13, per-file captures 5 = 112 both; nothing dropped, added or skipped. Mutant SHARD_COUNT = 8 in a temporary copy at the head :: exit 1, 'job matcher: a job from a different shard count was accepted' (the live-width pins read the live width; copy removed, tree clean). node scripts/partition-test-shards.mjs --self-test, committed dataset at 10 :: exit 0; with 5009c644's dataset in a scratch worktree :: exit 0, 'whole legs 1769/222/1754/1754/1006/1005/1753/1756/1753/1754s within 1868s, @objectstack/cli x3'. Other width readers in the derived set, all exit 0: plan-test-core-shards --self-test, measure-test-shard-timings --self-test, pnpm check:shard-attestation (ci-shard-matrix self-test included), pnpm check:required-contexts, pnpm check:ci-filter-parity, check-self-test-workflow-commands --self-test. On a real runner: this PR's rehearsal of the refresh lane ('Regenerate the shard-timings dataset', job 133947759319, dry run) selected the 8-wide schedule runs 44043569490, 44014522626, 43985144717, downloaded shards 1-8 of each, and the partitioner's verdict on the refreshed dataset at 10 read PARTITIONER_EXIT 0. Round-0 control unchanged: #34314's dataset at 8 on main reds the whole-leg pin.", "gates": "Local subset at b238da2b57: dispatch-gates --commands --repo objectstack-ai/objectstack derived 67 families (round 0's 65 plus select-shard-timings-run --self-test and measure-test-shard-timings --self-test), each run with stdin from /dev/null, exit captured before any pipe: 67 x exit 0. check:dts-closure (exit 1) and check:dual-build-cjs-loads (exit 3) first ran while a locked 'pnpm build --concurrency=2' was still writing dist; re-run after it (VERDICT command-exit 0, 119/119 tasks, waited 448s behind another lock holder), as were check:lean-entry-closure, check:entry-guard, check:declared-population-live: all exit 0. dispatch-gates --ran :: exit 0, '67 derived, 67 run, 0 NOT-MEASURED, 0 UNRUN'. File: /mnt/project-files/objectstack-seat2/34710-gates-ran-r2.txt. PR #34727 check-runs at b238da2b57: Test Core success (Test Core (1/10), (2/10), (3/10) success), Lint & Repo Gates, TypeScript Type Check, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate: success (all eleven required); Regenerate the shard-timings dataset success; Check PR Size success; PR-body guards success, and success again on its re-run after the body edit (job 133965629588); all 50 check-runs on the head completed, the rest skipped by their filters, none failed.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "n/a — no skills/** or ratcheted ledger touched", "files_changed": [ ".github/workflows/ci.yml (+51/-33)", "scripts/partition-test-shards.mjs (+33/-5: docblock only)", "scripts/ci/plan-test-core-shards.mjs (+5/-4: header only)", "scripts/ci/select-shard-timings-run.mjs (+49/-26: live-width default, its comments, self-test fixtures)" ], "mcp_calls": "11 reads, no write tool — round 0: issue_read x2, actions_list x3, pull_request_read get_check_runs x1; delta round 1: pull_request_read get_status x1, get_check_runs x3, get_job_logs x1", "api_writes": "Round 0: pr_create (POST pulls, assignees, labels) and the post-stamped report comment 6944048449. Delta round 1: fleet-write issue_patch of PR #34727's body (PATCH /issues/34727, read back 9809 bytes identical) and this post-stamped report comment on #34710. git push x2 this round (commit, merge) is not REST.", "deviations": [ "Round-0 deviations stand (the shared-checkout heredoc slip with no file written; the stopped auto-backgrounded gate run).", "This round one check-run listing was read with 'gh api GET repos/.../commits/SHA/check-runs' (a read, not a write) before switching back to MCP reads; the order reserves gh for search.", "The PR body keeps the round-0 '_Generated by' footer above the signed trailer, so the trailer is the last non-empty line as ordered.", "shard-timings-refresh.yml's pull_request paths filter does not list scripts/ci-shard-matrix.mjs or ci.yml, which the selector now reads at import; not changed (workflow outside the file surface, and the filter already omits the partitioner the lane also runs). A ci.yml-only change will not rehearse the lane." ], "open_questions": [ { "question": "Contract-tier review owed (Tier H, .github/workflows/ci.yml) at head b238da2b57, then os-zhuang approval; route via the seat.", "options": [ "A route to the L2 review seat now at b238da2b57", "B wait for a further head" ], "recommendation": "A, because the head is final and every check-run is green." } ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: named producer, the scheduled refresh lane: shard-timings-refresh.yml's regression-diff step ran 'measure-test-shard-timings.mjs --diff' on a real runner (job 133947759319, run 44056683867, origin/main f6f5b50a05 tree) and refused with exit 1: 'packages/cli/test/serve-multi-node-gate-declaration.integration.test.ts:2: the budget 58 s is not on the 10 s grid', so every refresh PR body reports its regression readings as NOT MEASURED until fixed · evidence: the file's header on origin/main reads 'test-budget: 58 — spawns the real producer once per single-cause fixture: ...', last touched by a3865854c4 · dedupe words: test-budget, 10 s grid, serve-multi-node-gate-declaration, refresh diff refused", "carrier: none · noted in Acceptance notes, not filed — on the 2026-11-16 dataset @objectstack/spec's whole 1769.27s is the heaviest bin at 10 and its whole leg at any width (99s under the 1868s cap); a refresh taking spec past 1868s needs a spec slice, not more shards." ], "round": "delta round 1", "ci": "all green on b238da2b57: 50 check-runs completed, 0 failure, 0 in progress" }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRH4UCX1tvddXMS7cq
Hygiene · 2026-11-17T12:39Z
PR #34727 merged at 2026-11-17T11:05Z (head
b238da2b, L1 ACCEPT 6945113926, L2 PASS 6945222844), and this card closed byFixes #34710. The area'spm:dispatchedandlease:o2-Ccome off. #34314 can now be rebased onto the 10-shard matrix. That PR is outside this card and goes with the hand-off to repo:objectstack#3.