Skip to content

seed: an unkeyed (insert/replace) inline seed is inserted again on every un-walled start, so the first row's person references stay NULL and the dataset duplicates #34613

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Filing gate ①: class a (reproduced), from the L1 review 6936354630 on PR #34581 (card #34542), R1/R2, measured by the card thread and passed on by area o2-A. PR #34581 pins only the keyed modes and keeps Fixes #34542; this card holds the unkeyed remainder.

Suggested-grade: p2 · class a (reproduced) · domain:spec / metadata-protocol seed loader · reach: named producer, the un-walled inline boot seed (AppPlugin runs it on every start)

维护者速读

  • 现象:未开组织隔离墙的安装,每次启动都重放内联种子。数据集是 insert 或 replace 模式时,重放不按键找旧行,每次启动都再插一行。种子第 1 次落库时人员引用(要等第一个管理员或某个人注册才能补)留空,重启后补上的是新插的那一行,第一次那行永远是空的,而且数据重复。如果该字段带唯一约束,第二次插入被库拒绝,那一行也永远补不上。
  • 影响范围:只影响 insert / replace 模式的种子数据集,带键模式(ignore 默认、upsert、update)不受影响(PR test(organizations): a restart between the un-walled seed and the person's sign-up still fills the seed's person columns #34581 已钉住)。
  • 需要你做的:无。

Evidence (measured)

Two-boot probe over one SQLite file (bootStack({ databaseFile })), un-walled, origin/main 1e4656d product code. One record { name: 'Late task', assignee: 'Late Person', reviewer: 'Late Person' }; the person signs up only in the second process.

dataset after boot 1 after boot 2 after the sign-up
mode: 'insert', externalId: 'name' 1 row, NULL/NULL 2 rows first row NULL/NULL; new row names the person
mode: 'insert', no externalId 1 row 2 rows same as above
mode: 'replace' 1 row 2 rows same as above
insert / replace, name unique: true 1 row 1 row; the insert refused (UNIQUE constraint failed: seedowner_task.organization_id, seedowner_task.name, at warn) the one row stays NULL/NULL
control: upsert / ignore 1 row same row id the first row names the person

Seam

seed-loader.ts loadDataset: keyedMode = mode === 'upsert' || mode === 'update' || mode === 'ignore'; only then is existingRecords read. decideWriteAction: insert / replace always answer insert. SeedMode (packages/spec/src/data/seed.zod.ts) documents insert as "each replay inserts them again". AppPlugin runs the inline seed on every un-walled start (no first-boot-only gate).

Whether the fix is in the loader (an unkeyed replay of a landed dataset), in the boot (when an unkeyed dataset replays), or in authoring (insert on an inline boot seed refused or warned) is the claiming seat's call; it may touch the SeedMode contract.

Dedupe words

Searched open and closed cards; related, not duplicates: #30081 (closed decision: a restart overwrites edits to seeded rows), #34406 (open decision: managed-upgrade replay of new seed keys).

seed insert mode replay duplicate, inline seed every boot insert, seed replace replay restart, held person reference insert mode

Source: L1 review 6936354630 on PR #34581 (card #34542), R1/R2.

Activity

  1. added
    bug
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 · domain:spec · pm:queue · 2026-11-17T03:17Z

    ⛔ Not a claim.

  3. added
    domain:spec
    pm:queue
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

    Claim: PM loop round 1 · 2026-11-17T05:24Z
    Session: session_01ADHkmPJxG4vBVaLCBWLcWJ (area o2-A of seat repo:objectstack#2); the card thread is the dev
    Thread session: session_01ADHkmQWxrh3KzUvuZWTy7H
    Account: os-steve
    Branch: claude/project-thread-ylqtt2
    Worktree: objectstack-issue-34613
    Domain: domain:spec
    Seat: repo:objectstack#2
    File surface: the fix site the premise step names, one of packages/metadata-protocol/src/seed-loader.ts (loadDataset / decideWriteAction: an unkeyed replay of a dataset that already landed), packages/runtime/src/app-plugin.ts (when an un-walled boot replays its inline seed), or packages/spec/src/data/seed.zod.ts (SeedMode); the pin beside it (a two-boot probe over one database file: insert / replace datasets, the first row's person columns filled after the sign-up, no second row); root .changeset/. A packages/spec/src/** change or a narrowing goes to the area and the seat before any code, and then lands only through the seat (Tier H, PR kept draft)
    Container & model: L, mode:thread, model: default tier, effort: high
    Clause-②: no — expected for a loader or boot fix; if the premise step names seed.zod.ts, the PR body corrects this line and the PR goes through the seat
    Metadata-protocol: none — expected; re-read on the diff and corrected in the PR body if it differs
    Responsibility: objectstack: an un-walled boot replays its inline seed on every start, and an unkeyed (insert / replace) dataset is inserted again each time, so the first row's held person references never fill and the dataset duplicates | none | single-tenant deployments with an insert / replace inline seed; measured on 1e4656d01 by the #34542 card thread (#34613 body)
    Thread-read: 6937030855
    Premise: holds as measured in the card body (two-boot probe on origin/main 1e4656d); the card thread re-measures it on current origin/main before any edit (rule A)
    Serial constraints cleared: #34581 merged (31096af), the source of this card; no open PR changes seed-loader.ts, app-plugin.ts or seed.zod.ts (open-PR search; #34545 names the loader in prose only, its file list does not touch them)
    Pre-claim lane: domain:spec — packages/metadata-protocol/src/seed-loader.ts and possibly packages/spec/src/data/seed.zod.ts, seat repo:objectstack#2 area o2-A (seat opened the card thread for this area)
    Pre-claim deps: none open; hot files idle across open PRs
    Prior rulings read: seed,unkeyed,insert,replace,inline,inserted,un-walled,start,first,person,references,stay (+3 more) → 186 hits; ADR-0035 Decision §3, ADR-0071 Decision §1, ADR-0007 Decision §8, ADR-0021 D3, ADR-0027 Decision §12, ADR-0031 Decision §5; thread: #30081 (closed decision: a restart puts seeded records back), #34406 (open decision: managed-upgrade replay of new seed keys); repo: objectstack-ai/objectstack — the dev reads #30081's ruling and ADR-0138 D1 (seed writes only its own rows) before choosing the fix site
    Owes: a contract review at CONTRACT_REVIEW_TIER only if the fix touches packages/spec/src/**; Clause-② and Metadata-protocol are set in the PR body from the diff

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    2026-11-17T05:33Z Premise corrected · Release: needs a maintainer decision. Pre-code reading by the card thread (session_01ADHkmQWxrh3KzUvuZWTy7H) on origin/main e5336512; full table at the area's file 34613-premise.md. The claim 6939449881 is released in this stroke (assignee and lease:o2-A removed); no code was written.

    Corrected premise. The behaviour the card describes is measured and real: an insert or replace inline seed on an un-walled boot lands 1, then 2, then 3 rows, and only the newest row names the person who signed up later (with unique: true the second insert is refused and the row stays NULL). But it is the declared behaviour of SeedMode, not a loader defect: packages/spec/src/data/seed.zod.ts:24 (insert: "each replay inserts them again") and :27 (replace: "for a cache table the caller cleared"). The real gaps beside it:

    • No platform load path ever clears a table, so replace behaves exactly like insert on every path. Its precondition is never met (declared ≠ enforced).
    • packages/lint validate-seed-replay-safety warns only on insert, and its test asserts replace is "idempotent", which the reading above shows is false.
    • protocol-save-door-refusals.ts:1058 and seed-loader.ts:1630 steer an author with no natural key to "use mode 'insert'", the one mode that duplicates.
    • First-party non-test use of insert / replace: zero.

    Governing text: packages/spec/src/data/seed.zod.ts SeedMode describe (:24, :27, :218); ruling 6631016988 on #30081 (create-only default; "an author who wants reset behaviour declares it"), which covers the keyed modes only; AGENTS.md Prime Directive on declared ≠ enforced ("fix it, trim it"); ADR-0049.

    维护者速读

    • 现象:没有自然键的种子数据(insert / replace 模式)在每次未加组织墙的启动时都会再插一遍,数据越来越多,最早那行的人员字段永远是空的。
    • 为什么要你定:这是契约里写明的行为,不是加载器的缺陷。要改,就得改 SeedMode 契约本身(收窄或改语义),属于公开契约形状的选择。
    • 需要你做的:在 A / B / C 中选一个。席位推荐 B。

    选项

    A 加载器给无键行也记账(sys_seed_landed_key 按内容或行序记一个键),insert 改成每个组织只插一次。语义改动(Metadata-protocol: semantic)。弱点:作者下个版本改了这行内容,就没有稳定身份,又会重插;身份只能由作者声明,加载器猜不出来。工作量 M。
    B(推荐)退役 insert 和 replace。 没有自然键的对象用 ignore 加复合 externalId 声明身份;两处提示改为指向它;lint 规则的职责由 schema 拒收承担。存量带 insert/replace 的数据集:加载器响亮拒收该数据集,其余照常加载。收窄,Tier H。工作量 M(spec + 加载器 + 保存门 + lint + 文档 + 迁移条目)。
    C 只退役 replace(零调用方、前提从不成立,按「声明即强制,做不到就删」),lint 也报 replace,两处提示不再指向 insert;insert 保留「每次重插」的声明语义,继续告警。工作量 S。

    四棱

    • 实际业务需求:第一方非测试代码里 insert / replace 用量为 0;hotcrm 与示例应用未见使用(卡线程 grep)。没有任何真实拉动要求保留「每次启动重插」。
    • 项目长远合理性(权重 ≥50%):B 最优:种子行的身份必须由作者声明,契约直接表达这一点,不留一种注定重复的模式。A 让加载器去猜身份,作者一改内容就失效,是把问题挪到下一个版本。C 只修掉最明显的一半,insert 这个陷阱长期保留。
    • 防 AI 写错:B 在结构上让 AI 写不出会重复的种子(schema 直接拒收)。C 仍靠一条警告挡 insert,AI 批量生成时警告最容易被忽略;今天的两处提示还在主动把作者引向 insert。
    • 创业阶段不扩散:B 和 C 都是收缩,零用量下立即退役,不设过渡窗口。A 是在一个零用量的模式上新增账本语义,属于扩散。

    推荐 B;若你认为 insert 仍有保留价值,C 是最小兜底。三案都碰 packages/spec/src,裁后按收窄交人审批。

  7. added
    needs-user-decision
    and removed
    pm:dispatched
    on Nov 17, 2026
  8. 27 remaining items

  9. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
    os-dev-report

    {
      "issue": 34613,
      "status": "done",
      "branch": "claude/project-thread-ylqtt2",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34791",
      "head": "b5e8fd0f4520e068db972e901ce905055b41ce72",
      "session": "session_01WGufzfr1xZSFZzCR8HnqXX",
      "premise_still_valid": true,
      "summary": "Hand-resolved main merge after the second merge-queue removal (the PR had gone dirty: main's new author-time rule took the four os validate transcripts to 71 while this branch read 69). da7dd9ecd9 merges origin/main 1282a464e9 and resolves the four transcripts (cli.mdx, validating-metadata.mdx, build-with-claude-code.mdx, react-pages.mdx) to 70, measured: AUTHORING_RULES.length is 70 on the merged tree. b398503c7d regenerates content/docs/references/api/protocol.mdx, packages/spec/api-surface/data.json and packages/spec/export-origins/data.json over the merge (the PR's own RETIRED_SEED_MODE_VALUES rows, which the os-regen merge driver drops, are restored). b5e8fd0f45 corrects the changeset's rule-count line to 'drops by one (71 to 70 at this release)'. Because the merge was resolved by hand, the battery is rerun on this exact head.",
      "tests": "packages/lint src/authoring-rule-wiring.test.ts + src/non-record-object-entry.test.ts: 374 passed (374). Rule count measured with tsx over packages/lint/src/authoring-rules.ts: 70 (70 on validate).",
      "dogfood_battery": "b5e8fd0f4520e068db972e901ce905055b41ce72 · VERDICT command-exit 0 (os-verify-lock, held 40m35s) · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failure. Command: pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test.",
      "gates": "CI on b5e8fd0f: 60 success, 10 skipped, 0 failed. overlap-check answered exit 3 (cannot answer) before the push; the merge with origin/main is the change itself.",
      "mcp_calls": "0"
    }
  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment (file surface) · #34613 · PR #34791 at head 863908f4f0 · 2026-11-18T03:09Z

    Amends claim 6943123938 (takeover 6948809548; earlier amendments 6951528677, 6959256004). The seat's delta-4 L2 (M2) found one more caller of the retired member, brought in by main's #34985 after the last amendment:

    • packages/qa/scenarios/src/runner/orchestrate.ts: loadSeedRows built every card seed, and every restore of a removed seeded row, as a data-only package whose datasets declared mode: 'insert'. Since this PR the install door refuses such a dataset whole, so no card seed would load. The datasets now name no mode (the default ignore creates each missing row and leaves a held one alone); externalId: 'id' stays. Docblock follows.
    • packages/qa/scenarios/test/runner/seed-door.ts: the test double's seed door now judges mode with SeedMode, as the real door does, and refuses a retired-mode dataset whole with SeedMode's message. Measured: with the runner line put back to mode: 'insert', 20 runner tests fail; with the fix, all pass.
    • packages/qa/scenarios/test/runner/orchestrate.test.ts: a pin that the seed and restore packages carry no mode, and a control that the double refuses each retired mode.
    • .changeset/34613-scenario-seed-no-retired-mode.md: @objectstack/scenarios patch.

    The head moved, so the full dogfood battery is rerunning on 863908f4, and the L1-e and seat deltas follow before any re-queue.

  11. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL

    Takeover · #34613 · PR #34791 · 2026-11-18T03:48Z

    Release: claim 6943123938 as taken over by 6948809548 (session session_01WGufzfr1xZSFZzCR8HnqXX, area o3-J, account os-support-ai), handed over, not abandoned. Provenance: Warren (maintainer) to seat 3 at 03:19Z 「开发中的任务提交代码,开始写交接文件,准备交给下一个pm」 and at 03:30Z 「代码已推送,交给下一任,用信箱 交接给刚入座的 objectstack#1」, quoted in seat 3's hand-off brief on #34584 (comment 6968205670, §2 item 3); Warren to seat 1 at 03:20Z in os-warren's fleet project 「加载最新的 pm-dispatch 技能,你接手 objectstack 全仓车道 座位1,前任已经没有token了」 (seat post #34366 comment 6968121768). Assignee os-support-ai → os-warren and lease:o3-J → lease:o1-D in this stroke.

    Claim: PM loop round 1 (area o1-D, repo:objectstack#1; takeover of open PR #34791 for its battery, contract-review delta-5 and landing)
    Session: session_01JQwxbaX2qDxUq9sF93EqqL
    Account: os-warren
    Branch: claude/project-thread-ylqtt2 (continued; no force-push)
    Worktree: objectstack-issue-34613
    Domain: domain:spec
    Seat: repo:objectstack#1
    File surface: as amended in 6967843392 (the four packages/qa/scenarios paths included); plus whatever a clean scripts/pm/os-regen-merge.sh merge of origin/main regenerates. Stop on breach and report
    Container & model: M, mode:subagent, model: TIER_DEFAULT (battery and merge only, no design; the contract-review delta at CONTRACT_REVIEW_TIER is owed for the narrowing), effort: medium
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Skills-docs: follow-up #34798
    Responsibility: as stated in 6943123938
    Thread-read: 6967843392
    Premise: holds — unchanged since the L1-e ACCEPT 6968056307 at 863908f4; the branch is 18 first-parent commits behind origin/main (K ≥ 15), so a main merge comes before the battery
    Pre-claim lane: packages/spec/src/data/seed*.zod.ts, packages/metadata-protocol/src/seed-loader.ts, packages/metadata/**, packages/qa/scenarios/src/runner/orchestrate.ts — whole-repo lane, kept in lane under area-lease.md's keep-in-lane rule
    Pre-claim deps: the card names no Blocked-by: and no "after #N"; git merge-tree of the head with origin/main 526282e: clean (one generated file to regenerate)
    Prior rulings read: maintainer ruling B 6942780880 and its record 6949639011 (「接受未知,评审完就合」); seat delta-4 L2 FAIL 6967752615 (M2, answered by 863908f4); docs/adr/**: none on seed mode retirement beyond what the PR cites
    Serial constraints cleared: #35065 (#34940) shares 8 files; overlap-check from that branch: clean
    Resume-from: claude/project-thread-ylqtt2@863908f4f05a3f8a2bd962309e6ba5095d9bbbda

    Hand-over record: last pushed sha 863908f4f05a3f8a2bd962309e6ba5095d9bbbda (L1-e ACCEPT 6968056307 on the code). Owed, in order: merge origin/main, the full dogfood battery on the landing head, the contract-review delta-5 from b5e8fd0f, re-queue.

  12. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX
    os-dev-report

    {
      "issue": 34613,
      "status": "done",
      "branch": "claude/project-thread-ylqtt2",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34791",
      "head": "863908f4f05a3f8a2bd962309e6ba5095d9bbbda",
      "session": "session_01WGufzfr1xZSFZzCR8HnqXX",
      "premise_still_valid": true,
      "summary": "M2 from the seat's delta-4 L2: main's #34985 loadSeedRows (packages/qa/scenarios/src/runner/orchestrate.ts) sent every card seed and restore with the retired mode 'insert'. 863908f4 drops the mode, so the default ignore loads them and externalId 'id' stays. The test seed door now judges mode with SeedMode, as the real door does. A pin checks that the seed and restore packages carry no mode, plus a control for each retired mode, plus a @objectstack/scenarios patch changeset. Claim amendment 6967843392. The battery is rerun on this head because 863908f4 is a code commit after the b5e8fd0f battery (6967579608).",
      "tests": "packages/qa/scenarios: 1101 passed, 14 skipped. 1 test and 2 files fail on environment only: dist not built for built-consumer/packed-tarball, and the pnpm-pin assertion in packages.test. None of them touches seeding. Ablation: with the runner put back to mode 'insert', 20 runner tests fail. tsc --noEmit clean.",
      "dogfood_battery": "863908f4f05a3f8a2bd962309e6ba5095d9bbbda · VERDICT command-exit 0 (os-verify-lock, held 40m50s) · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failure. Command: pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test.",
      "gates": "L1-e delta ACCEPT 6968056307 at this head. The seat delta-5 L2 is owed to objectstack#1, which holds the card since its takeover.",
      "mcp_calls": "0"
    }
  13. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL
    os-dev-report

    {
      "issue": 34613,
      "status": "done",
      "branch": "claude/project-thread-ylqtt2",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34791",
      "head": "d56fedc24b320f6a821ed01826d728ff4727ddf7",
      "session": "session_01JQwxbaX2qDxUq9sF93EqqL",
      "premise_still_valid": true,
      "summary": "Main merge plus battery, no design work. bash scripts/pm/os-regen-merge.sh merged origin/main 526282e11a into 863908f4 as 3f01444347 (ort, zero conflicts). Step 2 took main's side of the one path both sides moved (content/docs/references/api/protocol.mdx) and kept the branch bytes of 8 branch-only regen paths; step 3's commit was refused by the os-regen pre-commit marker as designed. gen:schema + gen:docs on the committed merge regenerated protocol.mdx, committed as d56fedc24b: the os-regen driver had kept the branch side and dropped main's view.timesheet rows (2 rows), now restored beside this PR's narrowed seed mode enum. No other file changed. AUTHORING_RULES.length on the merged tree is 70, equal to the four os validate transcripts and the changeset count line, so neither was touched (main moved only a comment in authoring-rules.ts).",
      "merge": "merge commit 3f01444347 (parents 863908f4f0, origin/main 526282e11a; old merge base 1282a464e9, new 526282e11a; 18 first-parent commits). Regen: d56fedc24b regenerates content/docs/references/api/protocol.mdx only. Row assertions on d56fedc24b: RETIRED_SEED_MODE_VALUES in packages/spec/api-surface/data.json 1 (main 0, 863908f4 1), in packages/spec/export-origins/data.json 1 (main 0, 863908f4 1); protocol.mdx timesheet rows 2 (main 2, 863908f4 0); protocol.mdx narrowed seed enum 1 (main 0, 863908f4 1). Main's sibling shards in the merge window (api-surface/system.json, api-surface/ui.json, authorable-surface/ui.json, declaration-map/ui.json, export-origins/system.json, export-origins/ui.json, json-schema.manifest/ui.json) are outside the PR diff, so HEAD equals origin/main there. Net-diff check: git diff 1282a464e9 863908f4 vs git diff 526282e11a d56fedc24b, both 84 files, 1175 insertions, 511 deletions, identical file lists, and per-file sha1 of the +/- lines identical for all 84 files (0 differ).",
      "tests": "packages/qa/scenarios: pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/runner -> Test Files 12 passed (12), Tests 455 passed (455); typecheck (tsc --noEmit) exit 0; lock VERDICT command-exit 0. packages/lint: vitest run src/authoring-rule-wiring.test.ts src/non-record-object-entry.test.ts -> Test Files 2 passed (2), Tests 374 passed (374), sub-exit 0; typecheck (tsc --noEmit && check:test-typecheck) sub-exit 0. Rule count measured with tsx over packages/lint/src/authoring-rules.ts on the merged tree: AUTHORING_RULES.length 70.",
      "gates": "Local, on d56fedc24b, exits captured before any pipe: check:api-surface 0 (surface + factory signatures unchanged), check:export-origins 0 (6244 exports across 19 entry points as recorded), check:authorable-surface 0 (info only: baseRev lag on a shallow checkout), check:declaration-map 0, check:docs 0 (248 generated files in sync). overlap-check --branch=HEAD: VERDICT clean exit 0 (origin/main and 6 PR heads merge cleanly). CI check-runs on d56fedc24b at report time: 74 runs, 61 success, 12 skipped, 0 failed, 1 in progress (Check Changeset; a second Check Changeset run already success); Test Core 1-10/10 success, Lint & Repo Gates success, Dogfood Regression Gate success, Build Core success. The full --commands derivation was not re-run: the PR diff is byte-identical to the one already derived and reviewed at 863908f4.",
      "dogfood_battery": "d56fedc24b320f6a821ed01826d728ff4727ddf7 · VERDICT command-exit 0 (os-verify-lock, held 36m23s, waited 2m01s) · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failure. Command: pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test.",
      "files_changed": "3f01444347: merge of origin/main only. d56fedc24b: content/docs/references/api/protocol.mdx (+8 / -6 against the merge commit: 2 timesheet rows restored, 6 enum cells re-rendered with the truncation main renders).",
      "deviations": "1) The first regen commit 30e7ab551a was refused at pre-push by check:commit-card-trailers (model name in the co-author trailer); it was never pushed, and was recommitted as d56fedc24b with the model-free pair via git reset --soft to the merge commit plus a new commit (tree byte-identical to 30e7ab551a). This is the hook's prescribed remedy for an unpublished commit; no published history was rewritten and nothing was force-pushed. 2) The dispatch order asked me to append the battery result to the PR body's Suites line; os-dev.md rule 3 says the subagent writes the PR body only at pr_create and the seat makes later edits, and os-dev.md wins on conflict, so I did not PATCH it. Text for the seat to append to the Suites line, after the 863908f4 battery clause: '; 3f014443 merges origin/main 526282e1 through os-regen-merge.sh with no conflicts, and d56fedc2 regenerates protocol.mdx to restore main's view.timesheet rows that the driver dropped; the net diff is unchanged (84 files, identical changed lines), and the full battery on d56fedc2 passed: 479 files and 4072 tests, 3 and 68 skipped, VERDICT 0.' 3) Observed but not touched: PR #34791 reads draft=false over REST at report time. I did not set that and did not change it.",
      "mcp_calls": "0",
      "api_writes": "1 — POST /repos/objectstack-ai/objectstack/issues/34613/comments (this os-dev-report, through post-stamped.mjs). Not REST: one git push, 863908f4f0..d56fedc24b on claude/project-thread-ylqtt2. No PR body edit, no labels.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  14. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL
    os-dev-report

    {
      "issue": 34613,
      "status": "done",
      "branch": "claude/project-thread-ylqtt2",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34791",
      "head": "5af3e083840099f6d05b80296ade77188fec6c3a",
      "session": "session_01JQwxbaX2qDxUq9sF93EqqL",
      "premise_still_valid": true,
      "m3_reading": "CONFIRMED, by running it. At the real install door (MarketplaceInstallLocalPlugin with the real SeedLoaderService over the in-memory engine of marketplace-install-local-landed-keys.test.ts): a data-only package keyed on id seeds ct1, ct2; ct2 is deleted; a second package (another namespace and id) carrying ct2 answers seeded {mode: inline, inserted: 0, skipped: 1, errors: 0, errorList: []} and ct2 stays gone; that second package's reseed-sample-data answers inserted: 1 and ct2 is back. At the runner: once the test double keeps the landed-row record as the real door does, 7 of 150 orchestrate tests went red against the unfixed runner. They include the crm_account_with_contacts runCard (operations notMeasured: 3 instead of 6/6 with restored: 3) and every restore pin ('the rows could not be restored to the seeded state: demotravel_expense_claim: 1 missing (c001)', 'democrm_account: 1 missing (ac1)').",
      "summary": "M3 confirmed (m3_reading) and fixed in the runner. The install door is unchanged and stays on honour. loadSeedRows now reads the door's skipped count. A restore load (reseedWithheld) goes on through the restore package's sample-data reseed (AppHarness.reseedManaged, optional; HttpApp POSTs /api/v1/marketplace/install-local/:manifestId/reseed-sample-data). Whenever the door skipped a row, the objects are read back, and each sent row still missing is refused by name with the reason (sys_seed_landed_key, plus why the reseed did not bring it back); it is no longer booked as written or reinserted. A dataset-level refusal (field 'mode') now refuses each of its rows (N23). The test double's door keeps the landed-row record, adds a reseed door, and answers a retired mode with one dataset entry (N22). The docblocks of loadSeedRows and restoreSeededRows are corrected, and the changeset sentence is rewritten (N25). Release wording moved from 18.6.0 to 18.7.0 (version_computation). origin/main 958ee035 (the 18.6.0 cut) was merged in on the PM's order. No retired mode was reintroduced.",
      "version_computation": "Version PR #33849 merged at 2026-11-18T05:13:16Z. Its head 11a8a882 sets packages/spec/package.json to 18.6.0, and origin/main carries 18.6.0. Pending changesets: on main, only .changeset/35018-studio-landing-c.md ('@object-ui/app-shell': patch); in this PR, '@objectstack/spec': minor (34613-seed-mode-insert-replace-retired.md) and '@objectstack/scenarios': patch. @objectstack/spec is in the changeset fixed group, and no pending changeset bumps any package of that group major, so the next version is 18.6.0 + minor = 18.7.0. Changed to 18.7.0: packages/spec/src/data/seed.zod.ts:48 and :52, content/docs/data-modeling/seed-data.mdx:139 and :167, plus the regex pins packages/spec/src/data/seed.test.ts:18-19 and packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts:350, which spell it 18\\\\.6\\\\.0 and so slip past a plain grep. The migration entry and both changesets never named a version. The unrelated webhook.method text is untouched. 'git diff origin/main...HEAD | grep -n \"18\\.6\\.0\"' on 5af3e083 is empty (exit 1); the escaped-spelling grep on added lines is empty too. Caveat: a major changeset in the fixed group landing before this PR would make it 19.0.0.",
      "tests": "Door pin (cloud-connection, marketplace-install-local-landed-keys.test.ts, new top-level describe, 2 tests): 17/17 in the file at 2215056c; on 5af3e083, with marketplace-install-local-reseed.test.ts, Tests 25 passed (25). Runner (packages/qa/scenarios test/runner/orchestrate.test.ts): before the runner fix with the honest double, Tests 7 failed | 143 passed (150); after, 153 passed (153). New pins: the double's control (install withholds a recorded gone row, reseed brings it back, a held row is skipped, an unrecorded row lands, an unknown package's reseed answers 404); a restore puts back a withheld row through exactly one reseed of the restore package; a harness with no reseed door refuses the row by name (sys_seed_landed_key, 'no reseed door') and books nothing as reinserted. Ablation on 1f74fbc7 via scripts/ablation-replace.mjs: '{ reseedWithheld: true }' removed from the restore's loadSeedRows call; anchor 1 -> 0; blob 902855e2 -> 446674cf; Tests 8 failed | 145 passed (153); restored to the HEAD blob, git diff HEAD empty. The scenarios suite imports the runner from src, so no dist rebuild was involved. On merged head 5af3e083 (after building the cloud-connection/scenarios/metadata-protocol closures): spec src/data/seed.test.ts + seed-loader.test.ts 83/83; metadata-protocol seed-loader-retired-mode-34613 + seed-loader-landed-ids + protocol.seed-external-id-refusal 57/57; scenarios pnpm test Test Files 39 passed, Tests 1149 passed (1149), with scenarios built so the build/ tarball tests run; scenarios typecheck exit 0; cloud-connection typecheck exit 0 (on fdaf6213). Offline template-mode run past the restore: the orchestrate runCard test runs the real crm_account_with_contacts card in scratch and template modes with the stand-in FakeApp and ScriptedDriver (its turns include crm_account_with_contacts/template/iterate-run/remove_ben/sdr). On the fix it reads template iterate operations {passed: 6, total: 6, notMeasured: 0, restored: 3}; on the unfixed runner with the honest double it read notMeasured: 3. No live host run: that needs a booted os dev host and a real agent driver, outside this round.",
      "gates": "Local, exit captured before any pipe, on fdaf6213, narrowed to this hop's paths (declared): spec check:generated 0 (all 14 artifacts up to date, after a spec rebuild; a first read was a stale-dist PREREQUISITE NOT MET, not a red), check:spec-changes 0, check:upgrade-guide 0, check:liveness 0, check:nul-bytes 0, check:engine-double-contract 0, check:test-source-alias 0, check:cross-package-test-inputs 0, check:undeclared-dep-imports 0, check:issue-citations 0, check:doc-authoring 0, check:doc-anchors 0, check:docs-spec-enumerations 0, check:docs-transcript-drift 0, check:skill-identifier-liveness 0, check-empty-changeset 0, check-changeset-no-major 0, check-adr-0087-registration 0, docs-audit/check-affected-docs 0. On 5af3e083: spec build + check:generated 0 (all 14 up to date; the merge left nothing to regenerate). --ran reconciliation: 130 of 149 derived families UNRUN locally. That is the derivation for the whole 86-file PR; the unrun 130 read paths this hop did not touch and were green in CI at d56fedc2, and CI runs the full farm. overlap-check --branch=HEAD before each push: VERDICT clean exit 0, last against origin/main b1eb500d. check-governed-merges --branch: 0 of 86 paths governed, 2005 changed lines (+1473/-532), under 3000. CI check-runs on 5af3e083 at report time: 70 runs, all completed, 60 success, 10 skipped, 0 failure. Test Core 1-10/10, TypeScript Type Check, Type Check UI, Lint & Repo Gates, Lint · ESLint, Dogfood Regression Gate, Build Core and Check Changeset all success.",
      "dogfood_battery": "5af3e083840099f6d05b80296ade77188fec6c3a · VERDICT command-exit 0 (os-verify-lock, held 39m07s, waited 0s) · Test Files 479 passed | 3 skipped (482) · Tests 4072 passed | 68 skipped (4140) · no failure. Earlier on fdaf62130f (pre-merge): VERDICT command-exit 0, held 37m40s, Test Files 479 passed | 3 skipped (482), Tests 4072 passed | 68 skipped (4140). Command: pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test.",
      "merge": "5af3e083 merges origin/main 958ee035 (the 18.6.0 cut) via bash scripts/pm/os-regen-merge.sh. Merge base moved from 526282e1 to 958ee035. No conflicts. The script kept the branch bytes of branch-only regen paths, and step 4 (spec build + check:generated) found all 14 artifacts current, so there is no regen commit. Net diff against origin/main: 86 files, +1473/-532. Main later moved to b1eb500d; it merges cleanly and was not merged (no conflict, no main-caused red).",
      "files_changed": "packages/qa/scenarios/src/runner/orchestrate.ts (loadSeedRows: skipped, reseed route, read-back refusal, dataset-level mode entry; docblocks for loadSeedRows and restoreSeededRows); packages/qa/scenarios/src/runner/app.ts (AppHarness.reseedManaged optional; HttpApp.reseedManaged); packages/qa/scenarios/test/runner/seed-door.ts (landed-row record, reseedDoorAnswer, one dataset entry for a retired mode); packages/qa/scenarios/test/runner/orchestrate.test.ts (FakeApp record and reseed door, 3 new pins, the N22 control updated); packages/cloud-connection/src/marketplace-install-local-landed-keys.test.ts (door pin, new top-level describe); .changeset/34613-scenario-seed-no-retired-mode.md (body sentence corrected; this PR's own changeset, not on main); packages/spec/src/data/seed.zod.ts and content/docs/data-modeling/seed-data.mdx (18.7.0); packages/spec/src/data/seed.test.ts and packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts (18.7.0 regex pins). Commits: 2215056c, 1f74fbc7, 0dd0e0af, fdaf6213, merge 5af3e083.",
      "line_budget": "n/a: no skills/** path is touched; the hop adds no SKILL.md line.",
      "proposed_pr_body": "/tmp/claude-0/-home-user/83e4c799-6343-563a-a13e-0223174ca760/scratchpad/issue-34613/pr-body-proposed.md (the current body with these edits: 速读 改了什么 + the runner restore sentence, risk line 0/86 paths and +1473/-532 for 2005 lines (N26), a What changes bullet for M3, Verification bullets for the door pin, the runner pins and the ablation, the Suites clause for fdaf6213, the merge and the battery on 5af3e083, Gates '70 at the merged head' (N26/N19), and N2 reworded to 18.7.0 with the computation). Not PATCHed; the seat edits the body.",
      "deviations": "1) The first two commits (6a0b3f99, 5e5ead11) were refused at pre-push by check:commit-card-trailers: the harness attribution reminder put a model name in the co-author trailer. Neither was ever pushed. Both were recommitted with the model-free pair: git reset --soft to d56fedc2, then two commits whose final tree is byte-equal to 5e5ead11's (asserted). This is the hook's prescribed remedy for unpublished commits. No published commit was amended, rebased or force-pushed. 2) The dispatch named Version PR #33849 as open. At this round it was already merged (2026-11-18T05:13:16Z), and origin/main carries spec 18.6.0. The coordinator's mid-round message said the same and ordered the main merge, which was done. 3) Local gates were narrowed to this hop's paths (declared above); CI runs the full farm and is green on 5af3e083. 4) N22 and N23 were folded into the M3 fix, as the review allowed. 5) Observed, not touched: PR #34791 reads draft=false and auto_merge null. I did not change either and did not knock any mailbox.",
      "mcp_calls": "0",
      "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34613/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). Not REST: four git pushes to claude/project-thread-ylqtt2 (d56fedc2..1f74fbc7, ..0dd0e0af, ..fdaf6213, ..5af3e083). No PR body edit, no labels, no ready or auto-merge change. REST reads only: the review comment, PR #33849, its package.json at 11a8a882, PR #34791, and check-runs.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  15. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbaX2qDxUq9sF93EqqL

    Close-out · 2026-11-18T07:57Z. Fixed by PR #34791, merged as f7960893cd4851472351b841d34fbe5aded345b2 from head 5af3e083840099f6d05b80296ade77188fec6c3a, at 2026-11-18T07:41Z. Reviews: L1-b ACCEPT 6971682771, Contract review delta-6 PASS 6971769667 (M3 closed), landing note 6971788465. The battery on the head is in 6971596244. The seed modes insert and replace are retired. The first release that carries the refusal is planned as 18.7.0. Skills-docs follow-up: #34798. Nits N27 and N28 are accepted as they stand. This stroke removes pm:dispatched and the lease label and clears the assignee.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdomain:specfindingpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions