Skip to content

fix(metadata-protocol)!: a seed record that leaves a key field blank is refused at load - #35459

Merged
objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/issue-34857-blank-seed-key-refused
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/issue-34857-blank-seed-key-refused

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #34857
Also delivers (folded, closed by the area at close-out): #35336, #35376

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #35480 — skills/objectstack-data/references/seeds.md (:48 the externalId row, :68 the composite key, :93 externalId selection: none says a record must carry every key field or is refused at load)

维护者速读

  • 用户能看到什么变化:种子数据里某条记录缺了用来识别它的键值(比如没填名称),以前每次启动、安装或升级都会悄悄多插一行;现在这一条不再写入,加载结果写明是哪个对象的第几条、缺哪个字段、怎么改,其余数据照常加载。另外「同一对象有两个兜底语种集」的报错不再提已经不存在的「进程内升级」原因。
  • 为什么做:安装、升级与启动可靠性(种子数据生命周期);修的是作者自写种子每次加载重复插行且无提示的问题。
  • 出错会怎样:故意留空键值的作者,这条记录在新环境里不再出现(以前是每次多一行);已经重复的行不会被清理;撤回本次合并即可恢复旧行为。
  • 要你做什么:无。

席位核对

What changes

Ruling B1 (record 7000515976), extended to single-field keys (record 7000600379).

Tests

New pins (shared-harness rule, top-level describes in existing harness files):

Fixture triage (what each pinned is kept):

  • seed-loader-deferred-dropped.test.ts (reverse pin): its keyless device was a blank region in a keyed dataset, now refused. Remade, not deleted: the department dataset names no mode and the load config no defaultMode (a request built without the parse's defaults, the one load that still writes a row keyed ''), so pass-2 write-back by captured id stays pinned on a written keyless row. Added: the KEYED blank-component record is refused before it writes or defers anything.
  • seed-loader-pointer-pair.test.ts: insertSeed keyed on id with no ids now gives each record its id; the KEYLESS heal case moves to the same mode-less device.
  • seed-loader-composite-key-diagnostic.test.ts: the ruling's pair ('a','b') / ('a\0b','') — the second is now refused, still never matched to the first.
  • protocol.seed-external-id-refusal.test.ts: the externalId: 'id' control's record carries an id.
  • packages/objectql/src/engine-seed-required-deferral.test.ts: datasets with no externalId (default name) and no name get externalId: 'process_name' / 'action'; the KEYLESS heal case uses the mode-less device.
  • packages/runtime/src/seed-loader.test.ts: "should handle records with no matching externalId field" pinned the insert; flipped to the refusal.
  • seed-loader-locale-scope.test.ts: seed: the duplicate-fallback refusal still names "an upgrade within this process" as a cause, which the install door no longer produces after #35109 #35376's pin follows the new text.

Acceptance notes

  • A1 (measured on 35c6331 with a copy of the base loader, three loads each): single code 2, 3, 4 rows, 0 warn, 0 error; default name 2, 3, 4; composite '' 2, 3, 4; composite null (ignore) 2, 3, 4. With the fix: 1, 1, 1 and one error per load.
  • Stock: the dogfood battery boots every example app; zero blank-key refusals in its log.
  • Departs from PR fix(metadata-protocol)!: refuse a keyed seed whose externalId names no field of its object #29066's seat route ("the boot loader never refuses"), by the maintainer's ruling. A boot still does not fail (haltOnError: false).
  • The mode-less load (no mode, no defaultMode) is left unkeyed on purpose; nothing in this PR changes it.
  • Not changed: rows earlier loads duplicated stay.
  • seed-loader-locale-scope.test.ts "an upgrade that changed the marked set (versions 1 and 2 on one list)" still feeds both versions straight to the loader; its comment describes the pre-fix(runtime, cloud-connection): an upgrade replaces the package's seed datasets on the shared replay list #35374 replay list. Left as is: the loader still refuses that input from a direct caller.

Verification

All readings on head 755c75a5 (the fold commit 64abfecd, one merge of origin/main a9b36eff, the #35376 commit) unless named.

Tests and typecheck
  • pnpm --filter @objectstack/metadata-protocol test: Test Files 358 passed | 9 skipped (367), Tests 23238 passed | 45 skipped (23283).
  • pnpm --filter @objectstack/metadata-protocol --filter @objectstack/runtime --filter @objectstack/objectql typecheck: exit 0.
  • Re-keyed consumer files: runtime src/seed-loader.test.ts src/seed-datasets.test.ts src/app-plugin.seed-locale-producer.test.ts Tests 93 passed (93); objectql src/engine-seed-required-deferral.test.ts Tests 7 passed (7).
  • Consumer sweep on 64abfecd's tree (dist rebuilt): every test file outside this package that names the seed loader or authors seed records, run in runtime (36 files), objectql (26), cloud-connection (26), rest (10), metadata (4), plugins/organizations (5), cli unit tier (3): all green after the two re-keyed files above; integration-tier cli files declared to CI.
  • Dogfood battery (narrowing arm), pnpm --filter @objectstack/dogfood test after the @objectstack/dogfood^... build, on 755c75a5: Test Files 482 passed | 3 skipped (485), Tests 4092 passed | 68 skipped (4160), lock verdict command-exit 0; zero blank-key refusals in the boot logs.
Ablation (restored, blob equals HEAD, `git diff HEAD` empty)
  • scripts/ablation-replace.mjs on seed-loader.ts: const blankKeyFields = [...keyFields].filter(...) replaced by const blankKeyFields: string[] = []; (anchor 1 to 0, blob b10e9f2e to 23591f6e). seed-loader-empty-key-warn.test.ts + seed-loader-deferred-key-reference.test.ts: Tests 11 failed | 22 passed (33); the 11 are every refusal pin, the 22 include every CONTROL. Restored: blob b10e9f2e equals HEAD. No build involved: the pins import ./seed-loader.js from source.
Gates
  • dispatch-gates.mjs --commands derives 117 families (the diff touches packages/spec). Run locally on 755c75a5, all exit 0: check-adr-0087-registration (with --self-test; reads registered seed-key-blank-record-refused (new here)), check-changeset-no-major, check-empty-changeset, check:nul-bytes, check:doc-authoring, check:durability-log-level, check:issue-citations, check:doc-anchors, check:docs-single-h1, check:doc-frontmatter, check:startup-registry-verdict, check:engine-double-contract, docs-audit/check-affected-docs, check:cross-package-test-inputs, check:test-source-alias, spec check:upgrade-guide, spec check:spec-changes, check:type-check-coverage, check:type-check-debt, check:dts-closure. The other derived families are declared to CI (--ran: 21 run, the rest UNRUN locally).
  • overlap-check.mjs --branch=HEAD: VERDICT clean exit 0 (shares one test file with open PR fix(metadata-protocol): the seed save door refuses an unknown object; the probe names a missing object #35388, merges cleanly).

Generated by Claude Code

…is refused at load

A keyed seed record (ignore, upsert, update) whose externalId value is
blank - no value, null or an empty string, in any component of a
composite key or the one field of a single-field key (name by default) -
keyed empty, matched no row and was inserted again on every load with
nothing said (measured 2 -> 3 -> 4 rows). The load now refuses it on
the key as authored, after expressions resolve and before references do:
one error naming the object, record index, blank field(s) and the fix,
logged once per dataset; every other record loads. A deferred reference
is authored, so it is not blank and still lands. The all-empty dataset
warning is replaced by the per-record refusal.

Tests: new pins in the seed-loader harness files; the keyless devices
that relied on a blank key are remade on the mode-less (unparsed) load;
consumer fixtures that keyed records on a field they did not carry are
re-keyed. Docs: the seed-data page states the rule and its keyless
TestUser example gains externalId 'email'. ADR-0087 ledger entry
seed-key-blank-record-refused registers the narrowing.

Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x
Co-authored-by: Claude <noreply@anthropic.com>
… cause that still arises

An upgrade now replaces a package's datasets on the shared replay list,
so the refusal of two fallback sets for one object, its docblock and the
seed-data page no longer name an in-process upgrade as a cause; the cause
left is two packages marking the same object. The pin follows.

Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x
Co-authored-by: Claude <noreply@anthropic.com>
@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 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/metadata-protocol, @objectstack/spec, touching 9 documentable anchor(s).

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

  • content/docs/concepts/metadata-lifecycle.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/data-modeling/validation.mdx (via SeedLoaderService (symbol, a top-level class))
  • content/docs/kernel/cluster.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/protocol/objectql/state-machine.mdx (via SeedLoaderService (symbol, a top-level class))

⛔ 3 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v16.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/releases/v17/17-0.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/releases/v17/17-1.mdx (via SeedLoaderService (symbol, a top-level class))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 3 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 — 175 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 41ee21810a1c7f16d2ba15845ce88d04e4334072 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 41ee21810a1c7f16d2ba15845ce88d04e4334072

⚠️ 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 41ee21810a1c7f16d2ba15845ce88d04e4334072 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

… not code

The error-code casing guard reads a lowercase literal under a code key as
an error code; the field is plain demo data.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Final head for review · area pkg-1 · 2026-11-19T11:13Z
Head: acdab3018ae0ad4de711fa93a7bb3cf8fe52fb6c — every check on it concluded success or skipped (60 success, 10 skipped). Test Core (5/10) went red once: the packages/lint afterAll rmSync hook in lint-liveness-properties.test.ts timed out after 10000ms, while all 9282 lint tests passed. That package is outside this diff. One re-run of the failed jobs was green.
Fixes #34857, #35336, #35376 (fold, ruling B1 7000515976 + 7000600379) · Clause-②: no (narrowing) · Metadata-protocol: narrowed · ADR-0087 entry seed-key-blank-record-refused registered · +472/−135 over 13 files, inside the claim as amended (7006195595).
Main merged after sibling #35388 landed (4e8fade, clean); acdab301 renames a test fixture field code → sku for the error-code casing guard. os-dev-report addendum 7007256277: metadata-protocol 360 files / 23261 tests green, objectql + runtime seed suites green, dogfood battery on acdab301 exit 0 (482 files / 4092 tests, no failures).
Review route: L1-a thread, then the seat's contract review (narrowing + packages/spec/**). Landing by the area. Skills-docs follow-up: the seat's.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:初始化数据里,如果某条记录的"唯一标识字段"留空,现在加载时会拒收这条记录,并说明是哪个对象、第几条、缺哪个字段、怎么改;其它记录照常加载,系统照常启动。
  • 为什么做:以前这种记录每次重启、安装或发布都会被再插入一遍,数据越积越多重复,且没有任何提示。
  • 出错会怎样:已有的重复数据不会被自动清理;作者需要给记录补上该字段的值。
  • 要你做什么:无(这是你选的方案 B1)。区域补一张文档跟进卡后,交席位做合同复审。

席位核对

L1-a: ACCEPT with one required item before landing · head acdab3018ae0ad4de711fa93a7bb3cf8fe52fb6c · Fixes #34857 #35336 (#35376 rides) · 2026-11-19T11:16Z

Readings: K=10 (no main merge owed); check-governed-merges --pr 35459 not governed (0 of 13 paths), 607 changed lines; merge-tree against main clean; CI 60 success / 10 skipped / 0 failed.

Code: sound, and it is the ruling. The maintainer chose B1 on the seat's decision card (seat ruling record 7000515976), extended to single-field keys on #35336.

Evidence. A1 measured 2, 3, 4 rows over three loads before the fix and 1, 1, 1 after, on single-field, default-name, composite '' and composite null keys. The dogfood battery ran on this exact head (7007256277) with 4092 tests passing and zero blank-key refusals in the boot logs, so no shipped seed trips the new refusal.

Declaration: agreed. Clause-②: no (narrowing) / Metadata-protocol: narrowed / minor on @objectstack/metadata-protocol. It carries a BREAKING banner, the FROM / TO lines and the author's one-line fix, and exactly one marker, registered seed-key-blank-record-refused, with its D3 entry at packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts. The report shows check-adr-0087-registration exit 0, with no id collision against main's 18.seed-object-unknown-refused.

R1 (required before landing): Skills-docs: follow-up owed → #N. L1 checklist line 18 says to file the card and write its number in place of owed. The changeset already names the three anchors (skills/objectstack-data/references/seeds.md :48, :68, :93), so file the card from them and change the line in the changeset and the PR body. A push that only applies R1 needs no fresh L1.

Routing: L2 owed. There are two contract faces: the narrowing declaration, and the non-test packages/spec/src/** path (the D3 entry). Seat 5 runs the L2. pkg-1 lands after it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d56b6f80c17b62bb829152d0b176cceea06b61bd
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts + packages/metadata-protocol/src/seed-loader.ts, packages/metadata-protocol/src/seed-loader-empty-key-warn.test.ts, packages/metadata-protocol/src/seed-loader-deferred-key-reference.test.ts, content/docs/data-modeling/seed-data.mdx (read for agreement)

① Derived judgments

PR #35459, cards #34857 and #35336 (#35376 rides). Read: both cards with every comment (rulings 7000515976 and 7000600379, the claim and its two amendments, both os-dev-reports), the PR body, the file list (13 files), the net diff against main, and the check-runs. The head moved during this review from acdab301 to d56b6f80: the one commit between them changes one line of .changeset/34857-seed-blank-key-record-refused.md (Skills-docs: follow-up owed became Skills-docs: follow-up #35480), and the PR body carries the same line. Card #35480 is open, domain:skills, and names skills/objectstack-data/references/seeds.md with the three anchors. No code, test, doc or ledger byte differs between the two heads, so every code judgment below was formed on acdab301 and holds on d56b6f80.

  • Accept set, keyed modes (ignore, upsert, update): a record with a blank key field is refused. Blank is no value, null or '', in any component of a composite externalId or in the one field of a single-field key. Right: it is ruling B1 (7000515976) as extended to single-field keys (7000600379). One helper, isBlankSeedKeyValue, now serves the refusal, seedLandedKey and the composite arm of externalIdKey.
  • A dataset whose every record keys empty stops loading entirely. The dataset-level warn is gone and each record is refused. This is the widest consequence of the change: a dataset left on the default key name over records that carry no name used to seed (and duplicate on a persistent database); it now seeds nothing and reports each record. Right: the rule admits no carve-out for "all of them", the claim left this choice to the dev (kept or folded), and the changeset states it. In-repo stock is 0 of 26 datasets.
  • update mode: a silent skip becomes a reported error, and the load's success turns false. Right, and declared.
  • A key field whose expression evaluates empty is refused (os.user.id with no identity). Right: the check sits after resolveSeedRecord and before reference resolution, as the ruling's execution text places it; such a record keyed '' and re-inserted before. The changeset and the ledger entry say "after expressions resolve"; the docs page does not (N2).
  • A key reference that is authored and resolves empty is NOT refused. Right, and pinned as a CONTROL in both ignore and upsert (three loads, one row), beside a record whose key reference is authored '' and is refused.
  • A whitespace-only value is a value (no trim). Unchanged, pinned as a CONTROL.
  • A mode-less load (no mode, no defaultMode) is not keyed and is unchanged. Right as stated; only a request built without the parse reaches it.
  • Dry run (validate) reports the refusal and logs nothing. Right, pinned.
  • Public surface: no schema, export or Zod change. The load result gains ReferenceResolutionError rows with targetField: '(externalId)', and success is false where it was true. Read at every consumer: the boot seed (AppPlugin) reports and continues; the marketplace install reports counts; the publish receipt carries seedApplied.success: false. No in-repo caller sets haltOnError, whose default is false, so "every other record and dataset loads" holds on every shipped path.
  • Against the published spec on main: SeedSchema.mode declares "Every mode matches on externalId, so a replay finds the row an earlier load wrote instead of inserting it again". A blank-key record defeated that sentence. The narrowing makes the spec's own promise real; it takes no declared capability away. ADR-0038 reads the same way (seeds are upserts keyed on externalId), and no ADR decides the opposite.
  • findDuplicateFallbackSets: wording only. What is refused is unchanged. The cause it drops is gone on this tree: 8596c80eda (an upgrade replaces the package's datasets on the replay list) is an ancestor of the head.

② Semver level

@objectstack/metadata-protocol: minor, with Clause-②: no (narrowing) and Metadata-protocol: narrowed on the PR body and in the changeset body. Correct.

  • narrowed is the right kind: a value an author could write is now refused. A kind takes at least minor on a package whose published source the diff moves, and seed-loader.ts is that source. patch would be wrong here and the level gate would refuse it.
  • minor, not major: the launch-window rule (ADR-0087, the level half) ships a metadata-facing break as minor and makes the banner and the disposition the carriers. Both are present: the ! title, the **BREAKING** paragraph with FROM, TO and the author's fix, and the adr-0087 marker reading registered seed-key-blank-record-refused, an id that resolves and is new in this diff.
  • no-migration-prescription is closed to a narrowed changeset (ADR-0087, the disposition-vocabulary addendum as amended), so a registered semantic entry is the required disposition, and it is the one taken.
  • @objectstack/spec is not named in the changeset although the ledger entry lives in its source. Accepted: the fixed group versions in lockstep, the level predicate asks for at least one moved package at minor, and the sibling entry 18.seed-object-unknown-refused landed the same way.
  • Check Changeset concluded success on d56b6f80.

③ Boundary flags

  • open_questions: empty in both os-dev-reports. Nothing to answer.
  • Dev deviations, each answered. The packages/spec fence: one data-only ledger entry, authorized by the claim amendment 7003089279. The widened test surface (objectql, runtime and three metadata-protocol harness files): covered by the claim amendment 7006195595. The seed: the duplicate-fallback refusal still names "an upgrade within this process" as a cause, which the install door no longer produces after #35109 #35376 docs bullet: inside the claimed surface. The stray /final.pid at the filesystem root: outside the repository and outside this review; a person removes it.
  • Out-of-scope findings. The Skills-docs follow-up is now card Skills docs: a seed record in a keyed mode must carry every externalId field or it is refused at load (seeds.md) #35480 (L1's R1, confirmed above). The stale comment in seed-loader-locale-scope.test.ts is noted in the PR and accepted as a note.
  • SQL push-down: no finding. The change adds no query, no id materialisation and no in-app join. The refusal reads the in-memory record before any lookup, and the dataset-level scan it removes was in memory too.
  • Dogfood battery (required by the (narrowing) arm): MISSING on this head. The newest os-dev-report (7007256277) pins it to acdab3018ae0ad4de711fa93a7bb3cf8fe52fb6c: lock verdict command-exit 0, 482 files and 4092 tests passed, zero blank-key refusals in the boot logs. d56b6f80 is a non-merge commit on top of that sha. The land gate accepts the head itself or a sha the head reaches over merges of the base alone, so it will refuse this pin. The battery must be re-run and reported on the final head before landing. S1 below moves the head again, so one run on the head that carries its fix covers both.
  • Check-runs. On acdab301 all 70 concluded: success, or skipped by the pull-request speed (the dogfood shards among them), including every required context. On d56b6f80 the runs had not all concluded when this record was written: Check Changeset, Governed Surface Queue Guard, Lint · PM dispatch-gates and the PR-body guards were success; the build, type-check and test shards were still running. This record certifies none of those; the landing seat reads them.
  • Noted for the seat, not graded. No authoring door judges this rule: defineSeed, os validate and lint read no record key value, so a code-defined stack first meets the refusal at boot. The ruling scoped the refusal to the load, so this is not a defect of the PR; it is a candidate follow-up card under Prime Directive 12 (reject at authoring).

④ Design judgment

packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts (hits). Holds.

  • Shape: id, surface, replacement, reason, acceptanceCriteria, typed SemanticMigration; the filename is derived from the id and the major; no id collides (main's 18.seed-object-unknown-refused is distinct). conversionIds is rightly absent: there is no mechanical rewrite, since only the author knows the value that names the row. relevantWhen is rightly absent: the surface also lives in stored seed items and package bodies, which no top-level stack key proves absent, so the entry stays listed.
  • D3 ("never silence"): the entry names the judgment delegated to the consumer and how to prove it (every record carries each key field; three restarts hold one row per record; no blank-key refusal in the boot log or the load result). The criteria are checkable by a consumer's own verify loop.
  • Against the code, sentence by sentence: the three keyed modes, the three blank spellings, composite and single-field (default name), "one error naming the object, the record index, the blank field and the fix", "once per dataset" in the log, "after expressions resolve and before references do", and "rows earlier loads duplicated are left" all match loadDataset at seed-loader.ts:2330-2359. The measured 2, 3, 4 is the cards' own reading.
  • No tracker number in any printed string; the two card numbers sit in the leading comment, as the sibling entries do.

packages/metadata-protocol/src/seed-loader.ts (implementing). The refusal agrees with the ruling and the entry: placed after expression resolution, the organization stamp and the per-organization id, before any reference resolves; errored counts it so the four counters still reconcile against total; nothing of the record is written or deferred; the log line is said once per dataset and never on a dry run. I tried to break it on a composite key containing the stamped organization column (stamped before the check, so not blank), on an id key under per-organization replay (the assigned id is on the record by then), on a deferred key reference (authored, so not blank) and on haltOnError (off on every shipped path). It held.

S1 (should-fix) — the default-key wording never prints on a shipped path, and its pin exercises a path production does not take. blankSeedKeyRefusal adds "(the default key when a dataset names none)" when dataset.externalId === undefined (seed-loader.ts:2344, :489). Every production caller parses its request through SeedLoaderRequestSchema first (the boot seed, the per-organization replay and the install through loadStored; both publish doors through safeParse; this file's own comment at :312-314 says so), and SeedSchema.externalId carries .default('name') (seed.zod.ts:212). A parsed dataset therefore always carries externalId: 'name', the branch is false, and the author who never wrote externalId is told only that the record "is keyed on externalId 'name'", a key they never wrote. That is the commonest way to meet this refusal, and the one where a whole dataset stops seeding. The pin at seed-loader-empty-key-warn.test.ts:177-186 passes because it hands load() an unparsed literal. The PR body's "default name (message says it is the default)" is thus true only for a direct, unparsed caller. Fix: decide the wording from something that survives the parse (for a single-field key of name, say that name is also the key a dataset gets when it names none), or drop the hint and the claim; and pin the message through a parsed request (loadStored, or SeedLoaderRequestSchema.parse). The refusal itself is correct on every path; this is the prescription's text and its test.

Nits (no effect on correctness or the contract; ride the S1 push or a follow-up):

  • N1 (nit) — packages/metadata-protocol/src/protocol.ts:9080-9082, outside the diff, still says "The boot loader never refuses; it warns once for a keyed dataset whose every record keys empty". This PR makes both halves false. It is the only such sentence left in source or hand-written docs.
  • N2 (nit) — content/docs/data-modeling/seed-data.mdx:83 says the check "reads the key as written in the seed". An expression in a key field is evaluated first and is refused when it comes out empty, and the same page says at :782 that a record with os.user.id "still seeds". One clause closes it: the key is read after the record's expressions resolve.
  • N3 (nit) — the docblock calls isBlankSeedKeyValue "the one blank rule" externalIdKey keys '' by. The single-field arm is String(record[externalId] ?? ''), which is also '' for an empty array, so a single-field key authored [] still keys empty, is not refused and is inserted on every load. Not reachable from any stock dataset; a follow-up card, or one line in the helper.

The two pin files (enforcing). They pin the composite key with '', null and an omitted component (three loads, 2, 2, 2 rows, one error and one log line per load), the single-field key, an expression that evaluates empty, update, the dry run, the all-empty dataset (every record refused, one line, no warn), and the CONTROLs: a fully keyed dataset, a whitespace-only value, a deferred key reference in ignore and upsert. The dev's ablation (the blank filter forced empty: 11 refusal pins red, every CONTROL green) shows the pins bite. The one gap is S1's: the default-key message is pinned on the unparsed path only.

content/docs/data-modeling/seed-data.mdx (read for agreement). Import Modes and the composite-key section state the rule as the loader enforces it; every defineSeed example on the page carries its key field (the TestUser example now names externalId: 'email'); the fallback bullet matches the new refusal text. N2 is the one imprecision.

One should-fix (S1), three nits; a delta review is owed on the S1 fix, and the dogfood battery on the head that carries it.

Security-touching: no

Implemented-by: claude/issue-34857-blank-seed-key-refused
Reviewed-by: isolated-l2-35459

VERDICT: PASS

…the parsed request

The default-key hint in the blank-key refusal fired only for an undeclared
externalId, which a parsed request never carries (the parse defaults it to
name). The hint now rides on a single-field key of name: the message says
name is also the key a dataset gets when it names none. The pin goes through
SeedLoaderRequestSchema.parse. The protocol.ts docblock no longer says the
boot loader never refuses, and the seed-data docs say the key is read after
the record's expressions resolve.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8aa97502e42b6f561a89cfedfc6a74a9b63bd2f9
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts + packages/metadata-protocol/src/seed-loader.ts, packages/metadata-protocol/src/seed-loader-empty-key-warn.test.ts, packages/metadata-protocol/src/protocol.ts, content/docs/data-modeling/seed-data.mdx (read for agreement)

① Derived judgments

Delta review of PR #35459 (cards #34857 and #35336) against the record on d56b6f80c17b62bb829152d0b176cceea06b61bd. The head is one plain commit on top of it, four files, 42 lines added and 13 removed; the base is unchanged. Read: that commit's diff, the tree at the head where it lands, the card's newest os-dev-report (7008747872), card #35485, and the check-runs on the head. Everything the first record judged outside these four files is byte-identical and stands as judged.

  • Accept set: unchanged. The commit moves no refusal. What a keyed load refuses, what it writes and what it counts are the same lines as on the reviewed head; only the wording of one refusal message changes.
  • Refusal text, one clause. A record refused on a single-field key of name now reads "keyed on externalId 'name' (also the key a dataset gets when it names none)". Every other key, a composite containing name included, carries no such clause. Right: the sentence is true whether the author wrote externalId: 'name' or left it out, so it cannot mislead either reader.
  • No schema, export, ledger or changeset byte moves. The ledger entry and the changeset are those of the reviewed head.

② Semver level

Unchanged and still correct: @objectstack/metadata-protocol: minor, Clause-②: no (narrowing), Metadata-protocol: narrowed, the BREAKING paragraph and the registered seed-key-blank-record-refused marker. A message clause, a docblock and a docs sentence publish nothing that asks for another level. The changeset makes no claim about the default-key clause, so it needed no edit.

③ Boundary flags

  • open_questions: empty in report 7008747872.
  • Dev deviations. One pin added beyond the fix (a name+sku key carries no hint): welcome, it bounds the clause. The first test run had no built dist and is recorded as not measured, then rerun: answered by the report itself.
  • Out-of-scope finding. N3 is now card Seed keyed-mode record whose single-field key is authored as an empty array keys empty and is inserted on every load #35485 (open, domain:server, p3).
  • SQL push-down: no finding. The commit adds no query and no read.
  • Dogfood battery (required by the (narrowing) arm): present on this head. Report 7008747872 is the newest os-dev-report on seed: a composite externalId record with one component authored blank inserts another row on every load, with no warning #34857, names this pull, and its dogfood_battery opens with 8aa97502e42b6f561a89cfedfc6a74a9b63bd2f9: lock verdict command-exit 0, 482 files and 4092 tests passed, no failure, zero blank-key refusals in the log. The sha is the head itself, so the land gate's pin holds.
  • Check-runs on this head: all 74 concluded, none failed: 62 success and 12 skipped. Of the eleven required contexts ten are success (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) and Lint UI is skipped, as it was on the reviewed head: the diff touches nothing under ui/. The other skips are the opt-in and queue-only jobs, the dogfood shards among them, which the pull-request speed leaves to the queue; the battery line above is what stands in for those shards. Check Changeset is success.

④ Design judgment

S1: closed. blankSeedKeyRefusal no longer takes a defaultKey argument read off dataset.externalId === undefined; it decides the clause itself from the key it is handed, a single field equal to DEFAULT_EXTERNAL_ID_FIELD (seed-loader.ts:493, the constant at :69). That value survives the parse, so the clause now prints on the boot seed, the replay, the install and both publish doors, which is where the first record found it absent. The pin is rebuilt on the production shape (seed-loader-empty-key-warn.test.ts:178): the request goes through SeedLoaderRequestSchema.parse with no externalId, the test first asserts the parse filled name, then three loads hold one row and the message carries the clause. The CONTROL at :204 holds a name+sku key to no clause. I looked for the old condition and the old wording anywhere in source, tests, docs and skills at this head: none is left. The docblock above the function states why the clause cannot tell an authored name from a defaulted one, which is the fact the next editor needs.

N1: closed. protocol.ts:9080-9082 now says the boot loader refuses each keyed record that leaves a key field blank, one error per record, and loads the rest. That is what loadDataset does. Three lines replace three, so the file's line count is unchanged.

N2: closed. seed-data.mdx:83-86 now says the key is read after the record's expressions resolve, so an expression that comes out empty is refused, while a reference the load cannot resolve yet is not blank. That matches the loader and the pinned expression case.

N3: not fixed here, carried by #35485. Accepted as a follow-up; it was a nit and stays outside this PR.

No must-fix, no should-fix.

Security-touching: no

Implemented-by: claude/issue-34857-blank-seed-key-refused
Reviewed-by: isolated-l2-35459

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c147762a1c45aa8d7b742c34f838d6d723d6de75
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts + packages/metadata-protocol/src/seed-loader.ts, packages/metadata-protocol/src/seed-loader-empty-key-warn.test.ts, packages/metadata-protocol/src/seed-loader-deferred-key-reference.test.ts, packages/metadata-protocol/src/protocol.ts, content/docs/data-modeling/seed-data.mdx (read for agreement)

① Derived judgments

Merge-only delta of PR #35459 (cards #34857 and #35336) against the record on 8aa97502e42b6f561a89cfedfc6a74a9b63bd2f9. Read: the head commit and its parents, the PR's net diff before and after the merge, what the merged-in commits of main change, the card's newest os-dev-report (7009823966), and the check-runs on the head. Everything was done with git reads on the object store; nothing was checked out, built or run.

  • The head is a merge and nothing else. It has two parents: the reviewed head 8aa97502 first, and 819c0679a8917fddd8dba7314c8de2c27d03e46b second, which is on main. No commit of the PR's own was added: the PR side still holds the same five non-merge commits.
  • The PR's hunks are byte-identical. The net diff against main names the same 14 files as before the merge. Each of the 14 has the same blob at this head as at 8aa97502, and the patch-id of the whole net diff is the same before and after. main touched none of the 14 between the old base and 819c0679, so no hunk was re-merged, by hand or by git.
  • The merge commit carries no edit of its own. Every path outside those 14 equals main at 819c0679, and git's own merge of the two parents, computed in the object store, gives exactly this head's tree. The report's "resolved nothing by hand" is true of the tree.
  • Accept set, public surface, ledger and changeset: unchanged from the reviewed head. The merged-in commits add no entry under packages/spec/src/migrations/, so no id sits beside seed-key-blank-record-refused, and they do not touch seed.zod.ts, seed-loader.zod.ts or .changeset/config.json.

② Semver level

Unchanged and still correct: @objectstack/metadata-protocol: minor, Clause-②: no (narrowing), Metadata-protocol: narrowed, the BREAKING paragraph and the registered seed-key-blank-record-refused marker. The changeset file is the same blob. Check Changeset is success on this head.

③ Boundary flags

④ Design judgment

S1: closed. Closed on 8aa97502; the files that closed it (seed-loader.ts, seed-loader-empty-key-warn.test.ts) are the same blobs here. N1 and N2 stay closed the same way (protocol.ts, seed-data.mdx). N3 is carried by #35485.

What main brought in, read against what the PR's paths mean. Twenty-five commits; none changes the loader's inputs, its schema or its callers' handling of a failed load.

  • packages/metadata-protocol: the merged-in changes are the capability name-conflict refusal at the save door (protocol-save-door-refusals.ts, protocol-save.ts), the disabled-package guard on $expand (protocol-query-validation.ts), and the package namespace rename. None touches seed-loader.ts, the seed externalId save-door refusal, or the docblock this PR corrected in protocol.ts. The ledger entry and the loader still agree sentence by sentence.
  • The duplicate-fallback wording still holds. main now also takes an uninstalled package's seed datasets off the shared replay list (marketplace-install-local-plugin.ts). That removes one more way a stale set could linger, so "most often two packages marking the same object" is, if anything, more exact than before.
  • packages/objectql: insert and delete now open their after-abort unit inside the middleware chain. The blank-key refusal returns before any write is attempted, so its meaning does not move; the PR's objectql fixture file is the same blob and its shard is green on the merged tree.
  • One new producer of keyed seeds, noted. The scenarios gallery export (packages/qa/scenarios/src/export/trial-package.ts) now writes each card's seed rows as data: datasets keyed externalId: 'id', each row keeping the card's row id. That is the shape this PR's rule asks for. I did not establish that the card schema forces an id onto every seed row; a row without one would now be refused at load where it used to be inserted again on every load, which is the PR's declared behaviour and not a conflict between the two changes. Test Core is green on the merged tree, and the battery logged zero blank-key refusals.

No must-fix, no should-fix.

Security-touching: no

Implemented-by: claude/issue-34857-blank-seed-key-refused
Reviewed-by: isolated-l2-35459

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Landing · head c147762a1 (merge of main onto 8aa97502e, PR hunks byte-identical) · after L1-a ACCEPT 7007542258 (R1 applied: #35480), CONTRACT_REVIEW_TIER PASS 7007796559, delta PASS 7008971103 (S1, N1, N2 closed) and merge-only delta PASS 7009934789 · 2026-11-19T13:06Z

Probe Reading
Checks at head c147762a1 60 success, 10 skipped, 0 failed
Dogfood battery os-dev-report 7009823966 on this head: exit 0, Test Files 482 passed, Tests 4092 passed, no failures, 0 blank-key refusals
check-governed-merges.mjs --pr 35459 NOT governed
K 3, no locale pack
Contract record PASS + two delta PASSes, no open must-fix or should-fix; N3 → #35485, authoring door → #35486

Status: pr_ready + automerge_enable. On MERGED the area closes out #34857, #35336 and #35376.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Re-queue · head c147762a1 unchanged · 2026-11-19T13:28Z

Dequeued on CI_FAILURE in merge-group run 44530279296: Test Core (2/10) failed on packages/qa/scenarios/test/export/refresh.test.ts › galleryRefresh "does not skip when one listed app is on an older version…" — Test timed out in 5000ms (39 of 40 files passed). That package is outside this diff (seed loader, protocol docblock, seed docs, one ledger entry), and the same head was green on every PR check (60 success, 0 failed). Shards 3, 9, 10 were cancelled by the failure. One re-queue; a second failure of the same test is read as real.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/scenarios:test:  FAIL  test/export/refresh.test.ts > galleryRefresh — the quiet skip > does not skip when one listed app is on an older version, or when the index lists no app
      ↳ 失败原因: @objectstack/scenarios:test: Error: Test timed out in 5000ms.
    @objectstack/spec:test:      ✓ inverts the card's measured control: the three bogus keys now FAIL parse instead of adding zero warnings  335ms
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

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

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

历史信号:

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

分诊清单:

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

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

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/scenarios:test:  FAIL  test/export/refresh.test.ts > galleryRefresh — the quiet skip > does not skip when one listed app is on an older version, or when the index lists no app
      ↳ 失败原因: @objectstack/scenarios:test: Error: Test timed out in 5000ms.
    

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

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

历史信号:

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

分诊清单:

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

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

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
…ank-seed-key-refused

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e6c172e87c4735552082b36dd294e178f71f0f76
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts + packages/metadata-protocol/src/seed-loader.ts, packages/metadata-protocol/src/seed-loader-empty-key-warn.test.ts, packages/metadata-protocol/src/seed-loader-deferred-key-reference.test.ts, packages/metadata-protocol/src/protocol.ts, content/docs/data-modeling/seed-data.mdx (read for agreement)

① Derived judgments

Merge-only delta of PR #35459 (cards #34857 and #35336) against the record on c147762a1c45aa8d7b742c34f838d6d723d6de75. Read: the head commit and its parents, the PR's net diff before and after the merge, the 20 commits of main the merge brings in, the card's newest os-dev-report (7009823966), the land gate's battery rule in scripts/pm/label-write.mjs, and the check-runs on the head. Everything was done with git reads on the object store and REST reads; nothing was checked out, built or run.

  • The head is a merge and nothing else. It has two parents: the reviewed head c147762a1c45aa8d7b742c34f838d6d723d6de75 first, and 41ee21810a1c7f16d2ba15845ce88d04e4334072 second. 41ee21810a is on main's first-parent line, three commits below its tip b65488a8a9 when read, and it is the pull's base as GitHub reports it. The two parents' merge base is 819c0679a8, the commit the previous merge brought in. No commit of the PR's own was added: the PR side still holds the same five non-merge commits.
  • The head's tree is git's own merge. Merging the two parents in a scratch object store with no merge driver registered gives tree 42bc7354c191455a3d27529f9bdc49aa6aa8e86e with no conflict, in either parent order. That is the head's tree. From c147762a1 to the head the difference is main's own 819c0679a8→41ee21810a: the same 122 paths and the same patch-id. The merge commit carries no edit of its own.
  • The PR's patch against main is unchanged. The net diff names the same 14 files, 504 lines added and 138 removed, and its patch-id is the same before and after the merge. Thirteen of the 14 are the same blobs as at c147762a1.
  • The fourteenth is packages/metadata-protocol/src/protocol.ts, the one PR file main touched (fix(metadata-protocol): the bare save, delete, publish, draft and history doors follow the row-held base the bare read serves #35450). The PR's hunk there is the same three docblock lines at the same place (lines 9077–9085), with the same text. main's five hunks sit at lines 4272, 7870, 7964, 9619 and 11059, the nearest more than 500 lines away. All five change docblock lines only, 30 for 30, so the file is still 11,705 lines.
  • Accept set, public surface, ledger and changeset: unchanged from the reviewed head. The merged-in commits add no entry under packages/spec/src/migrations/, so no id sits beside seed-key-blank-record-refused, and they do not touch seed.zod.ts, seed-loader.zod.ts or .changeset/config.json.

② Semver level

Unchanged and still correct: @objectstack/metadata-protocol: minor, Clause-②: no (narrowing), Metadata-protocol: narrowed, the BREAKING paragraph and the registered seed-key-blank-record-refused marker. The changeset file is the same blob. Check Changeset is success on this head.

③ Boundary flags

④ Design judgment

S1: closed. Closed on 8aa97502; the files that closed it (seed-loader.ts, seed-loader-empty-key-warn.test.ts) are the same blobs here. N1 and N2 stay closed the same way: seed-data.mdx is the same blob, and the docblock hunk in protocol.ts is the same text. N3 is carried by #35485.

What main brought in, read against what the PR's paths mean. Twenty commits, none a merge; none changes the loader's inputs, its schema or what its callers do with a refused record.

No must-fix, no should-fix.

Security-touching: no

Implemented-by: claude/issue-34857-blank-seed-key-refused
Reviewed-by: isolated-l2-35459-d3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Landing · head e6c172e87c (main 41ee21810a merged clean onto c147762a1, PR patch-id unchanged) · after seat merge-only delta PASS 7014240984 · 2026-11-19T15:51Z

Probe Reading
Checks at head e6c172e87c 60 success, 10 skipped, 0 failed
Dogfood battery green on c147762a1 (7009823966); the head reaches it over one base merge only
K 20 → main merged (landing-operations K≥15)
Queue blocker the 5s timeout in scenarios refresh.test.ts that dequeued this PR twice was split by #35531 (merged 41ee218), now in this head's base

Status: pr_ready + automerge_enable. On MERGED the area closes out #34857 and closes #35336 and #35376 by hand.

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.

seed: a composite externalId record with one component authored blank inserts another row on every load, with no warning

2 participants