Skip to content

feat(scenarios): restore the seeded rows before each operation, so one failed write does not cascade into the next - #34338

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-1jp8bn
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-1jp8bn

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

epic:#33595#1 · os-tesla · session_01L9qibxMxTCsjCeHw2vP5qU

Clause-②: yes (widening) — through ./runner: new exports restoreObjects, seededRows, restoreSeededRows and types SeededRows / RowRestore (orchestrate.ts); derivedFields, rowDrift, driftText, RESTORE_UNCOMPARED, RESTORE_UNWRITTEN and types HeldRow / RowDrift (seed.ts); the new optional member AppHarness.deleteRow and the method HttpApp.deleteRow (app.ts); the new optional fields OperationResult.restored (orchestrate.ts) and HalfScores.operations.restored (scorecard.ts). No export entry moves; ./score, ./score/full, ./export and . are untouched. Operation grades after an earlier turn's write move: an operation that used to start from the rows the turn before it left now starts from the seeded rows.
Metadata-protocol: none

Fixes #34294

维护者速读

  • 改了什么:评测跑分器在每个操作运行之前,先把前面回合改动过的行恢复到种子加载后的状态(以管理员身份:删掉新增行、按种子原样重新插入被删行、把被改的列改回),所以每个操作都从卡片声明的数据出发;无法恢复时该操作记为「未测量」并写明原因。
  • 为什么改:原来所有操作在同一份种子数据上按顺序跑,一次写错(或探针被应用错误地存下)会让后面两三个操作一起失败,模型之间的操作分比较就混进了连锁失败,而不只是每个回合自己的表现。
  • 风险与回滚:没有任何前面回合写入时不写任何东西,记录和分数表逐字节不变(已钉住);恢复只在操作的第一个回合之前,不会插在「先问后确认」的两个回合之间;问数不受影响。旧录像回放时,依赖前一操作写入的后续操作会读成「未测量」(回放不忠实),不会读成失败。回滚即还原本 PR。
  • 先看:packages/qa/scenarios/src/runner/orchestrate.ts 的 restoreSeededRows(三轮恢复与失败判定)和 runHalf 操作循环开头的调用;src/runner/seed.ts 的 rowDrift(比较哪些列)。
  • 两分钟验证:pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/runner/orchestrate.test.ts -t 34294,预期 7 个用例全过。
  • 需要你做的:无,席位落地。

