You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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) #35433
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filing gate: ② maintainer-directed sibling. Ruling 7003683081 on #35400: "The data API's sibling wrapper is out of this card and gets its own finding card." Evidence from the #35400 os-dev report (/mnt/project-files/objectstack-seat5/area-ux/ux-3/report-35400.md). ⛔ Not a claim; triage sets lane and grade.
What the caller sees
A data-API write refused on a union-typed field gets, in fields[], an entry { field, code: 'invalid_shape', message: 'Invalid input' } ahead of the branch entries that name the real cause. It is the record-door twin of the metadata-save wrapper #35400 removes.
Taught: content/docs/api/error-handling-server.mdx ~:179-183 ("that entry PLUS the entries of the branch").
Why it is a separate decision
It is a published response shape (fields[], ADR-0114 catalog) taught in the docs. Whether it follows #35400's rule is its own contract choice; the maintainer's #5364 ruling kept the metadata envelope and fields[] from being aligned. Any change is packages/spec/src non-test (L2 contract record).
Dedupe: issue search invalid_shape union wrapper fields, zodIssuesToFields union head, data API Invalid input fields entry → only #35400.
Triage: lands in domain:server · pm:queue; rationale: area:data · Bug · Impeded (a refused write on a union field lists a bare "Invalid input" entry ahead of the entries naming the real cause) · builders, often (AI agents write through the data API) · from the #35400 dev report → p2, the same grade as its sibling #35400.
Maintainer ruling record · #35433 · 2026-11-19T13:17Z
Ruling: the maintainer's decision card in seat 5's project thread (posted 2026-11-19T12:11Z), answered 2026-11-19T13:17Z by tapping option A. Relayed by seat 5. Analysis: project file objectstack-seat5/area-ux/data-2/decision-35433.md (one Fable round, tier verified, 79 turns).
Question on the card, verbatim: 「#35433:数据接口被拒清单里那句空的「输入无效」,也跟着去掉吗?」
Picked, verbatim (the maintainer's whole text is the option tapped): 「A 跟 #35400 一样去掉」.
The option's consequence, as the card worded it, verbatim (the card's text, accepted by the tap, not the maintainer's own wording): 「下面有解释时去掉这句,没有时保留;两处说法一致。#35400 的 PR 合入后再做,一个带破坏性声明的 PR。」
It removes entries from a published response, so the PR declares the narrowing arm, with the BREAKING banner, FROM → TO, one ADR-0087 marker, the dogfood battery on the final head, L1-a, then seat 5's CONTRACT_REVIEW_TIER review. The cross-package parity pin (union-branch-policy.cross-package-parity.test.ts) records the aligned behaviour. content/docs/api/error-handling-server.mdx (~:179-183, "that entry PLUS the entries of the branch") is corrected.
Builder: area data-2 of seat repo:objectstack#5, one PR, domain:server (producer in packages/spec/src/api, consumers in packages/rest).
Measured at mainf6902e950 (the analysis's scratch probe): plain record create, update, bulk and batch writes emit no head (data is a record at the ingress). The head appears on the query door and on personal-view config saves: 34 bare and explained heads, all removed under this ruling, and 57 unexplained heads, which are kept.
Unlock (daily scan): every Blocked-by: target is closed, so pm:blocked → pm:queue; grade unchanged.
Targets read this round, all closed in this repository: #35400. The line lived only in a thread comment. Note: #35500 is blocked on this card and stays blocked until it closes. No Unlock-action: line, no assignee; same repository, so no installability check is owed.
Claim: PM loop round 3
Session: session_011y7As6FyXmJyGyHNKXUkV7
Account: os-alice
Branch: claude/issue-35433-fields-drop-explained-union-head
Worktree: objectstack-issue-35433
Domain: domain:server
Seat: repo:objectstack#7
Area: o7-data
File surface: packages/spec/src/api/zod-issues-to-fields.ts and its tests, packages/rest/src/batch-routes.ts / createValidationError only if a consumer re-adds the head, packages/metadata-protocol/src/union-branch-policy.cross-package-parity.test.ts, content/docs/api/error-handling-server.mdx, one .changeset per published package that moves (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
Clause-②: no (narrowing)
Metadata-protocol: none
Responsibility: objectstack (packages/spec/src/api/zod-issues-to-fields.ts zodIssuesToFields puts zod's bare union head { code: 'invalid_shape', message: 'Invalid input' } in fields[] ahead of the branch entries that explain it) | none — #35400 / PR #35520 fixed the metadata envelope, the data API's twin was split here | every data-API caller refused on a union-typed value: the query door and personal-view config saves (34 explained heads measured at f6902e950)
Thread-read: 7108812233
Premise: holds (origin/main bbc7e03: zod-issues-to-fields.ts docblock :137-158 still describes the head FOLLOWED by the branch entries; PR #35520 merged 2026-11-19T16:04Z for the metadata side only)
Ruling-ref: maintainer ruling record 7010280743 on this card (option A, 「A 跟 #35400 一样去掉」): drop the explained union head at every depth, keep an unexplained one, same rule as #35400; declare the narrowing (BREAKING banner, FROM → TO, one ADR-0087 marker, dogfood battery on the final head), L1-a then a CONTRACT_REVIEW_TIER review. Seat 7 routing 2026-11-24T00:33Z: built in o7-data (the ruling's original builder, seat 5 area data-2, is not on it).
Pre-claim lane: repo:objectstack#7 · o7-data — routed by the seat's area:data card-pick, 2026-11-24T00:33Z
Pre-claim deps: Blocked-by: #35400 closed (unlocked 7108812233); #35500 is blocked on this card and builds after it
Prior rulings read: check-prior-rulings --card 35433 --paths packages/spec/src/api/zod-issues-to-fields.ts: 0 ruling comments by first-line shape (the ruling record 7010280743 is read directly above); ADR-0087 D3 (migration chain / the marker) applies to the narrowing declaration; the #5364 ruling (5199137796) on code vocabulary is untouched, as the ruling says
Serial constraints cleared: no open PR touches zod-issues-to-fields.ts, batch-routes.ts, the parity test or error-handling-server.mdx (open-PR file read 2026-11-24T00:3xZ); os-verify-lock depth 1 → go
Fold-or-serial: not folded — #35500 (the query.where triple bare head) is ruled to follow this card, not fold into it
The dev is stopped mid-work on the maintainer's concurrency cap: at most 3 running dev subagents across seat repo:objectstack#7, every running dev counted. o7-data runs 0 devs until the seat resumes one. Nothing is lost: the worktree ../objectstack-issue-35433 is kept clean at 8df3c5cf44 (its in-flight build under the verify lock was stopped), and the branch claude/issue-35433-fields-drop-explained-union-head is on origin at 8df3c5cf44. No PR is open yet. When resumed, the same dev continues from its saved state.
Session: session_011y7As5bdhV5T4N9vpjmZzH (seat repo:objectstack#7 itself)
Takeover: the o7-data zone thread is closed, so the seat now owns this card directly and resumes the paused dev's work. Same branch, same file surface, same ruling (7010280743, option A).
Branch: claude/issue-35433-fields-drop-explained-union-head (resumed from 8df3c5cf44 on origin)
Worktree: objectstack-issue-35433 (fresh, made from origin)
Container & model: M, default judgment tier (opus; dispatch-gates --tier printed "no path-derived mandate"), effort: high
Clause-②: no (narrowing)
Metadata-protocol: none
Unchanged from the claim: Account os-alice, Domain domain:server, the file surface, the deps and the serial constraints.
{
"issue": 35433,
"status": "done",
"branch": "claude/issue-35433-fields-drop-explained-union-head",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37083",
"session": "session_011y7As5bdhV5T4N9vpjmZzH — the seat session repo:objectstack#7 (os-alice). It resumed the paused o7-data dev (claim 7118226042, session_011y7As6FyXmJyGyHNKXUkV7, paused note 7128629084). Claim amendment: comment 7139723470.",
"premise_still_valid": true,
"summary": "Ruling 7010280743, option A, is implemented. zodIssuesToFields (packages/spec/src/api/zod-issues-to-fields.ts) now drops a union's bare invalid_shape / 'Invalid input' head from fields[] whenever an entry below explains it, at every depth. It keeps the head when nothing explains it, when the head carries the schema's own error sentence, and for container heads. This is the same rule the metadata envelope took for #35400, and the cross-package parity test now holds the two machine lists equal entry for entry. Resumed from 8df3c5cf44: origin/main was merged with a merge commit, not a rebase. Fixes made on this resume: the changeset's before/after block was rewritten as FROM / TO bullets, because check-adr-0087-registration read the label-positioned 'FROM → TO' table as a migration prescription; a Skills-docs line was added; an ADR-0112 D6 adr0112-ok note was added in the spec pin; and the rest union-fields test now imports @objectstack/objectql at module top (check:test-source-alias). The file-surface note: packages/rest/src/zod-union-fields.test.ts and packages/spec/src/shared/union-branch-policy.parity.test.ts are tests of zodIssuesToFields, so they fall under the claim's 'and its tests'. batch-routes.ts and createValidationError were not touched, because no consumer re-adds the head.",
"tests": "All readings are at head 38aa8786363, under the verify lock. Package suites: spec `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2` gave Test Files 982 passed (982), Tests 29844 passed, 1 todo. metadata-protocol `pnpm --filter @objectstack/metadata-protocol test` gave Test Files 369 passed, 9 skipped (378), Tests 23389 passed, 45 skipped. rest `pnpm --filter @objectstack/rest test` gave Test Files 429 passed (429), Tests 8818 passed, 351 skipped. typecheck for spec, metadata-protocol and rest: exit 0 each. Ablation, one time, through scripts/ablation-replace.mjs: the drop guard was replaced by an unconditional push of the head plus a marker. The anchor went x1 to x0, the marker x0 to x1, and the blob 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). Restore: the blob after restore equals HEAD (9823123bd547), and git diff HEAD is empty. Restored leg: Tests 42 passed (42). These suites import the source relatively (src/), so no rebuild was needed. The dist-resolved metadata-protocol and rest pins were not ablated. The first ablation attempt was a no-op that the tool refused: the replacement text is a substring of the anchor. It was rerun with a marker.",
"gates": "Local run of `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, 108 families. `--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 (client SDK not built here). NOT MEASURED: check:dual-build-cjs-loads, reason: exit 3, PREREQUISITE NOT MET (48 packages have no dist). Four gates were red on the first sweep and fixed: check-adr-0087-registration (exit 1, then exit 0); check:error-code-casing (exit 1, then exit 0); check:test-source-alias (exit 1, then exit 0); check:type-check-debt (exit 3 on a queue timeout, then exit 0 rerun under the lock). `pnpm --filter @objectstack/spec check:generated` after a fresh spec build: exit 0, no artifact moved. On the final head, re-run: cross-package-test-inputs, undeclared-dep-imports, tier-file-adoption, rest-log-spy-declared, refd-timer-probe, nul-bytes and issue-citations, exit 0 each, plus all 32 node-script families. test:repo was not run locally; CI owns it. PR check-runs on 38aa8786363: 70 runs, 60 success, 10 skipped, 0 failed. Required: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success. Lint UI was skipped by its path selector.",
"dogfood_battery": "38aa8786363 · os-verify-lock: VERDICT command-exit 0 · held the lock 2224s · `pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test`, with no OS_TEST_SHARD and no path · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures",
"mcp_calls": "0",
"api_writes": "4 REST writes, all through scripts/pm relays as objectstack-fleet[bot]: (1) POST /repos/objectstack-ai/objectstack/issues/35433/comments, the claim amendment 7139723470, via post-stamped.mjs; (2) POST /repos/objectstack-ai/objectstack/pulls, PR #37083 as a draft; (3) POST /repos/objectstack-ai/objectstack/issues/37083/assignees with os-alice; (4) POST /repos/objectstack-ai/objectstack/issues/35433/comments, this os-dev-report, via post-stamped.mjs. Writes 2 and 3 were one pr_create relay stroke. git push is not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed — nothing found outside the card's scope"]
}
File surface adds: packages/metadata-protocol/src/protocol-metadata-issues.ts — one comment-only hunk (docblock :228-232), correcting the sentence that says both spec walks keep every head, which this PR makes false (REWORK record 7142680236, item 3). No code, no export, no changeset.
{
"issue": 35433,
"status": "done",
"branch": "claude/issue-35433-fields-drop-explained-union-head",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37083",
"session": "session_011y7As5bdhV5T4N9vpjmZzH",
"premise_still_valid": true,
"head": "39597f014f732093e8fda14682dc8992c018b12b",
"summary": "Rework of REWORK record 7142680236 and the contract review's should-fix. Commit 4ef383fd7f0: the changeset no longer says #35400's rule shipped in the previous release (it now says both ship in this release), drops the nonexistent @objectstack/rest re-export, and narrows 'every VALIDATION_FAILED / VALIDATION_ERROR moves' to a VALIDATION_FAILED on a union slot with an explaining branch (plain create/update/bulk/batch writes do not move; VALIDATION_ERROR dropped). The protocol-metadata-issues.ts docblock (claim amendment posted on #35433 first) and the rest container-descent docblock no longer state the keep-every-head / same-as-#5014 stance. Merge commit 39597f014f7 brings in origin/main ebb4713c06f. PR body refreshed with post-stamped --body=37083 --ack-through=7142680236: the real mapper call sites replace 'createValidationError', readDeclaredQueryNumber (rest-server.ts:926) is added, the CI-job sentence is corrected (dual-build-cjs-loads in Build Core, skill-examples in Lint UI, skipped), and the stale dogfood-queued paragraph is replaced with this head's reading.",
"tests": "All at head 39597f014f7, under os-verify-lock (VERDICT command-exit 0). spec: vitest run src/api/zod-issues-to-fields.test.ts src/shared/union-branch-policy.parity.test.ts: Test Files 2 passed (2), Tests 42 passed (42). rest: src/zod-union-fields.test.ts: Test Files 1 passed (1), Tests 18 passed (18). metadata-protocol: src/union-branch-policy.cross-package-parity.test.ts: Test Files 1 passed (1), Tests 22 passed (22). typecheck rest / metadata-protocol / spec: exit 0 each. Build closure (rest^... + metadata-protocol^...) VERDICT command-exit 0. No ablation this round: the code hunks are comments only, no tested behaviour changed; the round-1 ablation at 38aa8786363 stands.",
"gates": "dispatch-gates --commands (merge base ebb4713c0, 8 paths): 108 commands, run with exit codes captured before any pipe; --ran: 108 derived, 106 run, 2 NOT MEASURED (check:skill-examples and check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET: unbuilt SDK / 48 packages without dist), 0 unrun. check:type-check-debt first exited 3 (lock queue-timeout inside its closure build), rerun under os-verify-lock: VERDICT command-exit 0. check-nul-bytes exit 0 before push. CI on 39597f014f7: 70 check-runs, 60 success, 10 skipped, 0 failed, 0 pending: Lint & Repo Gates success, TypeScript Type Check success, Build Core success (runs check:dual-build-cjs-loads), Check Changeset success, Test Core 10/10 success, Dogfood Regression Gate success; Lint UI skipped by its path selector, so check:skill-examples stays NOT MEASURED.",
"dogfood_battery": "39597f014f7 · os-verify-lock: VERDICT command-exit 0 · held the lock 2339s · full battery, no OS_TEST_SHARD, no path, dogfood^... closure built first (exit 0) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · 0 failures",
"mcp_calls": "0",
"api_writes": "4 — POST /repos/objectstack-ai/objectstack/issues/35433/comments (claim amendment, relay run 45475004707); PATCH /repos/objectstack-ai/objectstack/issues/37083 (PR body refresh, relay run 45490487602); POST /repos/objectstack-ai/objectstack/issues/35433/comments (this os-dev-report); git push (not REST) of 38aa8786363..39597f014f7",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"deviations": "1) post-stamped refuses a body whose first non-empty line is not the seat signature, so the PR body now opens with the signature line and 'Fixes #35433' is the second non-empty line (the dispatch order mandated post-stamped --body; recognisers skip one leading signature line). 2) The pre-existing signed-trailer HTML comment at the end of the PR body was left as found, not authored this round. 3) Merge commit message rewritten with --amend before push to carry the two required trailers. 4) test:repo not run locally; CI Test Core owns it (success)."
}
Left untouched: priority:p2, finding, domain:server, area:data — ownership, priority and outcome are not state claims.
The label set was read back after the write and matched.
A state label claims work is in flight. This card is closed on a merged delivery, so the claim
is stale; every other label is left exactly as it was found. Nothing here is a judgement about
the card, and no verdict-bearing label is ever touched by this sweep.
area:datadomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server·pm:queue; rationale: area:data · Bug · Impeded (a refused write on a union field lists a bare "Invalid input" entry ahead of the entries naming the real cause) · builders, often (AI agents write through the data API) · from the #35400 dev report → p2, the same grade as its sibling #35400.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
Maintainer ruling record · #35433 · 2026-11-19T13:17Z
Ruling: the maintainer's decision card in seat 5's project thread (posted 2026-11-19T12:11Z), answered 2026-11-19T13:17Z by tapping option A. Relayed by seat 5. Analysis: project file
objectstack-seat5/area-ux/data-2/decision-35433.md(one Fable round, tier verified, 79 turns).Question on the card, verbatim: 「#35433:数据接口被拒清单里那句空的「输入无效」,也跟着去掉吗?」
Picked, verbatim (the maintainer's whole text is the option tapped): 「A 跟 #35400 一样去掉」.
The option's consequence, as the card worded it, verbatim (the card's text, accepted by the tap, not the maintainer's own wording): 「下面有解释时去掉这句,没有时保留;两处说法一致。#35400 的 PR 合入后再做,一个带破坏性声明的 PR。」
Ruling as executed:
zodIssuesToFields(packages/spec/src/api/zod-issues-to-fields.ts) drops a union head{ code: 'invalid_shape', message: 'Invalid input' }fromfields[]whenever a following entry explains it, at every depth. It keeps the head when nothing explains it. The scope is the same as 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's ruled rule (maintainer, 2026-11-19T12:01Z), so the metadata envelope and the data API say the same thing.CONTRACT_REVIEW_TIERreview. The cross-package parity pin (union-branch-policy.cross-package-parity.test.ts) records the aligned behaviour.content/docs/api/error-handling-server.mdx(~:179-183, "that entry PLUS the entries of the branch") is corrected.query.wheretriple bare head) after this.path:"" message:"Invalid input",Studio 无字段可高亮 #5364 ruling (comment 5199137796) declined to align the metadata envelope'scodevocabulary with the ADR-0114 catalog. It says nothing about wrapper entries, and this ruling leaves it as it was.packages/spec/src/api, consumers inpackages/rest).Measured at
mainf6902e950(the analysis's scratch probe): plain record create, update, bulk and batch writes emit no head (datais a record at the ingress). The head appears on the query door and on personal-view config saves: 34 bare and explained heads, all removed under this ruling, and 57 unexplained heads, which are kept.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
Parked · area data-2 · 2026-11-19T13:18Z
Blocked-by: #35400
Ruled A (record above): build after the #35400 PR lands, on the same producer rule. Area data-2 claims it then.
objectstack-fleet commentedon Nov 23, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Unlock (daily scan): every
Blocked-by:target is closed, sopm:blocked→pm:queue; grade unchanged.Targets read this round, all closed in this repository: #35400. The line lived only in a thread comment. Note: #35500 is blocked on this card and stays blocked until it closes. No
Unlock-action:line, no assignee; same repository, so no installability check is owed.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
Claim: PM loop round 3
Session:
session_011y7As6FyXmJyGyHNKXUkV7Account:
os-aliceBranch:
claude/issue-35433-fields-drop-explained-union-headWorktree:
objectstack-issue-35433Domain:
domain:serverSeat:
repo:objectstack#7Area:
o7-dataFile surface:
packages/spec/src/api/zod-issues-to-fields.ts and its tests, packages/rest/src/batch-routes.ts / createValidationError only if a consumer re-adds the head, packages/metadata-protocol/src/union-branch-policy.cross-package-parity.test.ts, content/docs/api/error-handling-server.mdx, one .changeset per published package that moves(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default (dispatch-gates --tier: "no path-derived mandate"),effort: highClause-②: no (narrowing)
Metadata-protocol: none
Responsibility:
objectstack (packages/spec/src/api/zod-issues-to-fields.ts zodIssuesToFields puts zod's bare union head { code: 'invalid_shape', message: 'Invalid input' } in fields[] ahead of the branch entries that explain it) | none — #35400 / PR #35520 fixed the metadata envelope, the data API's twin was split here | every data-API caller refused on a union-typed value: the query door and personal-view config saves (34 explained heads measured at f6902e950)Thread-read: 7108812233
Premise: holds (origin/main bbc7e03: zod-issues-to-fields.ts docblock :137-158 still describes the head FOLLOWED by the branch entries; PR #35520 merged 2026-11-19T16:04Z for the metadata side only)
Ruling-ref: maintainer ruling record 7010280743 on this card (option A, 「A 跟 #35400 一样去掉」): drop the explained union head at every depth, keep an unexplained one, same rule as #35400; declare the narrowing (BREAKING banner, FROM → TO, one ADR-0087 marker, dogfood battery on the final head), L1-a then a CONTRACT_REVIEW_TIER review. Seat 7 routing 2026-11-24T00:33Z: built in o7-data (the ruling's original builder, seat 5 area data-2, is not on it).
Pre-claim lane: repo:objectstack#7 · o7-data — routed by the seat's area:data card-pick, 2026-11-24T00:33Z
Pre-claim deps:
Blocked-by: #35400closed (unlocked 7108812233); #35500 is blocked on this card and builds after itPrior rulings read: check-prior-rulings --card 35433 --paths packages/spec/src/api/zod-issues-to-fields.ts: 0 ruling comments by first-line shape (the ruling record 7010280743 is read directly above); ADR-0087 D3 (migration chain / the marker) applies to the narrowing declaration; the #5364 ruling (5199137796) on code vocabulary is untouched, as the ruling says
Serial constraints cleared: no open PR touches zod-issues-to-fields.ts, batch-routes.ts, the parity test or error-handling-server.mdx (open-PR file read 2026-11-24T00:3xZ); os-verify-lock depth 1 → go
Fold-or-serial: not folded — #35500 (the
query.wheretriple bare head) is ruled to follow this card, not fold into itobjectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
Paused · 2026-11-24T10:19Z · claim 7118226042 stays held (
pm:dispatched, assigneeos-alice).The dev is stopped mid-work on the maintainer's concurrency cap: at most 3 running dev subagents across seat repo:objectstack#7, every running dev counted. o7-data runs 0 devs until the seat resumes one. Nothing is lost: the worktree
../objectstack-issue-35433is kept clean at8df3c5cf44(its in-flight build under the verify lock was stopped), and the branchclaude/issue-35433-fields-drop-explained-union-headis on origin at8df3c5cf44. No PR is open yet. When resumed, the same dev continues from its saved state.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
Claim amendment · 2026-11-24T17:47Z · amends claim 7118226042 (paused note 7128629084)
Session:
session_011y7As5bdhV5T4N9vpjmZzH(seat repo:objectstack#7 itself)Takeover: the o7-data zone thread is closed, so the seat now owns this card directly and resumes the paused dev's work. Same branch, same file surface, same ruling (7010280743, option A).
Branch:
claude/issue-35433-fields-drop-explained-union-head(resumed from8df3c5cf44on origin)Worktree:
objectstack-issue-35433(fresh, made from origin)Container & model:
M, default judgment tier (opus; dispatch-gates--tierprinted "no path-derived mandate"),effort: highClause-②: no (narrowing)
Metadata-protocol: none
Unchanged from the claim: Account
os-alice, Domaindomain:server, the file surface, the deps and the serial constraints.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
os-dev-report
{ "issue": 35433, "status": "done", "branch": "claude/issue-35433-fields-drop-explained-union-head", "pr": "https://github.com/objectstack-ai/objectstack/pull/37083", "session": "session_011y7As5bdhV5T4N9vpjmZzH — the seat session repo:objectstack#7 (os-alice). It resumed the paused o7-data dev (claim 7118226042, session_011y7As6FyXmJyGyHNKXUkV7, paused note 7128629084). Claim amendment: comment 7139723470.", "premise_still_valid": true, "summary": "Ruling 7010280743, option A, is implemented. zodIssuesToFields (packages/spec/src/api/zod-issues-to-fields.ts) now drops a union's bare invalid_shape / 'Invalid input' head from fields[] whenever an entry below explains it, at every depth. It keeps the head when nothing explains it, when the head carries the schema's own error sentence, and for container heads. This is the same rule the metadata envelope took for #35400, and the cross-package parity test now holds the two machine lists equal entry for entry. Resumed from 8df3c5cf44: origin/main was merged with a merge commit, not a rebase. Fixes made on this resume: the changeset's before/after block was rewritten as FROM / TO bullets, because check-adr-0087-registration read the label-positioned 'FROM → TO' table as a migration prescription; a Skills-docs line was added; an ADR-0112 D6 adr0112-ok note was added in the spec pin; and the rest union-fields test now imports @objectstack/objectql at module top (check:test-source-alias). The file-surface note: packages/rest/src/zod-union-fields.test.ts and packages/spec/src/shared/union-branch-policy.parity.test.ts are tests of zodIssuesToFields, so they fall under the claim's 'and its tests'. batch-routes.ts and createValidationError were not touched, because no consumer re-adds the head.", "tests": "All readings are at head 38aa8786363, under the verify lock. Package suites: spec `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2` gave Test Files 982 passed (982), Tests 29844 passed, 1 todo. metadata-protocol `pnpm --filter @objectstack/metadata-protocol test` gave Test Files 369 passed, 9 skipped (378), Tests 23389 passed, 45 skipped. rest `pnpm --filter @objectstack/rest test` gave Test Files 429 passed (429), Tests 8818 passed, 351 skipped. typecheck for spec, metadata-protocol and rest: exit 0 each. Ablation, one time, through scripts/ablation-replace.mjs: the drop guard was replaced by an unconditional push of the head plus a marker. The anchor went x1 to x0, the marker x0 to x1, and the blob 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). Restore: the blob after restore equals HEAD (9823123bd547), and git diff HEAD is empty. Restored leg: Tests 42 passed (42). These suites import the source relatively (src/), so no rebuild was needed. The dist-resolved metadata-protocol and rest pins were not ablated. The first ablation attempt was a no-op that the tool refused: the replacement text is a substring of the anchor. It was rerun with a marker.", "gates": "Local run of `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, 108 families. `--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 (client SDK not built here). NOT MEASURED: check:dual-build-cjs-loads, reason: exit 3, PREREQUISITE NOT MET (48 packages have no dist). Four gates were red on the first sweep and fixed: check-adr-0087-registration (exit 1, then exit 0); check:error-code-casing (exit 1, then exit 0); check:test-source-alias (exit 1, then exit 0); check:type-check-debt (exit 3 on a queue timeout, then exit 0 rerun under the lock). `pnpm --filter @objectstack/spec check:generated` after a fresh spec build: exit 0, no artifact moved. On the final head, re-run: cross-package-test-inputs, undeclared-dep-imports, tier-file-adoption, rest-log-spy-declared, refd-timer-probe, nul-bytes and issue-citations, exit 0 each, plus all 32 node-script families. test:repo was not run locally; CI owns it. PR check-runs on 38aa8786363: 70 runs, 60 success, 10 skipped, 0 failed. Required: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core success, Governed Surface Queue Guard success, Type Check UI success, Test UI success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success. Lint UI was skipped by its path selector.", "dogfood_battery": "38aa8786363 · os-verify-lock: VERDICT command-exit 0 · held the lock 2224s · `pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test`, with no OS_TEST_SHARD and no path · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures", "mcp_calls": "0", "api_writes": "4 REST writes, all through scripts/pm relays as objectstack-fleet[bot]: (1) POST /repos/objectstack-ai/objectstack/issues/35433/comments, the claim amendment 7139723470, via post-stamped.mjs; (2) POST /repos/objectstack-ai/objectstack/pulls, PR #37083 as a draft; (3) POST /repos/objectstack-ai/objectstack/issues/37083/assignees with os-alice; (4) POST /repos/objectstack-ai/objectstack/issues/35433/comments, this os-dev-report, via post-stamped.mjs. Writes 2 and 3 were one pr_create relay stroke. git push is not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed — nothing found outside the card's scope"] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
Claim amendment · 2026-11-24T19:53Z · amends claim 7118226042 (and amendment 7139723470)
File surface adds:
packages/metadata-protocol/src/protocol-metadata-issues.ts— one comment-only hunk (docblock :228-232), correcting the sentence that says both spec walks keep every head, which this PR makes false (REWORK record 7142680236, item 3). No code, no export, no changeset.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
os-dev-report
{ "issue": 35433, "status": "done", "branch": "claude/issue-35433-fields-drop-explained-union-head", "pr": "https://github.com/objectstack-ai/objectstack/pull/37083", "session": "session_011y7As5bdhV5T4N9vpjmZzH", "premise_still_valid": true, "head": "39597f014f732093e8fda14682dc8992c018b12b", "summary": "Rework of REWORK record 7142680236 and the contract review's should-fix. Commit 4ef383fd7f0: the changeset no longer says #35400's rule shipped in the previous release (it now says both ship in this release), drops the nonexistent @objectstack/rest re-export, and narrows 'every VALIDATION_FAILED / VALIDATION_ERROR moves' to a VALIDATION_FAILED on a union slot with an explaining branch (plain create/update/bulk/batch writes do not move; VALIDATION_ERROR dropped). The protocol-metadata-issues.ts docblock (claim amendment posted on #35433 first) and the rest container-descent docblock no longer state the keep-every-head / same-as-#5014 stance. Merge commit 39597f014f7 brings in origin/main ebb4713c06f. PR body refreshed with post-stamped --body=37083 --ack-through=7142680236: the real mapper call sites replace 'createValidationError', readDeclaredQueryNumber (rest-server.ts:926) is added, the CI-job sentence is corrected (dual-build-cjs-loads in Build Core, skill-examples in Lint UI, skipped), and the stale dogfood-queued paragraph is replaced with this head's reading.", "tests": "All at head 39597f014f7, under os-verify-lock (VERDICT command-exit 0). spec: vitest run src/api/zod-issues-to-fields.test.ts src/shared/union-branch-policy.parity.test.ts: Test Files 2 passed (2), Tests 42 passed (42). rest: src/zod-union-fields.test.ts: Test Files 1 passed (1), Tests 18 passed (18). metadata-protocol: src/union-branch-policy.cross-package-parity.test.ts: Test Files 1 passed (1), Tests 22 passed (22). typecheck rest / metadata-protocol / spec: exit 0 each. Build closure (rest^... + metadata-protocol^...) VERDICT command-exit 0. No ablation this round: the code hunks are comments only, no tested behaviour changed; the round-1 ablation at 38aa8786363 stands.", "gates": "dispatch-gates --commands (merge base ebb4713c0, 8 paths): 108 commands, run with exit codes captured before any pipe; --ran: 108 derived, 106 run, 2 NOT MEASURED (check:skill-examples and check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET: unbuilt SDK / 48 packages without dist), 0 unrun. check:type-check-debt first exited 3 (lock queue-timeout inside its closure build), rerun under os-verify-lock: VERDICT command-exit 0. check-nul-bytes exit 0 before push. CI on 39597f014f7: 70 check-runs, 60 success, 10 skipped, 0 failed, 0 pending: Lint & Repo Gates success, TypeScript Type Check success, Build Core success (runs check:dual-build-cjs-loads), Check Changeset success, Test Core 10/10 success, Dogfood Regression Gate success; Lint UI skipped by its path selector, so check:skill-examples stays NOT MEASURED.", "dogfood_battery": "39597f014f7 · os-verify-lock: VERDICT command-exit 0 · held the lock 2339s · full battery, no OS_TEST_SHARD, no path, dogfood^... closure built first (exit 0) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · 0 failures", "mcp_calls": "0", "api_writes": "4 — POST /repos/objectstack-ai/objectstack/issues/35433/comments (claim amendment, relay run 45475004707); PATCH /repos/objectstack-ai/objectstack/issues/37083 (PR body refresh, relay run 45490487602); POST /repos/objectstack-ai/objectstack/issues/35433/comments (this os-dev-report); git push (not REST) of 38aa8786363..39597f014f7", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": "1) post-stamped refuses a body whose first non-empty line is not the seat signature, so the PR body now opens with the signature line and 'Fixes #35433' is the second non-empty line (the dispatch order mandated post-stamped --body; recognisers skip one leading signature line). 2) The pre-existing signed-trailer HTML comment at the end of the PR body was left as found, not authored this round. 3) Merge commit message rewritten with --amend before push to carry the two required trailers. 4) test:repo not run locally; CI Test Core owns it (success)." }os-justin commentedon Nov 24, 2026
os-closed-card-sweep — machine-findable marker for this generated comment.
Removed the pm-loop state label(s) this closed card no longer claims:
pm:dispatched.372ce7c9b1, merged intomain.priority:p2,finding,domain:server,area:data— ownership, priority and outcome are not state claims.A state label claims work is in flight. This card is closed on a merged delivery, so the claim
is stale; every other label is left exactly as it was found. Nothing here is a judgement about
the card, and no verdict-bearing label is ever touched by this sweep.
seat repo:objectstack#4 close-out sweep
Generated by Claude Code
Generated by Claude Code