Skip to content

fix(client, app-shell): every draft-then-publish Save publishes only the draft it wrote - #37637

Merged
objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/issue-37440-draft-publish-pins
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/issue-37440-draft-publish-pins

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37440

Clause-②: yes (widening: @objectstack/client meta.publishItem accepts draftVersion and parentVersion beside message and packageId)
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:管理员在设计器、记录页和导航编辑里点保存时,只会发布自己刚写下的那份草稿;如果有人恰好在这一刻改了同一份草稿,这次保存不会发布,也不会删掉别人的草稿,而是提示草稿待处理。没有冲突时保存和以前完全一样。
  • 为什么做:属于「草稿并发写入保护」这条线(替先保存草稿、再立即发布的所有保存入口补上最后一个缺口):服务端早已支持按草稿版本拦截,前端各个保存入口却一直没把自己的版本带上。
  • 出错会怎样:最坏情况是某个保存在没有冲突时也被拒,作者看到「草稿待处理」需要再存一次;旧服务端不返回版本号时一切照旧不带锁;整笔可以直接撤回。
  • 要你做什么:无。

What changes

client.meta.publishItem takes the two optimistic-concurrency pins the per-item publish door already judges (ADR-0008, PublishMetaItemRequestSchema). draftVersion goes in the body beside message and names the pending draft the publish promotes. parentVersion is sent as If-Match, and null is sent as If-None-Match: *; it names the live row the publish replaces. With neither set, the request is byte-identical to before.

Every console Save that writes a draft and publishes it at once now passes draftVersion. The value is the version its OWN draft write returned: draftReceiptVersion(receipt), or heldDraftVersion(...) right after a guarded save. It is never a fresh re-read, which would pin another writer's draft. The callers:

  • Studio top-bar Save. publishSavedItem in studioSaveBar.tsx takes SavedItem.draftVersion. It is forwarded by DataPillar (objects and object extensions), AutomationsPillar (flows and the on/off switch), objectHooksBuffer, pairObjectActions, PermissionMatrixEditor, newAppDoor, and MetadataListCreateDialog (new object and new flow).
  • Item page Save: detailSaveAtOnce via ResourceEditPage.
  • Sharing-defaults table: each row of PackageOwdOverviewPanel. This was deferred in round 1 behind fix(ui): the OWD overview's draft save goes through the draft guard #37554 and is added now that fix(ui): the OWD overview's draft save goes through the draft guard #37554 has landed.
  • Record page: 「Configure tabs」 (recordTabsConfigSave) and an installed object's field arrangement (objectExtensionArrangementSave).
  • Design mode: the header pins (designModeHeaderPinsSave) and the menu plus menu labels (designModeMenuSave).

A door refusal under the draft pin is 409 METADATA_CONFLICT, the same code the live-row pin gets, and the body does not say which pin refused. The draft-version guard (draftVersionGuard.ts, new rule 10 in the DraftConflictDialog.tsx header) tells the two apart with one draft read after the refusal:

  • If the draft is still at the pinned version, the live row moved, and the existing reload-or-overwrite dialog asks (rule 8).
  • If the draft moved, is gone, or cannot be read, the refusal is the draft's. Nothing is asked, and the error is thrown marked isPublishDraftMoved.

Every caller treats a moved draft the same way: nothing is published and the draft is kept, because it now holds the other writer's change. The Save reads as refused or says a draft is pending. Every take-back of the Save's own draft is pinned If-Match to that same receipt, so a refused Save never deletes a draft someone else changed.

Why

#36350 added draftVersion to the publish door, but no caller sent it. In the window between a Save's draft write and its publish, another writer's draft write (another tab, the copilot) is promoted live under the first author's Save. The client test reproduces this at the real door: the unpinned publish promotes theirs.

Read first (risk order):

  1. ui/packages/app-shell/src/views/metadata-admin/draftVersionGuard.ts: the publish catch and draftStillAt. This is where a refusal is classified; a misclassification either asks the wrong question or keeps a draft that should be discarded.
  2. ui/packages/app-shell/src/views/studio-design/studioSaveBar.tsx: publishSavedItem, which holds draftMoved, discardScope, and the skipped discard.
  3. ui/packages/app-shell/src/layout/designModeMenuSave.ts: discardOwnDraft, the pinned take-back whose 409 means "moved, keep it".