What changes

  • Design point 1, what is restored (orchestrate.ts restoreObjects / seededRows / restoreSeededRows, seed.ts rowDrift): right after the seed loads, the runner reads, as the admin, the rows of every seeded object and of every object an operation writes or its outcome reads that the seed does not name. That read is the seeded state: the app's own answer to the seed, so a row the app refused, or one it made itself while seeding, is held exactly as the operations would have met it before this change. This is a superset of "the objects the operation and its outcome read": the agent's turn may read any seeded object (it looks an account up by name before it creates a contact), and the cost is one list per object per operation, against an agent turn that takes minutes. Before each operation the runner reads them again and compares by id, every column except created_at, updated_at, updated_by (stamped anew by every write, the restore's own included) and the fields the build computes (COMPUTED_VALUE_TYPES from @objectstack/spec/data: formula, summary, autonumber, read from the built artifact through the scorer's one reader). When something moved it puts it back, as the admin, through the seed path: a row a turn added is deleted (new DELETE /api/v1/data/:object/:id, HttpApp.deleteRow); a seeded row a turn removed is inserted again with the very body the seed sent (seedRowBody, now shared by seedApp), or, for a row the app made itself while seeding, the row as read less the platform's stamps; a changed column is set back to the value the seed left. A lookup to a row still missing waits for the next round. Up to three rounds of writes, so a cascade settles (a delete that takes a child, a reference set back before a delete is allowed).
  • Design point 2, when: before every operation, and only when the read finds something moved. A run where no earlier turn moved a row writes nothing and records and scores byte for byte as before (pinned). The first operation restores only when a question turn wrote (questions are not meant to write; that drift would otherwise reach every operation), which the order's "after the first that follows a write" reading covers as the same rule: the check, not the position, decides.
  • Design point 3, a restore that fails: rows that still differ after the three rounds make the operation NOT MEASURED, restore: the rows could not be restored to the seeded state: OBJECT: 1 added (ID), … (refused: VERB OBJECT ID: STATUS CODE MESSAGE), each refusal named once. The operation is not asked, so no turn, observation or grade is recorded, and it counts in neither passed nor total. A list the app refuses during the restore fails it the same way. A harness without deleteRow (it is optional, so an existing harness keeps compiling) fails a restore that needs a delete, and says so.
  • Design point 4, interplay: the restore runs at the head of the operations loop, before an operation's first turn; a pending_confirmation operation's ask and confirmation (Scenario runner: a pending_confirmation operation runs as two turns, ask then confirm, so the confirmed write is graded too #34293) run back to back on the same rows, and the confirmed delete is undone before the next operation (pinned). Questions are unchanged: they all run before any operation, at every --ask-repeats ask, and the seeded state is read before them. Ask mode runs the same Run half, so it restores the same way. A replay re-sends each operation's recorded writes against the restored rows (RecordedDriver, Scenario runner: a recorded replay re-sends no MCP write, so every applied operation fails on replay #33737); where a later operation leaned on an earlier one's write, it reads NOT MEASURED (the replay is not faithful), never a fail.
  • The record and the scorecard: an operation that started from restored rows carries restored: { deleted?, reinserted?, setBack? } (each object/id; setBack maps a row to the columns set back), absent otherwise. The Run-operations cell, and the run record's run-operations note, add · N started from restored rows (measured operations only) when N > 0.
  • README: a bullet Each operation starts from the seeded rows; changeset 34294-scenario-restore-seeded-rows.md (patch).

Design point 5, measured on eval#1's records

Read-only over the 138 run records under /mnt/project-files/eval/runs (2026-11-14 through the 2026-11-16 M2 close-out; 258 Run halves; 1,290 operations that ran):

  • 628 operations ran after an earlier turn in their half wrote (the agent's write, a probe's, or a confirmed one): the restore would run before each of them, and the other 662 are untouched.
  • 199 of those 628 failed. 198 failed only on checks that read the turn's own calls and reply (answer, no-write, agent, confirmed-by-agent, platform): asking first, refusing, withholding. They would grade the same on restored rows unless the agent behaved differently on them, which no record can tell.
  • 1 failed on a row-state check after an earlier write on the same row: 2026-11-15-replay-m1/high/opus, invoice_with_line_items, iterate Run, send_invoice (state: demoinvoice_invoice#i3.status read "draft", audit-actor), after add_line's runner probe stored a line on i3. That is the one grade the restore can plausibly move.
  • 0 operations errored after an earlier write.

What the records do not allow: they keep each operation's post-state rows and write counts, not the rows it started from, so an exact count of moved grades needs a replay of the recordings on this branch (booted apps per card); this PR did not run one. The scripts and outputs are in the project files beside the PR's other evidence (out-34294/measure*.mjs, out*.txt).

Tests

  • test/runner/orchestrate.test.ts, a new top-level describe (Scenario runner: restore the seeded rows an operation reads before it runs, so one failed write does not cascade into the next #34294, 5 cases) and one for the pure helpers (2 cases):
    • an operation after a wrong write passes on its own merits: add_contact's turn also deletes Eli (ct5), the row move_eli acts on; move_eli passes with restored: { deleted: [new-add_contact], reinserted: [ct5] }, and add_contact, the first operation, restores nothing;
    • the restore runs before an operation, never between its ask and its confirmation (remove_ben sets back ct5.account, its confirmed delete still grades on the rows its ask saw; contact_bad_email reinserts ct2; the validation operation wrote nothing, so the next restores nothing);
    • parity: with no earlier write the app takes the seed's 8 inserts and nothing after, and the record and the scorecard carry no restored and no restored rows;
    • a refused restore is NOT MEASURED with the reason, the operation never asked (403 on delete; and a harness with no deleteRow);
    • restoreSeededRows directly: the clock and a computed field moving restore nothing and write nothing; a changed name is set back; a removed seeded row goes back with the seed's body;
    • rowDrift (clock and last writer not compared, null = absent) and derivedFields (formula/summary/autonumber; nothing from an unreadable artifact).
  • test/runner/app.test.ts (+1): HttpApp.deleteRow sends DELETE /api/v1/data/OBJECT/ID with no body and reads a refusal's code.
  • Existing pins that read the app's rows after the run, or the operations tally, now see the restores: the crm card's clean run reads restored: 3 (move_eli, remove_ben, contact_bad_email); the probe that a broken app stores is deleted before partner_edits_account (restored: 4); eval#1's haiku replay deletes replayed-0 before move_eli, and reinserts ct2 after a replay whose app applied the delete. Their grades are unchanged.
  • test/export/fixture.ts: its FakeApp gains deleteRow.

Acceptance notes

  • add_contact passed in the cascade pin although its turn also deleted ct5: the grader reads the declared post-state, and an extra removal on the same object is not charged to that turn. That is the grader's existing reading (src/score/**, outside this card); noted, not filed.
  • The restore lists up to 1,000 rows per object (listRows), as every read of the runner does; the largest seeded object in the library holds 307.
  • HttpApp.deleteRow's route is read from packages/rest/src/crud-routes.ts, not yet measured live, like the seed's second-pass PATCH beside it; a live run's first restore is that measurement, and a refusal there reads NOT MEASURED with the code.
  • A row an earlier turn deleted and the restore inserts again is a new row to the platform: its created_at and any autonumber are new. Neither is compared; a card that declares an autonumber value would see the difference in its own post-state check.
  • The four orchestrate.test.ts record-note and cell pins that read 5/5 now read 5/5 · 3 started from restored rows.

Verification

Ablation
  • node scripts/ablation-replace.mjs on the committed head of the time (orchestrate.ts blob bc4bc9f62aa2; the later dcbc4425 changes only how a failed restore names its refusals), the restore call in runHalf replaced by "nothing restored"; the tests import src, so there is no build leg. Restored each time with git diff HEAD empty and the blob equal to HEAD.
Local gates
  • On dcbc4425: pnpm --filter '@objectstack/scenarios^...' build :: exit 0 (lock VERDICT command-exit 0); pnpm --filter @objectstack/scenarios build && pnpm --filter @objectstack/scenarios typecheck && pnpm --filter @objectstack/scenarios test :: exit 0 (lock VERDICT command-exit 0): Test Files 35 passed (35), Tests 985 passed (985).
  • eslint --no-inline-config on the seven touched TS files :: exit 0.
  • Derived gates (dispatch-gates --commands --repo objectstack-ai/objectstack at dcbc4425, 9 paths, 67 families), each run with stdin from /dev/null: 65 exit 0, and 2 exit 3 (PREREQUISITE NOT MET):
    • check-plugin-teardown-shape --self-test could not read its pinned fixture commit in the shallow clone; after git fetch origin 621a4876…, a rerun exited 0 ("48 cases pass"), recorded on its own line; the first-run record is kept as it was.
    • pnpm check:dual-build-cjs-loads is NOT MEASURED locally: it needs every package's dist/. CI runs it.
    • --ran on the first-run record: "67 derived famil(ies) accounted for — 65 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".
  • Main (951eceee → c9346317, the objectql cascade-delete batch, perf(objectql)!: a cascade delete removes a relation's children as one predicate delete per chunk #33887) was merged once before opening (88929ff3); it touched nothing under packages/qa/scenarios. After the merge, on 88929ff3: pnpm install --frozen-lockfile && pnpm --filter '@objectstack/scenarios^...' build && pnpm --filter @objectstack/scenarios build && … typecheck && … test :: exit 0 (lock VERDICT command-exit 0), Test Files 35 passed (35), Tests 985 passed (985); packages/spec moved on main's side, so pnpm --filter @objectstack/spec check:generated :: exit 0. The derived-gate record is the one on dcbc4425, whose diff the merge leaves as it was.
  • 616 changed lines (+571/-45) in 9 files. No governed surface; packages/spec, src/score/**, src/schema.ts, card JSONs and src/export/** untouched (the export test fixture gains deleteRow).

Generated by Claude Code

@github-actions github-actions Bot added size/l 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 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/scenarios, touching 31 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

41 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 8436f67a2d522e0c700c37b69b22a083a30ce4b9.

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

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/qa/scenarios/README.md) — pages documenting those are invisible to this run
  • 2 anchor(s) matched too much of the corpus to be a work list: created_at (literal, 46 pages), /api/v1/data (route, 52 pages)
  • 9 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 — 1 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 8436f67a2d522e0c700c37b69b22a083a30ce4b9 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 8436f67a2d522e0c700c37b69b22a083a30ce4b9

⚠️ 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 8436f67a2d522e0c700c37b69b22a083a30ce4b9 → 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

epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 88929ff3a795fc24ae6fa1b4232c3a5e90c4416c
Local-runs: none

① Derived judgments

The Clause-②: yes (widening) line on the changeset and the PR body is true and complete against the diff. New exports, all through ./runner:

  • from orchestrate.ts: restoreObjects, seededRows, restoreSeededRows, SeededRows, RowRestore;
  • from seed.ts: derivedFields, rowDrift, driftText, RESTORE_UNCOMPARED, RESTORE_UNWRITTEN, HeldRow, RowDrift;
  • the optional AppHarness.deleteRow with HttpApp.deleteRow (app.ts), and the optional fields OperationResult.restored and HalfScores.operations.restored.

deleteRow is optional, so an existing harness still compiles. A restore that needs a delete on a harness without it fails and says so. The shared seedRowBody is an internal refactor of seedApp, pinned by the parity test, which checks that the seed sends the same 8 inserts and nothing after them.

The answer that moves is the one the line names: an operation after an earlier turn's write now starts from the seeded rows. The order's five design points are each settled in the PR body:

  1. What is restored. The seeded state is read once, as the admin, right after the seed and before any question. It covers every seeded object plus every object an operation writes or its outcome reads. Before each operation the rows are compared by id, excluding the clock, the last writer and the computed fields (COMPUTED_VALUE_TYPES read from the built artifact). Moved rows are restored through the seed path, as the admin, in up to three rounds: added rows deleted, removed rows reinserted with the seed's own body, changed columns set back. This is a superset of the order's object set, and the PR states why and what it costs.
  2. When. The check, not the position, decides. A run with no drift writes nothing and is byte-identical; this is pinned.
  3. A failed restore marks the operation NOT MEASURED with restore: … naming what still differs and the refusals. The operation is never asked and is counted in neither passed nor total (opsTally filters notMeasured).
  4. Interplay. The restore runs at the head of the loop, before the first turn and never between Scenario runner: a pending_confirmation operation runs as two turns, ask then confirm, so the confirmed write is graded too #34293's ask and its confirmation (pinned). Questions all run before any operation at every --ask-repeats ask. Ask mode uses the same Run half. In a replay, an operation that leaned on an earlier write reads not measured, never a fail.
  5. Measured on eval#1's 138 records. 628 of 1,290 operations ran after an earlier write; 199 of those failed, 198 on turn-behaviour checks and 1 on a row-state check (send_invoice after add_line's stored probe). The PR states that an exact count needs a replay, which was not run. That is an acceptable answer to "if the records allow it".

test/export/fixture.ts gains deleteRow for its FakeApp. It is a test file and src/export/** source is untouched; accepted. The ablation is stated: removing the restore reds the cascade, confirmation-interplay and refused-restore pins.

② Semver level

Patch, as the changeset bumps it. Metadata-protocol: none holds: no spec key, card JSON or app metadata changes. The widening is new exports and optional fields of the evaluation package @objectstack/scenarios. COMPUTED_VALUE_TYPES comes from the existing @objectstack/spec workspace dependency, and package.json is unchanged. No existing export is removed or narrowed.

③ Boundary flags

None:

  • No change under packages/spec/src/**, no governed path, and no platform runtime or security behaviour. The new DELETE /api/v1/data/:object/:id call is a runner-side client of an existing REST route, made as the admin against the scratch app.
  • src/score/**, src/schema.ts, card JSONs and src/export/** source are untouched.
  • The grader reading in the acceptance note (an extra removal on the same object is not charged to that turn) is pre-existing src/score/** behaviour. It is noted, not changed.

Implemented-by: claude/project-thread-1jp8bn
Reviewed-by: session_01L9qiby1cctpVpRbJzjccvY

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

席位核对 · ACCEPT · PR #34338 (#34294) · 2026-11-16T08:13Z

Head-sha: 88929ff3a795fc24ae6fa1b4232c3a5e90c4416c · report 6910668652 · claim 6909748670

  • Form: draft → main.
    • Declarations: the body and the changeset carry the Clause-②: yes (widening) line, which names every new export, the optional AppHarness.deleteRow and the two optional fields, each through ./runner. They also state that operation grades after an earlier turn's write move, and carry Metadata-protocol: none and Fixes #34294.
    • Files inside the claimed surface: src/runner/{orchestrate,seed,app,scorecard}.ts, their tests, the package README and the changeset. app.ts is in because a row delete helper was missing, the case the order names.
    • One test file outside it: test/export/fixture.ts gains deleteRow on its FakeApp. Accepted.
    • Untouched: src/score/**, src/schema.ts, card JSONs and src/export/** source.
  • Diff read (seat), against the order's five design points: each is settled in the PR body, not silently.
    1. What is restored: the seeded state is read once after the seed. Before each operation, drift is restored through the seed path as the admin, in up to three rounds.
    2. When: the check decides. A run with no drift writes nothing and is byte-identical (pinned).
    3. Failed restore: the operation is NOT MEASURED with the reason, never asked, and counted in neither passed nor total.
    4. Ordering: the restore runs before the first turn and never between Scenario runner: a pending_confirmation operation runs as two turns, ask then confirm, so the confirmed write is graded too #34293's ask and its confirmation (pinned). Questions, --ask-repeats, ask mode and replay are unchanged.
    5. Measurement: measured on eval#1's 138 records, with the replay gap stated.
  • Gates: check-runs at this head: 49, of which 33 success, 16 skipped, 0 other (read this act). mergeable_state is clean. Local (thread): 985/985 tests, typecheck clean, and 65 of 67 derived gates exit 0. The other 2 had prerequisites not met: the teardown self-test passed on rerun, and dual-build-cjs-loads was left to CI, where it is green.
  • Contract review: seat review VERDICT PASS at this head (comment 6910701133).
  • Changeset read sentence by sentence against the diff: all hold. The sentences checked:
    • the summary line;
    • the Clause-② line;
    • the why paragraph;
    • the mechanism paragraph, which matches seededRows, rowDrift, restoreSeededRows and seedRowBody;
    • the failure sentence (restore: … not measured);
    • the record and scorecard sentence (restored, · N started from restored rows).
  • Landing:
    • K = 1: git rev-list --count --first-parent 8436f67a..origin/main, where PRBASE is Test Core's printed Affected-set diff base.
    • git merge-tree against current main (4c0cf65f) is clean. No locale pack.
    • Landed on the maintainer's standing word 「按 pm-dispatch 审过的pr你可以自主落地」 (2026-10-30 14:20Z, spec seat 2 thread), and the maintainer's 08:05Z question in the seat thread asking whether it had landed. pr_ready + automerge_enable in this stroke.

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

  • Dogfood Regression Gate (1/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/field-unique-rest-refusal.dogfood.test.ts > records-forms.field-unique-enforcement — the unique refusal at the REST doors > acceptance[0], negative[0]
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected { …(6) } to deeply equal { …(5) }
    @objectstack/dogfood:test:  FAIL   isolated  test/field-unique-rest-refusal.dogfood.test.ts > records-forms.field-unique-enforcement — the unique refusal at the REST doors > acceptance[0], negative[0]
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected { …(6) } to deeply equal { …(5) }
    

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

分诊清单:

  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

epic:#33595#1 · os-tesla · session_01L9qiby1cctpVpRbJzjccvY

Queue ejection triage · re-queue once · 2026-11-16T08:37Z

Queue build 43829693775 (triage comment 6911493551) went red. The only failure is Dogfood Regression Gate 1/3, test/field-unique-rest-refusal.dogfood.test.ts, which failed an assertion comparing a 6-key refusal against a 5-key expectation.

This PR is an inherited bystander, not the cause:

Head 88929ff3 is unchanged, and git merge-tree against current main is clean. Per triage item 3 (a semantic conflict with an earlier entry of the same stack, now out of the queue), this PR is re-queued once. If the same signature ejects it again, this seat stops and leaves it for re-diagnosis.

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/l 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.

Scenario runner: restore the seeded rows an operation reads before it runs, so one failed write does not cascade into the next

1 participant