Skip to content

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

Closed
2 of 2 issues completed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Filing gate: ① measured. Split from #33345 row 60 (v18.4.0 sweep, ledger studio-authoring.removed-key-save-door-refusal) by the #33345 os-dev report (comment 7003316873, open question 1). PR #35397 fixes the rest of row 60 (empty key text, short-key rename guess) and rows 130, 164, 233; this part waits on a choice, so it is split out rather than holding the PR. ⛔ Not a claim; triage sets lane and grade.

What the user sees

A refused view or form save returns, as issues[0], an entry { path: '', message: 'Invalid input', code: 'invalid_union' }, next to the entries that name the real key. Studio shows it as a bare "Invalid" line with no field. Measured on main c05a8a01c9 through getMetadataTypeSchema + zodIssuesToMetadataIssues.

Why it is not a copy fix

Options (from the dev's reading)

  • A. Drop the wrapper entry when the expansion produced at least one entry. Studio, MCP and API callers see only useful entries. Reverses 元数据保存的 422 也丢掉 union 分支处方:一个 view 保存失败只回一条 path:"" message:"Invalid input",Studio 无字段可高亮 #5364's rule; about 4 pins rewritten; a changeset declaring the envelope change. 1 PR, size S.
  • B (dev's recommendation). Keep the entry, its path and code; replace its message with one sentence pointing at the entries below it. Shape unchanged. Studio must pick its translation by issue code, not exact text, or Chinese users see English: a small ui/ change alongside. 1 PR, size S, plus the ui change.
  • C. Leave the wire; Studio hides a root invalid_union entry when more specific entries follow. API, MCP and CLI callers keep the bare line. 1 ui PR, size S.

Reader: the seat (an envelope / contract choice), then domain:server + ui.

Dedupe: issue search invalid_union Invalid input path root entry, bare Invalid input view form save refusal, strictly additive union issues → only #33345.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Ruling-ref: maintainer decision card in seat repo:objectstack#5's project session · recorded 2026-11-19T08:19Z
    The maintainer picked at 2026-11-19T08:18Z. Question, verbatim: 「视图或表单保存被拒时,清单第一行那句空的「输入无效」怎么办?(#35400)」. Option chosen, verbatim: 「去掉这行」 (option A of four; the card's recommendation).

    Ruling as executed:

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Grade: p2 · 2026-11-19T08:20Z. Split from #33345 (p2); the maintainer ruled the fix (7003683081), so it inherits the parent's grade. Area ux-3 builds it.

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Claim: PM loop round 7 (area ux-3 of repo:objectstack#5; the maintainer, verbatim, 2026-11-19T00:07Z: 「接手 area:ux」「优先 p1 p2」) · 2026-11-19T08:43Z
    Session: session_01Utp6CZiaBg6rk7dpy1s9Me
    Account: os-bill
    Branch: claude/issue-35400-drop-explained-union-wrapper
    Worktree: objectstack-issue-35400 (os-dev worktree in the ux-3 container)
    Domain: domain:server
    Seat: repo:objectstack#5
    Area: ux-3
    File surface: packages/metadata-protocol/src/protocol-metadata-issues.ts (collectMetadataIssues: a union wrapper entry is emitted only when its branch expansion produced no entry; container entries unchanged), the pins that name the explained wrapper (protocol.save-union-issues.test.ts, metadata-diagnostics.union-issues.test.ts, protocol.container-issue-descent.test.ts, protocol.invalid-metadata-422-face-inventory.test.ts, and union-branch-policy.cross-package-parity.test.ts, recording the intended asymmetry with the terminal renderer and the data API's fields[]), changeset. Stop on breach and report.
    Container & model: M, mode:subagent, model: default — no path-derived mandate (metadata-protocol envelope change; L2 contract record owed before the queue), effort: xhigh
    Clause-②: yes (narrowing)
    Accept set: unchanged. What moves is the shape of a published refusal: an entry is removed from the issues list of a refused metadata save and from the read path's diagnostics when entries below it explain it.
    Metadata-protocol: none
    Responsibility: platform — collectMetadataIssues in packages/metadata-protocol/src/protocol-metadata-issues.ts (objectstack) feeds four surfaces (save 422 INVALID_METADATA, read _diagnostics.errors, seed-request refusal, unmanaged-import 400); Studio authors and API / AI callers who read a refused view save.
    Thread-read: 7003713181
    Premise: holds — on main a refused view save lists { path: '', message: 'Invalid input', code: 'invalid_union' } as issues[0] beside the branch entries (measured by the #33345 dev at c05a8a01c9; read by the decision analysis at 2e9e1ac9dc).
    Serial constraints cleared: none at claim time; the dev runs overlap-check on the branch before every push.
    Pre-claim lane: server / metadata-protocol refusal shape (area:ux, ux-3 row of the seat's area table); not governed.
    Pre-claim deps: none open. #33345's PR #35397 does not touch this producer.
    Prior rulings read: maintainer ruling 7003683081 (option A 「去掉这行」: drop the wrapper whenever a following entry explains it, keep it when nothing does); grade 7003713181 (p2); PR #5596's "strictly additive" design and the 17.0.0 changelog line it reverses; the maintainer's #5364 ruling not to align with ADR-0114 fields[] (untouched); #8660 cross-package parity pin; #17299 / PR #17900 (a retirement prescription already replaces the view union's message).

  5. added
    pm:dispatched
    on Nov 19, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
    os-dev-report

    {
      "issue": 35400,
      "status": "needs_decision",
      "branch": "claude/issue-35400-drop-explained-union-wrapper",
      "pr": null,
      "head": "b277779bd044bcf22e29a82684cf55d6b0651d2b",
      "resume_from": "claude/issue-35400-drop-explained-union-wrapper@b277779bd0",
      "session": "session_01Utp6CZiaBg6rk7dpy1s9Me",
      "premise_still_valid": true,
      "summary": "Stopped at assumption A1, as the dispatch and ruling 7003683081 direct ('The dev measures it and stops if A changes it'): A changes it. Studio's form draws a served issue on a field row only when the issue's path EQUALS the row's top-level key, and a nested union head at a one-segment path (`label`, `visibleWhen`, `columns`, ...) is often the only entry with that path; under the ruled rule (any depth) the head is dropped and the row loses its red ring and message. Measured over the real spec schemas through the base and the patched producer: 125 of 384 probe cases lose the row's only exact-path entry, across 39 top-level keys in 16 metadata types. The premise holds: a refused view save lists {path:'', message:'Invalid input', code:'invalid_union'} first. The producer change (union head emitted only when its expansion appended no entry; container heads kept) is committed and pushed as WIP b277779bd0, no PR; the five pin files are not rewritten (22 of 115 tests red at that commit), no changeset, no battery. The maintainer picks the scope in open_questions[0].",
      "tests": "Closure build `pnpm --workspace-concurrency=2 --filter '@objectstack/metadata-protocol^...' build` under os-verify-lock: VERDICT command-exit 0 (held 99s, waited 122s). The five pin files at the WIP producer b277779bd0, `vitest run --maxWorkers=2` over the 5 files under the lock: 'Test Files 5 failed (5)', 'Tests 22 failed | 93 passed (115)', VERDICT command-exit 1, the expected move: save-union-issues 7, cross-package parity 8 (section 2 all seven fixtures + section 4 code vocabulary), 422 face inventory 3, container descent 2, diagnostics 2. A1 probe (tsx over packages/spec/src, the base producer copy vs the patched one, ten generic invalid values per top-level plain-union key): 'cases with a one-segment union head: 384; row keeps an exact-path entry after A: 259; row LOSES its only exact-path entry: 125'. Real-body probe: bound inline list view with label {not_a_locale:'Tasks'} before [['','invalid_union'],['label','invalid_union'],['label.not_a_locale','invalid_key'],['label.not_a_locale','invalid_format']], after [['label.not_a_locale','invalid_key'],['label.not_a_locale','invalid_format']]; the card's repro body before [['','invalid_union'],['','unrecognized_keys']], after [['','unrecognized_keys']]; action label map and object titleFormat object lose their row entry the same way. No ablation or reverse verification: no tested behaviour is pinned yet.",
      "gates": "Local subset only, no PR: closure build VERDICT command-exit 0; pin run VERDICT command-exit 1 (a measurement, expected); overlap-check exit 0. NOT MEASURED: the dispatch-gates --commands families, metadata-protocol typecheck and full test, check:adr-0087-registration, reason: stopped at A1 before a PR head. No PR, so no check-runs to cite.",
      "dogfood_battery": "NOT MEASURED: dogfood, reason: stopped at A1 before a final head; owed on the final head of whichever scope is ruled (Clause-② narrowing arm)",
      "line_budget": "+39 / -26 = 65 changed lines, 1 file (git show --stat b277779bd0)",
      "files_changed": "packages/metadata-protocol/src/protocol-metadata-issues.ts (WIP, pushed, no PR)",
      "overlap_check": "node scripts/pm/overlap-check.mjs --branch=claude/issue-35400-drop-explained-union-wrapper before the WIP push: 'changes 1 file(s); against origin/main (8596c80eda) and 0 PR head(s)', 'origin/main: merges cleanly', 'VERDICT clean exit 0'",
      "readings": {
        "A1": "FAILS: A changes the highlight. SchemaForm draws issues by EXACT path: ui/packages/app-shell/src/views/metadata-admin/SchemaForm.tsx:1196-1202 keys issuesByPath by i.path; rows read issuesByPath[f.field] (:1733) and issuesByPath[key] (:1327); the file has no prefix or head-segment rollup. Feeders: ResourceEditPage.tsx:2215-2218 maps every 422 entry and :2232 sets them; load-time `_diagnostics.errors` at :1482-1487; EmbeddedItemEditor.tsx:204-213 trims its prefix and feeds the same SchemaForm. Keys that lose the row's only exact-path entry for at least one probe value: action.{label,description,submitText,cancelText,confirmText,successMessage,errorMessage,disabledReason,visible,disabled,pressed,bodyShape}; app, dashboard, dataset, page, report .{label,description}; view.{label,description,columns,exportOptions}; field.{expression,visibleWhen,readonlyWhen,requiredWhen,settledWhen,maskingRule}; object.{titleFormat,requiredPermissions}; hook.{condition,object}; book.audience; seed.externalId; sharing_rule.condition. Example: a bound inline list view whose label is {not_a_locale:'Tasks'} lights the Label row today with 'Invalid input' (zh: the localized 'invalid input' string); after A no entry has path 'label', so the row is unmarked and only the error line names it via labelForIssuePath ('Label' + trail). The root head (path '') draws no row in any case (no field is named ''); dropping it changes the banner's first three (ResourceEditPage.tsx:3425), the error line (:2262-2267), the held refusal slices (:2236-2250) and Studio Design's 'N more under Details' (studio-design/metadataError.ts:211-214), as the analysis said. Live client verdicts (clientValidation.ts) are a separate walk and do not move; server entries drive the rows right after a 422 (until the next edit) and at load for a type without a client validator. Read from source plus the producer probe; not driven in a browser.",
        "A2": "Holds. Measured on the meta-envelope face at the WIP producer: 'view/task_list failed spec validation: 1 issue — ROOT [unrecognized_keys]' (was '2 issues — ROOT [invalid_union]; ROOT [unrecognized_keys]', pinned at protocol.invalid-metadata-422-face-inventory.test.ts:235 and :257; ROOT = the angle-bracketed root locator). The boot warning (protocol-diff-delete-load.ts:1348-1352) prints errors[0], so the card's repro reads 'ROOT: Unrecognized key(s) ...' instead of 'ROOT: Invalid input', and the label case reads 'label.not_a_locale: Invalid key in record' (first entry from the producer probe; the warning itself not run). The message-only face (protocol-write-face.ts:96-99) loses its leading 'ROOT: Invalid input; ' by the same first-three slice (read, not run). Not pinned: no PR.",
        "A3": "Holds at 8596c80eda (the WIP touches only the producer). `(issues|errors).slice(1` in non-test packages/ and ui/ sources: 0 hits (exit 1). code ===/!== 'invalid_union' outside packages/spec and ui/packages/types, non-test: 10 hits, every one on a raw zod issue carrying .errors (packages/lint x4, the producer, protocol-packaged-base-refusal.ts:682, service-push capability-arg.ts:92, ui clientValidation.ts:463, ui/packages/cli union-arm-diagnostics.ts x2), none on a served entry (the analysis counted 12). Producer callers: exactly four (metadata-diagnostics.ts:336, protocol-client-failures.ts:676, protocol-package-commits.ts:662, protocol-save.ts:1569). One in-repo text becomes false under any dropping scope and must change in the same PR, outside the claim's file surface: the comment at metadata-diagnostics.ts:333-335 ('the union's own entry is still first, so any consumer reading errors[0] today reads the same entry')."
      },
      "deviations": [
        "Stopped at A1 per the dispatch: no PR, no changeset, pins not moved. The producer change is pushed as WIP b277779bd0 so the work resumes from the branch rather than being redone.",
        "Studio measured from source plus a producer-level probe over the real spec schemas, not in a browser; the row lookup is an exact-path match, which a run would not change.",
        "The dispatch carried no decision framework for open_questions; the options are judged on the four facets of the seat's decision-35400.md, not a set of my own.",
        "Pin cost measured as 22 failing tests in the analysis's 5 files (it estimated about 14 assertions); no sixth file moved.",
        "The harness attribution note asked for a model-named Co-Authored-By trailer; the WIP commit carries the dispatch's and AGENTS.md's model-free pair."
      ],
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #35400 through scripts/pm/post-stamped.mjs (relay; POST /repos/objectstack-ai/objectstack/issues/35400/comments). Plus 2 git pushes (empty branch marker, WIP commit), not REST writes.",
      "open_questions": [
        {
          "question": "Ruling A drops every explained union head. A head at a top-level key (label, visibleWhen, columns, ...) is today often the only entry Studio's form draws on that row, because rows match issue paths exactly (39 keys in 16 types measured). Which scope ships?",
          "options": [
            "A-1 · every depth, and Studio rows read nested entries: keep the ruled rule; SchemaForm draws an entry on the top-level row its path starts under, and ResourceEditPage's drawnInline check matches the same way. The Label row then shows the real reason (the BCP-47 locale prescription) instead of 'Invalid input', and rows also light for nested causes that light none today (e.g. columns.0.field). Cost: the server change as planned plus a ui change (SchemaForm.tsx issuesByPath, ResourceEditPage.tsx drawnInline; EmbeddedItemEditor shares SchemaForm) with ui tests; claim file surface widened to ui/; Type Check UI and Test UI lanes. One PR, or the ui half first so no release ships rows without a ring. Size reference: ui PR #28395, +340/-10, 9 files.",
            "A-2 · root only (path ''): drop the head only at the document root, which today means `view` (the only type whose schema is itself a union). Nested heads stay, Studio rows keep their 'Invalid input' ring, and API / AI callers still read a nested 'Invalid input' entry ahead of its causes on those 39 keys. Cost: server only, one condition; the parity pin's corpus (heads at `u`, not root) does not move, so fewer pins move. The dispatch forbids choosing this without the maintainer.",
            "A-3 · every depth, accept the lost ring: ship as ruled; on those 39 keys the row loses its ring and its 'Invalid input' line, while the error line still names the place ('Label' plus the trail from labelForIssuePath). Cost: one server PR as planned (22 tests in the 5 files rewritten, changeset, battery)."
          ],
          "recommendation": "A-1, on the four facets of decision-35400.md. ① Long-term: it is the only option that reaches the end state on both sides, every machine entry a located cause and the form showing causes on the row they sit under; the exact-path lookup is the real gap, since nested non-union causes light no row today either. ② Business pull is weak (two QA sweep records) and does not flip it. ③ AI callers: A-1 and A-3 give the same clean list; A-2 keeps one non-actionable 'Invalid input' per nested union. ④ Spread: A-1 adds one rule in the one form component every editor shares, not a skip rule per reader; A-3 is smallest but trades the ring away; A-2 is small but keeps two entry shapes. If the ui half is not wanted now, A-3 over A-2."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: maintainer-directed sibling, not a, b or c on its own · reach: exception: maintainer (ruling 7003683081: 'The data API's sibling wrapper is out of this card and gets its own finding card') · evidence: the data API's fields[] emits the union head as {field, code:'invalid_shape', message:'Invalid input'} ahead of the branch entries, packages/spec/src/api/zod-issues-to-fields.ts:137 (docblock) and :214 (push); CI-pinned at packages/metadata-protocol/src/union-branch-policy.cross-package-parity.test.ts:420-421 (codes ['invalid_shape','required']); public teaching at content/docs/api/error-handling-server.mdx:179-183 ('that entry PLUS the entries of the branch'); consumers packages/rest/src/batch-routes.ts:320, :583, :640 and the REST createValidationError · Seam: spec:zodIssuesToFields → runtime:rest createValidationError and batch-routes · dedupe words: invalid_shape union wrapper fields, data API Invalid input fields entry, zodIssuesToFields union head",
        "carrier: none · noted, not filed (read-only inference, not reproduced): the Save button's refusal tooltip joins held slice labels, and the root head's label is empty (labelForIssuePath('') returns ''), so a refused view save reads ', Columns ...' with a leading comma (ResourceEditPage.tsx:2236-2250, :2823-2825). Every scope in open_questions[0] drops the root head, so it goes away with this card."
      ]
    }
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec · dispatched; rationale: area:build · Bug · Impeded (a refused view or form save lists a bare "Invalid input" entry first) · builders, often → p2 as set. Area added in the daily backfill.

  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Ruling-ref: maintainer decision card in seat repo:objectstack#5's project session (scope card, second card on this issue) · recorded 2026-11-19T12:04Z
    The maintainer picked at 2026-11-19T12:01Z. Question, verbatim: 「#35400 那句空的「输入无效」去到哪一层?」. Option chosen, verbatim: 「每层都去掉,表单另立单」 (option 1 of four; the card's recommendation). Its consequence line, verbatim: 「按原裁定做完,只去真正空的那句,自带说明的保留;设计器25个字段保存被拒后暂少一行红字,表单另开卡改。」

    Scope as executed (refines the first ruling, 7003683081):

    • In collectMetadataIssues, drop an explained union head at every depth, but only when its message is zod's bare Invalid input. A head that carries its own authored sentence stays, because the Fable pass found such sentences that appear nowhere else in the list. A head with no explaining entry below it stays as before. Container heads are unchanged.
    • A pin on zod's bare message text, so a zod rewording cannot silently disable the rule.
    • Studio's form shows a refused save's issue only on a top-level row whose key equals the issue path. That form change is NOT in this PR. It goes to its own card; until it lands, about 25 form fields show one red line fewer after a refused save.
    • The in-repo texts that become false move in the same PR: protocol-metadata-issues.ts (the entry-rule docblock and the WIP's "carries no prescription" line) and metadata-diagnostics.ts:333-335.
    • Unchanged from the first ruling: Clause-②: yes (narrowing) with banner, migration and one ADR-0087 marker; the [finding] a THIRD copy of the union-branch selection ranking lives in packages/metadata-protocol/src/protocol.ts — outside the reach of #8318's package-internal consolidation, with no mechanical parity enforcement #8660 parity pin records the asymmetry; dogfood battery on the final head; L1-a, then seat 5's CONTRACT_REVIEW_TIER record.
      Analysis: seat-local decision-35400-scope-fable.md (verified served at the contract tier, 136 turns), checked against an earlier non-Fable pass, decision-35400-scope.md.
  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Claim amendment: scope and file surface after the maintainer's scope ruling (comment 7008570921) · 2026-11-19T12:08Z
    Branch: claude/issue-35400-drop-explained-union-wrapper (resumes from WIP b277779bd0)
    Area: ux-3
    Scope: drop an explained union head at every depth only when its message is zod's bare Invalid input; a head with its own authored sentence stays; a head with no explaining entry below stays; container heads unchanged. Studio's form rows are not touched here; that work is #35499.
    File surface (adds one file to the claim): the read-path comment in packages/metadata-protocol/src/metadata-diagnostics.ts (the lines that say the union entry stays first), plus the five pin files and changeset already named.
    Clause-②: yes (narrowing)
    Accept set: unchanged.
    Metadata-protocol: none

  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
    os-dev-report

    {
      "issue": 35400,
      "status": "done",
      "branch": "claude/issue-35400-drop-explained-union-wrapper",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35520",
      "head": "62387026dbfc4810b024d27774b340599ed427a0",
      "resume_from": "claude/issue-35400-drop-explained-union-wrapper@b277779bd0, merged with origin/main 5756ae0d75 once before the PR (merge commit ac4900f00a)",
      "session": "session_01Utp6CZiaBg6rk7dpy1s9Me",
      "premise_still_valid": true,
      "summary": "Implemented the maintainer's scope ruling (comment 7008570921) on top of WIP b277779bd0: collectMetadataIssues drops a union head, at every depth, only when its branch expansion appended at least one entry AND its message is exactly zod's bare default, held in one named constant ZOD_UNION_DEFAULT_MESSAGE ('Invalid input') in the producer. Every other head stays ahead of what it explains: an authored sentence (object titleFormat or action confirmText written as a formula, a view's retirement prescription), a head nothing below explains (label: 42), and every container head. The texts that became false moved in the same PR (the producer's entry-rule docblock including the WIP's 'carries no prescription' line, the zodIssuesToMetadataIssues docblock, and metadata-diagnostics.ts's read-path comment that said the union entry stays first). The 22 moved pins in the five files were rewritten, 7 new pins added (zod text pin, synthetic bare vs authored, non-locale label map, titleFormat, confirmText, unexplained-head control, the parity file's recorded asymmetry with the terminal renderer and the data API's fields[]), and a Clause-② narrowing changeset with BREAKING banner, was/now table, 'read by path and code, not by index', one ADR-0087 marker (not-required (no-migration-prescription), accepted by the gate) and the known Studio form regression until #35499. Draft PR #35520; local subset, ablations and the full dogfood battery green on the final head.",
      "tests": "Head 62387026db unless stated. (1) Five pin files at the producer commit 715b42d846 only: 'Test Files 5 failed (5)', 'Tests 22 failed | 93 passed (115)', VERDICT command-exit 1 (the moved pins). After the rewrite: 'Test Files 5 passed (5)', 'Tests 122 passed (122)', VERDICT command-exit 0; re-run on 62387026db with the package typecheck: same 122 passed, VERDICT command-exit 0. (2) Whole package on 3b87de374e (the final head differs only by four module-top preload imports in test files): pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 -> 'Test Files 360 passed | 9 skipped (369)', 'Tests 23256 passed | 45 skipped (23301)', VERDICT command-exit 0, no sixth file moved. (3) Build + typecheck: check-dts-emitted '2/2 declared declaration file(s) present', tsc exit 0, VERDICT command-exit 0; tsc --listFiles counts 368 test files in the program, all five edited files among them. (4) Ablations, committed first, via scripts/ablation-replace.mjs in wrap mode (anchor x1 -> x0, blob dccd42f3d3dd -> mutated, restored 'blob == HEAD (dccd42f3d3dd) and git diff HEAD is empty' both times); tests import the producer by relative path so src runs, no build involved: A1 keep every head (out.push(entry)) -> 'Tests 23 failed | 99 passed (122)', VERDICT command-exit 1: 20 of the 22 rewritten pins plus the 3 new drop pins red, the authored, unexplained and container controls green; A2 the WIP rule (if (below.length === 0) out.push(entry)) -> 'Tests 3 failed | 119 passed (122)', VERDICT command-exit 1: exactly the three authored-head pins red. (5) Producer probe over the real spec schemas (tsx, src producer): view repro [['','unrecognized_keys']]; label map [['label.not_a_locale','invalid_key'],['label.not_a_locale','invalid_format']]; object titleFormat cel keeps the authored head then titleFormat.dialect; action confirmText keeps two authored heads then confirmText.dialect; a view with a retired owner key keeps its authored root head while a bare unexplained label head (label: 42) stays.",
      "gates": "Local subset on 62387026db: node scripts/pm/dispatch-gates.mjs --commands (66 families, same list on 3b87de374e and 62387026db) -> all 66 exit 0, each exit captured before any pipe; --ran over the recorded 'COMMAND :: exit CODE' lines: 'Run reconciliation — 66 derived, 66 run, 0 NOT-MEASURED, 0 UNRUN', 'a DERIVED zero — all 66 recorded an exit code and none of them is 3'. On the earlier head 3b87de374e: check:test-source-alias exit 1 (four edited pin files reached the protocol's lazy lint import inside a clocked case; answered in 62387026db with the package's existing lint preload testkit import), check:dual-build-cjs-loads and check:lean-entry-closure exit 3 (PREREQUISITE NOT MET, no dist; both exit 0 on the final run after the dogfood closure build). check:adr-0087-registration: '1 declared-breaking changeset(s), each carrying an ADR-0087 disposition ... not-required (no-migration-prescription)'. Local-only families check:dev-prereqs and check:skill-frame-freshness not owed (no packages/spec or four-axis frame file touched). PR #35520 check-runs at report time on 62387026db: success — Auto Label, Build Core, Check Changeset, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Governed Surface Queue Guard, Lint & Repo Gates, the seven Lint lanes, Live E2E UI, PR-body guards, Plan Test Core shards, Test Core 1-8 and 10 of 10, Test UI, Type Check (consumer gates, debt ledger, source gates, workspace), TypeScript Type Check, filter; in_progress — Test Core (9/10); 16 skipped by their own if or path filter (Type Check UI, Lint UI, Build & E2E UI, Test UI shards, Dogfood shards, Temporal Conformance, and others). Not waited on, per os-dev.",
      "dogfood_battery": "62387026db · bash scripts/pm/os-verify-lock.sh -c 'pnpm --filter @objectstack/dogfood test' after the closure build (pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build, VERDICT command-exit 0) · 'os-verify-lock: VERDICT command-exit 0 · held the lock 1791s' · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failure; host skips named in the log: print-service-render and principal-session-console-boot (no built Console here)",
      "moved_pins": "22 tests in the five files (protocol.save-union-issues 7, union-branch-policy.cross-package-parity 8, protocol.invalid-metadata-422-face-inventory 3, protocol.container-issue-descent 2, metadata-diagnostics.union-issues 2). The same 22 as the WIP rule, not fewer: every moved pin's head carried zod's bare text, so the bare-only condition moved none back. Plus 7 new tests.",
      "line_budget": "+360 / -88 across 8 files (production +72 / -30 in 2 files; changeset +32; tests +256 / -58 in 5 files); 448 changed lines, under the 3000 human-merge threshold",
      "files_changed": [
        ".changeset/metadata-issues-bare-union-head.md",
        "packages/metadata-protocol/src/protocol-metadata-issues.ts",
        "packages/metadata-protocol/src/metadata-diagnostics.ts",
        "packages/metadata-protocol/src/protocol.save-union-issues.test.ts",
        "packages/metadata-protocol/src/metadata-diagnostics.union-issues.test.ts",
        "packages/metadata-protocol/src/protocol.container-issue-descent.test.ts",
        "packages/metadata-protocol/src/protocol.invalid-metadata-422-face-inventory.test.ts",
        "packages/metadata-protocol/src/union-branch-policy.cross-package-parity.test.ts"
      ],
      "overlap_check": "node scripts/pm/overlap-check.mjs --branch=claude/issue-35400-drop-explained-union-wrapper before each of the three pushes this round (c39da01546, 3b87de374e, 62387026db): 'origin/main: merges cleanly', 'VERDICT clean exit 0', against origin/main 5756ae0d75 and 0 PR heads",
      "deviations": [
        "Draft PR opened after local verification, not on this round's first push: a dev may write the PR body only at pr_create, so it was opened once the head's readings existed; three pushes preceded it. The battery ran after the PR opened, on the same head; its reading is in this report and the card comment, not in the PR body.",
        "The PR stays draft: the dispatch says mark ready only when CI is green on the final head, and os-dev forbids waiting on CI, so the flip is the seat's. At report time CI had no failure and one Test Core shard still running.",
        "Four edited pin files gained a module-top import of the package's lint preload testkit, which check:test-source-alias required for edited test files; inside the claimed file surface.",
        "The harness attribution note asked for a model-named Co-Authored-By trailer and a different PR footer; commits carry the dispatch's model-free pair and the PR body the AGENTS.md session-URL footer.",
        "No ui/ change and no change to packages/spec/src/api/zod-issues-to-fields.ts, per the fences."
      ],
      "mcp_calls": "0",
      "api_writes": "2 — (1) pr_create through the fleet-write relay (scripts/pm/fleet-write/dispatch.mjs: POST /repos/objectstack-ai/objectstack/dispatches; the relay ran POST /repos/objectstack-ai/objectstack/pulls and POST /repos/objectstack-ai/objectstack/issues/35520/assignees with os-bill; read back 'identical', 10433 bytes); (2) this os-dev-report comment through scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/35400/comments). Plus 3 git pushes, not REST writes.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #35433 · the data API's fields[] keeps the union head as invalid_shape ahead of its causes (packages/spec/src/api/zod-issues-to-fields.ts); recorded as the intended asymmetry in union-branch-policy.cross-package-parity.test.ts §4, not changed here",
        "carrier: #35499 · Studio's form draws a refusal's entry only on the top-level row whose key equals its path, so about 25 rows lose their 'Invalid input' line after a refused save; named in the changeset and the PR as the known regression",
        "carrier: none · noted, not filed (read-only inference, not reproduced): round 1 noted that the Save button's refusal tooltip joins held slice labels and the root head's label is empty, giving a leading comma; round 1 said every scope removes it, but under the ruled bare-only scope a view's root head carrying its own sentence (the retirement prescription) stays, so that comma can remain in that case; ui/ is fenced to #35499"
      ]
    }
  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Claim amendment 2 · 2026-11-19T14:51Z
    Clause-②: no (narrowing)
    Why it changed: nothing in PR #35520 widens a published surface (ZOD_UNION_DEFAULT_MESSAGE is a module export only, not reachable from the package entry), so seat 5 asked for the pure-narrowing spelling; the changeset and the PR body carry it from head 692d874e93. The contract record 7012624388 confirms it (PASS).
    Accepted deviation: the record's nit N1 (a nested bare head after a de-duplicated tied branch reads as unexplained and is kept). It errs toward keeping a line, never toward dropping a cause.

  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
    os-dev-report

    {
      "issue": 35400,
      "status": "done",
      "branch": "claude/issue-35400-drop-explained-union-wrapper",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35520",
      "head": "692d874e9376e11616cfdfd0502865db774e9101",
      "session": "session_01Utp6CZiaBg6rk7dpy1s9Me",
      "premise_still_valid": true,
      "summary": "Battery round on the merged head for the land gate. No code, body, label or ready-state change: the checkout sat exactly on 692d874e93 (local HEAD = origin branch head = PR head, verified by git rev-parse and GET pulls/35520), clean tree, and the full dogfood battery ran green on it. This supersedes the battery pin in report comment 7011455182 (head 62387026db); the round-2 implementation readings stand unchanged.",
      "tests": "Battery only, see dogfood_battery. Closure build: bash scripts/pm/os-verify-lock.sh -c \"pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build\" -> 'VERDICT command-exit 0 · held the lock 346s'.",
      "gates": "No local gate families owed (no diff this round). PR check-runs not re-read or waited on, per os-dev.",
      "dogfood_battery": "692d874e9376e11616cfdfd0502865db774e9101 · closure build VERDICT command-exit 0, then bash scripts/pm/os-verify-lock.sh -c 'pnpm --filter @objectstack/dogfood test' (no OS_TEST_SHARD, no path) · 'os-verify-lock: VERDICT command-exit 0 · held the lock 1820s (30m20s) · waited 535s' · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failure; same counts as the 62387026db battery; host skip named in the log: the multi-org attachments block (@objectstack/organizations not declared by the dogfood host)",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment through scripts/pm/post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/35400/comments). No push.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": [
        "The lock wait took three resumed calls on the kept slot (two VERDICT queue-timeout exit 99, never acquired, behind another area's battery holding the lock from objectstack-issue-34030); recorded as NOT MEASURED attempts, the fourth call acquired and is the reading above.",
        "pnpm install --frozen-lockfile ran first in the checkout (no node_modules present); lockfile unchanged, tree clean."
      ]
    }
  13. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Close-out 2026-11-19T16:05Z: PR #35520 MERGED as 97f342037d; Fixes closed this card. Delivered on the maintainer's two rulings (7003683081, scope 7008570921): a refused metadata save, the read path's diagnostics, the seed-request refusal and the unmanaged-import refusal no longer list a union's own entry when its message is zod's bare Invalid input and entries below it explain the failure, at every depth. A refused view save now opens with the real cause. Heads with their own sentence, heads nothing explains, and container heads stay. Clause-②: no (narrowing); the changeset says to read entries by path and code, not by index.
    Reviews: L1-a ACCEPT 7011622590; seat 5 CONTRACT_REVIEW_TIER PASS 7012624388 (nit N1 accepted as a deviation); full dogfood battery on the landed head (7013769621).
    Still open under this card: #35433 (the data API's fields[] keeps its union entry) and #35499 (Studio's form shows a refusal only on the exact-path row, so about 25 fields show one red line fewer until it lands; it also carries the Save tooltip's leading-comma note). pm:dispatched off.

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

Metadata

Metadata

Assignees

Labels

area:buildfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions