Skip to content

fix(metadata-protocol): seed reference probe names the repair a republish reaches, judged once per object - #35506

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-xh0fui
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-xh0fui

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread
Fixes #35258
Clause-②: no
Metadata-protocol: none

Branch note (Duplicate Fix Guard): claude/project-thread-xh0fui is the branch this card thread's harness assigns, and the only one it may push, so the repo's claude/issue-35258-* spelling is not available here. The claim comment on the card names this branch.

维护者速读

  • 发布后检查示例数据时,若示例记录指向不存在的记录,构建回执现在会按示例数据的写入方式给出真正有效的修复办法;同一对象有多份示例数据时只报一次。
  • 属于发布后构建检查这条线,替按默认方式(不覆盖已有记录)发布示例数据的作者和 AI 解决"照提示修了却没生效、回执却变干净"的问题。
  • 只影响发布回执里的警告文字和判断范围,不拦截发布、不改数据;出错最多是提示措辞不准,可直接撤回。
  • 无

What changes

seed_reference_unresolved (build probe, packages/metadata-protocol/src/build-probes.ts):

  • Judged per object, not per seed. seedApplied.landed is one entry per object for every seed of it (seedAppliedLanded), so the probe now groups the published seeds by object and emits one finding per object and reference column. The finding's artifact is the object's first published seed; message names every seed of the object.
  • Which landed rows are judged. Rows the publish created (landed.inserted): always. Rows a seed key matched (landed.matched): only when every published seed of the object declares upsert or update, and only in a column every one of those seeds writes back onto a matched row: every record carries the column and the seed does not declare columns.FIELD.applyOn: 'create' (key fields excepted, as the loader does). Any other column of a matched row is its writer's and is not judged.
  • The repair named is the one a republish reaches (fix, and a new cause param on the userMessage, all 11 locales):
    • seed: every seed rewrites the column on a matched row, so correcting the seed and republishing works.
    • mixed: some seeds of the object write the column back onto a matched row and some do not, and the receipt cannot tell which seed landed which row: correct the value in every seed, then correct, clear or delete the rows the other seeds leave as they are (or declare upsert on them where that alone reaches the column); fix names the writing seeds and the others by reason.
    • mode: every seed of the object is ignore, and declaring upsert would make the replay write the column: correct, clear or delete the stored rows, or declare mode: 'upsert' and correct the seed.
    • stored: no mode change makes the seed write the column on a row it finds again (applyOn: 'create', or a record that does not carry the column): correct, clear or delete the stored rows; fix names which seed has which reason.
    • The mixed, mode and stored fix texts end by saying that until a repair is done the next receipt carries no finding for those rows (a republish that changes nothing reads clean).

rollup_never_computed nits: the message says "of one organization" only when the pass was split by organization, which needs the child object to carry a tenant column (an object with no tenant column is one unscoped pass, also when the publish names an organization), and says "sampled parent row(s)"; the userMessage in all 11 locales says "the records checked" instead of "every record"; the unreleased changeset's "every parent" is corrected. The organization discovery's 50-row sample keeps its shape and its reason is now stated on probeOrganizations: the list is a loop bound (two reads per organization on the publish request), and a distinct read pushed down would return every organization of the table.

One new changeset (patch, @objectstack/metadata-protocol). No new finding code, no new catalog key, no new export.

Why

Under the default mode: 'ignore' a republish leaves a row it finds again as it is (seed-loader.ts writeRecord, the ignore arm returns skipped with the existing id). So the old repair, "correct the seed and republish", changed nothing, and the next receipt came back clean because the probe did not read matched rows under ignore. And with two seeds of one object, a row only an ignore seed matched was judged under the other seed's mode, and each seed reported the same value again.

Tests

Package suite and typecheck (tree `2f2c23e2`)
pnpm --filter @objectstack/metadata-protocol test
 Test Files  360 passed | 9 skipped (369)
      Tests  23256 passed | 45 skipped (23301)
os-verify-lock: VERDICT command-exit 0

pnpm --filter @objectstack/metadata-protocol typecheck
os-verify-lock: VERDICT command-exit 0

The package tsconfig.json includes src/**/*, so the typecheck compiles both changed test files.