Two-minute verification: run pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioSaveBar.draftPin-37440.test.ts. Expect 5 passed. The PIN case shows the other writer's draft still pending and the live row unchanged.

Tests

Each caller got one PIN (another writer's draft lands between the Save's draft write and its publish: nothing goes live, their draft is kept, no reset) and one CONTROL (no interleave: the Save's draft goes live), in that caller's existing harness. The PIN asserts draftVersion is the caller's own receipt; the CONTROLs assert the outcome only.

  • packages/client/src/meta-publish-item-package.test.ts, Part 3, on the real per-item publish door: the reproduction, PIN, CONTROL, the wire shape (body draftVersion, If-Match, If-None-Match: * for null, nothing when unset), and parentVersion stale or null refused.
  • New studioSaveBar.draftPin-37440.test.ts and detailSaveAtOnce-37440.test.ts, over a stateful door double, views/__tests__/draftPublishDoor-37440.ts.
  • Added describes in recordTabsConfigSave-36499, objectExtensionArrangementSave-36499, designModeHeaderPinsSave-36366, designModeMenuSave-36538 (menu and translation, plus the published-moved distinction), DraftConflictDialog.test.tsx (guard rule 10: PIN, live-row-moved still asks, overwrite keeps the draft pin, CONTROL), and PackageOwdOverviewPanel.draftPinned-37515.
  • Updated exact-argument asserts to carry draftVersion: expect.any(String): AutomationsPillar.customizeFlow-28570, DataPillar.pairActions-30088, StudioDesignSurface.draftVersionConflict-11773.

Ablation: one per pin (rebuild, on-disk mutation via scripts/ablation-replace.mjs, restore). Every PIN went red with its CONTROL green, and git diff HEAD was empty after each restore.

Local test readings at head 046abbb (each under scripts/pm/os-verify-lock.sh)
  • Client, pnpm --filter @objectstack/client exec vitest run --maxWorkers=2 src/meta-publish-item-package.test.ts: Test Files 1 passed (1), Tests 15 passed (15), VERDICT command-exit 0.
  • UI pins, 9 files (the 8 harnesses above plus firstScreenStudioCatalogue-37444): Test Files 9 passed (9), Tests 112 passed (112), VERDICT command-exit 0.
  • Affected app-shell set, 346 files: every test file that imports a changed module, plus the OWD panel suites and the importers of draftVersionGuard.ts / customizeOverride.ts. Result: Test Files 346 passed (346), Tests 2658 passed (2658), VERDICT command-exit 0. This ran at 8192a73; the only later commit is the changeset.
  • pnpm --filter @object-ui/app-shell type-check: VERDICT command-exit 0.
  • The full app-shell suite was not run locally (it runs over 70 min on the shared box). It is CI's.
Ablation readings (every PIN red, CONTROL green, restored)
Ablation Result
client 2 failed, 13 passed
studioSaveBar 2 failed, 3 passed
detailSaveAtOnce 2 failed, 1 passed
recordTabs 1 failed, 6 passed
extension arrangement 1 failed, 7 passed
header pins 1 failed, 14 passed
menu 1 failed, 16 passed
menu labels 1 failed, 16 passed
OWD row 1 failed, 11 passed
guard draft pin forwarded 2 failed, 37 passed
guard classification 1 failed, 38 passed

After every restore, git diff HEAD was empty.

Acceptance notes

Verification

Derived gate families at head 046abbb

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 74 families. 73 exited 0, including pnpm --dir ui exec vitest run scripts/, check:type-check-debt and check:skill-examples, each after building their prerequisite dist.

pnpm check:dual-build-cjs-loads exited 3, PREREQUISITE NOT MET: not every package has a dist in this container. NOT MEASURED locally; it is read from this PR's checks.

--ran reconciliation: 74 derived, 74 run, 0 UNRUN. node scripts/check-nul-bytes.mjs: OK. node scripts/pm/overlap-check.mjs: VERDICT clean exit 0, against origin/main 54d6726 and 0 open PR heads.

Merge, not rebase: origin/main (including #37589 and #37554) was merged into the branch in 6f1e735.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (packages/spec untouched.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (No formatter ran; pnpm lint is the CI-owned repo scan, read from this PR's checks.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched: n/a.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (Except the fleet's required maintainer brief, 维护者速读.)
  • The Before Submitting list in CONTRIBUTING.md is done. (Local targeted subset only; the full farm is CI's, see Verification.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn

… guarded-save PR

Claude-Session: https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn
Co-authored-by: Claude <noreply@anthropic.com>
The guard's draft pin (rule 10, the draftStillAt classification,
isPublishDraftMoved, draftReceiptVersion) moves with the guard into
draftVersionGuard.ts; the dialog re-exports the new names and keeps
the header rule and the hook's stable heldDraftVersion.

Claude-Session: https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn
Co-authored-by: Claude <noreply@anthropic.com>
…save wrote

Each row's publish now names the draft its own guarded save returned
(heldDraftVersion right after the save), so another writer's draft that
lands in between is refused and kept, never published or taken back.
One PIN and one CONTROL in the row's existing harness.

Claude-Session: https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl 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 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 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 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 21 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 33a31dc7b083e1a25310b0323c8cc5d796c3b4b8 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 33a31dc7b083e1a25310b0323c8cc5d796c3b4b8

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 046abbb2e0a91b83b9b257e465662861f00c024d
Local-runs: none

Inputs read: card #37440 (body, both triage comments, the claim 7192440976, os-dev-reports 7195557089 and 7197868942); PR #37637 body and all 32 files, net diff merge-base 758e145d50 to head; the check-runs on this head. Cross-read on main (read, not reviewed): PublishMetaItemRequestSchema in packages/spec/src/api/protocol.zod.ts, the per-item publish door in packages/rest/src/meta-item-history-routes.ts, metaSaveRequestOptions in packages/rest/src/meta-save-request.ts, and the draft-pin judgment in packages/metadata-protocol/src/protocol-history-and-publish.ts.

Gate verdicts at this head: every check-run is completed, success or skipped, none failed or pending. That includes Test Core 10/10, Test UI 16/16, Type Check UI, TypeScript Type Check, Check Changeset, Lint and Repo Gates, Governed Surface Queue Guard and the PR-body guards.

① Derived judgments

  1. @objectstack/client meta.publishItem adds draftVersion?: string: RIGHT. It matches PublishMetaItemRequestSchema.draftVersion (z.string().optional()). It goes where the door reads it: the body member draftVersion beside message, typed as a string, with a non-string refused 400. The JSDoc's description of the refusal agrees with the schema and with protocol-history-and-publish.ts: 409 METADATA_CONFLICT, currentVersion names the draft's token, null when no draft is pending, nothing promoted.
  2. meta.publishItem adds parentVersion?: string | null: RIGHT. It matches PublishMetaItemRequestSchema.parentVersion (z.string().nullable().optional()) and the door's carrier, which metaSaveRequestOptions reads off the headers. A token is sent verbatim as If-Match, as metaSaveHeaders sends it. null is sent as If-None-Match: *. One argument cannot produce both headers, so the door's 400 for that pair cannot be triggered. Absent and null stay distinct, as the schema's ⚠️ requires.
  3. An unpinned call is byte-identical to before: RIGHT (read). The body was JSON.stringify(opts?.message ? { message } : {}) and is now JSON.stringify({ ...(message ? { message } : {}), ...(draftVersion ? { draftVersion } : {}) }). With draftVersion unset or empty, both serialise to the same bytes. metaPublishHeaders returns undefined, never {}, when parentVersion is unset or '', so the headers key is left out. fetch then gets { method, body }, the same keys in the same order, and the private fetch merges the same default headers as before. The query string is unchanged. The client test's CONTROL asserts the same thing on the wire.
  4. metaPublishHeaders is module-private: RIGHT. No new export from @objectstack/client.
  5. Real-door coverage: RIGHT. meta-publish-item-package.test.ts Part 3 boots the real publish door. REPRODUCTION: an unpinned publish promotes theirs. PIN: refused, with active:live and draft:theirs kept. CONTROL: an uninterleaved publish promotes. It also covers parentVersion stale or null being refused and the live token promoting.
  6. @object-ui/app-shell (a private package) gets no public-surface change. draftVersionGuard.ts gains isPublishDraftMoved and draftReceiptVersion, re-exported from DraftConflictDialog.tsx, but the package entry exports neither. The behaviour changes at the consumer are RIGHT on reading:
    • Each listed draft-then-publish Save pins its publish to its own draft-save receipt and never to a re-read.
    • Each take-back of that draft is pinned If-Match to the same receipt, so a moved draft is kept.
    • Rule 10's classification compares the draft read's version with the receipt's version. On main the read and the receipt serve one derivation of the token, so string equality is the right comparison. A read that cannot classify fails safe: nothing is asked and nothing is discarded.
    • publishCreated (create with If-None-Match: *) does not classify the refusal. Its discard is pinned to the receipt, so a moved draft is still kept.
  7. No accept-set change on any server door, schema or packages/spec file. Metadata-protocol: none is correct.

② Semver level

.changeset/37440-draft-publish-pins.md bumps @objectstack/client and @object-ui/app-shell at patch. The diff publishes an additive, optional option on a non-protocol SDK method, plus console behaviour fixes, with Metadata-protocol: none. Under AGENTS.md (Post-Task Checklist step 3), a non-protocol change ships patch, so the level is correct. Naming the private app-shell package matches the repo's existing changesets (privatePackages.version: true).

The Clause-②: line reads yes (widening: ...) in both the PR body and the changeset body, line-initial, and agrees with the diff:

  • The SDK can now state two pins it could not state before.
  • Nothing it could send before is refused or changed: an unpinned call is byte-identical.
  • No narrowing arm is owed.

③ Boundary flags

  • Round-2 open_questions: empty.
  • Round-1 open questions: both are answered on the record.
  • Deviations (round 1: a push before overlap-check, which came back clean right after; one classifier denial): process only, nothing owed by the tree.
  • Out-of-scope callers:
    • StudioDesignSurface publishDraft('flow'), usePublishAllDrafts and PackagesPage publishDrafts are publish-all doors with no draft write of their own, so there is no receipt to pin. This reason holds and meets the card's second Done-when.
    • boundToPackage is already pinned.
    • PackageOwdOverviewPanel, deferred in round 1, now pins.
  • Nit N6: escalated to the seat. The card says it "can ride" and the dev gives a reason it does not: its fix site is ViewConfigPanel / RuntimeDraftBar. But the out-of-scope entry reads "carrier: none · noted, not filed", and Fixes #37440 closes the only card that records N6. Before landing, the seat should give N6 a carrier (file it, or point to an open card). This does not affect this diff.
  • SQL push-down: no finding. The only new read is one getDraft of a single address. It runs only after a 409 under both pins and only to classify the refusal. There is no id materialisation and no in-app join.

Nits (no effect on correctness or the contract):

  • N1. The parentVersion JSDoc does not say that '' is treated as unset and sent as nothing. metaPublishHeaders does this, and the draftVersion JSDoc says so for its own member.
  • N2. content/docs/api/client-sdk.mdx still shows publishItem with message only. The two pins are documented in the JSDoc and the changeset but not on the SDK page.
  • N3. Within client.meta, the live-row pin is spelled ifMatch on saveItem and deleteItem but parentVersion on publishItem. This follows the spec schema and the card's wording. Noted only.

Implemented-by: claude/issue-37440-draft-publish-pins
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 046abbb · card #37440 · area s2-ux-S · 2026-11-26T17:09Z

L1 checklist

Tier: S. Landing: ready + auto-merge by this stroke.

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/spec:test:      ✓ inverts the card's measured control: the three bogus keys now FAIL parse instead of adding zero warnings  311ms
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/spec:test:repo:  FAIL   repo  scripts/strictness-ledger-doc.test.ts > the ledger and the generated counts agree > is checked in current — every shard on disk equals a fresh render, and no
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected Map{ …(14) } to deeply equal Map{ …(14) }
    @objectstack/spec:test:repo:  FAIL   repo  scripts/strictness-ledger-doc.test.ts > the ledger and the generated counts agree > the read-time totals equal the sums of the shards' own rows
      ↳ 失败原因: @objectstack/spec:test:repo: AssertionError: expected 'untriaged: 1402 object site(s) across…' to be 'untriaged: 1401 object site(s) across…' // Object.is equality
    

↳ 失败原因 是判读的关键:超时(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 队列共有 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 6cb7440 Nov 26, 2026
69 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37440-draft-publish-pins branch November 26, 2026 17:38
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/xl 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