Skip to content

fix(lint): flow trigger rule counts the objects of a manifest's declared dependencies - #34663

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34616-lint-dependency-closure
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-34616-lint-dependency-closure

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34616

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么: lint 规则 flow-trigger-unknown-object(和共用同一份对象名单的 flow-input-unknown-object)在 CLI 的按包检查里,现在也把本包 manifest dependencies 声明的依赖包(传递)里的对象算作已定义。对象从多包制品自带的 packages[] 读取,依赖闭包用发布门同一个 resolvePackageClosure 走。
  • 为什么改: 包 B 依赖包 A,B 的记录触发流程挂在 A 的对象上时,按包检查只看 B 自己的对象,于是告警;os lint --strict 把这条告警当失败,而运行时发布门按 B 的依赖闭包判同一个流程是放行的。hotcrm#2556(费用模块)被这个卡住。
  • 风险与回滚: 只会少报,不会多报。没声明依赖的兄弟包、闭包里没有的名字照旧告警;发布门声明了闭包时行为不变。回滚 = revert 本 PR。
  • 先看: packages/lint/src/validate-flow-trigger-readiness.ts 新增的 dependencyClosureObjectNames 和 validateFlowTriggerReadiness 里加名字的那一行。
  • 两分钟验证: pnpm --filter @objectstack/lint exec vitest run src/validate-flow-trigger-readiness.test.ts,预期 148 个全过。
  • 需要你做的: 不需要。区线程审核后合入。

