Skip to content

fix(spec)!: drop an explained bare union head from the data API fields[] - #37083

Merged
os-zhuang merged 12 commits into
mainfrom
claude/issue-35433-fields-drop-explained-union-head
Nov 24, 2026
Merged

os-zhuang merged 12 commits into
mainfrom
claude/issue-35433-fields-drop-explained-union-head

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

Fixes #35433

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no skills/ page names the union's invalid_shape / Invalid input entry or reads fields[] by position

维护者速读

  • 用户能看到什么变化:通过数据接口提交、在联合类型字段上被拒时,错误清单不再先列一条空洞的「输入无效」,第一条就是真正的原因;下面没有解释时那句仍保留。
  • 为什么做:按维护者对这张卡的裁决(选项 A,跟元数据保存那边一样去掉),让数据接口和元数据保存两处对同一个值说同样的话。
  • 出错会怎样:按位置读错误清单第一条、或专找那条「输入无效」的调用方会读到不同条目;普通的增删改和批量写入不受影响;不涉及存储数据,撤回这一个 PR 即可恢复。
  • 要你做什么:批准或合并这个 PR;它是申报了收窄的破坏性改动,席位不能自己落地。

What changes

zodIssuesToFields (packages/spec/src/api/zod-issues-to-fields.ts), the mapper behind every data-API fields[] refusal, now drops a failed union's own entry, { code: 'invalid_shape', message: 'Invalid input' }, whenever an entry below it explains the failure, at every depth. It keeps that entry when nothing explains it (every branch a bare kind mismatch, or the depth bound reached), when it carries the schema's own error sentence, and for container heads (invalid_key / invalid_element). This is the rule the metadata envelope took for #35400, per the maintainer's ruling record 7010280743 on this card (option A, 「A 跟 #35400 一样去掉」).

  • Producer: collectIssueFields gathers the expansion into a local list first, then pushes the head only when the list is empty or the head's message is not zod's exact default (ZOD_UNION_DEFAULT_MESSAGE, pinned against a real zod parse).
  • Pins: zod-issues-to-fields.test.ts (new describe), union-branch-policy.parity.test.ts (the renderer keeps the head as the parent line of its tree; the wire drops it, asserted with a kept-head control), union-branch-policy.cross-package-parity.test.ts (the two machine lists now agree entry for entry), packages/rest/src/zod-union-fields.test.ts (the query door on the wire).
  • Docs: content/docs/api/error-handling-server.mdx no longer teaches "that entry PLUS the entries of the branch".
  • Changeset: @objectstack/spec patch, fix(spec)!, BREAKING banner, FROM / TO, one ADR-0087 marker (not-required (no-migration-prescription)).

Why

Ruled on this card: the data API's fields[] and the metadata envelope's issues[] say the same thing about one value. The head named only the slot; the entries naming the key and the constraint were always further down the list.

Tests

The package-suite and ablation readings below are from head 38aa8786363, taken under the shared verify lock on a shared box. Head 39597f014f7 (the rework: changeset and two docblocks, comment-only in code, plus a merge of origin/main) was re-read on the affected files; see Verification.

Package suites (all green)
  • pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2: Test Files 982 passed (982), Tests 29844 passed, 1 todo.
  • pnpm --filter @objectstack/metadata-protocol test: Test Files 369 passed, 9 skipped (378), Tests 23389 passed, 45 skipped.
  • pnpm --filter @objectstack/rest test: Test Files 429 passed (429), Tests 8818 passed, 351 skipped.
  • pnpm --filter X typecheck for spec, metadata-protocol and rest: exit 0 each.
Ablation (one time, not kept)
  • Mutation through scripts/ablation-replace.mjs: the guard if (below.length === 0 || message !== ZOD_UNION_DEFAULT_MESSAGE) out.push(entry); was replaced with an unconditional out.push(entry); plus a marker comment, so the head is always kept again. The anchor count went 1 to 0, the marker count 0 to 1, and the blob changed from 9823123bd547 to 23c2523c7f98.
  • Mutated leg, zod-issues-to-fields.test.ts and union-branch-policy.parity.test.ts: Test Files 2 failed (2), Tests 11 failed, 31 passed (42). Among the failures: "a top-level union head is dropped, so fields[0] is the located cause", "every head of a nested union is dropped while something below explains it", and every "agrees pair for pair" fixture that has an explained head.
  • Restore was proven by blob hash: the blob after restore equals the HEAD blob (9823123bd547), and git diff HEAD is empty. Restored leg: Test Files 2 passed (2), Tests 42 passed (42).
  • Scope: these two suites import the source relatively, so they measure src/ and need no rebuild. The metadata-protocol and rest pins resolve @objectstack/spec through dist/, and they were not ablated.
  • The first attempt was a no-op, and the tool refused it: the replacement text is a substring of the anchor, so the replacement count did not rise. It was rerun with a marker.

Acceptance notes

  • Every shipped call site consumes the mapper unchanged and none re-adds the head, so none is touched: crud-routes.ts (create, find, update), batch-routes.ts (batch, createMany, updateMany, deleteMany), record-page-routes.ts, rest-server.ts, analytics-selection-door.ts, plugin-auth's personal-view-hooks.ts and types' validation-failure.ts. All of them answer VALIDATION_FAILED.
  • One in-repo reader reads by position: readDeclaredQueryNumber (packages/rest/src/rest-server.ts:926) builds its sentence from fields[0]?.message. For a declared number schema that is a union with an explaining branch, that sentence now quotes the first located cause in place of "Invalid input". No regression.
  • The prose renderer (formatZodError, the CLI) still prints the union line as the parent of its indented tree. That asymmetry is recorded in both parity tests.
  • Read first, by risk: packages/spec/src/api/zod-issues-to-fields.ts (the below hunk in collectIssueFields), then union-branch-policy.cross-package-parity.test.ts §2/§4, then the changeset.
  • Two-minute check: pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/api/zod-issues-to-fields.test.ts — expect every test green, including the describe "an explained bare union head is dropped".

