Skip to content

fix(metadata-protocol): the bare layered read serves a member's declared override as effective - #34169

Merged
objectstack-fleet[bot] merged 17 commits into
mainfrom
claude/area-E1-32849-layered
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 17 commits into
mainfrom
claude/area-E1-32849-layered

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Part of #32849 (the bare layered read's effective exit; the read naming no member, measured below, stays open on #32849)

Clause-②: no
Metadata-protocol: none

#33885 has merged. This branch started from claude/area-E1-32622. After #33885 merged, origin/main was merged in (c9112d29), so the diff is now this PR's own four files (+125/−7). The own-diff patch-id c0f3f1897e73032813735aa937738d8e0c8780a6 is unchanged.

维护者速读

  • 改了什么:App 的 .custom pair 存了一行声明覆盖附加包 Z 自有成员 fr-FR 的邮件模板(overrides.package: Z)。fix(metadata-protocol): the bare member read serves an App pair's declared override of a bundle addition's own member (ADR-0150 D4) #33815 之后普通裸读已给出覆盖,但不带包的分层读 ?member=fr-FR&layers=true 的 effective 仍是 Z 原版 zeta fr-FR、overlay 为空;现在它与 ?package=Z 一致:code 是 Z 原版,overlay 和 effective 是覆盖,信封指向 Z。
  • 为什么改:分层读的 effective 定义为「普通读会返回的内容」,声明了的覆盖应在每个给出 Z 该成员的出口被服务(ADR-0146 D8 第 2 项、ADR-0150 D4);Studio 编辑器读的正是这个出口。
  • 风险与回滚:只在普通裸读已经改址到 Z 的同一情形下生效(复用同一个判定函数);未声明覆盖、声明给 X 的行(仍 409)、X 自己的 en-US、待发布草稿层均不变(已钉)。回滚即还原本 PR,存储数据不变。
  • 先看:packages/metadata-protocol/src/protocol-meta-layered-reads.ts 中 declaredOverrideAt 与 draftPackageId 两处。
  • 两分钟验证:pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/package-scoped-exact-qualifier.test.ts -t 'the bare layered read serves',预期 6 条全绿。
  • 需要你做的:无,席位落地。

What changes

Own files (four): packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts (one export keyword and one docblock sentence, no behaviour), packages/objectql/src/package-scoped-exact-qualifier.test.ts, .changeset/32849-bare-layered-read-declared-override.md. No protocol.ts edit.