What changes

  • packages/lint/src/validate-flow-trigger-readiness.ts: with no package closure stated (the three CLI doors), the rule's set of defined object names now also holds the objects of the packages the stack's manifest declares in dependencies, walked transitively by resolvePackageClosure (@objectstack/metadata-core, the publish gate's own walk, ruling runtime gate: full runtime-safe rule snapshot for the publish door — the expensive half split out of the object-gating card #9612) over the artifact's packages[] entries. That is the resolution context runPerPackageAuthoringRules already hands every package's stack (packageBodyAsStack, ADR-0130 D4); the rule simply never read it. Both positions that read the set get the same answer: the start node's trigger object (flow-trigger-unknown-object) and a start input declared a record (flow-input-unknown-object, spec(automation): a flow start input may declare that it is a record id of a named object (#29425 ruling A) #29442). Under a stated closure nothing is added, since stack.objects already is the closure. The Severity section and the validateFlowTriggerReadiness docblock say so.
  • The closure, not every packages[] entry: a sibling package B did not declare is outside what the publish gate lets B bind a flow to, so its object keeps the advisory, whose remedy (declare the dependency) is the gate's. This is the card's re-check: drop the dependency and os lint --strict fails again.
  • A dependency the artifact does not carry adds nothing (its objects are not in the stack to read), so ADR-0141 D1's statement that build and lint warn on such a dependency's object is unchanged.
  • packages/lint/src/rule-explanations.ts: the os explain text of both ids says the rule counts a declared dependency's objects when the artifact carries them.
  • content/docs/deployment/validating-metadata.mdx: the per-package walk paragraph says a flow's trigger object and a start input's record object resolve only through the declared dependency closure.
  • No CLI source change, and the CLI still sets no packageScope.

Tests

  • validate-flow-trigger-readiness.test.ts, new group [#34616] a declared dependency carried in packages[] provides the object (7 cases): the declared dependency's object is not flagged; without the dependency the same flow warns (warning, at the trigger path); the closure is transitive; a declared dependency the artifact does not carry provides nothing; a misspelt name keeps its finding; a start input on the dependency's object is not flagged, and is flagged without the dependency; under a stated closure the stack is the closure and the finding stays an error.
  • packages/cli/src/utils/artifact-packages.test.ts, the card's two-package fixture through runPerPackageAuthoringRules with the lint command: CONTROL, without the dependency the pass advises at package 'com.example.psa' — flow "report_submitted" › start node; with it declared, no flow-trigger-unknown-object.
  • Ablation (one-off, not kept): the line that adds the closure's names disabled, 3 of 148 red in the rule's test file (the declared-dependency, transitive and start-input cases); restored, 148 of 148.

Reading (the card's re-check, a real os lint --strict)

examples/app-multi-package (the orders package declares dependencies: { 'com.example.multi.core': '^1.0.0' }) with a probe flow added to orders, record-after-create on core's crm_account, and requires: ['automation', 'triggers']; not committed:

rule build dependency flow-trigger-unknown-object warnings
origin/main declared yes, package 'com.example.multi.orders' 4
this PR declared no 3
this PR dropped yes 4

The 3 that remain are field-no-consumers on the example's own fields, unrelated to this card, so the example itself still exits 1 under --strict; the reading is about the one id.

Verification

At head 87e47ab (the docs commit added after f2f2a84): dispatch-gates --commands now derives 100 families; the 29 the docs path added were run, all exit 0, and --ran on the combined record reads 100 derived famil(ies) accounted for — 100 run, 0 NOT-MEASURED. No code changed after f2f2a84.

At head f2f2a84:

  • pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2: exit 0, Test Files 214 passed (214), Tests 9098 passed (9098).
  • pnpm --filter @objectstack/lint typecheck, pnpm --filter @objectstack/cli typecheck: exit 0.
  • pnpm --filter @objectstack/cli exec vitest run src/utils/artifact-packages.test.ts src/utils/author-time-rules.test.ts: exit 0, 10 passed.
  • node scripts/pm/dispatch-gates.mjs --commands derived 71 families, all run with < /dev/null, exit codes captured before any pipe. check:dual-build-cjs-loads and check:i18n-coverage first exited 3 (unbuilt packages); after building the 35 packages without dist/ both exited 0. --ran on the final record: 71 derived famil(ies) accounted for — 71 run, 0 NOT-MEASURED.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmRfW5u1LRmhWwaYHRp

…red dependencies

The CLI's per-package authoring pass hands each package's stack the
artifact's packages[] as resolution context, but validateFlowTriggerReadiness
read only stack.objects. A flow in package B on an object its declared
dependency A owns warned flow-trigger-unknown-object, and os lint --strict
failed a flow the runtime publish gate accepts.

With no closure stated, the rule now adds the objects of B's dependency
closure, walked by resolvePackageClosure (the publish gate's own walk) over
the packages[] entries the artifact carries. An undeclared sibling and a
name no closure package provides still warn; a stated closure is unchanged.
flow-input-unknown-object reads the same name set and gets the same answer.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRfW5u1LRmhWwaYHRp
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • 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 — 4 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 e61af97294e85b99ad5a75c22693a500067f2c1f → packageMentionDocs.

Which tree this was computed on

This run read content/docs from fbae18854f28359b7c5b1c8ec05fcf714218afdd — the merge of head 3e1e5d215c920e50c025f2ccef671e6c288d4058 into base e61af97294e85b99ad5a75c22693a500067f2c1f, 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 fbae18854f28359b7c5b1c8ec05fcf714218afdd && git checkout fbae18854f28359b7c5b1c8ec05fcf714218afdd
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e61af97294e85b99ad5a75c22693a500067f2c1f 3e1e5d215c920e50c025f2ccef671e6c288d4058 && git checkout -B drift-repro e61af97294e85b99ad5a75c22693a500067f2c1f && git merge --no-ff 3e1e5d215c920e50c025f2ccef671e6c288d4058

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

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

@github-actions github-actions Bot added 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 17, 2026
…ect through the declared dependency closure

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRfW5u1LRmhWwaYHRp
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

Test UI (11/16) red at head 87e47ab9486b0d407c2a2aa3fa875e8b94985052 (job 133836680042), read from its log: one test of 4742, ui/packages/app-shell/src/console/ai/__tests__/useDeferredFirstSend.test.tsx › "mounting creates nothing; the first send creates one row and is replayed into it", expected "vi.fn()" to be called 1 times, but got 0 times at :358, right after await flushReplay(), the line that waits for the replay to land.

Why I judge it not this PR's: the diff touches no file under ui/ (it changes packages/lint, one CLI test, one docs page and a changeset), and nothing the hook or its test imports. The same file run locally on this head from the ui root, five times: Tests 15 passed (15) each time. The assertion is a timing wait on a replay, which a loaded shard can miss.

I am re-running the run's failed jobs once through the relay. A second failure on this test is real and I will root-cause it rather than re-run again.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

Final head for review: 3e1e5d215c920e50c025f2ccef671e6c288d4058, a clean merge of main over 87e47ab9 (the branch was 33 first-parent commits behind). git patch-id --stable of the PR's own diff is 8441b2ee… at both heads; after the merge the rule's test file is 148 of 148 and @objectstack/lint typecheck exits 0 locally. CI at this head is green: 68 check-runs, 58 success, 10 skipped, 0 failed. The one Test UI (11/16) red at 87e47ab9 (comment 6939533080) passed on its single re-run and passes here.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTPcB6fZEwhd2hNQwC

席位核对

L1 verdict: ACCEPT · PR #34663 · card #34616 (Fixes) · first review · L1-c2 of seat repo:objectstack#2 · read 2026-11-17T09:42Z

Head-sha: 3e1e5d215c920e50c025f2ccef671e6c288d4058 (the head of final-head comment 6944364769, a merge of main over 87e47ab9)

Read from GitHub and the diff at this head (merge base e61af972), not from the report. 6 files, +221/−13.

Shape. The PR is a draft against main and opens with Fixes #34616, which is right because the card's re-check (drop the dependency and the advisory returns) is met. The changeset is patch on @objectstack/lint, the one touched published package, and carries Clause-②: no and Metadata-protocol: none. The CLI only gains a test, so it needs no changeset. No file outside the card is touched.

Code

  • dependencyClosureObjectNames reads packages[] (packagesOf) and the stack's own manifest.id. It walks resolvePackageClosure from @objectstack/metadata-core, which is already a workspace:* dependency of @objectstack/lint and is re-exported by runtime-gate.ts. It adds the objects of closure.dependencies only.
  • A sibling package the manifest did not declare, and a declared dependency the artifact does not carry, add nothing.
  • The names are added only when options.packageScope is absent. Under a stated closure stack.objects already is the closure, so the publish-gate path is unchanged.
  • Both readers of the set get the same answer: the trigger object (flow-trigger-unknown-object) and a record start input (flow-input-unknown-object).
  • The change can only remove findings, never add one.

Pins

  • The lint group has 7 cases: a declared dependency's object is clean; without the dependency the same flow warns warning at the trigger path; the closure is transitive; an uncarried dependency provides nothing; a misspelt name keeps its finding; the start-input position in both directions; and a stated closure keeps the error.
  • The CLI test drives runPerPackageAuthoringRules (command: 'lint') with the card's two-package fixture. Its CONTROL warns at package 'com.example.psa' — flow "report_submitted" › start node, and declaring the dependency clears it.
  • The ablation (3/148 red) and the real os lint --strict table on examples/app-multi-package (main 4 warnings with the id, this PR 3 without, dependency dropped 4 with) are lane-reported, and I did not re-run them.

Prose, checked against the code above:

  • The changeset's "A sibling package B did not declare still warns, and so does a name no package in the closure provides. Under a closure the publish gate states, nothing changes."
  • Both os explain paragraphs: "counting the objects of the packages its manifest declares in dependencies when the artifact carries them".
  • The validating-metadata.mdx sentence: "they resolve only through the packages the manifest declares in dependencies (transitively) … one on an undeclared sibling's object still warns".

All of these match. skills/** does not mention either rule id.

Gates: 68 check-runs on this head, all completed: 58 success, 10 skipped, 0 failed. The lane's local suite and derived-gate readings (lint 9098/9098, 100 of 100 derived families run) were taken at f2f2a845/87e47ab9. The PR's own patch-id (8441b2ee…) is the same at this head, but those readings are pinned to the earlier heads. CI at this head is the reading of record.

L2 owed: no. None of the four contract faces is touched: no Clause-②: yes, no narrowing, no packages/spec/src, no governed rule text. content/docs/** and the changeset are prose faces, checked above.

Landing tier: NOT governed (0 governed paths), +221/−13 = 234 lines, no spec face and no narrowing. The area lands it (ordinary queue landing).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

Landing · Head-sha: 3e1e5d2 · L1 ACCEPT 6944405397 at this head · L2 not owed (no contract face touched)

Probe Reading
check-governed-merges --pr 34663 NOT governed; 0 of 6 paths on the register; +221/−13 = 234 lines ≤ 3000
check-runs at this head 68 runs: 58 success, 10 skipped, 0 failed
K 2, first-parent from PRBASE e61af972 (Test Core "Affected-set diff base") to origin/main

Ordinary queue landing by the area.

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'alpha registered firs
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"alpha doc","content":"# alpha","_packageId":"com.qa.alpha","_packageVersion":"1.0.0","
    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'beta registered first
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"beta doc","content":"# beta","_packageId":"com.qa.beta","_packageVersion":"1.0.0","_pr
    
  • Test UI (15/16) — 失败步骤: Run the ui tests (shard 15/16)

    × does not hold the route for its lookup targets: they are asked beside it, and the list renders meanwhile 39ms
    FAIL   dom  packages/app-shell/src/console/__tests__/AppContent.objectScope-12811.test.tsx > an object outside the package is read by name, behind the skeleton (objectui#12811) > does not hold the rou
      ↳ 失败原因: AssertionError: expected [ 'app', …(4) ] to include 'object/sys_user'
    

↳ 失败原因 是判读的关键:超时(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 队列共有 20 个失败构建(不含本次)。

分诊清单:

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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

Re-queue · Head-sha: 3e1e5d2 · L1 ACCEPT 6944405397 unchanged

Queue build 44058468444 ejected this PR on two tests in packages it does not touch, and the triage anchors read this PR as an inherited bystander in both stacks, not a root:

Failing test Anchor Root of the stack
packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts (Test Core 3/8) #34772 #34347, now out of the queue (auto-merge off)
ui/packages/app-shell/src/console/__tests__/AppContent.objectScope-12811.test.tsx (Test UI 15/16) #34765 #34737, now out of the queue (auto-merge off)

This PR changes packages/lint (one rule, its os explain text), one CLI test, one docs page and a changeset; neither failing file imports @objectstack/lint. With both roots out, a new queue build no longer stacks on their trees. K = 8 from PRBASE e61af972, under 15, so the head is unchanged and re-armed as is.

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'alpha registered firs
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"alpha doc","content":"# alpha","_packageId":"com.qa.alpha","_packageVersion":"1.0.0","
    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'beta registered first
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"beta doc","content":"# beta","_packageId":"com.qa.beta","_packageVersion":"1.0.0","_pr
    

↳ 失败原因 是判读的关键:超时(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 队列共有 21 个失败构建(不含本次)。

分诊清单:

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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

Re-queue 2 · Head-sha: 3e1e5d2 · L1 ACCEPT 6944405397 unchanged

Queue build 44062179504 was created at 10:09Z, before re-queue 6945101868, on the queue branch gh-readonly-queue/main/pr-34663-7a7eb1aa…. Its base 7a7eb1aa is #34238's queue entry, not a main commit (git merge-base --is-ancestor 7a7eb1aa origin/main is false). So it carried #34238's tree, and it failed on the same meta-disabled-holder-artifact-door.test.ts that anchor #34772 roots in that stack (#34347 → #34238). This PR is still the inherited bystander there. #34238 and #34347 both have auto-merge off now, so a new build stacks on main. K = 10 from PRBASE e61af972, under 15, so the head is unchanged and re-armed as is.

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

2 participants