Verification

Gate sweep: dispatch-gates --commands, 108 families
  • node scripts/pm/dispatch-gates.mjs --ran (with exit codes recorded): 108 derived, 106 run, 2 NOT MEASURED, 0 unrun.
  • NOT MEASURED: check:skill-examples, reason: exit 3, PREREQUISITE NOT MET (the client SDK packages are not built in this tree). Also NOT MEASURED: check:dual-build-cjs-loads, reason: exit 3, PREREQUISITE NOT MET (48 packages have no dist). The diff touches neither surface. In CI, check:dual-build-cjs-loads runs in Build Core; check:skill-examples runs in Lint UI, whose path selector skips it for a diff with no skills/, ui/ or SDK path, so it stays NOT MEASURED.
  • Fixed on this head after the first sweep:
    • check-adr-0087-registration: the changeset's label-positioned before/after block read as a migration prescription. It is now FROM / TO bullets, and the check exits 0.
    • check:error-code-casing: the dropped-head pin now carries an adr0112-ok D6 note, and the check exits 0.
    • check:test-source-alias: the edited rest test now pays the engine load at module top, and the check exits 0.
    • check:type-check-debt: rerun under the lock, exit 0.
  • pnpm --filter @objectstack/spec check:generated after a fresh spec build: exit 0. No generated artifact moved.
  • test:repo was not run locally; CI owns it.
Dogfood battery (narrowing arm), head 39597f0
  • pnpm --filter @objectstack/dogfood test under the shared verify lock, full battery, no shard, no path, after building the dogfood closure (exit 0): os-verify-lock: VERDICT command-exit 0 · held the lock 2339s. Test Files 487 passed, 3 skipped (490); Tests 4128 passed, 68 skipped (4196); 0 failed.
Rework re-read, head 39597f0
  • spec: zod-issues-to-fields.test.ts + union-branch-policy.parity.test.ts: Test Files 2 passed (2), Tests 42 passed (42).
  • rest: zod-union-fields.test.ts: Test Files 1 passed (1), Tests 18 passed (18).
  • metadata-protocol: union-branch-policy.cross-package-parity.test.ts: Test Files 1 passed (1), Tests 22 passed (22).
  • typecheck for rest, metadata-protocol and spec: exit 0 each.
  • Gate sweep: dispatch-gates --ran (exit codes recorded): 108 derived, 106 run, 2 NOT MEASURED (check:skill-examples and check:dual-build-cjs-loads, exit 3, prerequisite not met, as above), 0 unrun. check:type-check-debt rerun under the lock: exit 0.
  • CI on this head: 70 check-runs, 60 success, 10 skipped, 0 failed; Lint & Repo Gates, TypeScript Type Check, Build Core, Check Changeset, Test Core and Dogfood Regression Gate all success.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes (CI-owned run).
  • 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: its generated artifacts are regenerated and committed (none moved).
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

Generated by Claude Code

… fields[]; correct the error-handling doc

Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7
Co-authored-by: Claude <noreply@anthropic.com>
…elds-drop-explained-union-head

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
…cs; reflow the error-handling note

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
@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 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-metadata-issues.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-metadata-issues.ts) — pages documenting those are invisible to this run
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 176 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 ebb4713c06f06adbfe0390b5722c70e31948e3a1 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json ebb4713c06f06adbfe0390b5722c70e31948e3a1

⚠️ 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#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

Contract-review-claim: session_011y7As5bdhV5T4N9vpjmZzH · head 38aa878 · 2026-11-24T19:47Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 38aa878636317e357dfcce6646ee20fc891d8dea
Local-runs: none
Scope: packages/spec/src/api/zod-issues-to-fields.ts + packages/spec/src/api/zod-issues-to-fields.test.ts, packages/spec/src/shared/union-branch-policy.parity.test.ts, packages/metadata-protocol/src/union-branch-policy.cross-package-parity.test.ts, packages/rest/src/zod-union-fields.test.ts
Security-touching: no
Rule-change-verified: none

2026-11-24T19:49Z · isolated one-shot reviewer, not the drafter. Inputs: the diff a68b475bbc8..38aa8786363, card #35433, ruling record 7010280743, claim 7118226042 with amendment 7139723470, and the head's check-runs. Faces: published schema (packages/spec/src/** non-test) and the declared narrowing (Clause-②: no (narrowing) on the PR body and the changeset), so the floor is every diff path outside the prose faces; all five are in Scope:. The changeset and content/docs/** are prose faces and are read in the seat record, not here. Read, not reviewed: packages/metadata-protocol/src/protocol-metadata-issues.ts, packages/spec/src/shared/refusal-head.ts, packages/rest/src/rest-server.ts, crud-routes.ts, batch-routes.ts, packages/spec/src/api/index.ts.

