Skip to content

fix(core, console): the offboarding hand-over's owner follows each object's Change Owner switch - #36869

Merged
objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-35399-handover-transfer-switch
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/issue-35399-handover-transfer-switch

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #35399

Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — no file under skills/ teaches the object switch userActions.transfer or the offboarding hand-over (git grep -i 'userActions\|change owner\|assigned-work' -- skills on the branch head hits only list-view and interface userActions, a different key)

维护者速读

  • 管理员封禁用户并交接其记录时:对象关闭了“更改负责人”,该对象记录的负责人就不再交接;明细对象默认不交接,作者打开开关后照常交接。不交接的记录仍计数,弹窗写明“该对象保持负责人不变”,不再误说“该字段可填多人”。
  • 属于“记录负责人变更与离职交接”专题:离职交接与“更改负责人”按同一个开关判定。
  • 若判错,会多交接或少交接某对象的负责人,其他用户字段不受影响;可撤回:作者改开关即可,已交接的记录可再用“更改负责人”改回。
  • 无

What changes

  • One rule for both doors. userAssignedWorkFields (packages/core/src/security/user-assigned-work.ts) no longer carries its own controlled_by_parent reading (accessFollowsMaster is gone). An owner_id that is the platform's reassignable owner (isTransferEligible) follows resolveUserActionTransfer from @objectstack/spec/data, the resolution changeOwnerOffReason refuses Change Owner by. Off by the derived default on a detail, on otherwise, author-overridable both ways.
  • Counted, not moved, with a reason. A switched-off owner is no longer left out. Its row is counted with transferable: false and reason: 'transfer_off'. A multi-valued field's row now says reason: 'multi_valued'. transferUserAssignedWork moves only transferable rows, so remaining counts only what another call could move. New exported type UserAssignedWorkHoldReason (@objectstack/core). The client's UserAssignedWorkSummary row gains the optional reason member.
  • App-authored user fields are unchanged. An approver or assignee is handed over whatever the switch says. An owner_id on an object the platform gives no owner (systemFields: false) is app-authored too.
  • Optional-master corner (scope note 2): follows the switch as is. On a switched-off detail with required: false master, a null-master row keeps its owner. The docblock and the admin guide say how a Modify All holder moves it by hand.
  • The panel words a row by why it stays. UserAssignedWorkPanel picks console.assignedWork.ownerKept for transfer_off. Only a multi-valued row keeps notTransferable. The new key is in all 11 UI locales: ten are hand-translated, and zh-Hant is generated from zh-Hans (gen:zh-hant). The existing notTransferable text was already the multi-valued sentence and is unchanged.
  • Stale prose rewritten (scope notes 2, N2, and 3): the user-assigned-work.ts docblock lead sentence (rewritten per object), security.assignedWork.count in packages/client/src/index.ts, registerUserWorkEndpoints in packages/rest/src/rest-server.ts, the admin guide's hand-over section (which this change made false), and the Change Owner paragraph of the data API page.
  • N4 (scope note 7069035638): a dogfood case for assertAssignableUser on the real showcase, through the Change Owner door that shares it. A new owner who exists but sits outside the caller's organization (the caller's own GET /data/sys_user/:id answers 404, as armed) gets the same answer as an id that exists nowhere: status, code, field, and message apart from the id. The owner stays.

File surface beyond the claim's list, declared: packages/core/src/security/index.ts (the type export), content/docs/permissions/administrator-guide.mdx and content/docs/api/data-api.mdx (prose this change made false or incomplete). The dogfood case went into the existing Change Owner dogfood file, not a new one.

Tests

All runs at head a31b2c96 unless named (the core, client and dogfood runs were at 21720ae6 and 285d2848. The later commits touch only ui/ test files, the generated zh-Hant pack and docs).

  • @objectstack/core, whole package: Test Files 156 passed (156), Tests 3740 passed (3740). The [#35399] describe has 11 cases: switch on (bare and object form), switch off (bare and object form), derived default on a detail, the twin under every other sharing model, an app-authored owner_id on a systemFields: false object, a parity pin of the roster against resolveUserActionTransfer and changeOwnerOffReason over 9 definitions, count, transfer (with no read or write naming the detail's owner), and the optional-master null-master row. The Offboarding hand-over (#30205) moves owner_id on every business object, so a leaver's timesheets, expense reports and votes are handed to the successor #35344 interim pin (left out of the roster) is subsumed: the same fixtures now pin counted-not-moved, as the describe's lead comment says.
  • @objectstack/client, whole package: Test Files 59 passed (59), Tests 820 passed (820).
  • @objectstack/rest: src/user-work-routes.test.ts 7/7 (only a comment changed in rest-server.ts).
  • Typecheck: @objectstack/core, @objectstack/client, @objectstack/rest typecheck exit 0 (core's runs its test-layer gate too), and @object-ui/app-shell type-check exit 0 (src and tsconfig.test.json), after building its dependency closure.
  • Dogfood, test/change-owner-endpoint.dogfood.test.ts on the real showcase: Tests 7 passed (7), including the new N4 case.
  • UI: ActionParamDialog.banAssignedWork-30205.test.tsx 16/16 (two new objectstack#35399 cases). ui/packages/i18n/ whole package (--maxWorkers=1): Test Files 108 passed (108), Tests 2011 passed / 13 skipped.
  • The i18n run first went red, and both causes are fixed in this PR. zh-Hant is generated, so it is now regenerated from zh-Hans with gen:zh-hant instead of hand-written. The de paired-quote pin moves 134 to 135, with its note, for the one new de pair.
  • Declared narrowing: @object-ui/app-shell's whole package (2476 test files) was not run locally. One --maxWorkers=2 attempt was stopped by its recorded PID after about 30 minutes on this shared box. CI's sharded Test UI runs it.

Acceptance notes

  • The nested security.sharingModel spot is no longer read by the hand-over. The removed accessFollowsMaster read sharingModel ?? security.sharingModel, as the access gates do. The spec's switch default (derivedTransferDefault) reads only the declared top-level sharingModel, and security is not an ObjectSchema key. So a raw-registered object that spells its detail model only in the nested spot now hands its owner over, and Change Owner already offered the action on it. The two doors agree, and a parity pin covers this shape. git grep finds no producer that writes security: { sharingModel } outside tests on this tree, so no card is filed. If the nested spot should count, the fix is one line in the spec's derivedTransferDefault, and both doors follow it.
  • Spec prose for the switch (transfer's .describe in object.zod.ts, the user-action-transfer.ts docblock) still names only the Change Owner action. Neither statement is false (the switch still does not gate a plain owner_id write). Adding "and the offboarding hand-over" is a packages/spec .describe edit with gen:schema && gen:docs, outside this claim's file surface, so it is left for the seat to route.
  • Behaviour change for authors, named in the changeset: an object with userActions.transfer: false used to have its owners handed over and now keeps them. A detail with userActions.transfer: true used to keep its owner and now hands it over.

Verification

Read first, by risk:

  1. packages/core/src/security/user-assigned-work.ts: ownerTransferOff and the roster loop (the only rule change).
  2. packages/core/src/security/user-assigned-work.test.ts: the [#35399] describe, especially the parity pin against resolveUserActionTransfer and changeOwnerOffReason.
  3. ui/packages/app-shell/src/views/UserAssignedWorkPanel.tsx: notTransferableKey.

Two-minute check: pnpm --filter @objectstack/core exec vitest run src/security/user-assigned-work.test.ts shows every [#35399] case green. In the console, ban a user who owns an invoice line on the showcase: the line's row says it is not handed over because the object keeps its owner, and the hand-over leaves it.

Local gates (dispatch-gates --ran: 110 derived, 106 run, 4 NOT MEASURED, 0 UNRUN)
  • 106 derived families exit 0. pnpm check:test-source-alias went red once, on this PR's own test, which loaded the locale packs inside a test body. That load moved to module top, and the gate is green at a31b2c96. pnpm --dir ui exec vitest run scripts/ was SIGKILLed once under memory pressure. Re-run alone at a31b2c96, it gave Test Files 172 passed / 2 skipped.
  • NOT MEASURED, exit 3 (the gate refused its own prerequisite): check-plugin-teardown-shape --self-test (shallow clone), spec check:skill-examples (no built client-react), check:dual-build-cjs-loads (needs a whole-tree build), check:type-check-debt (re-measure prerequisite). CI runs all four.
  • node scripts/check-nul-bytes.mjs exit 0 at a31b2c96.

Generated by Claude Code

@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 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/client, @objectstack/core, @objectstack/rest, touching 17 documentable anchor(s).

18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 4f19091997f67617cfdf48b5f7051e7bf86725de.

⛔ 16 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: sharingModel (symbol, 49 pages)
  • 4 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 — 66 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 4f19091997f67617cfdf48b5f7051e7bf86725de → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 4f19091997f67617cfdf48b5f7051e7bf86725de

⚠️ 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 4f19091997f67617cfdf48b5f7051e7bf86725de → 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

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — L1 REWORK · head a31b2c96ffd4246b527a314014811f32f3769fbc · 2026-11-24T07:45Z

  • Shape: open, draft, base main, first line Fixes #35399, no other card bound. Fixes is right because the whole card plus all four scope notes are delivered. mergeable_state is clean (REST; the face read unknown once). l1-face: 12 ok, 1 flag (changeset: @objectstack/rest touched, no entry).
  • Delivery vs card: the roster reads resolveUserActionTransfer through ownerTransferOff (packages/core/src/security/user-assigned-work.ts:109), gated by isTransferEligible. accessFollowsMaster is gone, so there is no second reading of the switch (route rule 1). A parity pin asserts the roster verdict equals resolveUserActionTransfer(def).enabled and changeOwnerOffReason === undefined over 9 defs. The Done-when pins all exist: switch on (bare and object form), switch off (both), derived default on a detail, app-authored owner_id (systemFields: false) and approver untouched. The Offboarding hand-over (#30205) moves owner_id on every business object, so a leaver's timesheets, expense reports and votes are handed to the successor #35344 interim pin is subsumed, with a note. Scope note 1: counted-not-moved with reason: 'transfer_off', the panel picks its sentence by reason, and remaining counts only transferable rows. Scope note 2: the optional master follows the switch, pinned with a null-master row; N2 prose rewritten in client and rest-server; N3 has its own key in 11 locales. Scope note 3 (7007096169): the docblock lead sentence is now per object ("usually … An author whose detail has a real owner … turns the switch on"). Scope note N4 (7069035638): a dogfood case through Change Owner (assertAssignableUser at change-record-owner.ts:362). It is armed (GET /data/sys_user/:id returns 404), asserts status, code and fields, checks message parity with a missing id, and preserves the owner.
  • Gates: check-runs at the head show 61 success, 9 skipped (all expected), 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check are both success.
  • Tests evidence: real counts are cited: core 156/156 files (3740 tests), client 59/59, rest user-work-routes 7/7, dogfood change-owner 7/7, banAssignedWork 16/16, i18n 108 files / 2011 tests. The app-shell narrowing is declared; CI's Test UI 16/16 is green. The dogfood shards are skipped on the PR (they run in the queue), so the N4 case is evidenced locally only. Both refusal halves are pinned (off means counted and never read or written by owner; on means moved), as is preservation (app fields, null-master row). The SQL push-down holds: kept rows use the same engine.count, and transfer filters refs before any query.
  • Sentence reads: I read every sentence of the changeset, data-api.mdx (+4/-2) and administrator-guide.mdx (+23/-15) against the diff, and all match the code apart from the N1 and N2 nits. i18n: 11 keys, all inside console.assignedWork. Every parenthetical matches that locale's existing changeOwner label. zh-Hant is consistent with generated output (对象→物件). The de pin moves 134→135 with a note.
  • Findings:
    • B1 .changeset/35399-handover-follows-transfer-switch.md:1-6: @objectstack/rest (published, not private, not in the fixed group) is touched at rest-server.ts:6541 with no changeset entry. Under the checklist, size is not the test, and a missing entry means it cannot be queued. Fix: add '@objectstack/rest': minor (kind semantic means minor, AGENTS.md Post-Task §3).
    • S1 (follow-up card, not this PR): packages/spec/src/data/object.zod.ts:4362 .describe and user-action-transfer.ts:55 still say the switch gates only the Change Owner action. Under Metadata-protocol: semantic, the authorable key's published meaning has widened to the hand-over. A fix touches packages/spec plus gen, which is the schema face, so the seat should file a card rather than fold it in.
    • N1 changeset:13 says "(GET / POST …) moves": GET only counts.
    • N2 changeset:21 and :23: "Before … read 'Lists several people', which is false for an owner": no owner row ever showed that before (detail owners were left out). "still gates only these two actions": it used to gate one.
  • Skills-docs: none holds. A git grep over skills/ at the head finds no userActions.transfer, Change Owner or hand-over teaching, only list-view and interface userActions and the controlled_by_parent access rules. No follow-up is needed.
  • L2 face: record-recognisers --template --paths gives no Scope hits (paths decide no face). Clause-②: no with no (narrowing) arm means the declaration face does not apply either, so no contract review is owed (Governed Surface Queue Guard: success).
  • Out of scope: declared and justified: core/security/index.ts (type export), the two docs pages (made false by this change), and the de quote pin (under ui/packages/i18n/**). The open questions on the nested security.sharingModel (rec A, leave) and the spec prose (see S1) go to the seat to route.

…he switch did before

Claude-Session: https://claude.ai/code/session_01QSeKYnUnriLNg19SxQdg2p
Co-authored-by: Claude <noreply@anthropic.com>
…ndover-transfer-switch

# Conflicts:
#	ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head b36be4c714a6a163985d7d03661829a141e3cbaf · 2026-11-24T10:16Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Landing · 2026-11-24T10:17Z · head b36be4c714a6a163985d7d03661829a141e3cbaf

Probe Reading
check-governed-merges.mjs --pr 36869 NOT governed — 0 of 23 paths; 447 changed lines ≤ 3000
landing-k.mjs --pr 36869 OK — K = 2 < 15 on origin/main 9be1741595; no shared book moved since this head's merge
pr-state.mjs --pr 36869 61 success · 9 expected skip · 0 failed · 0 pending · mergeable_state clean
os-regen drift 0 — none of the 23 paths is on the merge=os-regen list

State: L1 ACCEPT at this head (seat comment above). pr_ready + auto-merge now; the seat follows it to MERGED and closes out #35399 there.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 10:17
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Queue ejection · 2026-11-24T10:46Z · head b36be4c714a6a163985d7d03661829a141e3cbaf

Dequeued by the merge queue (CI_FAILURE), queue run 45373444137 (branch gh-readonly-queue/main/pr-36869-49c6bf3d51…). One failing job: Test UI (7/16) → aggregate Test UI; the other Test UI shards were cancelled after it.

Signature (verbatim):

  • FAIL dom packages/app-shell/src/console/ai/__tests__/useDeferredFirstSend.test.tsx > useDeferredFirstSend — the first send creates the conversation (objectstack#32031) > mounting creates nothing; the first send creates one row and is replayed into it
  • AssertionError: expected "vi.fn()" to be called 1 times, but got 0 times at useDeferredFirstSend.test.tsx:358:20 (expect(doSend).toHaveBeenCalledTimes(1) after await flushReplay())
  • Shard 7/16: 1 failed | 443 passed files; 680 s duration.

Seat's first reading: NOT judged a flake yet, and NOT re-queued. This PR's diff touches ui/packages/app-shell/src/views/UserAssignedWorkPanel.tsx and a test beside it, nothing under console/ai/; the assertion is a product-behaviour assertion (a replayed send), not a timeout, so the re-queue rule's third fact does not hold. No issue names this test as flaky (search useDeferredFirstSend: only the closed #32031 family). Next: reproduce on the merged tree (main + this head) and on main alone; the outcome (regression on main, a flake with evidence, or this PR) is recorded here before any re-queue.

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

  • Test UI (7/16) — 失败步骤: Run the ui tests (shard 7/16)

    × mounting creates nothing; the first send creates one row and is replayed into it 15ms
    FAIL   dom  packages/app-shell/src/console/ai/__tests__/useDeferredFirstSend.test.tsx > useDeferredFirstSend — the first send creates the conversation (objectstack#32031) > mounting creates nothing; t
      ↳ 失败原因: AssertionError: expected "vi.fn()" to be called 1 times, but got 0 times
    

↳ 失败原因 是判读的关键:超时(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,按失败测试文件聚合):

  • packages/app-shell/src/console/ai/__tests__/useDeferredFirstSend.test.tsx — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

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

分诊清单:

  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#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Queue ejection — diagnosis · 2026-11-24T11:30Z · head b36be4c714a6a163985d7d03661829a141e3cbaf

Follows 7129232292. Verdict: a timing flake in the test, not this PR and not a main regression.

  • Merged tree (main 49c6bf3d51 + this head): the failing file alone 10/10 green; under CPU load 10/10 green; the full shard 7/16 as CI runs it green (445 files, 5247 tests). origin/main alone: 10/10 green.
  • Mechanism: the test's flushReplay() setTimeout(0) can be set before the hook's replay timer when React's passive-effect flush is delayed on a starved runner; details on the new card.
  • This PR reaches the test's import closure only through one added i18n string per locale; nothing under console/ai/.

Not re-queued on this reading alone: by the queue rules a product-behaviour assertion in a closure the diff touches is not a re-queue case. The test is fixed on its own card, #36967 (filed, triage asked); this PR re-queues once that fix lands, or on triage's or the maintainer's word if sooner.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Re-queue · 2026-11-24T16:23Z · head b36be4c714 unchanged since the seat's ACCEPT. The merge-queue ejection at 2026-11-24T10:39Z was the timing race in useDeferredFirstSend.test.tsx (card #36967), a file outside this PR's import closure; that race is fixed on main by PR #37014 (merged). The queue now tests this head against a main that carries the fix. Checks at this head: 62 success, 9 expected skip, 0 failed (pr-state.mjs --pr 36869).

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit bfd1049 Nov 24, 2026
71 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35399-handover-transfer-switch branch November 24, 2026 16:54
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.

Offboarding hand-over: owner_id entries follow the object-level Change Owner switch (userActions.transfer)

2 participants