New cases, in the shared landed-data harness (build-probes-landed-data.test.ts, a new top-level describe, per AGENTS.md's shared-harness rule) and as CASES rows of build-probes-user-message.test.ts (one per cause, four values, each rendered in all 11 locales):

  • under ignore: the first publish's finding names the stored-row or upsert repair (cause: 'mode'); a republish under ignore (row now matched) is not the seed's to judge; after declaring upsert the matched row keeps being reported with the seed repair until it resolves, then goes silent;
  • one ignore and one upsert seed of one object: exactly one finding, over the created row only (the matched row's value is not quoted), with the mixed repair naming the upsert seed as writing the column back;
  • two upsert seeds of one object: their matched rows in one finding;
  • applyOn: 'create' and a record without the column: the matched row's column is not judged; the created row is, with the stored-row repair;
  • rollup_never_computed on an object with no tenant column: the message claims no organization, also when the publish names an organization.
Ablations (one-off, `scripts/ablation-replace.mjs`, restored to HEAD blob each time)

The tests import ./build-probes.js from src, so no dist rebuild is in the path.

  1. seeds.every( to seeds.some( for the writing-mode test: the mixed-seeds case goes red (1 failed / 25).
  2. rewritten = writing (drop the per-column rewrite check): the column-not-written case and the stored user-message case go red (2 failed / 73).
  3. cause mode branch replaced by false: the ignore case, the mixed case and the mode user-message case go red (3 failed / 73).
  4. The "of one organization" condition forced on: the unscoped roll-up case goes red (1 failed / 26). The first attempt at this one was a no-op (the replacement text already occurred in the file and the tool refused); it was re-run with a distinct replacement.

Every leg ended ok restored: blob == HEAD with git diff HEAD empty.

Acceptance notes

  • Done-when 1 is met through the repair text. Under ignore a republish never writes a matched row, and the binding scope reads matched rows only when every seed writes, so a republish under ignore with nothing else changed still comes back clean. What changed is the first receipt: its repair is one that works (fix or delete the stored rows, or declare upsert). After upsert the row keeps being reported until it resolves (pinned).
  • Done-when 2: rows the publish created count as written by a seed, whatever its mode (an insert is a write under ignore too). A matched row is judged only when every seed of the object writes.
  • Per-row precision: the probe cannot tell which record a landed id came from, so "the seed writes this column on a matched row" needs every record of every seed of the object to carry it. A seed where only some records carry a column gets the stored-row repair for that column, which is conservative but always works.
  • Overlap check: the only overlap is the standing Version Packages PR, which deletes every unreleased changeset, including the one this PR corrects. That conflict is expected for any edit to an unreleased changeset, and that PR is regenerated from main.

Verification

  • Read first, by risk: build-probes.ts (the seed-reference section, where the rows judged are chosen per column, and the seedRewritesOnMatch helpers), then build-probes.user-text.ts (the SEED_REFERENCE_UNRESOLVED entry).
  • Two-minute check: pnpm --filter @objectstack/metadata-protocol exec vitest run src/build-probes-landed-data.test.ts. Expect 26 passed, including the new seed_reference_unresolved is judged per object block.

Gates

Derived gate families, run locally at `2f2c23e2` (66 derived, 64 run, 2 NOT MEASURED)

node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands, then --ran over this record: 66 derived famil(ies) accounted for — 64 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3).

node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-adoption.mjs :: exit 0
node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 1
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 3
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/docs-audit/check-affected-docs.mjs :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm --filter @objectstack/spec run check:error-code-provenance :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-command-ids :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 3
pnpm check:durability-log-level :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:error-code-casing :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:keyed-text-bounds :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:logger-receiver-detach :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:object-def-param-keys :: exit 0
pnpm check:objectql-double-limit :: exit 0
pnpm check:org-identifier :: exit 0
pnpm check:page-declaration-shape :: exit 0
pnpm check:platform-object-tenancy-census :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:slot-lookup :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:system-context-census :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:vouch-for-reference-callers :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0
  • check-empty-changeset exit 1 is the DELIBERATE CORRECTION below; it stays red by design.
  • check:lean-entry-closure first answered exit 3 (objectql dist absent); re-run after pnpm --filter @objectstack/objectql build: exit 0.
  • NOT MEASURED: check-plugin-teardown-shape --self-test (its positive control is pinned to a commit this shallow clone cannot reach) and check:dual-build-cjs-loads (needs every package built). Both run in CI.

DELIBERATE CORRECTION

.changeset/34776-publish-checks-build-probes.md is an unreleased note this PR corrects, because the behaviour it describes changed here. One sentence changed. Before: "rollup_never_computed (a roll-up blank on every parent that has children)". After: "rollup_never_computed (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one)". check-empty-changeset stays red on it, as it should.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (packages/spec not touched.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (Left to CI.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (except the maintainer quick-read section, which the dispatch contract requires in Chinese).
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…mes the repair a republish reaches

Claude-Session: https://claude.ai/code/session_01L6bhgVmoN7y4S9ywEQ8f4D
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D
os-dev-report

{
  "issue": 35258,
  "status": "done",
  "branch": "claude/project-thread-xh0fui",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/35506",
  "session": "session_01L6bhgVmoN7y4S9ywEQ8f4D",
  "premise_still_valid": true,
  "summary": "seed_reference_unresolved now groups published seeds by object (seedApplied.landed is per object): one finding per object and reference column. Created rows are always judged; matched rows only when every seed of the object declares upsert/update, and only in columns every seed writes back on a matched row (every record carries it, not applyOn create). fix and userMessage (11 locales, new cause param seed|mode|stored, no new catalog key) name the repair a republish reaches: the seed, or the stored rows / declaring upsert. rollup_never_computed: 'of one organization' only on an org-split pass, 'sampled' parents, 'records checked' instead of 'every record' in 11 locales, unreleased changeset corrected, and the 50-row org discovery's reason stated in a comment.",
  "tests": "tree 2f2c23e2: pnpm --filter @objectstack/metadata-protocol test -> Test Files 360 passed | 9 skipped (369), Tests 23256 passed | 45 skipped, VERDICT command-exit 0; typecheck VERDICT command-exit 0 (tsconfig includes src/**/*). Targeted: build-probes-landed-data + build-probes-user-message 73/73. Ablations via scripts/ablation-replace.mjs, each restored to HEAD blob with git diff HEAD empty: (1) writing every->some: 1 failed/26; (2) rewritten=writing: 2 failed/73; (3) mode cause -> false: 3 failed/73; (4) org phrase forced on: 1 failed/26 (first attempt was a refused no-op, replacement text already in file; re-run with a distinct replacement). No dist rebuild in path: tests import ./build-probes.js from src.",
  "gates": "dispatch-gates --commands at 2f2c23e2: 66 derived; --ran: 66 accounted, 64 run, 2 NOT MEASURED (derived from recorded exit 3). Non-zero: node scripts/check-empty-changeset.mjs --base origin/main :: exit 1; node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 3; pnpm check:dual-build-cjs-loads :: exit 3. check-empty-changeset exit 1 = declared DELIBERATE CORRECTION of .changeset/34776-publish-checks-build-probes.md (stays red by design). check:lean-entry-closure exit 3 then exit 0 after building objectql. NOT MEASURED: check-plugin-teardown-shape --self-test (shallow clone, pinned control unreachable), check:dual-build-cjs-loads (needs every package built). All other 63 exit 0. CI check-runs: in_progress at report time.",
  "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
  "mcp_calls": "0",
  "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/35506/assignees); post-stamped os-dev-report comment (POST /issues/35506/comments)",
  "open_questions": [],
  "security_findings": "none",
  "out_of_scope_findings": [
    "carrier: none · noted, not filed: under ignore a republish that changes nothing still comes back clean (matched rows are not the seed's to judge, per the binding scope); the first receipt's repair is the one that works. Recorded in the PR's Acceptance notes."
  ]
}

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

10 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 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 — 10 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 60ed6bd9b570a28b7e4f5133b7b9fcbe08b25155 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 60ed6bd9b570a28b7e4f5133b7b9fcbe08b25155

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:发布后,如果示例数据(seed)里的关联字段指向了不存在的记录,发布回执里的提示现在会说清楚“怎么修才真的有用”。以前一律让人去改示例数据再发布,可在默认模式下重新发布根本不会改动已存在的记录,照做等于白做;现在会按情况告诉对方:改示例数据,或者直接改/删已存的记录,或者把示例数据改成会覆盖的模式。同一对象有多份示例数据时只报一次,不再重复。汇总字段的提示也不再说“每条记录”都是空的,因为实际只检查了一部分样本。
  • 出错会怎样:只影响发布回执里的警告文字和判定范围,不会拦发布,也不改数据。最坏的情况是提示给出的修法不够贴切。
  • 要你做什么:不需要你做任何事。这张 PR 同时订正了一条还没发布的更新说明里的一句话,所以 Check Changeset 按设计保持红;按规则,这一类“连代码一起改”的订正还需要一次同 head 的 L2 审核记录来确认,由卡线程发起。

席位核对 — ACCEPT (L1-a) · repo:objectstack#1 · head 2f2c23e2cd96e2ef29bf26abc86788a3643d9585 · 2026-11-20T00:46Z

  • Shape — draft, base main, 2 commits (fc6ee16d, 2f2c23e2), 6 files, +386/−59. Merge-base 6f36818f. No main merge in the branch, and origin/main has not touched the probe files or .changeset/34776-publish-checks-build-probes.md since the merge-base. NOT governed. Author objectstack-fleet[bot].

    • Fixes #35258.
    • Clause-②: no, Metadata-protocol: none. The new changeset .changeset/35258-seed-reference-repair-by-mode.md is @objectstack/metadata-protocol at patch, which is right for kind none.
    • No published surface moves. build-probes.user-text.ts is not reachable from the package's only exports entry (. → dist/index), so the new cause parameter is internal. The finding shape (code, severity, fix, userMessage) is unchanged, and only the wording and the set of rows judged change.
  • Read in full

    1. Judged once per object. Seeds are grouped by object (seedsByObject), matching seedApplied.landed, which carries one entry per object. Inserted rows are always judged. A matched row is judged only when every seed of the object is in a writing mode (upsert or update), and then only in a column every one of those seeds rewrites on a match (seedRewritesOnMatch: every record carries the column, and it is not columns.<f>.applyOn: 'create' outside the key). That is the loader's matched-row write as the TSDoc cites it. The live modes are only update, upsert and ignore (SEED_MODE_VALUES, packages/spec/src/data/seed.zod.ts), so "not writing" means ignore, and the mode fix's wording "under mode: 'ignore' (the default)" is exact.

    2. The repair a republish reaches. cause is chosen as follows:

      • seed when every seed rewrites the column;
      • mode when no seed of the object is writing and declaring upsert alone would make every seed rewrite it;
      • stored otherwise. That covers a create-only column, a record that does not carry the column, or mixed seeds where upsert alone does not reach.

      fix names the seeds by reason (seedNotRewritingWhy), and userMessage takes the same cause in all 11 locales. I read each of the three branches in every locale. All say the same thing, and none leaks an API name (hidden is pinned in the user-message test).

    3. Roll-up wording. The message reads sampled parent row(s) and adds of one organization only when blankIn !== null, meaning the pass was split by organization. The user text says "the records checked" in place of "every record" in all 11 locales. The new TSDoc on probeOrganizations states the 50-row bound.

  • The DELIBERATE CORRECTION, checked sentence by sentence against the diff. The note is .changeset/34776-publish-checks-build-probes.md. It is unreleased: it is still in .changeset/ on main and unchanged there since the merge-base. One sentence changes, on line 26:

    • Before: "rollup_never_computed (a roll-up blank on every parent that has children)"
    • After: "rollup_never_computed (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one)"

    The new sentence is what the code at this head does. The verdict is over the sampled parents (sampled parent row(s), and the probeOrganizations bound), and the organization clause appears only on an organization-split pass. The test rollup_never_computed: the message says "of one organization" only on a pass split by organization pins it from both sides: an object with no tenant column gives a message that does not contain organization. The old "every parent" was false once the sample bound applied. The rest of the note's line 26, including "the roll-up and seed probes judge each row inside that organization", stays true. The PR body's DELIBERATE CORRECTION section quotes the same two sentences word for word. The Check Changeset log at this head fails only on check-empty-changeset for this one note. The other steps in that job pass (the level axis, ADR-0087, and no empty frontmatter).

  • What confirms the correction. This diff also changes code, so landing-operations.md puts it on the full path: 「其余(含改代码)照全套:同 head 达档 L2 PASS 记录即确认,记录逐句判改写句」. This L1 ACCEPT names the note and quotes both sentences, but it does not confirm the correction alone. A same-head ## Contract review PASS that judges the rewritten sentence is owed. None of the four contract faces is touched, so I read the tier as TIER_DEFAULT. The card thread starts that L2; this seat does not.

  • Nits (nothing owed)

    • artifact is seeds[0].name, so a finding for two seeds of one object points at the first one published. The message names every seed, and the test pins it. Acceptable.
    • The dev's out-of-scope note stands. Under ignore, a republish that changed nothing comes back clean, because matched rows are not the seed's to judge, so the first receipt's repair is the one that works. That is recorded in the PR's acceptance notes, and no card is owed.
  • Pins — build-probes-landed-data.test.ts adds 4 cases for the per-object, per-cause rule: ignore then upsert then repaired, mixed ignore/upsert, two writing seeds, and create-only or not-carried. It also adds the unscoped roll-up case. build-probes-user-message.test.ts gains the three cause rows. The dev report is 7009115465 (360 files and 23256 tests pass, typecheck exit 0, 4 ablations each turned red). Not re-measured here: no node_modules.

  • Gates — at this head: 36 success, 16 skipped, 1 failure (Check Changeset, the DELIBERATE CORRECTION red above). Mergeable reads unstable.

  • Landing terms — once a same-head L2 PASS that judges the rewritten sentence is on record, the correction is confirmed. The card thread then lands this head, red by design, under SKILL.md's three conditions, and does not change the gate. A new push needs a fresh L1 unless it is a clean main merge.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2f2c23e2cd96e2ef29bf26abc86788a3643d9585
Local-runs: none
Scope: none + .changeset/34776-publish-checks-build-probes.md, packages/metadata-protocol/src/build-probes.ts, packages/metadata-protocol/src/build-probes.user-text.ts
Security-touching: no

Inputs read: card #35258 (body and both comments: the triage first touch and the claim), PR #35506 (body, the six-file list, the net diff against main at this head), and the check-runs on this head. Read to judge, not reviewed: packages/metadata-protocol/src/seed-applied-landed.ts, packages/metadata-protocol/src/seed-loader.ts (writeRecord, createOnlySeedColumns, the loadDataset mode refusal, the create-only delete at the matched-row write, landedIds / insertedIds), packages/spec/src/data/seed.zod.ts (SeedMode), and the new describe in build-probes-landed-data.test.ts. The tests, the new changeset .changeset/35258-seed-reference-repair-by-mode.md and the rest of the diff are the lane seat's ACCEPT at TIER_DEFAULT; the new changeset is read here only for ②.

① Derived judgments

  • reviewFace hits: none. No published schema, no governed path, no file under packages/spec/**, no skill or ADR file in the six-file list. Right.
  • Public surface of @objectstack/metadata-protocol: no export added, removed or retyped. RunBuildProbesOptions, ProbeEngine, SeedLandedRows are untouched; the seven new helpers (WRITING_SEED_MODES, seedModeOf, seedKeyFields, seedKeepsForCreate, seedRecordsCarry, seedRewritesOnMatch, seedNotRewritingWhy) are module-private. Right.
  • Finding surface: no new finding code and no new catalog key. What a reader of the receipt sees change: seed_reference_unresolved is now one finding per object and reference column (was one per seed and column); its artifact is the object's first published seed (was the seed iterated); message names every seed of the object; fix has three shapes; the userMessage takes a new cause param (seed, mode, stored), with an unknown or absent cause falling to the seed sentence, which is the previous sentence, so an old caller of say renders as before. rollup_never_computed: message and the 11 userMessage texts reworded, no param change. All text and row-selection changes of a warning, none refuses a publish. Right as a patch-level behaviour change.
  • Accept-set: nothing accepted before is refused now, and nothing refused is accepted. The probes run after the publish and only add warnings. Right.
  • Rows judged narrow in one place and one only: a matched row is no longer judged when any seed of the object is not upsert / update, or in a column some seed does not write back. That removes findings the old code emitted on rows it could not attribute; it is the card's Scope lines 2 and 3. Right.
  • Gates: every check-run on this head is success or skipped, except Check Changeset, which is failure. That red is the DELIBERATE CORRECTION judged in ②; no other gate verdict is open. Test Core (10 shards), TypeScript Type Check, Lint & Repo Gates, Governed Surface Queue Guard, PR-body guards are green.

② Semver level

  • New changeset .changeset/35258-seed-reference-repair-by-mode.md: @objectstack/metadata-protocol: patch, Clause-②: no, Metadata-protocol: none. Matches what the diff publishes: one package's src changes, no export, no schema, no refusal. Patch is right. The PR body carries the same two declaration lines.
  • Clause-②: no is right: no authorable metadata is narrowed, widened or reinterpreted; the seed, its mode, externalId and columns are read exactly as the loader reads them and nothing about how a seed is accepted or applied changes.
  • One sentence of the new changeset is slightly wider than the code (see N1 in ④): "rollup_never_computed says "of one organization" only when the pass was split by organization". Its other claims are true at this head, with the S1 residue below on the mixed-mode object.

DELIBERATE CORRECTION of .changeset/34776-publish-checks-build-probes.md (unreleased; minor for @objectstack/metadata-protocol; frontmatter and declaration lines unchanged). The diff of this file is one line, and inside that line one parenthesis changed; every other sentence of the note is byte-identical.

Before: "rollup_never_computed (a roll-up blank on every parent that has children)"

After: "rollup_never_computed (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one)"

Judged against build-probes.ts at this head, clause by clause:

  1. "a roll-up blank" — true. The verdict requires the roll-up field to be null or undefined on every parent read (parents.every(...)); a computed zero is a value and is not reported.
  2. "on all of the sampled parents" — true, and the correction is owed. The children read is limit: PROBE_SAMPLE_ROWS; the parents read is id $in the ids those sampled children name. The verdict is over those parents only. The old "every parent" claimed the whole table, which the code never reads. False before, true after.
  3. "that have children" — true. A parent enters the read only because a sampled child's foreign key names it (and, for a non-count roll-up, only when that child's aggregated field is set). A parent with no child is never read.
  4. "judged inside one organization" — true. The loop runs one organization at a time, both reads under landedReadContext(organization), and breaks on the first organization whose parents all read blank; the count and the verdict are formed inside that one pass.
  5. "when the rows carry one" — true. With no publishing organization and no tenant column, probeOrganizations answers [null] and the pass is unscoped; with a tenant column, a row stamped with no organization is filtered out and not judged at all, which the sentence does not contradict. With a publishing organization the pass is that organization's.

The remaining sentences of the note were re-read against this head, since the PR changes the code they describe: "seed_reference_unresolved (a sample record the seed loader landed whose reference names no row in the organization that record belongs to, so the reference leads nowhere)" still holds (the rows read are landed ids, each value probed in its row's organization); "the roll-up and seed probes judge each row inside that organization" still holds; "Each carries its sentence for the person in every platform locale" still holds (11 locales, each with the three cause arms). No other sentence needed a correction.

Verdict on the correction: the rewritten sentence is true at this head, on every clause. The correction is confirmed; Check Changeset red on it is the designed red.

③ Boundary flags

The card carries no open_questions. The PR body raises four flags in its Acceptance notes; each is answered.

  • Flag 1, Done-when 1 is met "through the repair text"; a republish under ignore with nothing else changed still comes back clean. Answered: held, as the only reading the card's own Scope allows. Scope line 2 binds "Read matched only when every published seed of the object declares a writing mode", and the code comment gives the standing reason (under ignore a matched row was left as its writer left it and may be a customer's). So "keeps reporting it" cannot be bought by reading matched rows under ignore. What the head delivers: the first receipt names three repairs, and each one, followed, either repairs the row (correct the stored row; delete and republish the corrected seed, which ignore then inserts) or keeps it reported with a working repair (upsert: pinned by the test "under ignore, the repair named reaches the stored row"). The residue is real and is stated here rather than hidden: an author who republishes without doing any of them gets a clean receipt and an unrepaired row, and the fix does not say that the next receipt will read clean. That is N3 in ④. Not escalated: the Scope line decides it.
  • Flag 2, Done-when 2, rows the publish created are judged whatever the seed's mode. Answered: right. An insert is the publish's own write under ignore too (writeRecord, the ignore arm inserts when no row exists), seedAppliedLanded lists it under inserted, and the card's Scope restricts matched only. Not judging created rows would silence the probe for the default mode altogether.
  • Flag 3, per-row precision: the probe cannot tell which record a landed id came from, so a column counts as rewritten only when every record of every seed carries it. Answered: right, and conservative in the safe direction. landed carries ids only (SeedLandingResult); the fallback stored repair is always reachable. The same blindness is what S1 below is about, on the mode axis instead of the column axis.
  • Flag 4, the Version Packages PR overlap on the corrected unreleased changeset. Answered: expected, not a finding; that PR is regenerated from main.
  • SQL push-down (Prime Directive 5). No new id materialisation and no new in-app join in the scoped files. The seed probe's reads are unchanged in shape: one id $in read of the landed rows projected to the reference columns, and one id $in existence read per column and organization projected to id; the new per-column judged filter is over the at most PROBE_SAMPLE_ROWS rows already read, by membership in the two landed id sets, which is not a join SQL could take (the sets come from the receipt, not a table). The card's third nit asked for a reason for the 50-row organization sample where a distinct read could push down: the reason is now stated on probeOrganizations (the list is a loop bound, two reads per organization on the publish request; a distinct read would return every organization of the table). The reason holds against the loop it bounds. Answered, no finding.

④ Design judgment

.changeset/34776-publish-checks-build-probes.md — holds; judged line by line in ②.

packages/metadata-protocol/src/build-probes.ts — the design holds against the loader on every path but one.

Held against the cited code:

  • seedAppliedLanded does fold every dataset of an object into one entry and never lists an inserted id as matched, so grouping the published seeds by object and emitting one finding per object and column is the right unit. Done-when 2's "one finding per object and column" is met and pinned.
  • seedModeOf defaults to ignore, as the spec does; SeedMode has exactly update, upsert, ignore, and loadDataset refuses a retired mode before any write with empty landedIds, so WRITING_SEED_MODES is the full set of modes that write a matched row.
  • seedKeyFields and seedKeepsForCreate mirror createOnlySeedColumns exactly: externalId defaulting to name, a key field exempt from applyOn: 'create'. The loader deletes the create-only columns from the record before a matched row's write, so "not rewritten" is true for them.
  • writeRecord updates a matched row with the record's own columns, so a record that does not carry the column never rewrites it; seedRecordsCarry requiring every record (and a non-empty records) is the conservative side.
  • Cause seed (every seed writes the column back): correcting the seed and republishing reaches the row, because the corrected record differs from the stored row and isNoOpReplay no longer skips it. True.
  • Cause stored: correct the stored row, or delete and republish the corrected seed. True for applyOn: 'create' and for a record without the column; an object whose seeds are all update never has a created row, and its matched rows are judged only under cause seed, so "so it creates them again" is never said of a seed that cannot create.
  • Cause mode with every seed of the object on ignore: all three repairs are true.

S1 (should-fix) — on an object with one ignore seed and one writing seed, the repair named is wrong for a row the writing seed landed. The cause is mode (!writing, and every seed would rewrite under upsert), and ignoring names the ignore seed alone. The fix then says "Republishing the seed as it is does not change those rows: under mode: 'ignore' (the default) seed(s) "A" leave a row they find again as it is", offers "correct or clear ... on those stored rows", and offers "declare mode: 'upsert' on those seed(s), point ... at real ... records there". The probe cannot tell which seed created a row (landed.inserted is merged per object), and when the dangling value came from the writing seed B's record: (a) correcting the stored row is undone on the next publish, because B finds the row again, the record now differs from it, and writeRecord's upsert arm writes B's value back; (b) declaring upsert on A and correcting the value "there" does not touch B's record, which is rewritten the same way. The userMessage for mode says "Publishing again does not change records that already exist", which is false of B's rows. This is the card's own two-seed scenario and its Scope line 1 ("fix and userMessage name the repair that works"), and the pinned test shows the shape: deals_ignore and deals_upsert both carry record D1 with acct_ref: 'a_gone', the finding names deals_ignore alone, and a hand-corrected d1 would be set back to a_gone by deals_upsert on the next publish. Only the middle repair (delete the rows and republish the corrected seed) works as written. The fix is text: in the mixed case, say that the value must also be corrected in the seed(s) whose mode already writes it back (name them, as seedNotRewritingWhy names seeds by reason), and do not claim that a republish leaves every existing record alone. Not a must-fix: both Done-when lines hold, the finding fires on the right rows, and one of the three repairs named is correct.

N1 (nit) — "of one organization" is still said on one pass that is not split by organization. probeOrganizations answers [publishing] whenever the publish names an organization, whether or not the child object has a tenant column, so blankIn is non-null and the message says "of one organization" for an object the engine reads unscoped (landedReadContext's own comment: an object with no tenant column is left unscoped). The card's nit is fixed for the no-publishing-organization path only, and the new changeset's "only when the pass was split by organization" is that much wider than the code. Wording of a warning's message; no effect on the verdict.

N2 (nit) — judged selects rows by String(r.id) membership in the landed id sets, while the loader takes a landed id from record.id || record._id and the target read fifteen lines below tolerates r?.id ?? r?._id. Before this PR the landed-row read needed no id at all. On an engine that answered a row without id, the probe would now judge nothing and stay silent. The read filters on id and projects id, and no such engine is shown in the tree, so this is a consistency nit, not a demonstrated defect.

N3 (nit) — the mode and stored fix texts say a republish does not change the rows, but not that the next receipt will carry no finding for them (a row found again under ignore, or a column the seed does not write, is not judged). An AI client that republishes unchanged reads a clean receipt. The answer to flag 1 in ③; one sentence in fix would close it, or a follow-up card.

N4 (nit) — with a mixed update and ignore object the mode text is otherwise right, but "under mode: 'ignore' (the default)" is said of every non-writing seed by construction of ignoring; that is exact today because SeedMode has no fourth live value. No change asked.

packages/metadata-protocol/src/build-probes.user-text.ts — holds, with S1's sentence as its one open point.

  • The param table row for seed_reference_unresolved names cause and its three values; the entry's jsdoc states the three repairs as the code selects them.
  • All 11 locales (en, zh-Hans, zh-Hant, es, ar, fr, pt-BR, ru, de, ja, ko) carry the three arms with the same structure: mode names the stored-record repair, delete-and-republish, and the upsert setting; stored names the first two and no mode change; the fallback arm is the previous sentence unchanged. No locale drops an arm or adds a repair the others lack. The mode arm's first sentence carries S1 in every locale.
  • rollup_never_computed: all 11 locales now say the records checked, not every record, matching clause 2 of the corrected changeset sentence; the jsdoc says the same. The cause (fills, named) arms are untouched.
  • The sentences name no id, no seed name and no mode beyond the word upsert, consistent with the producer-composes-the-sentence rulings the file cites; the technical detail stays in fix.

One should-fix (S1), no must-fix. S1's fix is a text change in build-probes.ts and the mode arm of build-probes.user-text.ts; it moves the head and earns a delta review. N1 to N4 are left as accepted deviations or a follow-up card.

Implemented-by: claude/project-thread-xh0fui
Reviewed-by: session_01L6bhgVmoN7y4S9ywEQ8f4D

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D

Contract review brief — PR #35506 @ 2f2c23e2cd96e2ef29bf26abc86788a3643d9585 (card #35258)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Why this review is owed: the PR rewrites one sentence of the UNRELEASED note .changeset/34776-publish-checks-build-probes.md
(a DELIBERATE CORRECTION; Check Changeset is red on it by design) AND changes code. Under
.claude/skills/pm-dispatch/references/landing-operations.md (the DELIBERATE CORRECTION lines), that correction is confirmed
only by a same-head at-tier L2 PASS whose record judges the rewritten sentence line by line, quoting it before and after.
reviewFace returns no hits on this file list (no published schema, no governed path, Clause-②: no, no narrowing arm).

Inputs — these and nothing else:
· card #35258: its body and EVERY comment (rulings and earlier records included)
· PR #35506: its body, its file list, and the net diff against main at 2f2c23e2cd96e2ef29bf26abc86788a3643d9585
· the check-runs on 2f2c23e2cd96e2ef29bf26abc86788a3643d9585: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: none;
widened by this brief to: .changeset/34776-publish-checks-build-probes.md (the corrected note: judge the rewritten
sentence against the code it now describes, quoting it before and after), and the code that sentence and the card describe,
packages/metadata-protocol/src/build-probes.ts and packages/metadata-protocol/src/build-probes.user-text.ts.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, the PR's own new changeset) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the scoped files ONLY; code outside the diff is READ to judge them, never reviewed.

Security — if a hits path is under skills/** or ui/skills/** and the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is SCRATCHPAD/pr-35506/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
Here also: the DELIBERATE CORRECTION of .changeset/34776-publish-checks-build-probes.md, the rewritten sentence
quoted before and after, judged true or false against the code at this head, line by line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY scoped file: does the change hold against the code it cites and the
scenario it is accepted against (the card's Scope and Done-when)? Read the cited code in the live tree
(the seed loader, seed-applied-landed.ts), and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@github-actions github-actions Bot added size/l and removed size/m labels Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D
os-dev-report

{
  "issue": 35258,
  "status": "done",
  "round": "patch round 1 (contract review 7026786132: S1, N1, N3)",
  "branch": "claude/project-thread-xh0fui",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/35506",
  "head": "b9dd931cdf4773ad58f7c8fbb58042c3af791b87",
  "previous_head": "2f2c23e2cd96e2ef29bf26abc86788a3643d9585",
  "session": "session_01L6bhgVmoN7y4S9ywEQ8f4D",
  "premise_still_valid": true,
  "summary": "S1: new fourth cause value `mixed` on the existing seed_reference_unresolved entry (no new code or catalog key), chosen when some seeds of the object write the column back on a matched row and some do not (cause `mode` now arises only when every seed is ignore). fix names the writing seed(s), names the others by reason (seedNotRewritingWhy), says to correct the value in every seed and then repair the rows the other seeds leave alone, and makes no claim that a republish leaves every existing row alone; the userMessage has a `mixed` arm in all 11 locales. N1: 'of one organization' only when the child object has a tenant column (organizationColumnOf), so a publishing organization over an untenanted object reads as one unscoped pass. N3: the mode, mixed and stored fix texts add that the next receipt carries no finding for those rows until a repair is done. The 35258 changeset sentence follows (cause list, mixed repair).",
  "tests": "head b9dd931c: pnpm --filter @objectstack/metadata-protocol test -> Test Files 360 passed | 9 skipped (369), Tests 23258 passed | 45 skipped, VERDICT command-exit 0; typecheck VERDICT command-exit 0; landed-data + user-message (locale pin, now with a `mixed` CASES row over two seeds) 75/75. Ablations (scripts/ablation-replace.mjs, restored to HEAD blob, git diff HEAD empty): `rewriters.length > 0` -> `< 0`: 2 failed/75 (mixed-seed test, mixed locale case); splitByOrganization without the tenant-column check: 1 failed/75.",
  "gates": "dispatch-gates --commands at b9dd931c: 66 derived (same 6-path change set); --ran: 66 accounted, 65 run, 1 NOT-MEASURED. Non-zero: check-empty-changeset --base origin/main :: exit 1 (the declared DELIBERATE CORRECTION, by design); check-plugin-teardown-shape --self-test :: exit 3 (shallow clone). check:dual-build-cjs-loads :: exit 0 and check:lean-entry-closure :: exit 0 this round; the other 62 exit 0.",
  "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
  "mcp_calls": "0",
  "api_writes": "1 — post-stamped os-dev-report delta comment (POST /issues/35506/comments); PR body not edited",
  "open_questions": [],
  "security_findings": "none",
  "out_of_scope_findings": []
}

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

维护者速读

  • 用户能看到什么变化:同一个对象如果有好几份示例数据,其中有的会覆盖已有记录、有的不会,提示现在会明确说要两边都改:示例数据要改,已经存在的记录也要改(或者删掉记录后重新发布)。以前这种情况只让人改已存的记录,下次发布又会被覆盖回错的值。除"直接改示例数据"之外的几种修法,提示还会补一句:没改之前,下一次发布回执不会再报这个问题,别把"没报了"当成已经修好。
  • 出错会怎样:只影响发布回执里的警告文字,不拦发布,也不改数据。
  • 要你做什么:不需要你做任何事。还差同 head 的 L2 增量记录(卡线程在出),这条记录同时用来确认那条订正。

席位核对 — delta ACCEPT (L1-a) · repo:objectstack#1 · head b9dd931cdf4773ad58f7c8fbb58042c3af791b87 · 2026-11-20T01:21Z

  • Delta — one commit, b9dd931c, on 2f2c23e2 (my ACCEPT 7026754146). 5 files, +123/−27. No main merge. It answers L2 S1, N1 and N3 (record 7026786132). The dev delta report is 7027358349.

  • S1, the new mixed cause. rewriters and others are split by seedRewritesOnMatch, and cause is chosen as follows:

    • seed when every seed rewrites the column;
    • mixed when some do;
    • mode when none does and upsert alone reaches the column on every one of them;
    • stored otherwise.

    I checked that mode and stored mean what they did at 2f2c23e2. With no rewriter, a writing seed in others either does not carry the column or keeps it for create, and upsert reaches neither, so upsertReaches is false exactly when the old !writing && … test was. That is also why "under mode: 'ignore' … seed(s) ${names(others)}" stays exact: on the mode branch, every seed in others is an ignore seed. The mixed fix names the writing seeds, gives the others' reason through seedNotRewritingWhy, asks for the value to be corrected in every seed and on the rows the other seeds leave, and offers upsert only when upsertReaches. The judged set is unchanged: under mixed, matched rows are not judged, because rewritten is false. No code, catalog key or export is new. cause stays a parameter of the one seed_reference_unresolved entry, and its row in the table now lists the four values.

  • The mixed user sentence is in all 11 locales. I read each one. All say that a republish writes some values back and leaves others, and ask for the fix in the sample data and also on the stored records, or for a delete and republish. None leaks an API name, and the new mixed case in the user-message test carries hidden. The user sentence omits the upsert alternative that fix offers. That is acceptable: the user text names a repair that always works.

  • N3, the clean-receipt warning. nextReceipt ("Until one of these is done, the next receipt carries no finding for those rows: a republish that changes nothing reads clean.") is appended to mixed, mode and stored, and not to seed, whose matched rows stay judged. It is pinned on all three, and it closes the dev's earlier out-of-scope note.

  • N1, the roll-up organization clause. "of one organization" now needs blankIn !== null and a tenant column on the child object (organizationColumnOf(engine, childObject)), which is the object probeOrganizations splits on. A publishing organization over a child with no tenant column is read unscoped, and now says so. It is pinned by the new case a publishing organization over a child object with no tenant column is still one unscoped pass.

  • The DELIBERATE CORRECTION, again at this head. .changeset/34776-publish-checks-build-probes.md is byte-identical between 2f2c23e2 and b9dd931c (git diff --quiet). The corrected sentence ("… on all of the sampled parents that have children, judged inside one organization when the rows carry one") is still exactly what the code does, and N1 makes "when the rows carry one" tighter than at 2f2c23e2. Both sentences are quoted in my ACCEPT 7026754146. As there, this L1 does not confirm the correction by itself. Under 「其余(含改代码)照全套」, the same-head L2 PASS that judges the rewritten sentence confirms it, and the card thread is producing that record now.

  • Changeset 35258 — the repair sentence now has the mixed arm and the next-receipt clause, and the cause list is seed, mixed, mode, stored. Each matches the code. It is still @objectstack/metadata-protocol at patch, Clause-②: no.

  • Gates — at reading time on this head: 34 success, 16 skipped, Check Changeset failing (the DELIBERATE CORRECTION red, by design), and Test Core (9/10) in progress. This ACCEPT holds when Test Core (9/10) finishes green.

  • Landing terms — unchanged. Once a same-head L2 PASS judging the rewritten sentence is on record, the card thread lands this head, red by design, under SKILL.md's three conditions. A new push needs a fresh L1 unless it is a clean main merge.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b9dd931cdf4773ad58f7c8fbb58042c3af791b87
Local-runs: none
Scope: none + .changeset/34776-publish-checks-build-probes.md, packages/metadata-protocol/src/build-probes.ts, packages/metadata-protocol/src/build-probes.user-text.ts
Security-touching: no

Delta round on record 7026786132 (head 2f2c23e2cd96e2ef29bf26abc86788a3643d9585). Read: the delta between that head and this one (five files, 123 insertions, 27 deletions), the live tree where the delta cites it (seedRewritesOnMatch, seedNotRewritingWhy, organizationColumnOf, landedReadContext, and the loader's writeRecord as read in the first round), and the check-runs on this head. The dev's account in PR comment 7027358349 was read as a claim list only; every line below is judged on the tree. The two test files and the new changeset stay the lane seat's ACCEPT at TIER_DEFAULT; the new changeset is read here for ② alone.

① Derived judgments

  • reviewFace hits: still none. The file list against main is the same six paths as on the reviewed head; no published schema, no governed path. Right.
  • Public surface: still no export added, removed or retyped. The delta adds no helper; it adds three locals (rewriters, others, upsertReaches), a names formatter and a nextReceipt string inside the seed section, and splitByOrganization in the roll-up section. Right.
  • Finding surface: no new finding code and no new catalog key. The cause param of seed_reference_unresolved gains a fourth value, mixed; the param table row in build-probes.user-text.ts names all four. An absent or unknown cause still falls to the seed sentence. The fix text gains a mixed shape and one closing sentence on the mixed, mode and stored shapes. rollup_never_computed's message drops "of one organization" on one more path. Text of a warning only; nothing is refused. Right as patch-level.
  • Which rows are judged did not move in the delta: writing, inserted, matched, rewritten and judged are byte-identical to the reviewed head. Only the choice of cause and the texts changed. Right, and it keeps both Done-when lines where the first round found them.
  • Cause selection at this head, derived from the code: seed when every seed of the object rewrites the column on a matched row; else mixed when at least one seed does; else mode when declaring upsert on every seed would make it rewrite; else stored. Since a seed in update or upsert that carries the column and does not keep it for create is already a rewriter, mode now arises only when every seed of the object is on ignore. Right.
  • Gates on this head: 52 check-runs. Every completed one is success or skipped, except Check Changeset, failure, the designed red of the DELIBERATE CORRECTION (②). One run had not finished when this record was written: Test Core (9/10), in_progress. Shards 1 to 8 and 10 of 10 are success, as are TypeScript Type Check, Lint & Repo Gates, Governed Surface Queue Guard and the PR-body guards. This record's verdict is on the contract; it does not stand in for shard 9, whose conclusion the landing seat reads before the merge.

② Semver level

  • .changeset/35258-seed-reference-repair-by-mode.md: still @objectstack/metadata-protocol: patch, Clause-②: no, Metadata-protocol: none; only its second paragraph changed. Patch and Clause-②: no remain right: no export, no schema, no refusal, no authorable metadata reinterpreted.
  • The edited paragraph, against the code at this head: "when only some seeds of the object write it back, correct it in every seed and also on the stored rows (or delete them and republish), since the receipt cannot tell which seed landed which row" is the mixed arm as written; "Every repair but the seed's says the next receipt reads clean until it is done" is nextReceipt, appended to the mixed, mode and stored fix texts and not to seed; "a new cause (seed, mixed, mode, stored)" is the union the code declares. True.
  • The sentence the first round found wider than the code, "rollup_never_computed says "of one organization" only when the pass was split by organization", is unchanged in the note and is now true, because the code moved to it (N1 below).

DELIBERATE CORRECTION of .changeset/34776-publish-checks-build-probes.md: the file is byte-identical between the two heads. Its blob is 97fe0eee162bca15190be29c67ff4ddbd42f372e at 2f2c23e2cd96e2ef29bf26abc86788a3643d9585 and at b9dd931cdf4773ad58f7c8fbb58042c3af791b87, and it is absent from the delta's file list. The rewritten sentence is therefore the one judged in record 7026786132:

Before: "rollup_never_computed (a roll-up blank on every parent that has children)"

After: "rollup_never_computed (a roll-up blank on all of the sampled parents that have children, judged inside one organization when the rows carry one)"

Re-judged against the roll-up section at this head, since the delta touched that section: the children read is still limit: PROBE_SAMPLE_ROWS, the parents are still those the sampled children name, the verdict is still every such parent reading null or undefined, and the loop still runs one organization at a time under landedReadContext(organization). The delta changed only whether the message says "of one organization"; it now says so only when the child object has a tenant column, which agrees with "judged inside one organization when the rows carry one" more closely than before. All five clauses hold. The correction stays confirmed on this head; Check Changeset red on it is the designed red.

③ Boundary flags

  • The dev's report for this round carries open_questions: [], no security finding and no out-of-scope finding. The card still carries no open_questions. The four flags answered in record 7026786132 stand unchanged: the delta moved none of the code they rest on (row selection is byte-identical).
  • Flag 1 of the first round (an unchanged republish under ignore reads clean) is now stated to the reader by the finding itself; see N3 below.
  • SQL push-down (Prime Directive 5): the delta adds no read at all. rewriters and others are filters over the object's published seed bodies already in memory; splitByOrganization calls organizationColumnOf, a schema lookup, not a query. No new id materialisation, no in-app join. No finding.

④ Design judgment

.changeset/34776-publish-checks-build-probes.md — unchanged between the heads; holds, as judged in ②.

packages/metadata-protocol/src/build-probes.ts

S1: closed. The card's two-seed scenario (one ignore seed, one upsert seed, both carrying the column) now selects mixed, not mode. The mixed fix was tried against the loader on each kind of row it can cover:

  • a row the writing seed created or will find again: the text says the writing seed(s), named, "write ... back onto every row they find again, so a correction of a stored row alone is written over by their next replay", and prescribes correcting the value "in every seed of the object". writeRecord's upsert and update arms do exactly that once the record differs from the stored row. True, and it is the half the first round found missing.
  • a row only a non-rewriting seed created: the text names those seeds by their reason (seedNotRewritingWhy, now over others alone, so a writing seed is never described as ignore) and prescribes, for those rows, correcting the stored row, or deleting it and republishing the corrected seed, or, only when upsertReaches, declaring upsert on those seeds. Each works: no seed of that kind writes the column on a replay; a deleted row is created again from the corrected seed; and after the mode change every seed rewrites.
  • a row both seeds key to (the pinned test's D1): corrected in every seed, the writing seed rewrites it. True.
    The sentence the first round found false, "Republishing the seed as it is does not change those rows", no longer appears on this path, and the test pins its absence. mode is now reached only when every seed is on ignore, where that sentence and all three repairs are true. stored is reached only when no seed rewrites and some seed would not under upsert either; a stored correction then sticks. The upsert offer inside mixed is withheld when a non-rewriting seed keeps the column for create or has a record without it, which is right: the mode change alone would not reach the column.

N1: closed. splitByOrganization requires both a non-null blankIn and a tenant column on the child object, so a publishing organization over an untenanted child object no longer claims "of one organization"; landedReadContext's own contract is that such an object is read unscoped. When the engine does not say (getSchema absent) the phrase is dropped, the conservative side. Pinned by the new case.

N3: closed. nextReceipt is appended to the mixed, mode and stored texts: "Until one of these is done, the next receipt carries no finding for those rows: a republish that changes nothing reads clean." Checked on each: under mode and stored the created rows come back as matched and are not judged; under mixed they come back as matched and rewritten is false, so they are not judged either. True on all three, and correctly absent from seed, where a matched row keeps being reported.

N4: closed by construction. mode now names others, and on that path every such seed is on ignore, so "under mode: 'ignore' (the default)" is exact whatever modes exist.

N2 (nit): unchanged, left as an accepted deviation. judged still selects by String(r.id) while the target read tolerates _id; no engine answering rows without id is shown in the tree.

packages/metadata-protocol/src/build-probes.user-text.ts

S1: closed here too. A mixed arm leads the conditional in all 11 locales (en, zh-Hans, zh-Hant, es, ar, fr, pt-BR, ru, de, ja, ko), with one structure: publishing again writes some of the sample values back onto existing records and leaves others; fix or clear the field in the sample data and also on those records, or delete them and publish the corrected sample data again. That is true of both kinds of row and makes no claim that a republish leaves existing records alone. The mode sentence, "Publishing again does not change records that already exist", is now rendered only when every seed is on ignore, where it is true. The mode, stored and fallback arms are byte-identical to the reviewed head. The jsdoc and the param table name the fourth value. No locale drops the arm or adds a repair the others lack. The sentences still name no id, no seed name and no mode beyond upsert, as the rulings the file cites require; the mixed sentence omits the upsert option, which fix carries when it applies.

N5 (nit) — the PR body still describes three cause values and the first round's wording of "of one organization"; it was not edited in this round. It is a prose face, the tree is what this record judges, and the body's two declaration lines are unaffected. Edit the body, or leave it: neither moves the head.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-xh0fui
Reviewed-by: session_01L6bhgVmoN7y4S9ywEQ8f4D

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

L2 adoption · 2026-11-20T01:23Z · The seat adopts the #35258 card thread's isolated delta record 7027405938 for head b9dd931c, served at CONTRACT_REVIEW_TIER and posted with --tier-evidence. It is the delta for first-round record 7026786132, by the same reviewer, under template brief 7026804467 (⛔ lines kept), with its reading limited to 2f2c23e2..b9dd931c. The paths read the declaration face, so the served tier meets the floor.

The verdict is PASS, with no must-fix and no should-fix items. S1, N1, N3 and N4 are closed. N2 (judged matches on r.id only) and N5 (PR-body prose) stand as accepted deviations.

The record re-judges the DELIBERATE CORRECTION of unreleased changeset 34776 sentence by sentence, quoting it before and after; its blob is unchanged between the two heads. That is the same-head L2 confirmation that landing-operations.md asks of a diff that changes code. L1-a delta ACCEPT is 7027391911, on condition that Test Core shard 9/10 turns green.

check-governed-merges --pr 35506 reads not governed, with 541 changed lines. The card thread lands it through the ordinary queue, carrying the Check Changeset red only when SKILL.md's three conditions all hold.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D

Red by design · 2026-11-20T01:26Z · head b9dd931cdf4773ad58f7c8fbb58042c3af791b87

  • Gate: Check Changeset (job changeset-check in .github/workflows/pr-automation.yml, step running scripts/check-empty-changeset.mjs).
  • Cause: this PR rewrites one sentence of the unreleased note .changeset/34776-publish-checks-build-probes.md (the DELIBERATE CORRECTION class; before/after quoted in the PR body). The gate refuses any change to a changeset that exists on the merge base and was not added by this PR; its log at this head names that note and prints the DELIBERATE CORRECTION remedy.
  • Red by design on the pushed branch, per the gate's own source: pr-automation.yml (main) says the steps above are RED BY DESIGN on the DELIBERATE CORRECTION class and the red is left standing on purpose; check-empty-changeset.mjs says do NOT restore the note, declare it on the PR, and the seat confirms it by its own record.
  • Not run in the merge group: pr-automation.yml triggers on pull_request only (no merge_group), so the queue does not re-run it.
  • Confirmation on record at this head: L2 delta record 7027405938 (PASS, re-judges the corrected sentence before and after; blob unchanged since record 7026786132), adopted by the seat in 7027430021; L1-a delta ACCEPT 7027391911.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVmoN7y4S9ywEQ8f4D

Landing · 2026-11-20T01:27Z · head b9dd931cdf4773ad58f7c8fbb58042c3af791b87

probe reading
check-governed-merges.mjs --pr 35506 NOT governed, 0 of 6 paths hit the register; 541 changed lines (under 3000)
K = git rev-list --count --first-parent PRBASE..origin/main, PRBASE 60ed6bd9 (Test Core's Affected-set diff base) 5 (under 15); no skills/** or shared-budget input of this PR moved

Records on this head: L2 delta PASS 7027405938 (seat adoption 7027430021), L1-a delta ACCEPT 7027391911 (its condition, Test Core 9/10, is green). Every check green or expected skip except Check Changeset, red by design (7027468519: all three SKILL.md conditions). State change: ready + auto-merge through the ordinary queue; Fixes #35258 closes the card on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 01:27
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit a35187e Nov 20, 2026
56 of 58 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-xh0fui branch November 20, 2026 01:55
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

2 participants