Repository navigation
fix(spec)!: drop an explained bare union head from the data API fields[] - #37083
Conversation
Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
… 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
… spec changeset Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7 Co-authored-by: Claude <noreply@anthropic.com>
…elds-drop-explained-union-head
…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
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
…s (ADR-0112 D6) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
…elds pins Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
📓 Docs Drift Check2 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 176 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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 |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract-review-claim: session_011y7As5bdhV5T4N9vpjmZzH · head 38aa878 · 2026-11-24T19:47Z |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract reviewServed-tier: 2026-11-24T19:49Z · isolated one-shot reviewer, not the drafter. Inputs: the diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
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:
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: VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 席位核对 — REWORK · head 38aa8782026-11-24T19:50Z · L1 (one-shot reviewer), checked against GitHub and 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 Must-fix
Should-fix, same round
Checklist
Landing clauseNo 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
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract reviewServed-tier: 2026-11-24T21:27Z · delta read by the reviewer of record 7142645882 (head What moved since the reviewed head: one commit, ① Derived judgmentsUnchanged from record 7142645882. ② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentThe two docblocks now agree with the code and with each other.
Findings carried from record 7142645882:
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 On N1: 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: VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 席位核对 — ACCEPT · head 39597f02026-11-24T21:28Z · L1 delta round (one-shot reviewer), checked against GitHub and CI on this head: 62 What moved since 38aa878One commit, REWORK items, each read on this head
Checklist
Landing clauseNo 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. |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 维护者速读
Review request — declared narrowing (
|
…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>
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 inputentry or readsfields[]by position维护者速读
What changes
zodIssuesToFields(packages/spec/src/api/zod-issues-to-fields.ts), the mapper behind every data-APIfields[]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 ownerrorsentence, 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 一样去掉」).collectIssueFieldsgathers 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).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).content/docs/api/error-handling-server.mdxno longer teaches "that entry PLUS the entries of the branch".@objectstack/specpatch,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'sissues[]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. Head39597f014f7(the rework: changeset and two docblocks, comment-only in code, plus a merge oforigin/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 typecheckfor spec, metadata-protocol and rest: exit 0 each.Ablation (one time, not kept)
scripts/ablation-replace.mjs: the guardif (below.length === 0 || message !== ZOD_UNION_DEFAULT_MESSAGE) out.push(entry);was replaced with an unconditionalout.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 from9823123bd547to23c2523c7f98.zod-issues-to-fields.test.tsandunion-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.9823123bd547), andgit diff HEADis empty. Restored leg: Test Files 2 passed (2), Tests 42 passed (42).src/and need no rebuild. The metadata-protocol and rest pins resolve@objectstack/specthroughdist/, and they were not ablated.Acceptance notes
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'spersonal-view-hooks.tsandtypes'validation-failure.ts. All of them answerVALIDATION_FAILED.readDeclaredQueryNumber(packages/rest/src/rest-server.ts:926) builds its sentence fromfields[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.formatZodError, the CLI) still prints the union line as the parent of its indented tree. That asymmetry is recorded in both parity tests.packages/spec/src/api/zod-issues-to-fields.ts(thebelowhunk incollectIssueFields), thenunion-branch-policy.cross-package-parity.test.ts§2/§4, then the changeset.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.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-loadsruns inBuild Core;check:skill-examplesruns inLint UI, whose path selector skips it for a diff with noskills/,ui/or SDK path, so it stays NOT MEASURED.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 anadr0112-okD6 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:generatedafter a fresh spec build: exit 0. No generated artifact moved.test:repowas not run locally; CI owns it.Dogfood battery (narrowing arm), head 39597f0
pnpm --filter @objectstack/dogfood testunder 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).typecheckfor rest, metadata-protocol and spec: exit 0 each.dispatch-gates --ran(exit codes recorded): 108 derived, 106 run, 2 NOT MEASURED (check:skill-examplesandcheck:dual-build-cjs-loads, exit 3, prerequisite not met, as above), 0 unrun.check:type-check-debtrerun under the lock: exit 0.Lint & Repo Gates,TypeScript Type Check,Build Core,Check Changeset,Test CoreandDogfood Regression Gateall success.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses (CI-owned run).main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed (none moved).content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code