① Derived judgments

  • Clause-②: no (narrowing) holds. The accept set does not move: no schema, key or value is added or removed. What moves is a published response: fields[] loses an entry. The ruling record prescribes exactly this arm (「下面有解释时去掉这句,没有时保留;两处说法一致」), so the declaration is the ruled one and not the dev's own reading.
  • Metadata-protocol: none holds: nothing a metadata author can write changes.
  • The predicate is the ruled rule and no wider. collectIssueFields pushes the head unless both below.length > 0 and message === ZOD_UNION_DEFAULT_MESSAGE. That is the same two-part test as collectMetadataIssues (metadata save refusal: a refused view or form save lists a bare "Invalid input" entry at path '' as issues[0], beside the entries that name the real key (split from #33345 row 60; needs a decision) #35400) on main, read side by side. The spec side compares the raw issue message where the sibling compares entry.message; the two differ only when a refusal head is registered for the message, and then the raw message is not zod's default, so the head is kept on both readings.
  • Kept cases, each traced in the code: no branch selected or every nested entry de-duplicated (below empty); the depth bound (expandable false, the unchanged pre-existing path); a schema-authored error sentence; container heads (invalid_key / invalid_element), which take the unchanged out.push(entry) path.
  • Order is preserved: below is appended in place, so the explanation stands where the head stood, between its sibling issues. packages/rest/src/zod-union-fields.test.ts pins that with failing neighbours on both sides.

② Semver level

@objectstack/spec: patch with the ! title and the BREAKING banner is the level AGENTS.md Post-Task Checklist step 3 gives a non-protocol breaking change ("a non-protocol change, widening or breaking, ships patch and keeps its BREAKING banner and ADR-0087 disposition"). One ADR-0087 marker, not-required (no-migration-prescription): correct, nothing stored is rewritten and no key is renamed. No changeset is owed for @objectstack/rest or @objectstack/metadata-protocol: each has one touched file, a test, and both packages ship dist only.

③ Boundary flags

  • Dev report 7142405078: open_questions empty, security_findings none. Nothing to escalate.
  • SQL push-down: not applicable. The diff holds no query, id materialisation or join.
  • Public surface: ZOD_UNION_DEFAULT_MESSAGE is exported from the module for the test pin only. packages/spec/src/api/index.ts:61 re-exports zodIssuesToFields alone and the diff moves no api-surface/** file, so no new public name ships.
  • In-repo positional reader, for the record: readDeclaredQueryNumber (packages/rest/src/rest-server.ts:926) builds its sentence from fields[0]?.message. For a declared number schema that is a union with an explaining branch, that sentence now quotes the first located cause in place of "Invalid input". No regression; no call site re-adds the head (crud-routes.ts, batch-routes.ts, record-page-routes.ts, personal-view-hooks.ts and validation-failure.ts pass the list through or map it entry by entry).

④ Design judgment

packages/spec/src/api/zod-issues-to-fields.ts, against ruling 7010280743 and its first consumer (the REST doors): holds. It takes nothing a caller could act on. The dropped entry named only the slot, and every entry that replaces it carries that slot as a field prefix. When nothing below explains the union, the head is still the answer for the slot. The zod-wording dependency is pinned against a real failed parse, so a reworded default fails a test and cannot quietly switch the drop off. The mirror with the metadata envelope is enforced, not asserted in prose: the cross-package parity test now holds wire equal to mine entry for entry over its whole fixture corpus, with hand-authored machinePaths as a third statement.

Implementing files: the four tests agree with the contract. Each kept case has a pin, and the drop has a kept-head control beside it in every suite.

Findings:

  1. should-fix — two comments still state the old stance, and this diff is what makes them false.
  2. nit — withoutExplainedBareHeads (both parity tests) reads "explained" as "the next pair sits at or under the slot", and treats a root head ('') as explained by any next pair. It is a projection of the prose side only, and the direct assertions do not depend on it.

No must-fix on the contract faces. Finding 1 is open: its fix is a non-prose move, so the next head owes a delta read at this tier before any landing check. This record does not carry over to that head.

Implemented-by: claude/issue-35433-fields-drop-explained-union-head
Reviewed-by: session_011y7As5bdhV5T4N9vpjmZzH

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

席位核对 — REWORK · head 38aa878

2026-11-24T19:50Z · L1 (one-shot reviewer), checked against GitHub and origin/main 9d707686ee3 (merge base a68b475bbc8), not against the report's own account. Card #35433, ruling record 7010280743 (option A), claim 7118226042 with amendment 7139723470, dev report 7142405078. The same-head contract review is comment 7142645882 (PASS on the contract faces, one open should-fix). Nothing was built or run locally for this record.

Verdict in one line: the code is the ruled rule and is well pinned. The REWORK is for two false sentences in the changeset and two comments that still state the old stance.

CI on this head: 70 check-runs, 60 success, 10 expected skips, 0 failed, 0 pending (l1-face.mjs --pr 37083, read at 2026-11-24T19:50Z). The floor is green: Lint & Repo Gates and TypeScript Type Check are success; so are Build Core, Check Changeset, Type Check · debt ledger and Dogfood Regression Gate.

Must-fix

  1. .changeset/fields-bare-union-head.md, last paragraph — a false release claim. "This is the rule a refused metadata save's issues[] took in the previous release (@objectstack/metadata-protocol)". metadata save refusal: a refused view or form save lists a bare "Invalid input" entry at path '' as issues[0], beside the entries that name the real key (split from #33345 row 60; needs a decision) #35400 is not released: its changeset .changeset/metadata-issues-bare-union-head.md is still pending on origin/main and sits in this head's tree, npm's latest @objectstack/metadata-protocol is 18.6.0, and that version's CHANGELOG section does not carry it. Both rules ship in the same release. Say that.
  2. Same changeset, "What narrows" — a false public-surface claim. "zodIssuesToFields (@objectstack/spec/api, re-exported by @objectstack/rest)". packages/rest/src/index.ts is the package's only entry (exports has . alone) and does not export it. The export { zodIssuesToFields } at rest-server.ts:476 is an internal module that the in-package tests import. A reader who follows the sentence gets an import that does not resolve. Drop the clause.
  3. Two comments still state the old stance, and this diff is what makes them false (the ruling-implementation check: zero copies of the old stance).
    • packages/metadata-protocol/src/protocol-metadata-issues.ts:228-232: "Both spec walks KEEP every head (… zodIssuesToFields emits it as invalid_shape); that asymmetry is recorded in union-branch-policy.cross-package-parity.test.ts §4." This PR rewrites §4 to say the opposite. The file is outside the claim's surface, so the fix needs a one-line claim amendment (comment-only hunk; no changeset for it, the package ships dist only and the function is not exported).
    • packages/rest/src/zod-union-fields.test.ts:263: "The expansion is strictly ADDITIVE, same contract as union 分支里的 unknown-key 处方永远到不了作者:zodIssuesToFields 只映射顶层 issue,失败的 union 只剩 Invalid input #5014", against line 209 of the same file, "no longer strictly additive".
      This is finding 1 of the contract review. It is a non-prose move: the next head owes a delta read at the contract tier and a fresh dogfood_battery pin.

Should-fix, same round

  1. Changeset, "What narrows": "Every 400 VALIDATION_FAILED / VALIDATION_ERROR whose fields[] comes from it moves". Not every one: only a refusal whose value sits on a union slot with an explaining branch. The ruling record measured that plain create, update, bulk and batch writes emit no head. And no shipped call site of the mapper answers VALIDATION_ERROR: crud-routes.ts, batch-routes.ts, record-page-routes.ts, rest-server.ts, personal-view-hooks.ts and validation-failure.ts all answer VALIDATION_FAILED; VALIDATION_ERROR is the docs sample's own code.
  2. PR body (no head move):
    • "rest's createValidationError" names a function that does not exist in packages/rest. It is the sample in error-handling-server.mdx; the card's "Where" carried the same name. Name the real call sites, and add the one in-repo positional reader, readDeclaredQueryNumber (rest-server.ts:926, fields[0]?.message), whose sentence can now quote the first located cause.
    • "CI's Lint & Repo Gates runs both" is wrong for both gates: check:dual-build-cjs-loads runs in Build Core (ci.yml:3446, success here), and check:skill-examples runs in Lint UI (ci.yml:4971), which is skipped on this head by its path selector.
    • The "Dogfood battery … is queued" paragraph is stale; the reading is in report 7142405078.

Checklist

  1. PR shape: draft, base main, first line Fixes #35433, same-repo head. Fixes is right: the producer, the parity pin and the doc line the card names are all delivered, and the ruling asked for one PR. No closing keyword binds another card.
  2. Scope: 7 files, +305/−98, no content/docs/releases/ path, no one-shot script in the diff. packages/rest/src/zod-union-fields.test.ts and packages/spec/src/shared/union-branch-policy.parity.test.ts are in scope under the claim's "and its tests": both drive zodIssuesToFields and both pinned the kept head, so they could not stay as they were. The rest fixture change (z now fails, a: 1) makes the placement assertion stronger, not weaker. batch-routes.ts is untouched, correctly: every call site passes the list through.
  3. Declarations and changeset: Clause-②: no (narrowing) and Metadata-protocol: none are on the PR body and the changeset, as ruling 7010280743 prescribes. l1-face flags no changeset entry for @objectstack/rest and @objectstack/metadata-protocol: not owed, each has one touched file, a test, and both ship dist only. @objectstack/spec: patch with ! and the BREAKING banner is AGENTS.md's level for a non-protocol breaking change. The FROM / TO bullets and the single ADR-0087 marker (not-required (no-migration-prescription)) are accepted; Check Changeset and the ADR-0087 registration gate are green on the head. Read sentence by sentence: the changeset (sentences in items 1, 2 and 4 fail; the BREAKING paragraph, FROM / TO, the caller's fix, the three "What stays" bullets and the zod-default sentence hold against the code) and content/docs/api/error-handling-server.mdx:178-186 (holds; "kept only when nothing does" is about the bare entry, which is what the sentence names).
  4. Skills-docs: none: true. git grep over skills/ at the head for invalid_shape, Invalid input and fields[0]: 0 hits.
  5. adr0112-ok D6 note on the spec pin: accepted. invalid_shape is a FieldErrorCode (errors.zod.ts:248), and ADR-0112 D6 makes field-level codes a separate vocabulary from the catalog the casing gate guards.
  6. Tests and gates: real commands with counts, pinned to 38aa8786363. Ablation accepted as a valid positive control: the mutation replaces the exact guard, the anchor and blob readings are recorded, 11 of 42 went red in the two src/-resolved suites, and the restore is proven by blob hash. It was not re-run here. The dist-resolved pins (rest, metadata-protocol) were not ablated; that is stated, and CI ran both suites green. check:dual-build-cjs-loads: NOT MEASURED locally, measured by Build Core on the head. check:skill-examples: NOT MEASURED locally and not run by CI on this head (Lint UI skipped); it stays NOT MEASURED, which is the path selector's designed answer for a diff with no skills/, ui/ or SDK path.
  7. Dogfood (narrowing arm): dogfood_battery is pinned to 38aa8786363, full battery, no shard, no path: 487 files passed and 3 skipped, 4128 tests passed and 68 skipped, 0 failed. It must be re-pinned on the next head.
  8. Benefit past the boundary: the HTTP doors assign fields: zodIssuesToFields(…) directly (crud-routes.ts:376 for the query door), so the list reaches the wire as the mapper returns it. Read in code; no end-to-end request was made for this record. No consumer-layer test still asserts the kept head: Invalid input over packages/rest, packages/runtime, packages/objectql, packages/qa and ui at the head has no remaining invalid_shape head assertion outside the edited file.

Landing clause

No governed path in the 7 files. The PR declares a narrowing, so after ACCEPT it takes the terminal four-piece with the review request to the maintainer; the seat does not land it. This record is not an approval, and nothing was readied, armed or queued.

…ocks

The changeset no longer claims the metadata envelope's rule shipped in an
earlier release (both ship together), no longer names a rest re-export that
does not exist, and says which refusals move. The metadata-issues docblock
and the rest container-descent docblock stop stating the old keep-every-head
stance this branch reverses.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 39597f014f732093e8fda14682dc8992c018b12b
Local-runs: none
Scope: packages/spec/src/api/zod-issues-to-fields.ts + packages/spec/src/api/zod-issues-to-fields.test.ts, packages/spec/src/shared/union-branch-policy.parity.test.ts, packages/metadata-protocol/src/union-branch-policy.cross-package-parity.test.ts, packages/metadata-protocol/src/protocol-metadata-issues.ts, packages/rest/src/zod-union-fields.test.ts
Security-touching: no
Rule-change-verified: none

2026-11-24T21:27Z · delta read by the reviewer of record 7142645882 (head 38aa8786363), isolated from the drafter. Inputs: the delta 38aa8786363..39597f014f7, the full diff ebb4713c06f..39597f014f7, card #35433, ruling record 7010280743, claim 7118226042 with amendments 7139723470 and 7142745228, and this head's check-runs.

What moved since the reviewed head: one commit, 4ef383fd7f0, and one merge of origin/main (ebb4713c06f). The commit touches three files: the changeset (prose face), a docblock in packages/metadata-protocol/src/protocol-metadata-issues.ts, and a comment block in packages/rest/src/zod-union-fields.test.ts. No executable line moved. The merge changes none of the eight PR files (git diff 4ef383fd7f0 39597f014f7 over them is empty), and origin/main did not move any of them between the two merge bases. packages/spec/src/api/zod-issues-to-fields.ts and its three other tests are byte-identical to the head record 7142645882 reviewed, so ① to ④ of that record stand for them and are adopted here.

① Derived judgments

Unchanged from record 7142645882. Clause-②: no (narrowing) and Metadata-protocol: none still stand on the PR body and the changeset; the predicate, the kept cases and the order of entries are the same bytes.

② Semver level

Unchanged: @objectstack/spec: patch, ! title, BREAKING banner, one ADR-0087 marker. protocol-metadata-issues.ts gains a comment-only hunk on a function that is not exported, in a package that ships dist only, so @objectstack/metadata-protocol still owes no changeset.

③ Boundary flags

  • Dev report 7144887717: open_questions empty, security_findings none, out_of_scope_findings empty. Nothing to escalate.
  • SQL push-down: not applicable, as before.
  • The new file in scope is inside the claim: amendment 7142745228 added it before the edit, as a comment-only hunk.

④ Design judgment

The two docblocks now agree with the code and with each other.

  • packages/metadata-protocol/src/protocol-metadata-issues.ts:227-233 now says zodIssuesToFields applies the same rule to fields[], and that only the terminal renderer keeps every head. That is what collectIssueFields does at this head.
  • packages/rest/src/zod-union-fields.test.ts:263-268 now says the container expansion is additive and the union expansion no longer is. That matches lines 203-209 of the same file and the two code paths.

Findings carried from record 7142645882:

  • S1 (should-fix): closed.

  • N1 (nit): closed.

On S1: both comments were rewritten as above. A grep of this head for the old sentences ("KEEP every head", "same contract as #5014") over packages/ returns nothing.

On N1: withoutExplainedBareHeads is unchanged, and the nit is accepted as it stands. It projects the prose side only, and the direct assertions do not depend on it.

One new nit, recorded and accepted: the rewritten docblock says the pair is "pinned entry for entry in … §4". The pair-for-pair comparison is §2 of that test, and §4 asserts that both lists drop the head. Both sections hold the claim.

Implemented-by: claude/issue-35433-fields-drop-explained-union-head
Reviewed-by: session_011y7As5bdhV5T4N9vpjmZzH

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

席位核对 — ACCEPT · head 39597f0

2026-11-24T21:28Z · L1 delta round (one-shot reviewer), checked against GitHub and origin/main 63ab4794eb7 (merge base ebb4713c06f), not against the report's own account. Supersedes REWORK record 7142680236 (head 38aa8786363). Card #35433, ruling record 7010280743 (option A), claim 7118226042 with amendments 7139723470 and 7142745228, dev report 7144887717. The same-head contract review is comment 7144960121 (PASS, no open finding). Nothing was built or run locally for this record.

CI on this head: 62 success, 12 expected skips, 0 failed, 0 pending (l1-face.mjs --pr 37083, read at 2026-11-24T21:28Z). Lint & Repo Gates, TypeScript Type Check, Build Core, Test Core, Check Changeset and Dogfood Regression Gate are success. The PR body's count (70 runs, 60 success, 10 skipped) is an earlier reading of the same head; later runs only added successes and expected skips.

What moved since 38aa878

One commit, 4ef383fd7f0 (changeset, one docblock, one test comment; no executable line), and one merge of origin/main. The merge changes none of the eight PR files, and origin/main moved none of them between the two merge bases.

REWORK items, each read on this head

  1. Closed. The changeset's last paragraph now reads "takes (@objectstack/metadata-protocol, whose change ships in this same release)". Still true at this read: .changeset/metadata-issues-bare-union-head.md is pending on origin/main, and npm's latest is 18.6.0.
  2. Closed. "re-exported by @objectstack/rest" is gone from the changeset.
  3. Closed. packages/metadata-protocol/src/protocol-metadata-issues.ts:227-233 and packages/rest/src/zod-union-fields.test.ts:263-268 now state the ruled behaviour. A grep of this head over packages/ for "KEEP every head" and "same contract as union 分支里的 unknown-key 处方永远到不了作者:zodIssuesToFields 只映射顶层 issue,失败的 union 只剩 Invalid input #5014" returns nothing. The first file entered the claim by amendment 7142745228, posted before the edit.
  4. Closed. The changeset now says a 400 VALIDATION_FAILED moves "only when the refused value sits on a union slot with a branch that explains the failure", and that plain create, update, bulk and batch writes do not move. VALIDATION_ERROR is gone.
  5. Closed. The PR body names the real call sites, records readDeclaredQueryNumber as the one positional reader, places the two gates in Build Core and Lint UI, and carries this head's dogfood reading.

Checklist

  1. PR shape: draft, base main, same-repo head. The body opens with the seat signature and Fixes #35433 follows it, which the first-line reader accepts. Fixes is right, and no closing keyword binds another card.
  2. Scope: 8 files, +316/−106. The eighth, protocol-metadata-issues.ts, is a comment-only hunk inside the amended claim. No content/docs/releases/ path and no one-shot script.
  3. Declarations and changeset: Clause-②: no (narrowing), Metadata-protocol: none and Skills-docs: none are unchanged and hold. l1-face still flags no changeset entry for @objectstack/rest (one test file) and @objectstack/metadata-protocol (one test file, one comment-only hunk on an unexported function): not owed, both ship dist only. Read sentence by sentence on this head: every sentence of .changeset/fields-bare-union-head.md now holds against the code and origin/main; content/docs/api/error-handling-server.mdx is unchanged from the head already read.
  4. Tests and gates: the package-suite and ablation readings stay pinned to 38aa8786363 and the body says so; that is accepted because no executable line moved, the four affected suites were re-run on this head (42, 18 and 22 tests green), and CI ran the full suites on it. check:skill-examples stays NOT MEASURED (Lint UI skipped by its path selector); check:dual-build-cjs-loads is measured by Build Core.
  5. Dogfood (narrowing arm): dogfood_battery in report 7144887717 is pinned to 39597f014f7: full battery, no shard, no path, 487 files passed and 3 skipped, 4128 tests passed and 68 skipped, 0 failed.
  6. Accepted deviations and notes: two nits are accepted as they stand and recorded in the contract review (the adjacency projection in the two parity tests; the docblock's "§4" where the pair-for-pair comparison is §2). Out-of-scope findings: none. The branch is 9 commits behind origin/main 63ab4794eb7; none of them touch the PR files.

Landing clause

No governed path in the 8 files. The PR declares a narrowing, so it takes the terminal four-piece with the review request to the maintainer; the seat does not land it. The body's 维护者速读 still ends 「要你做什么:无」, which is wrong for a PR the maintainer has to approve; the seat's final 速读 should say so. This record is not an approval, and nothing was readied, armed or queued.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

维护者速读

Review request — declared narrowing (Clause-②: no (narrowing), Metadata-protocol: none, per ruling 7010280743 option A): zodIssuesToFields drops a union's bare explained head from fields[].

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 24, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 24, 2026 21:49
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 372ce7c Nov 24, 2026
83 of 84 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35433-fields-drop-explained-union-head branch November 24, 2026 22:27
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…y that names the shapes it takes (objectstack-ai#37205)

repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
Fixes objectstack-ai#35500

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no skills/ page names the `query.where` refusal or
its `Invalid input` entries, or reads `fields[]` / `issues[]` by
position or count

## 维护者速读

-
用户能看到什么变化:通过数据接口查询时,如果筛选条件写成了数字、字符串或空值,被拒时只返回一条说明,写清筛选条件应该是条件对象还是筛选数组;不再返回两条一模一样、什么也没说的「输入无效」。
- 为什么做:修的是数据接口查询被拒时原因说不清的问题(上一张同类卡的后续)。主要调用方是通过数据接口写查询的 AI,它看不到原因只能乱猜重试。
-
出错会怎样:按条数或位置读错误清单、或专找那句「输入无效」的调用方会读到不同内容;正常查询不受影响,元数据保存的错误清单在同类嵌套情况下也少一条;不涉及存储数据,撤回这一个
PR 即可恢复。
- 要你做什么:批准或合并这个 PR;它是申报了收窄的破坏性改动,席位不能自己落地。

## What changes

A query's `where` on the data API is `z.union([FilterArraySchema,
DataEngineFilterSchema])`, and both members are unions themselves.
Handed `42`, a string or `null`, each member failed only because the
value was the wrong kind, but the shared branch selection did not read a
member that is a union as a kind mismatch. So it selected both members,
and each emitted its own unexplained `{ field: 'query.where', code:
'invalid_shape', message: 'Invalid input' }`. The caller got two
identical entries and no cause. Measured at `main` `236c8044acb`, after
objectstack-ai#37083 had already dropped the explained outer head. objectstack-ai#37083 is not
released yet and ships in the same release as this, so a released
client's before is the card's reading at `f6902e950`: three identical
entries for `where: 42`, and five entries (four bare) for the malformed
AST. The changeset's FROM lines are written against that.

- Policy (`packages/spec/src/shared/union-branch-policy.ts`):
`isKindMismatchOnly` now also counts a branch-root `invalid_union` with
zod's bare default message whose every branch is itself
kind-mismatch-only, by the same rule, so depth does not matter. A nested
union that declares its own `error` sentence stays informative. A nested
union with `errors: []` keeps its old reading.
`ZOD_UNION_DEFAULT_MESSAGE` moves into this module, because the
selection now reads it; the mapper re-exports it unchanged for its pin,
and it stays package-internal.
- The same rule in `@objectstack/metadata-protocol`'s copy
(`protocol-metadata-issues.ts`), so the data API's `fields[]`, the
terminal renderer and the four lists `zodIssuesToMetadataIssues` feeds
reach one verdict. Those four are a refused save's `issues[]` (`422
INVALID_METADATA`), a stored item's `_diagnostics.errors`, the
seed-request refusal's `issues`, and the unmanaged-import `400`. This is
what ruling record 7010280743 requires: the two machine lists say the
same thing.
- The cause sentence (`packages/spec/src/data/data-engine.zod.ts`,
`TransportFilterValueSchema`): a value of the wrong kind (not an object
or array) gets one sentence naming both accepted shapes, a condition
object such as `{ "status": "open" }` or a filter array such as
`["status", "=", "open"]`. An array or an object keeps zod's default, so
its located causes speak and the bare head is still dropped in their
favour. It covers every spelling of the slot (`where`, `$filter`,
`filter`, `filters`) for a number, a string or a boolean. `null` is
refused with it only on `where`; the other three spellings are
`.nullable()` and accept `null` as no filter.
- Selection side effect: such a member was one issue long, so under
"fewest issues wins" it could out-rank a sibling member with several
located causes. That sibling is now selected, so in that case a list
gains its located entries where one bare entry stood.
- Changeset: `@objectstack/spec` and `@objectstack/metadata-protocol`
patch, `fix(spec)!`, BREAKING banner, FROM / TO, one ADR-0087 marker
(`not-required (no-migration-prescription)`).

The claim's file surface was widened to the policy layer before this was
built (seat decision, option A of os-dev-report 7146729179; the
amendment is on the card).

## Tests

All readings below are from the shared verify lock on a shared box.

<details><summary>New pins</summary>

- `packages/spec/src/api/zod-issues-to-fields.test.ts`, new describe:
through the real `FindDataRequestSchema`, `42`, a string, `null` and a
boolean each answer exactly one entry, `[['query.where',
'invalid_shape']]`, whose message is not zod's default and names both
shapes. `$filter` answers the same entry at `query.$filter`. The
malformed AST `[['status','=','open'],'and']` answers exactly
`[query.where min_items, query.where.1 invalid_shape 'Invalid input']`.
CONTROL: a filter object, a filter array and a logical filter array
still parse. Plus a synthetic union of bare-kind unions answering one
entry.
- `packages/spec/src/shared/union-branch-policy.parity.test.ts`: a new
corpus fixture (renderer and wire agree pair for pair), the recursion, a
sentence-carrying nested union staying informative, and `errors: []`
keeping its reading. `ZOD_UNION_DEFAULT_MESSAGE` was added to the
package-internal roster.
-
`packages/metadata-protocol/src/union-branch-policy.cross-package-parity.test.ts`:
two section-2 fixtures, a synthetic nested bare-kinds union and the real
query door with `where: 42`. All three walks give the same paths and
messages. `ZOD_UNION_DEFAULT_MESSAGE` was added to the section-1 symbol
roster.
- `packages/metadata-protocol/src/protocol.save-union-issues.test.ts`:
the envelope walk says the nested bare-kinds union once, a
sentence-carrying member is still heard, and a CONTROL member with a
located cause is still expanded.
- `packages/rest/src/zod-union-fields.test.ts`, new top-level describe,
which runs the real `POST /api/v1/data/:object/query` route over
ObjectQL, SqlDriver (sqlite) and the metadata protocol. For `42`, a
string and `null`: `400`, `code: 'VALIDATION_FAILED'`, exactly
`[['query.where', 'invalid_shape']]` with the shape sentence, and the
driver is never read. For the malformed AST: `400 VALIDATION_FAILED`
with `fields` equal to the two entries above, and no read. CONTROL: a
filter object and a filter array are served `200` with the right rows.

The new pins assert the `field`, `code`, status and entry count exactly.
They check the sentence by the two shapes it names (`condition object`,
`filter array`), not by its full wording.

</details>

<details><summary>Package suites (head 2af665d, before the merge of
origin/main)</summary>

- `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2`: Test
Files 983 passed (983); Tests 29875 passed, 1 todo. VERDICT command-exit
0.
- `pnpm --filter @objectstack/metadata-protocol test`: Test Files 369
passed, 9 skipped (378); Tests 23394 passed, 45 skipped. VERDICT
command-exit 0.
- `pnpm --filter @objectstack/rest test`: Test Files 429 passed (429);
Tests 8823 passed, 351 skipped. VERDICT command-exit 0. The first
attempt got exit 99 (no lock turn, NOT MEASURED) and was re-run on the
same slot.
- `typecheck` for spec, metadata-protocol and rest: VERDICT command-exit
0.

</details>

<details><summary>Final head 16f479c (merges of origin/main up to
3b4f0b9; the branch's delta against main is exactly the 10 files
above)</summary>

- The dogfood closure was rebuilt (`pnpm --filter
'@objectstack/dogfood^...' build`, VERDICT command-exit 0). `pnpm
--filter @objectstack/spec check:generated`: exit 0, no artifact moved.
- Affected files re-run: spec 2 files 56/56, metadata-protocol 2 files
64/64, rest 1 file 23/23. VERDICT command-exit 0.

</details>

<details><summary>Ablation (one time, not kept)</summary>

- Mutation through `scripts/ablation-replace.mjs` in
`union-branch-policy.ts`: the anchor `||
isKindMismatchOnlyUnion(issue)),` was replaced by a marker comment,
which turns the nested rule off. Anchor 1 to 0, marker 0 to 1, blob
`8f72bb114a75` to `c2e73abc2818`.
- Mutated leg, `zod-issues-to-fields.test.ts` and
`union-branch-policy.parity.test.ts`: Test Files 2 failed (2); Tests 10
failed, 46 passed (56). The failures were every door case (`42`, string,
`null`, boolean, `$filter`, malformed AST), the synthetic nested union,
the new parity fixture, "both walks say the union once" and "the rule
recurses". The sentence-carrying and `errors: []` pins stay green under
the mutation, as expected: they pin the rule's edges, not the rule.
- Restore proven by blob: after restore it equals the HEAD blob
`8f72bb114a75`, and `git diff HEAD` is empty. Restored leg: 2 files,
56/56 passed.
- Scope: both suites import `src` relatively, so they need no rebuild.
The metadata-protocol and rest pins resolve `@objectstack/spec` through
`dist/` and were not ablated.

</details>

## Acceptance notes

- Renderer: `formatZodError` / the CLI take the same rule, because they
share the policy. A wrong-kind `where` prints one line, not one per
member.
- Positional reader: `readDeclaredQueryNumber` (`rest-server.ts`) reads
`fields[0]?.message`. A declared number schema has no nested bare-kinds
union, so it does not move.
- Docs: `content/docs/api/error-handling-server.mdx` already says a bare
union entry is "kept only when nothing does", and that stays true, so it
is not edited.
- Noted, not fixed (same door, different defect): `query.$filter: {
"$and": 42 }` answers `field: 'query.where.$and'`, `code: 'required'`.
The value is present, and the field names the folded slot, not the one
the caller sent. Reported to the seat for filing.
- Read first, by risk: `packages/spec/src/shared/union-branch-policy.ts`
(`isKindMismatchOnlyUnion`), then `TransportFilterValueSchema` in
`data-engine.zod.ts`, then
`union-branch-policy.cross-package-parity.test.ts` section 2.
- Two-minute check: `pnpm --filter @objectstack/spec exec vitest run
--maxWorkers=2 src/api/zod-issues-to-fields.test.ts`. Every test should
be green, including the describe "a wrong-typed query where answers one
entry that names the shapes".
- A contract-tier review is owed: this is a declared narrowing.

## Verification

<details><summary>Rework round (changeset prose only), head
ecc795b</summary>

- Seat REWORK 7152541028, items 1 to 4: the FROM lines now give the
released behaviour, `null` is scoped to `where`, the four metadata lists
and their readers are named in the BREAKING banner, and the out-ranking
effect is stated. The contract review PASS 7152531147 at `16f479c57d6`
read no code finding, and this round changes no code: the delta from
that head is `.changeset/where-wrong-kind-one-entry.md` alone. No
generated reference reads a changeset, so no `Regen-provenance:` line is
needed.
- `node scripts/check-adr-0087-registration.mjs`: exit 0.
- Gate sweep at `ecc795b1905`: `dispatch-gates --commands --repo
objectstack-ai/objectstack` derived 89 families; `--ran` gave 88 run, 1
NOT-MEASURED (`pnpm check:dual-build-cjs-loads`, exit 3, PREREQUISITE
NOT MET: this fresh worktree built only the dogfood closure; CI runs it
in `Build Core`), 0 UNRUN.
- Dogfood battery re-pinned on `ecc795b1905`, because the seat's L1
checklist pins `dogfood_battery` to the PR head, whatever the delta.
`pnpm --filter @objectstack/dogfood test` ran as its own command under
the verify lock: `VERDICT command-exit 0 · held the lock 2403s`, Test
Files 487 passed, 3 skipped (490); Tests 4128 passed, 68 skipped (4196);
0 failed.

</details>

<details><summary>Gate sweep: dispatch-gates --commands, 89 families,
head 16f479c</summary>

- `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 89 families. Each was run with its
exit code recorded before any pipe. `--ran`: 89 derived, 89 run, 0
NOT-MEASURED, 0 UNRUN, exit 0.
- Extra: `pnpm check:error-code-casing` exit 0 and `node
scripts/check-adr-0087-registration.mjs` exit 0 (one declared-breaking
changeset, disposition `not-required (no-migration-prescription)`).
- `test:repo` was not run locally; CI owns it.

</details>

<details><summary>Dogfood battery (narrowing arm), head
16f479c</summary>

- `pnpm --filter @objectstack/dogfood test` as its own command under the
shared verify lock: full battery, no shard, no path, run after building
the dogfood closure. `os-verify-lock: VERDICT command-exit 0 · held the
lock 2197s`. Test Files 487 passed, 3 skipped (490); Tests 4128 passed,
68 skipped (4196); 0 failed.

</details>

---

_Generated by [Claude
Code](https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

data API refusal: fields[] lists the union head as an "Invalid input" invalid_shape entry ahead of the entries that explain it (sibling of #35400)

3 participants