getMetaItemLayered, naming no package and judged neither served nor refused by servedAddressJudgment, now asks declaredMemberOverrideAddressOf (the one predicate the plain read uses since #33815, exported from the item face for this). When it names the member's one enabled shipper Z, the read takes Z's address for its layers, as the plain read does, so effective is the override ?package=Z serves.

The pending draft layer (withDraft, the Studio door) is not moved: it stays at the address the strict draft read takes (strictDraftReadAddress), because the plain read's strict draft read is outside the arm too. Re-addressing it would have made the draft layer null where the strict draft read serves the pair's draft (measured: at ?package=Z the draft layer is null).

read (both install orders) before after
bare ?member=fr-FR&layers=true, row declares Z code zeta fr-FR, overlay null, effective zeta fr-FR code zeta fr-FR, overlay pair fr-FR, effective pair fr-FR, envelope Z (= ?package=Z)
same, with drafts, a pair draft pending draft pair fr-FR draft unchanged (effective as above)
?package=Z&member=fr-FR&layers=true effective pair fr-FR unchanged
bare ?member=en-US&layers=true (X's own) suitex en-US unchanged
bare, no row / undeclared pair row effective zeta fr-FR, overlay null unchanged
bare, row declares X (#32606 shape) 409 naming X and Z unchanged
door step 1c, packagelessLayeredReadRefusal no refusal unchanged

Nothing refused becomes served or the reverse; no authorable key or value moves.

Tests

New top-level describe in the shared real-SchemaRegistry harness packages/objectql/src/package-scoped-exact-qualifier.test.ts: [#32849] the bare layered read serves the pair's declared override of an addition Z's own locale as effective, as ?package=Z does (6 tests):

  • fix pin, both install orders: bare layers equal ?package=Z's (effective deep-equals the ?package=Z document), step 1c refuses nothing, effective equals the plain bare read, X's en-US untouched.
  • draft pin: the draft layer is the strict draft read's (pair fr-FR draft), ?package=Z has none.
  • CONTROL no override x2 (no row / undeclared pair row): Z's own, no overlay.
  • CONTROL row declares X: 409 RESOURCE_CONFLICT naming X and Z.

BASE measured on e516f353 (the #33885 head) with a temporary probe in this harness before any edit: bare effective zeta fr-FR, overlay null, in both orders; ?package=Z effective pair fr-FR.

Ablations (each through `scripts/ablation-replace.mjs`, metadata-protocol rebuilt, `ablation-dist-preflight` marker present in 2 dist files, auto-restore blob equals HEAD with `git diff HEAD` empty, rebuilt, marker absent from all 24 dist files)
mutation result (-t 'the bare layered read serves')
A1 the arm's call replaced by undefined 3 failed, 3 passed: both fix pins, expected [ 'zeta fr-FR', null, …(2) ] to deeply equal [ 'zeta fr-FR', 'pair fr-FR', …(2) ]; the draft pin, expected [ 'zeta fr-FR', 'pair fr-FR draft' ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft' ]
A2 isServedOverrideRowOf(row, shipper, installed) replaced by true 2 failed, 4 passed: the undeclared-row CONTROL, expected [ 'zeta fr-FR', 'pair fr-FR', …(2) ] to deeply equal [ 'zeta fr-FR', null, …(2) ]; the X-declared CONTROL, the read answered; a refusal was expected
A4 the draft address re-addressed with the arm (declaredOverrideAt ?? request.packageId) 1 failed, 5 passed: the draft pin, expected [ 'pair fr-FR', null ] to deeply equal [ 'pair fr-FR', 'pair fr-FR draft' ]

Acceptance notes

Verification

Head f23319f9 (merges of origin/claude/area-E1-32622 e57e7c05 and of origin/main up to 27c2f1ea, then origin/main again just before opening; the derived gate union ran on 24ecb579, the head before that last merge). Every command ran under scripts/pm/os-verify-lock.sh.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ

… packages hold carries details.candidates (ADR-0150 D5)

The REST /meta/:type/:name/layers catch now asks handleRouteError for the
package-scoped candidates, as the plain read's catch does, so the plain
read's refusal the door's owner step answers and the served-holders refusal
of step 1c carry details.candidates on RestServer as on the dispatcher. The
step-1c refusal of a name whose active rows two packages hold (the
package-less writes' sentence, code and status, unchanged) now carries its
holders by shape as a package-scoped refusal, so both transports answer them
as details.candidates. The save and delete doors' answer does not move.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…name two served packages register, as the plain read does (ADR-0150 D3)

getMetaItemLayered now asks the registry's package-scoped resolver for a type
addressed by package, as getMetaItem does, before any layer is read: a name
two or more served packages hold is refused naming each
(PackageScopedNameRefusedError, 409 RESOURCE_CONFLICT), whatever the metadata
service holds. Its code layer used to fall back to the artifact lookup's
first composite, so the read in process, and the REST /layers door on a host
with no engine wired, answered the holder that registered first. A name one
holder holds keeps its layers; stored-row holders stay the door's step 1c.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…s as the plain read does

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
… the layered ambiguity pins

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
The no-engine REST /layers answer (200 with the first holder, now 409
with the holders as candidates) and the in-process getMetaItemLayered
answer (first holder, now PackageScopedNameRefusedError) are narrowings
of what a caller was served, so the changeset carries the narrowing arm,
the BREAKING banner with both moves and the ADR-0087 disposition.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…candidates and the registry judgment

packagelessLayeredReadRefusal's docblock now says its refusal carries the
holders as a package-scoped refusal, and that the in-process readers of
getMetaItemLayered meet the registry's refusal of a name two packages
register in code. Comment only; the emitted JS differs in comment lines
alone.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…red override as effective, as the plain read does

The layered read naming no package takes the address the plain read takes
for a bundle member whose one shipper's declared override is stored
(declaredMemberOverrideAddressOf, now exported from the item face), so
`effective` is the override `?package=<shipper>` serves instead of the
shipper's own member. The draft layer stays at the strict draft read's
address, which that arm does not move.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…erride as effective

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
…layered

# Conflicts:
#	packages/objectql/src/package-scoped-exact-qualifier.test.ts
… two-holder refusal

The changeset's BREAKING banner gains a third FROM/TO. A bare
GET /meta/:type/:name/published on a REST host with no objectQLProvider
went on to its published exit and now answers 409 without candidates.
The getMetaItemLayered docblock names the PackageScopedNameRefusedError
it throws for a name two packages register in code. Comment and prose
only.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
… the shipper's address serves

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/metadata-protocol, touching 3 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-lifecycle.mdx (via getMetaItemLayered (symbol, a top-level function))
What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from e61207a8980d48a5fed59bfb5f85535f3b8c8092 — the merge of head c9112d293b89b5f17b89d3db970af4cf43cea4f9 into base dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin e61207a8980d48a5fed59bfb5f85535f3b8c8092 && git checkout e61207a8980d48a5fed59bfb5f85535f3b8c8092
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 c9112d293b89b5f17b89d3db970af4cf43cea4f9 && git checkout -B drift-repro dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 && git merge --no-ff c9112d293b89b5f17b89d3db970af4cf43cea4f9

node scripts/docs-audit/affected-docs.mjs --json dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs dfb8ed3570b3be1cfbc3758ff791ace7c31fa1a2 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

Request: review · PR #34169 · area S4 (E1) · Part of #32849 · head f23319f (green, every check suite complete; declared final)

Ordinary ACCEPT read per review-checklist.md. No contract face (Clause-②: no, Metadata-protocol: none, no spec or governed path, no narrowing arm). Report: #32849 comment 6902712784. The PR is stacked: its diff against main still shows PR #33885's commits until #33885 merges. This PR's own change is 4 files (+126/−8): protocol-meta-layered-reads.ts, protocol-meta-item-face.ts (export + docblock only), the [#32849] describe in package-scoped-exact-qualifier.test.ts, and .changeset/32849-bare-layered-read-declared-override.md. Landing waits for #33885 to merge, then a main merge (a merge-only delta).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6

Review claim · head f23319f · 2026-11-15T23:21Z

review (review-b, areas S2+S4): ordinary ACCEPT read per review-checklist.md of this PR's own four files (stacked on #33885); the verdict follows on this PR.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTyY9BGjj9WBi7QgH6

Review — PASS

Head-sha: f23319f995a154400f53c6e002b047ec80124378
Area: S4 / E1 · Part of #32849 · ordinary ACCEPT read per review-checklist.md. No contract face: no packages/spec/src, no governed path, and no narrowing arm.

Scope: this PR's own four files only. The PR is stacked on #33885, so I diffed this head against git merge-tree --write-tree of #33885's head e57e7c05 with this branch's main parent 86350e12 (tree 0452e9aa). The result is exactly the four files the request names, +125/−7.

  1. Premise measured. The BASE probe on e516f353 showed that the bare ?member=fr-FR&layers=true gave effective = zeta fr-FR with a null overlay, in both install orders, while ?package=Z gave pair fr-FR.
    • Ablation A1 (the arm off) turns the two fix pins and the draft pin red.
    • A2 (any pair row admitted) turns both CONTROLs red.
    • A4 (the draft re-addressed with the arm) turns the draft pin red.
    • Each was restored to blob == HEAD.
  2. Mechanism, read on the tree. The arm fires only when the request names no package and servedAddressJudgment judged neither way. It asks the same declaredMemberOverrideAddressOf the plain read has used since fix(metadata-protocol): the bare member read serves an App pair's declared override of a bundle addition's own member (ADR-0150 D4) #33815, so the layered read can move to Z only where the plain read already does.
    • exactAddress (line 264) is computed after the arm. code and overlay are therefore judged at Z, exactly as ?package=Z judges them.
    • draftPackageId is captured after the servedAddress move and before the arm. When the arm does not fire it equals request.packageId, so every other read's draft layer and its exact-qualifier check (exactAddress && draftPackageId) are unchanged.
    • When the arm fires, the draft stays at strictDraftReadAddress, as the plain read's strict draft read does.
  3. Clause-② no, Metadata-protocol: none, patch: right. declaredMemberOverrideAddressOf gains export inside protocol-meta-item-face.ts only. It is not re-exported from src/index.ts, and the package exports . alone, so the public surface does not change. Nothing refused becomes served or the reverse. Dogfood is n/a because the PR has no ! and no narrowing arm.
  4. Tests. The six cases are a top-level describe in the shared real-SchemaRegistry harness package-scoped-exact-qualifier.test.ts:
    • both install orders, where the bare layers deep-equal ?package=Z's and step 1c refuses nothing;
    • the draft pin;
    • two no-override CONTROLs;
    • the X-declared CONTROL, which answers 409 RESOURCE_CONFLICT naming X and Z.
  5. Body and changeset. Part of #32849 uses the safe spelling: no closing verb next to the card number, and the note on what stays open is in parentheses. Each changeset sentence matches the diff.
  6. Check-runs on the head: 35 success, 16 skipped, none failed or pending.

Own-diff patch-id: c0f3f1897e73032813735aa937738d8e0c8780a6 (computed the same way). Landing condition. #33885 merges first, then a main merge. A merge-only delta that keeps this own-diff patch-id keeps this PASS. #33885's own review is FAIL (REWORK) on e516f353 (6897329364). Its new head e57e7c05 needs its own delta before it can land.

…layered

# Conflicts:
#	.changeset/32622-layers-two-holders-candidates.md
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

席位核对

ACCEPT · area S4 (E1) · Head-sha: c9112d293b89b5f17b89d3db970af4cf43cea4f9

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ

Landing (landing-operations B) · head c9112d29

Reading Value
check-runs on head 55: 37 success, 18 expected skip, 0 pending/failed
check-governed-merges --pr 34169 NOT governed, 132 lines
review L1 PASS 6903110803 (patch-id kept across the merge-only delta)

State change: ready + auto-merge (area authorising line).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 16, 2026 01:42
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43787990906 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/8) — 失败步骤: Run this shard's tests

    @objectstack/spec:test:repo:  FAIL   repo  scripts/root-index.test.ts > content/docs/references/index.mdx (the committed page) > states no count that its own rows contradict
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected [ 218, 1663 ] to deeply equal [ 218, 1664 ]
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 11 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43788209763 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/8) — 失败步骤: Run this shard's tests

    @objectstack/spec:test:repo:  FAIL   repo  scripts/root-index.test.ts > content/docs/references/index.mdx (the committed page) > states no count that its own rows contradict
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected [ 218, 1663 ] to deeply equal [ 218, 1664 ]
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 16 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit 36c0e96 Nov 16, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-E1-32849-layered branch November 16, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant