Skip to content

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

Closed
2 of 2 issues completed

Description

@objectstack-fleet

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Finding reported by area o3-G while building PR #34854 (#34800), report 6950154378. It was measured. A seat-filed card: grading and domain:* belong to triage.

Suggested-grade: p2 · domain:server · size S
Dedupe words: seed composite externalId blank component duplicate

What happens

A seed record on an object with a composite externalId has one key component authored blank. On every load, that record inserts another row: the table went from 2 to 3 to 4 rows over three loads. Nothing warns.

The #28952 warning fires only when every record keys empty, so a record with a single blank component goes unnoticed.

Expected

Either the load warns, naming the record and the blank component, or such a record is refused at validation the way an unkeyable seed is. It must not insert a duplicate on every load.

Related: #28952 (the all-empty warning), #34800 / PR #34854, #34613.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1197, 14:5xZ): p2 · domain:server → pm:queue.

    Theme: install, upgrade and uninstall reliability (seed lifecycle). A blank component in a composite externalId inserts a duplicate row on every load, with no warning. Same family and grade as #34613.

  2. added
    domain:server
    pm:queue
    priority:p2
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Seat ruling record · 2026-11-19T05:19Z

    Ruling-ref: maintainer 2026-11-19T05:19Z on seat 5's decision card for #34857, option chosen verbatim: 「B1 加载时拒收这一条」. Analysis: project file objectstack-seat5/area-ux/pkg-1/decision-34857.md.

    Execution (area pkg-1, after #34856 lands): at load, where the authored key is read and before references resolve, a record whose composite externalId has a blank component (empty string, null, or omitted) is not written. The load result carries one error naming the object, the record index, the blank key field and the fix. Other records load as before. Narrowing: Clause-② no (narrowing) arm, Metadata-protocol narrowed, dogfood battery on the final head, contract review owed. The reverse pin in seed-loader-deferred-dropped.test.ts that uses a blank component as its keyless device is remade, not deleted. Deferred references (#34856) stay separate. This departs from a seat route on PR #29066, not from a maintainer ruling. A single-field-key duplicate is a separate finding card if a stock count confirms it.

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

    Claim: PM loop round 5 · area pkg-1 · fold chain head (#34857 + #35336, p3 #35376 rides) (the maintainer, verbatim, 2026-11-19T05:19Z on the decision card: 「B1 加载时拒收这一条」; 2026-11-19T05:24Z on #35336: 「是,和 #34857 一起做」) · 2026-11-19T07:27Z
    Session: session_01Utp6CaysxGzF62ACvZ1x9x
    Account: os-bill
    Area: pkg-1
    Branch: claude/issue-34857-blank-seed-key-refused
    Worktree: objectstack-issue-34857 (os-dev worktree in the pkg-1 container)
    Domain: domain:server
    Seat: repo:objectstack#5
    File surface: packages/metadata-protocol/src/seed-loader.ts (the per-record key check where the authored key is read, before references resolve; the #28952 all-empty warning where it composes; findDuplicateFallbackSets text and docblock for #35376), the seed-loader harness test files the pins belong in (AGENTS.md shared-harness rule) including the reverse pin seed-loader-deferred-dropped.test.ts (remade, not deleted), seed-loader-empty-key-warn.test.ts, seed-loader-locale-scope.test.ts (#35376's pin), content/docs/data-modeling/seed-data.mdx (the keyless example at ~:313 and any sentence stating a blank key inserts), root .changeset/. ⛔ packages/spec/**, ⛔ skills/** (Skills-docs follow-up owed, the seat files it). Stop on breach and report.
    Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: platform — packages/metadata-protocol/src/seed-loader.ts externalIdKey / seedLandedKey answer '' for a record with a blank key component (composite) or a blank single key, so the record matches nothing and is inserted again on every load with no warning (measured 2 → 3 → 4 rows); the #28952 warning covers only an all-empty dataset. Reached by every author-written seed (0 of 26 in-repo datasets today).
    Thread-read: 7000515976
    Premise: holds — on origin/main 35c63310 (after PR #35361): seedLandedKey returns '' on any empty component; the per-record insert path has no refusal for it.
    Serial constraints cleared: PR #35361 (#34856, same file) MERGED; overlap-check.mjs on a probe branch touching seed-loader.ts: 0 open PR heads share it, base merges cleanly. Same-area PR #35374 does not touch the loader.
    Fold (execution-duties five gates): ① #34857 and #35336 are one defect (a blank externalId value keys '' and re-inserts) with one fix (ruling B1, extended by the maintainer to single-field keys) ✓; ② one package, one changeset ✓; ③ both ruled (7000515976, 7000600379) ✓; ④ each independently checkable — composite blank component refused / single-field blank refused ✓; ⑤ excluded look-alikes: #34856 (deferred reference, authored but resolves empty — must NOT be refused; merged), #28952 (all-empty dataset warning — kept or folded into the per-record error, the dev measures and reports). p3 #35376 rides as a same-file text fix (≤5 cards).
    Pre-claim lane: domain:server (packages/metadata-protocol/**, content/docs/**)
    Pre-claim deps: #34856 / PR #35361 merged 2026-11-19T07:19Z; #35376 lands after PR #35374 (its text names the in-process upgrade that PR removes) — if #35374 has not merged when this PR is ready, #35376's item drops out of this PR.
    Prior rulings read: maintainer B1 on #34857 (7000515976) and its extension on #35336 (7000600379); Fable analysis objectstack-seat5/area-ux/pkg-1/decision-34857.md; #28952, #34613 / PR #34791 (unkeyed seeds refused at validation), #34800 / PR #34854 and #34856 / PR #35361 (deferred references stay separate); PR #29066's seat route ("the boot loader never refuses") is departed from by the maintainer's ruling; thread: none

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

    Claim: amended by the area before the PR (ADR-0087 registration gate) · 2026-11-19T07:49Z
    Session: session_01Utp6CaysxGzF62ACvZ1x9x
    Account: os-bill
    Area: pkg-1
    Branch: claude/issue-34857-blank-seed-key-refused
    File surface: as claimed, plus one ADR-0087 semantic ledger entry under packages/spec/src/migrations/entries/semantic/ for this card's narrowing (data only, no export, no Zod change; required by check-adr-0087-registration for a Metadata-protocol: narrowed changeset). No other packages/spec/** path.
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed

  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
    os-dev-report

    {
     "issue": 34857,
     "status": "done",
     "branch": "claude/issue-34857-blank-seed-key-refused",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35459",
     "head": "755c75a581174ecdfbd423c0a4174ecc89479cbc",
     "session": "session_01Utp6CaysxGzF62ACvZ1x9x",
     "premise_still_valid": true,
     "summary": "Ruling B1 (7000515976, extended to single-field keys by 7000600379): in the keyed seed modes (ignore, upsert, update) a record whose externalId value is blank (undefined, null or '', any composite component or the single field, default name) is refused in loadDataset's record loop, after expressions resolve and the organization stamp, before any reference resolves: not written, one ReferenceResolutionError naming object, record index, blank field(s) and the fix, one logger.error per dataset (none on dry run), other records load. A2: the per-record refusal replaces the #28952 dataset-level warn (its claim 'written as a new row on every load' turns false and it would double-report; the per-record message carries its prescription). #35376 rides: PR #35374 merged 2026-11-19T08:44Z before the PR opened, so findDuplicateFallbackSets' text and docblock and the seed-data page now name only two packages marking one object. Docs, one changeset (metadata-protocol minor, BREAKING, registered ADR-0087 entry) and the PM-authorized ledger entry land with it.",
     "readings": {
      "A1": "holds, measured on 35c63310 with a copy of the base loader, three loads each: single-field code 2,3,4 rows 0 warn 0 error; default name 2,3,4; composite '' 2,3,4; composite null (ignore) 2,3,4. After the fix 1,1,1 with one error per load.",
      "A2": "chose replace: per-record errors replace the #28952 all-empty warn; one log line per dataset; pinned in seed-loader-empty-key-warn.test.ts (#28952 describe: every record refused, one error each, logger.warn not called).",
      "A3": "left as is: whitespace-only counts as a value; CONTROL pin added.",
      "A4": "fixed: TestUser example gains externalId 'email'; Import Modes and composite sections state the rule; no sentence said a blank key inserts.",
      "35376": "in (PR #35374 merged_at 2026-11-19T08:44:32Z; origin/main merged once before opening)"
     },
     "tests": "pnpm --filter @objectstack/metadata-protocol test on 755c75a5: Test Files 358 passed | 9 skipped (367), Tests 23238 passed | 45 skipped (23283). typecheck metadata-protocol + runtime + objectql: exit 0 (0 TS errors). runtime seed-loader/seed-datasets/app-plugin.seed-locale-producer: Tests 93 passed (93); objectql engine-seed-required-deferral: Tests 7 passed (7). Consumer sweep on 64abfecd (dist rebuilt): runtime 36, objectql 26, cloud-connection 26, rest 10, metadata 4, plugins/organizations 5, cli unit 3 seed-related test files, green after re-keying runtime seed-loader.test.ts and objectql engine-seed-required-deferral.test.ts (first run: runtime 1 failed, objectql 6 failed). Ablation (scripts/ablation-replace.mjs, anchor 1->0, blob b10e9f2e->23591f6e): blankKeyFields forced [] -> Tests 11 failed | 22 passed (33), every refusal pin red, every CONTROL green; restored blob b10e9f2e == HEAD, git diff HEAD empty. Pins import ./seed-loader.js from source, so no build leg.",
     "gates": "local, on 755c75a5, each exit 0 captured before any pipe: check-adr-0087-registration --base origin/main (registered seed-key-blank-record-refused, new here) and --self-test, 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. dispatch-gates --commands derived 117 families (diff touches packages/spec); --ran: 21 run locally, the rest UNRUN locally and declared to CI (declared narrowing). overlap-check --branch=HEAD: VERDICT clean exit 0. PR check-runs at report time: in_progress (Type Check, Lint, Check Changeset, PR-body guards, Governed Surface Queue Guard among them); not waited on.",
     "dogfood_battery": "755c75a5 · os-verify-lock VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures; zero blank-key refusals in the boot logs. (Also green on pre-merge 08114886 with the same counts.)",
     "line_budget": "n/a: no skills/** or ratcheted ledger touched. Diff vs origin/main: 13 files, +470/-133.",
     "files_changed": [
      ".changeset/34857-seed-blank-key-record-refused.md",
      "content/docs/data-modeling/seed-data.mdx",
      "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-dropped.test.ts",
      "packages/metadata-protocol/src/seed-loader-deferred-key-reference.test.ts",
      "packages/metadata-protocol/src/seed-loader-locale-scope.test.ts",
      "packages/metadata-protocol/src/seed-loader-pointer-pair.test.ts",
      "packages/metadata-protocol/src/seed-loader-composite-key-diagnostic.test.ts",
      "packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts",
      "packages/objectql/src/engine-seed-required-deferral.test.ts",
      "packages/runtime/src/seed-loader.test.ts",
      "packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts"
     ],
     "deviations": [
      "packages/spec fence: one data-only ADR-0087 ledger entry 18.seed-key-blank-record-refused.ts, authorized by the PM mid-run (no export, no Zod change; name does not collide with PR #35388's 18.seed-object-unknown-refused). No @objectstack/spec bump in the changeset, as the sibling #34864 did.",
      "File surface widened past the claim by two consumer test fixtures the narrowing turned red: packages/objectql/src/engine-seed-required-deferral.test.ts (datasets keyed on default name whose records carry none: re-keyed, keyless case moved to the mode-less device) and packages/runtime/src/seed-loader.test.ts (a reverse pin of the insert, flipped to the refusal). Also protocol.seed-external-id-refusal.test.ts, seed-loader-pointer-pair.test.ts and seed-loader-composite-key-diagnostic.test.ts in metadata-protocol (seed harness files, fixture triage).",
      "Commits: two, not three: one for the #34857 + #35336 fold (one mechanism, one check; cannot be split by card) and one for #35376, plus one merge of origin/main a9b36eff taken before opening the PR. WIP commits were squashed with --force-with-lease (all five conditions held: claude/issue-* branch, created here, only this session pushed, no PR yet, lease on the sha last pushed).",
      "#35376 also fixes the same stale cause in content/docs/data-modeling/seed-data.mdx (the fallback bullet), beyond the card's text and docblock; same file is in the claim surface.",
      "A temporary base worktree ../objectstack-issue-34857-base (detached at 35c63310, only an untracked probe file I copied in) was removed with git worktree remove --force; A1 was then measured from a copy of the base loader inside this worktree, deleted after.",
      "A mis-scoped shell variable wrote a stray pid file /final.pid (content: one pid) at the filesystem root; the harness safety check refused its removal, so it is still there for a person to delete.",
      "The first dogfood run was on 08114886 (pre-merge); the battery was rerun on the final head 755c75a5 after the merge and #35376."
     ],
     "mcp_calls": "0",
     "api_writes": "2: relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches; created pull #35459, body read back identical 9720 bytes, assignee os-bill), and the os-dev-report comment on #34857 via scripts/pm/post-stamped.mjs. git push (not REST) not counted.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: seat (Skills-docs follow-up owed): skills/objectstack-data/references/seeds.md :48, :68, :93 do not say a seed record must carry every externalId field or is refused at load; named on the Skills-docs line of the PR and changeset. noted, not filed.",
      "carrier: none · noted in PR Acceptance notes, not filed: seed-loader-locale-scope.test.ts 'an upgrade that changed the marked set (versions 1 and 2 on one list)' still describes the pre-#35374 replay list in its comment; the loader still refuses that input from a direct caller, so the test stays valid."
     ]
    }
  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

    Claim: amended by the area after the dev report 7006155915 (declaration change) · 2026-11-19T10:16Z
    Session: session_01Utp6CaysxGzF62ACvZ1x9x
    Account: os-bill
    Area: pkg-1
    Branch: claude/issue-34857-blank-seed-key-refused
    File surface: as amended, plus the seed fixture files the narrowing turned red: packages/objectql/src/engine-seed-required-deferral.test.ts (datasets re-keyed; the keyless case moved to the mode-less path), packages/runtime/src/seed-loader.test.ts (reverse pin of the old insert flipped to the refusal), and the metadata-protocol seed harness files protocol.seed-external-id-refusal.test.ts, seed-loader-pointer-pair.test.ts, seed-loader-composite-key-diagnostic.test.ts, seed-loader-deferred-key-reference.test.ts. Tests only; no other source path. PR: #35459 (folds #35336 and #35376).
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed

  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
    os-dev-report

    Addendum: landing head after merging origin/main (#35388).

    {
     "issue": 34857,
     "status": "done",
     "branch": "claude/issue-34857-blank-seed-key-refused",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35459",
     "head": "acdab3018ae0ad4de711fa93a7bb3cf8fe52fb6c",
     "session": "session_01Utp6CaysxGzF62ACvZ1x9x",
     "premise_still_valid": true,
     "summary": "Addendum: landing head. The worktree was recreated from origin/claude/issue-34857-blank-seed-key-refused (755c75a5), and origin/main 9fea3168 (includes #35388 / fe3ebc87) was merged with a plain merge commit, 4e8fade0, with no conflicts. No rebase, no force-push. On top of that, acdab301 renames the demo field in seed-loader-empty-key-warn.test.ts from code to sku, because check:error-code-casing read code: 'a' as a lowercase error code. The externalId values and message assertions were renamed with it. No fixture from #35388 needed re-keying: its seed record builder in protocol.seed-external-id-refusal.test.ts merged cleanly with this PR's id fixture, and every objectql, runtime and metadata-protocol file it touched is green. Ruling B1 behaviour is unchanged from the first report (fold of #34857 and #35336, #35376 in). The worktree was removed again after these readings.",
     "readings": {
      "A1": "holds, measured on 35c63310 with a copy of the base loader, three loads each: single-field code 2,3,4 rows 0 warn 0 error; default name 2,3,4; composite '' 2,3,4; composite null (ignore) 2,3,4. After the fix 1,1,1 with one error per load.",
      "A2": "chose replace: per-record errors replace the #28952 all-empty warn; one log line per dataset; pinned in seed-loader-empty-key-warn.test.ts (#28952 describe: every record refused, one error each, logger.warn not called).",
      "A3": "left as is: whitespace-only counts as a value; CONTROL pin added.",
      "A4": "fixed: TestUser example gains externalId 'email'; Import Modes and composite sections state the rule; no sentence said a blank key inserts.",
      "35376": "in (PR #35374 merged_at 2026-11-19T08:44:32Z; origin/main merged once before opening)"
     },
     "tests": "On acdab301: pnpm --filter @objectstack/metadata-protocol test gives Test Files 360 passed | 9 skipped (369), Tests 23261 passed | 45 skipped (23306). metadata-protocol typecheck: 0 TS errors. On 4e8fade0 + the rename (working tree), the same lock call ran objectql src/protocol-meta.test.ts, src/publish-package-drafts-seed-receipt-counts.test.ts, src/publish-seed-receipt-landed-ids.test.ts and src/engine-seed-required-deferral.test.ts: Tests 116 passed (116). It also ran runtime src/seed-loader.test.ts, src/seed-datasets.test.ts, src/app-plugin.seed-locale-producer.test.ts and src/app-plugin.seed.test.ts: Tests 107 passed (107). Typecheck for metadata-protocol, runtime and objectql: 0 TS errors. The ablation reading from the first report stands; seed-loader.ts has not changed since 755c75a5.",
     "gates": "On acdab301, each exit code captured before any pipe: check:error-code-casing exit 0 ('no unlisted lowercase error codes in 12914 scanned file(s)'). check-adr-0087-registration --base origin/main exit 0 (registered seed-key-blank-record-refused, new here). No id collision: the branch's 18.seed-key-blank-record-refused and main's 18.seed-object-unknown-refused have distinct ids, and the only repeated id under entries/ is the README example of 17.aggregation-node-distinct-retired, which is already on main. overlap-check --branch=HEAD: VERDICT clean exit 0. I grepped the other touched test files for the same lowercase code-literal shape and found two hits, both pre-existing Zod issue codes ('custom') in protocol.seed-external-id-refusal.test.ts (:216 from main, :389 from #35388); the guard passes the whole tree. PR check-runs: per the coordinator, Test Core 5/10 is red on acdab301 because of an afterAll rmSync timeout in packages/lint (all lint tests passed), which the coordinator is re-running. No change was made for it.",
     "dogfood_battery": "acdab3018ae0ad4de711fa93a7bb3cf8fe52fb6c · after the @objectstack/dogfood^... build on the merged tree · os-verify-lock VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures · zero blank-key refusals in the boot logs. The battery started after acdab301 was committed; the rename touches only a test file outside dist.",
     "line_budget": "n/a: no skills/** or ratcheted ledger touched. Diff vs origin/main: 13 files, +470/-133.",
     "files_changed": [
      ".changeset/34857-seed-blank-key-record-refused.md",
      "content/docs/data-modeling/seed-data.mdx",
      "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-dropped.test.ts",
      "packages/metadata-protocol/src/seed-loader-deferred-key-reference.test.ts",
      "packages/metadata-protocol/src/seed-loader-locale-scope.test.ts",
      "packages/metadata-protocol/src/seed-loader-pointer-pair.test.ts",
      "packages/metadata-protocol/src/seed-loader-composite-key-diagnostic.test.ts",
      "packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts",
      "packages/objectql/src/engine-seed-required-deferral.test.ts",
      "packages/runtime/src/seed-loader.test.ts",
      "packages/spec/src/migrations/entries/semantic/18.seed-key-blank-record-refused.ts"
     ],
     "deviations": [
      "packages/spec fence: one data-only ADR-0087 ledger entry 18.seed-key-blank-record-refused.ts, authorized by the PM mid-run (no export, no Zod change; name does not collide with PR #35388's 18.seed-object-unknown-refused). No @objectstack/spec bump in the changeset, as the sibling #34864 did.",
      "File surface widened past the claim by two consumer test fixtures the narrowing turned red: packages/objectql/src/engine-seed-required-deferral.test.ts (datasets keyed on default name whose records carry none: re-keyed, keyless case moved to the mode-less device) and packages/runtime/src/seed-loader.test.ts (a reverse pin of the insert, flipped to the refusal). Also protocol.seed-external-id-refusal.test.ts, seed-loader-pointer-pair.test.ts and seed-loader-composite-key-diagnostic.test.ts in metadata-protocol (seed harness files, fixture triage).",
      "Commits: two, not three: one for the #34857 + #35336 fold (one mechanism, one check; cannot be split by card) and one for #35376, plus one merge of origin/main a9b36eff taken before opening the PR. WIP commits were squashed with --force-with-lease (all five conditions held: claude/issue-* branch, created here, only this session pushed, no PR yet, lease on the sha last pushed).",
      "#35376 also fixes the same stale cause in content/docs/data-modeling/seed-data.mdx (the fallback bullet), beyond the card's text and docblock; same file is in the claim surface.",
      "A temporary base worktree ../objectstack-issue-34857-base (detached at 35c63310, only an untracked probe file I copied in) was removed with git worktree remove --force; A1 was then measured from a copy of the base loader inside this worktree, deleted after.",
      "A mis-scoped shell variable wrote a stray pid file /final.pid (content: one pid) at the filesystem root; the harness safety check refused its removal, so it is still there for a person to delete.",
      "The first dogfood run was on 08114886 (pre-merge); the battery was rerun on the final head 755c75a5 after the merge and #35376.",
      "The merge commit 4e8fade0 was pushed alone before the code-to-sku rename, so the fix landed in a second push, acdab301, not in the same push as the merge. Both were plain pushes with no force.",
      "The first full metadata-protocol run in the merged-head lock call overlapped the rename edit, so I reran that suite cleanly on acdab301 (the counts above).",
      "/final.pid was left untouched, as the coordinator asked."
     ],
     "mcp_calls": "0",
     "api_writes": "1 in this round: the os-dev-report addendum comment on #34857 via scripts/pm/post-stamped.mjs (relay). git push is not counted.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: seat (Skills-docs follow-up owed): skills/objectstack-data/references/seeds.md :48, :68, :93 do not say a seed record must carry every externalId field or is refused at load; named on the Skills-docs line of the PR and changeset. noted, not filed.",
      "carrier: none · noted in PR Acceptance notes, not filed: seed-loader-locale-scope.test.ts 'an upgrade that changed the marked set (versions 1 and 2 on one list)' still describes the pre-#35374 replay list in its comment; the loader still refuses that input from a direct caller, so the test stays valid."
     ]
    }
  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
    os-dev-report

    Addendum: L2 PASS round (S1, N1, N2) at head 8aa9750.

    {
     "issue": 34857,
     "status": "done",
     "branch": "claude/issue-34857-blank-seed-key-refused",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35459",
     "head": "8aa97502e42b6f561a89cfedfc6a74a9b63bd2f9 · one plain commit on d56b6f80, pushed without force (d56b6f80c..8aa97502e)",
     "session": "session_01Utp6CaysxGzF62ACvZ1x9x",
     "premise_still_valid": true,
     "summary": "Addendum for the L2 PASS round (7007796559). S1: the default-key hint no longer depends on externalId being undefined, which a parsed request never is, because the parse defaults it to name. It now attaches to a single-field key of name. New wording: \"keyed on externalId 'name' (also the key a dataset gets when it names none) and leaves 'name' blank\". Any other key, including a composite that contains name, gets no hint. The pin now goes through SeedLoaderRequestSchema.parse with no externalId and no mode, and asserts the parsed externalId is 'name' before checking the message. A second pin checks that a name+sku key carries no hint. N1: the protocol.ts docblock now says the boot loader refuses each keyed record that leaves a key field blank, one error per record, and loads the rest. The line count is unchanged at 11705, at the ceiling of 11705. N2: seed-data.mdx now says the key is read after the record's expressions resolve, so an expression that comes out empty is refused, while an unresolved reference is not blank. N3 was not touched. The PR body was not edited: its claim that the message says it is the default should now quote the wording above.",
     "tests": "On 8aa97502e: pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 && typecheck, under the lock: Test Files 360 passed | 9 skipped (369), Tests 23262 passed | 45 skipped (23307), tsc --noEmit clean, VERDICT command-exit 0. The first attempt failed on every file with 'Cannot find package @objectstack/spec/ui' because the recreated worktree had no dist. That is NOT MEASURED, not red. I rebuilt the @objectstack/dogfood^... closure (VERDICT command-exit 0) and reran. Ablation, run after the fix was committed: scripts/ablation-replace.mjs replaced the anchor 'const defaultKey = fields.length === 1 && fields[0] === DEFAULT_EXTERNAL_ID_FIELD;' with the old S1 condition '(externalId as unknown) === undefined' (anchor 1 -> 0, blob b1a215ad -> 22fc7f42). Result: the parsed-request pin went red, Tests 1 failed | 13 passed (14). The script restored the file: blob after restore b1a215ad = HEAD blob b1a215ad, and git diff HEAD is empty. The restore leg ran the file again: Tests 14 passed (14). No dist step was needed, because the test imports ./seed-loader.js from src.",
     "gates": "On 8aa97502e, each exit code captured before any pipe. check:error-code-casing exit 0. check:facade-delegation-only exit 0, with 'packages/metadata-protocol/src/protocol.ts: 11705 lines, ceiling 11705 (0 left; ruling 6897467376)'. check-adr-0087-registration --self-test exit 0 (819 assertions), and --base origin/main exit 0 (registered seed-key-blank-record-refused). Docs gates for the mdx, all exit 0: check:doc-anchors (1084 links resolve), check:doc-authoring, check:docs-single-h1, check:doc-frontmatter, docs-audit/check-affected-docs, docs-audit/check-drift-comment, check-docs-section-name, check:docs-transcript-drift and check:docs-redirects. Also exit 0: check:nul-bytes, check-issue-citations and check-closing-keyword-parity. overlap-check --branch=HEAD: VERDICT clean exit 0 (origin/main 5bd72570 merges cleanly; #35450, which shares protocol.ts, merges cleanly). dispatch-gates --commands flagged the tree as at least 10 commits behind origin/main. The stale files are all scripts/pm/*, none of them families this diff reads; no merge was taken, because the round said to fix on top of d56b6f80. The rest of the 121-command derived list was left to CI, as this round scoped it. PR check-runs for 8aa97502e: in_progress at report time.",
     "dogfood_battery": "8aa97502e42b6f561a89cfedfc6a74a9b63bd2f9 · ran on the pushed head, after the @objectstack/dogfood^... build of this tree · os-verify-lock VERDICT command-exit 0 (held 26m31s) · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures · zero blank-key refusals in the log",
     "line_budget": "n/a: no skills/** or ratcheted ledger touched. protocol.ts facade line count is unchanged at 11705, at its ceiling. Round diff d56b6f80..8aa97502e: 4 files, +42/-13. Diff vs origin/main: 14 files, +504/-138.",
     "files_changed": [
      "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"
     ],
     "deviations": [
      "Besides re-pinning, I added one negative pin: an authored name+sku key carries no default-key hint, so the hint cannot spread to composites that contain name.",
      "The first metadata-protocol run had no built dist in the recreated worktree. It is recorded as NOT MEASURED and was rerun after building the closure.",
      "/final.pid was left untouched, as the coordinator asked."
     ],
     "mcp_calls": "0",
     "api_writes": "1 in this round: this os-dev-report addendum comment on #34857, posted with scripts/pm/post-stamped.mjs through the relay. git push is not counted.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: coordinator (N3: a single-field key authored [] keys empty), which the coordinator is filing. Not fixed here, as instructed."
     ]
    }
  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

    os-dev-report

    {
      "issue": 34857,
      "status": "done",
      "branch": "claude/issue-34857-blank-seed-key-refused",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35459",
      "head": "c147762a1c45aa8d7b742c34f838d6d723d6de75",
      "session": "session_01Utp6CaysxGzF62ACvZ1x9x",
      "premise_still_valid": true,
      "summary": "Battery addendum to report 7008747872 for the landing head. c147762a1 is a merge of origin/main (819c0679a) into 8aa97502e (seat delta PASS 7008971103); K was 25 and main moved metadata-protocol and objectql files, so the battery was re-run on the merged head. The merge resolved nothing by hand; overlap-check clean; protocol.ts 11705 (ceiling 11705).",
      "dogfood_battery": "c147762a1 · os-verify-lock VERDICT command-exit 0 · held the lock 1742s · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures · blank-key refusals in the log: 0. Full battery, no OS_TEST_SHARD, no path filter; closure built with pnpm turbo run build --filter=@objectstack/dogfood (70/70 tasks ok).",
      "tests": "CI on c147762a1: 59 success, 10 skipped, 0 failure.",
      "gates": "unchanged from 7008747872; CI gates green on c147762a1.",
      "line_budget": "unchanged from 7008747872",
      "files_changed": "unchanged from 7008747872 (merge of main only)",
      "deviations": [],
      "mcp_calls": "0",
      "api_writes": "1 relay stroke: this comment via post-stamped.mjs.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["filed: #35485 (N3), #35486 (authoring door), #35480 (skills docs)"]
    }
  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

    Close-out 2026-11-19T16:20Z: PR #35459 MERGED as de395b428d; Fixes closed this card. Delivered: in a keyed seed mode (upsert / update / ignore) a record whose externalId field, or any component of a composite key, is missing, null or blank is refused with a named diagnostic instead of inserting another row on every load; the refusal is recorded in the migration ledger (seed-key-blank-record-refused, BREAKING, @objectstack/metadata-protocol minor) and the seed-data docs say it. Folded and closed by hand: #35336 (single-field key missing), #35376 (duplicate-fallback wording). L1-a ACCEPT 7007542258, seat L2 PASS 7007796559 with deltas 7008971103 and 7014240984; dogfood battery green on c147762a1 (7009823966). Queue blocker fixed on the way: #35531 split a scenarios test that outgrew its 5s budget. Out of scope, open: #35480 (skills docs, p2), #35485 (N3 empty-array key, p3), #35486 (authoring doors flag a blank key, p3). pm:dispatched off.

  13. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagedomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions