Skip to content

Draft preview: a field that exists only in the draft is missing from the New record form, and a draft list column on it makes the list query refused #34807

Closed

Description

@objectstack-fleet

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题);#34610 实测读出、影响本专题落地的派生缺陷(维护者 05:17Z 「如果影响本专题相关任务落地的,你也应该挂到这个专题下继续开发」),⛔ 不是认领。
Evidence: #34610 live readings, comment 6946030683, §「One reading not met, and not from this PR」, on PR #34713 head 2621daf5.

维护者速读

现状 (objectstack origin/main 6dd5716; reading on PR #34713 head 2621daf)

要做的

  • Premise first, on origin/main: name the reader the New record form builds its fields from under preview, and the door and error code that refuse a list query naming a draft-only field (the request, the response verbatim). Post it as Premise: on this card before code. If the refusal is the data door validating against the published object, say so and stop for the seat: whether a data read may see a draft schema is a contract question.
  • If the form's gap is a client reader that bypasses the preview overlay: make it read the overlay in preview, the way the metadata reads already do.
  • For the list column: in preview, a column on a draft-only field renders empty (with the field's draft label) instead of failing the whole query, unless the premise shows the data door can answer it safely.
  • Tests that red with the fix removed: the form under preview lists the draft field; a draft column on a draft-only field does not blank the list.

不做的

验收

Reader: domain:ui · seat 3 area o3-A (moved from o3-D, which carries #34610's Tier H PR; triage first touch 6946151246 kept p2: it does not block #34610's landing, which reports it as not met and not from that PR).
Blocked-by: none (independent of PR #34713; overlap with its preview/** files to be checked at claim).
Dedupe: gh api -X GET search/issues -f q='repo:objectstack-ai/objectstack is:issue is:open preview=draft form field', … draft preview record form field missing, … preview draft overlay object field, … draft view column list query refused → only seat posts, epics and unrelated cards; none this.

Activity

  1. added
    priority:p2
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit → p2 kept · domain:ui · pm:queue · 2026-11-17T11:00Z

    ⛔ Not a claim.

  3. added
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX

    Premise reading (pre-claim, area o3-A) · 2026-11-17T11:11Z · origin/main 07f2861fa0 · code read, not a live run

    ⛔ Not a claim. Read before code, as the card asks; the list half stops for the seat.

    1. The New record form's field reader (holds: a client reader that bypasses the preview overlay).

    • Field NAMES come from the draft-aware provider: ui/packages/app-shell/src/views/RecordFormPage.tsx:94 const { objects, loading: metadataLoading } = useMetadata();, built into fields at :336–349; under preview MetadataProvider.tsx:995–997 reads through createConsoleMetadataClient({ previewDrafts: true }).
    • Field DEFINITIONS come from the adapter, which has no preview flag: ui/packages/plugin-form/src/ObjectForm.tsx:765 const schemaData = await dataSource.getObjectSchema(schema.objectName); → ui/packages/data-objectstack/src/index.ts:5965 async getObjectSchema(objectName: string) (no options) → :6082 const url = `${this.baseUrl}/api/v1/meta/object/${encodeURIComponent(objectName)}`; (no preview=draft; cache keyed by name only, :5982). ObjectForm.tsx:988 const field = objectSchema.fields?.[name]; if (field) { drops a name the published document does not declare. MetadataProvider.tsx:1024: "The preview client's reads never touch the adapter." ModalForm.tsx:581 makes the same adapter read.

    2. The door that refuses a list query naming a draft-only field (the data door validating against the PUBLISHED object).

    • Client: ui/packages/plugin-grid/src/objectGridRowLoad.ts:139 reads the published schema via dataSource.getObjectSchema; view columns go into $select (:497–509); the FLS gate passes undeclared names (:258).
    • Server: packages/rest/src/crud-routes.ts:158–165 → packages/metadata-protocol/src/protocol-data-crud.ts:205 host.assertProjectionFieldsExist(request.object, options.fields, projectionKey); → protocol-query-validation.ts:760–776: `Unknown field '${first}' on object '${object}'` … unknownErr.code = 'INVALID_FIELD'; unknownErr.status = 400;. The known set is protocol-query-validation.ts:342 const schema: any = this.engine?.registry?.getObject?.(object); — the registered (published) object. Sort (:570) and filter (:385–410) refuse the same way.
    • No data route reads preview; drafts overlay only metadata reads (rest/src/meta-item-read-routes.ts:662–664, protocol-meta-item-reads.ts:901). A ?preview=draft on /data would itself be refused as an unknown field (protocol-list-query-params.ts:75–85 reserves no preview; protocol-data-crud.ts:416–418).
    • The request and response were not captured live; the refusal text above is the code's literal.

    Seat question (contract): whether a data read may see a draft schema. The card's own fallback needs no data-contract change: under preview the grid leaves draft-only names (absent from the published document) out of $select/sort/filter and draws the column empty with the field's draft label.

  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Seat ruling on the premise 6946388533 · 2026-11-17T11:12Z

    • Data contract unchanged: data reads never see a draft schema. The list half takes the card's own fallback: under ?preview=draft the grid leaves draft-only field names out of $select, sort and filter, and draws such a column empty with its draft label. No server change, no new query flag.
    • Form half: ObjectForm.tsx and ModalForm.tsx read each field's definition through the preview overlay when the tree is in draft preview, the way useMetadata() already does; outside preview nothing changes.
    • Surface: ui/ only (the two form readers, objectGridRowLoad.ts's projection, their tests). Clause-②: no; no seat L2 is owed, so CI + L1-a ACCEPT and the area lands. Overlap-check against PR feat(console-ai): an AI build shows the app itself in the main area, with one Publish on screen #34713 before each push.
    • A filter or sort the viewer set on a draft-only column is dropped with a visible note in the grid, never sent and refused.
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX

    Claim: PM loop round 1 · area o3-A · 2026-11-17T11:13Z
    Session: session_01WGufzg2evNa1V3zxrQq3KX
    Account: os-support-ai
    Branch: claude/issue-34807-draft-preview-form-list
    Worktree: objectstack-issue-34807
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/plugin-form/src/ObjectForm.tsx and ui/packages/plugin-form/src/ModalForm.tsx (object-schema read only), ui/packages/app-shell/src/views/RecordFormPage.tsx and the modal-form call site in ui/packages/app-shell/src/console/AppContent.tsx (call sites only), one new preview-aware schema-read helper under ui/packages/app-shell/src/providers/ or ui/packages/app-shell/src/utils/, ui/packages/plugin-grid/src/objectGridRowLoad.ts plus the grid's column / filter-sort note render in ui/packages/plugin-grid/src/**, new tests beside them, root .changeset/. ⛔ Not ui/packages/app-shell/src/preview/** (PR #34713), not packages/** (data contract unchanged by ruling).
    Container & model: M, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier on the surface above: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/packages/plugin-form + plugin-grid (objectstack): under ?preview=draft the form's field definitions and the grid's projection come from the adapter's published getObjectSchema, which never reads the preview overlay | no platform path covers it (the data door validates against the published registry by design, ruling 6946403206) | every builder previewing a draft object with a new field, today
    Thread-read: 6946151246
    Premise: holds as read in 6946388533 (origin/main 07f2861; form: ObjectForm.tsx:765 / ModalForm.tsx:581 adapter read without preview=draft, data-objectstack/src/index.ts:5965/6082; list: protocol-data-crud.ts:205 → protocol-query-validation.ts:342/760–776 400 INVALID_FIELD against engine.registry)
    Ruling-ref: 6946403206 (seat 3: 「Data contract unchanged; list takes the card's fallback (draft-only names left out of $select/sort/filter, column drawn empty with its draft label; a viewer's filter or sort on such a column is dropped with a visible note, never sent); forms read field definitions through the preview overlay in preview. ui/ only, Clause-② no, no seat L2」)
    Serial constraints cleared: #34713 (seat 3, ui/packages/app-shell/src/preview/**): not in this surface, overlap-check before every push; #34799 (Studio actions) touches AppContent.tsx: call-site-only edit here, overlap-check before every push; no other open PR touches these files (all open PRs' file lists read)
    Pre-claim lane: domain:ui — every path is under ui/packages/**
    Pre-claim deps: none
    Prior rulings read: preview,draft,getobjectschema,select,invalid_field → 44 hits; ADR-0037 §1 (Phase 1: "Data plane untouched in this phase") and §3 (Phase 3's /data row overlay behind the flag — not in this card) agree with ruling 6946403206; ADR-0027/0045/0080/0106/0003/0014 hits are not about preview reads; thread: seat ruling 6946403206

    Lease o3-A (seat post #34584); child of epic #34571.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    Status: blocked at the premise step (list half wider than read; fix outside the claimed surface). No branch, commit or PR.

    {
      "issue": 34807,
      "status": "blocked",
      "branch": "claude/issue-34807-draft-preview-form-list",
      "pr": null,
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Stopped before code: the list half is wider than read and its fix lies outside the claimed file surface. Premise re-measured on origin/main 3bbda33b78 (worktree base). FORM half holds as read (lines shifted by one): ObjectForm.tsx:765 and ModalForm.tsx:581 call dataSource.getObjectSchema with no preview flag; data-objectstack/src/index.ts:5965/6082 read GET /api/v1/meta/object/NAME without preview=draft; MetadataProvider.tsx:994-998 builds the preview client and :1024 says its reads never touch the adapter. LIST half: the server refusal holds (protocol-data-crud.ts:205 assertProjectionFieldsExist, protocol-query-validation.ts:343 registry.getObject, INVALID_FIELD 400 at :750/:770), but the CLIENT that sends the refused list query on a console object list is not objectGridRowLoad.ts. plugin-list/src/ListView.tsx builds $select from every view column (:3653-3683, `for (const c of cols) required.add(c);` at :3682, filtered only by FLS), sets $orderby at :4084 and $filter from its own FilterBuilder/SortBuilder state, and sends it at :4124 `results = await dataSource.find(schema.objectName, findParams);`. It then hands the rows to the grid as `{ data }` (ListView.tsx:7641, withheld only when the grid groups on the server), which makes ObjectGrid treat them as inline (ObjectGrid.tsx:803-822, hasInlineData) and objectGridRowLoad.ts:121 `if (hasInlineData) return;` sends nothing. objectGridRowLoad.ts covers only the server-grouped grid (ListView gridOwnsGroupedFetch, :3321) and standalone object-grid blocks. The viewer filter/sort UI the ruling's visible note is about is ListView's toolbar, also in plugin-list. So ruling 6946403206's list half (draft-only names out of $select/sort/filter, column empty with draft label, dropped filter/sort with a visible note) needs `ui/packages/plugin-list/src/ListView.tsx` (and possibly its toolbar note render in plugin-list/src/**) added to the surface; per the dispatch, no workaround (e.g. stripping params in an app-shell dataSource wrapper) was attempted, since it could not draw the visible note and would hide the drop. The form half fits the surface as claimed; proposed design for the re-dispatch is under open_questions. No branch pushed, no commit, no PR; worktree removed.",
      "tests": "None run: stopped at the premise step, no code written. Evidence is code reads on origin/main 3bbda33b78 only (grep -n line hits quoted in summary).",
      "gates": "None run (no diff). overlap-check not run: no push was made.",
      "dogfood_battery": "n/a: no PR",
      "mcp_calls": "2 - mcp__github__issue_read (get, get_comments) on #34807; no write tool",
      "api_writes": "1 - POST /repos/objectstack-ai/objectstack/issues/34807/comments (this os-dev-report via post-stamped.mjs)",
      "open_questions": [
        {
          "question": "Amend the claim's file surface for the list half: the console list query is sent by plugin-list ListView, not by plugin-grid objectGridRowLoad.",
          "options": [
            "A: Amend the surface to add ui/packages/plugin-list/src/ListView.tsx (projection at :3653-3683, $orderby :4084, $filter, the toolbar note render) plus tests beside it, keep objectGridRowLoad.ts for the server-grouped grid, and re-dispatch both halves on one branch. Cost: M grows toward M+/L (ListView.tsx is 8007 lines with many pinned harvests); still ui/ only, Clause-2 no if the note reuses an existing i18n key and no exported prop is added to @object-ui/plugin-list (plugin-list, plugin-grid and plugin-form carry no private flag: all three are published).",
            "B: Split: land the form half now under this card as Part of #34807 (surface unchanged), and move the list half to a follow-up card whose surface names ListView.tsx and objectGridRowLoad.ts. Cost: two PRs, the card's acceptance (list column keeps rendering) closes only with the second.",
            "C: Keep the surface and do the list half only in objectGridRowLoad.ts. Not recommended: it fixes only the server-grouped grid; the acceptance reading (a drafted list column on an ungrouped list view) stays red."
          ],
          "recommendation": "B, because the form half is ready to build inside the claimed surface without touching any published API, and the list half's real surface (ListView.tsx plus how the preview signal reaches a published plugin-list without a new exported prop) deserves its own premise and Clause-2 check before code."
        },
        {
          "question": "Form-half design for the re-dispatch (no decision needed unless the area disagrees).",
          "options": [
            "Proposed: one app-shell helper (utils/ or providers/) that, only when usePreviewDrafts() is true, returns a proxy over the adapter whose getObjectSchema(name) answers the preview overlay document via useMetadata().getItem('object', name) (MetadataProvider readItem uses the preview client in preview, MetadataProvider.tsx:1350-1354) and marks each draft-only field (in the overlay, absent from the adapter's published answer) readonly: true; every other member is delegated bound to the real adapter. RecordFormPage passes it to ObjectForm (claimAnswerWarnings keeps the raw adapter) and AppContent's ModalForm call site likewise. Outside preview the helper returns the adapter itself, so the single adapter read (objectui#13044) is byte-for-byte unchanged and ObjectForm.tsx/ModalForm.tsx need no edit. Writes: a readonly field is stripped by the shared write sanitizer (plugin-form/src/sanitize.ts:202), so Save never sends a draft-only field and preview stays read-only for data."
          ],
          "recommendation": "Proposed design as stated."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none - noted, not filed (read inference, not reproduced): RecordFormPage.tsx:122-128 turns EVERY query-string entry into a create prefill, so on a New page under ?preview=draft the pair preview=draft becomes a prefill value; it is dropped by the write sanitizer as an unknown key unless the object declares a field named preview. Dedupe words: record form prefill preview query param."
      ]
    }
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Premise corrected · 2026-11-17T11:22Z

    Corrects this card's 现状 and 要做的 list half, on o3-A's os-dev evidence 6946589754 (main 07f2861). Ruling 6946403206 otherwise stands.

    • Form half, holds: ObjectForm.tsx:765 and ModalForm.tsx:581 read getObjectSchema with no preview flag.
    • List half, wider than written: the console list query is sent by plugin-list ListView.tsx ($select from every view column :3653-3683, $orderby :4084, $filter from its toolbar, dataSource.find :4124), which hands rows to the grid inline; objectGridRowLoad.ts:121 sends nothing on that path. The fix lives in ListView.tsx (published @object-ui/plugin-list) and its toolbar, and the preview signal must reach it.

    Order:

    1. The form half ships now as its own PR, Part of #34807, Clause-②: no: in preview, an app-shell helper hands the forms an adapter whose getObjectSchema answers from the overlay and marks draft-only fields read-only, so the write sanitizer keeps them out of Save; outside preview it returns the adapter itself.
    2. The card stays claimed for the list half. o3-A amends the surface to add ListView.tsx and the toolbar note after reading the signal path. If that path needs a new exported prop or interface member on a published package, it comes back to the seat as a Clause-②: yes question (seat L2 at TIER_DEFAULT on that face) before code.
  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment (list half) · 2026-11-17T11:26Z

    On o3-A's signal-path read: no new prop, the preview proxy already wraps the adapter before ListView.

  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    Status: done, form half only. Draft PR #34843 (Part of this card; the list half stays here).

    {
      "issue": 34807,
      "status": "done",
      "branch": "claude/issue-34807-draft-preview-form-list",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34843",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Form half only, as the area ordered after the seat's premise correction 6946635368; the list half stays on the card (PR body says so, closing line is Part of #34807). Head 1f10163110, base origin/main 3bbda33b78 (overlap-check at the last push: clean vs origin/main c513d62acd and PR #34799). New app-shell helper utils/previewFormDataSource.ts: withDraftOnlyFields(published, overlay) = a copy of the PUBLISHED document plus each field only the draft overlay declares (draft definition, undeclared marker key _draftOnly: true, exported DRAFT_ONLY_FIELD_KEY), sortability projection re-attached with attachObjectSortability; readDraftPreviewObjectSchema composes the overlay read (useMetadata().getItem('object', name), preview client in preview) over the adapter's published getObjectSchema (absence via MetadataNotFoundError -> overlay with every field marked; other failures rethrown); createPreviewFormDataSource = Proxy whose getObjectSchema answers that and whose create/update drop the marked names from the payload; usePreviewFormDataSource returns the adapter itself outside preview. Wired at RecordFormPage (claimAnswerWarnings keeps the raw adapter) and at AppContent's LazyModalForm call site; no ObjectForm/ModalForm/plugin-grid/plugin-list/preview/packages edit. DEVIATION from the design note (draft-only fields marked readonly): measured, a create form drops a field declared readonly: true (plugin-form filterCreateModeFields) and does not evaluate readonlyWhen on a create (components form renderer), so a lock would hide the field or do nothing; instead the field is drawn editable and the proxy keeps it out of every create/update (a typed value or its default is never written). A visible lock needs a plugin-form change, outside the surface. Draft edits to already-published fields are not shown (published definitions kept, per the design note).",
      "tests": "Head 1f10163110. New: ui/packages/app-shell/src/utils/previewFormDataSource.test.tsx (246 lines, 14 tests: helper, proxy, hook CONTROL identity, real ModalForm under preview draws Priority and the create payload has title and no priority even after typing; CONTROL outside preview: one getObjectSchema call, getItem never called) and ui/packages/app-shell/src/views/RecordFormPage.draftPreview-34807.test.tsx (126 lines, 2 tests: real RecordFormPage+ObjectForm under preview, CONTROL single published read objectui#13044). Run: pnpm --dir ui exec vitest run (2 files) -> Test Files 2 passed, Tests 16 passed. Targeted app-shell run of 80 files (every test importing RecordFormPage, AppContent or the helper, plus MetadataProvider.oneMetadataRead-13044) -> Test Files 80 passed (80), Tests 749 passed (749), VERDICT command-exit 0. Ablation (committed first, scripts/ablation-replace.mjs): proxy getObjectSchema reverted to the adapter's read, anchor x1->x0, blob 1b824dbbfeeb->340f65efa5ea -> 6 failed | 10 passed (both outside-preview controls green); restored: blob == HEAD 1b824dbbfeeb, git diff HEAD empty. Declared narrowing: the full packages/app-shell/ suite was started, ran 40+ minutes on the shared box with no verdict and was stopped by me (own recorded PID tree) -> NOT MEASURED locally, CI Test UI. NOT MEASURED: live run on com.example.tracker; AppContent call site rendered inside the full console.",
      "gates": "Build closure pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build -> VERDICT command-exit 0. pnpm --filter @object-ui/app-shell run type-check -> 0 error TS, exit 0 (after typing the modal call site with ?? undefined and the test doubles). eslint --no-inline-config on the 5 changed ts/tsx files -> exit 0, 0 errors. ui check:new-line-citations -> 0 new. dispatch-gates --commands: 38 families, all exit 0 (at fbfdc51ad2); --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED (derived zero, exit codes recorded). Re-run on final head 1f10163110: check:query-options-erasure, check:undeclared-dep-imports, check:type-check-coverage, check:type-check-debt, check:nul-bytes, check:cross-package-test-inputs all exit 0. PR check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "2 - mcp__github__issue_read (get, get_comments) on #34807 in the first round; none in this round; no write tool",
      "api_writes": "3 - POST issues/34807/comments (first os-dev-report, 6946589754); pr_create via fleet-write relay (POST /pulls draft + POST issues/34843/assignees os-support-ai, run 44090761029, read-back identical 11961 bytes); POST issues/34807/comments (this os-dev-report). git push x4 direct (probe, 3 work pushes).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none - noted, not filed (read inference, not reproduced; also in the PR's Acceptance notes): RecordFormPage turns every query-string entry into a create prefill, so on a New page under ?preview=draft the pair preview=draft becomes a prefill value; the write sanitizer drops it as an unknown key unless the object declares a field named preview. Dedupe words: record form prefill preview query param.",
        "carrier: #34807 (list half, seat deciding) - a visible lock for draft-only fields on create forms needs plugin-form (filterCreateModeFields hides readonly fields; create forms skip readonlyWhen); noted in the PR, not filed."
      ]
    }
  12. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX

    Claim: PM loop round 2 (list half) · area o3-A · 2026-11-17T13:17Z
    Session: session_01WGufzg2evNa1V3zxrQq3KX
    Account: os-support-ai
    Branch: claude/issue-34807-draft-preview-list (cut from claude/issue-34807-draft-preview-form-list @ 1f10163, PR #34843, same-series rule AGENTS.md §2: it reuses that PR's readDraftPreviewObjectSchema / _draftOnly marker; this PR opens only after #34843 merges, then merges origin/main)
    Worktree: objectstack-issue-34807-list
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: per seat amendment 6946712960 — ui/packages/plugin-list/src/ListView.tsx (projection, $filter strip, pickers, the note), ui/packages/app-shell/src/preview/unpublishedObjectReads.ts, the wrap call sites ui/packages/app-shell/src/views/objectViewListRenderer.tsx, ui/packages/app-shell/src/views/ObjectDataPage.tsx, ui/packages/app-shell/src/views/InterfaceListPage.tsx, ui/packages/i18n/src/locales/* (one new list.* key, or a lazy pack namespace per the budget condition), new tests beside them, root .changeset/
    Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
    Clause-②: yes (widening — one new @object-ui/i18n list.* key only; no exported prop, no typed interface member; the _draftOnly field marker is an internal undeclared key on an untyped value)
    Metadata-protocol: none
    Responsibility: ui/packages/plugin-list (objectstack): ListView sends every view column in $select/$filter to a data door that validates against the published object, so a draft-only column refuses the whole list under preview | no platform path covers it (data contract unchanged by ruling 6946403206) | every builder previewing a draft list column, today
    Thread-read: 6946712960
    Premise: corrected 6946635368 (list query sent by ListView.tsx :3653-3683/:4084/:4124, rows handed inline; preview proxy withUnpublishedObjectReads already wraps the adapter before ListView at objectViewListRenderer.tsx:233)
    Ruling-ref: 6946403206; seat amendment 6946712960 (option A, L1-a at TIER_DEFAULT, no seat L2; budget: measure i18n-locale-en on the merged tree, never edit the ceiling, lazy pack namespace if over)
    Serial constraints cleared: #34843 (this card's form half): series base, merged before this PR opens; #34713 (ui/packages/app-shell/src/preview/** — not unpublishedObjectReads.ts) and #34677 (en locale key): overlap-check before every push, budget read on the merged tree
    Pre-claim lane: domain:ui — every path is under ui/packages/**
    Pre-claim deps: #34843
    Prior rulings read: as in claim 6946453254; plus seat amendment 6946712960

    Lease o3-A (seat post #34584); child of epic #34571.

  13. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    Fix round for PR #34843: stopped before code. Disabled-through-the-definition is impossible without plugin-form; the hint route needs a locale key. Head unchanged.

    {
      "issue": 34807,
      "status": "blocked",
      "branch": "claude/issue-34807-draft-preview-form-list",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34843",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Fix round for PR #34843 stopped before code. Head is unchanged at 1f101631101b43cd62977ae383a66393aa1aa994: no commit, no push, no PR body edit. Route (a), drawing the draft-only field DISABLED through the proxy's field definition, is impossible without plugin-form. The only object-field-definition key that plugin-form maps onto FormField.disabled is `readonly`, in both of its mapping sites: ObjectForm's own generateField (`disabled: schema.readOnly || schema.mode === 'view' || field.readonly`) and sectionFields' fromObjectSchema (`disabled: ctx.readOnly || ctx.mode === 'view' || field.readonly`), which the ModalForm/DrawerForm flat path uses through flatFields. A field declared `readonly: true` is dropped before render by filterSystemFields, on create AND edit (ObjectForm groupableFields, ModalForm and DrawerForm all call it), so it never reaches that disabled slot. CORRECTION: my earlier report and the PR body named filterCreateModeFields; the filter that hides it is filterSystemFields. The other paths to a disabled control fail too. `readonlyWhen` is not evaluated on a create (components form renderer: `readonlyWhen: isCreateForm ? undefined : readonlyWhen`). `immutable` disables only off create (sectionFields: `fd.immutable === true && !isCreateFormMode(ctx)`). formula/summary/auto_number types and expression-computed fields are disabled but dropped on create by filterAutoGeneratedFields. The renderer itself does honour FormField.disabled on create (`disabled: disabled || fieldDisabled || isSubmitting || optionGroupGated`, no create skip), so only the mapping is missing. Route (b), a hint, needs a new locale key: STOP, per the order. The payload strip stays as the safety net in either route. S1 from L1-a review 6949215692 (the RecordFormPage comment above usePreviewFormDataSource says 'draft-only fields read-only' and 'Writes ... stay on the adapter') is NOT fixed yet. Its right wording depends on the route the seat picks, so it rides the next fix-round commit together with the helper module doc's filterCreateModeFields -> filterSystemFields correction and the PR body's deviation section.",
      "tests": "None run this round (no code change).",
      "gates": "None run (no diff). overlap-check not run: no push.",
      "dogfood_battery": "n/a",
      "mcp_calls": "0 this round",
      "api_writes": "1 - POST issues/34807/comments (this os-dev-report via post-stamped.mjs)",
      "open_questions": [
        {
          "question": "Which change lets a draft-only field be drawn visible and disabled on the New record form?",
          "options": [
            "A (recommended): amend the surface to plugin-form, two lines in its two field-mapping sites. ObjectForm generateField `disabled: schema.readOnly || schema.mode === 'view' || field.readonly` and sectionFields fromObjectSchema `disabled: ctx.readOnly || ctx.mode === 'view' || field.readonly` each gain `|| field._draftOnly === true`. To avoid two spellings, the marker constant moves from app-shell to `@object-ui/plugin-form/core` and app-shell imports it. That adds an export to a published package, so Clause-②: yes (widening). With a duplicated string literal instead it stays Clause-② no, but the marker then has two spellings. Pins: field visible, disabled, not in the payload, through the real ObjectForm and ModalForm. Size S.",
            "B: route (b) as ordered. The proxy sets the draft-only field's `description` to a new lazy-namespace locale key such as 'Available after publish' / 「发布后才能填写」. The field stays editable and the strip stays. Clause-② yes (widening, locale key); the claim needs amending first. Weaker: the field still looks and acts editable.",
            "C: no plugin-form change. RecordFormPage and AppContent compute the draft-only names (one extra preview-only schema read) and pass `customFields` entries with `disabled: true`. A customFields member supplies a field's WHOLE FormField definition (customFieldsMerge.ts: 'it inherits nothing from the generated one'), so the call site would rebuild ObjectForm's mapping by hand (label translation, type mapping, options, validation). That is a second copy of the mapping flatFields.ts says drifted once already. Not recommended."
          ],
          "recommendation": "A, because it is the only route where the field is visibly not fillable with one rule in the one mapping, and the strip stays as the safety net. Exporting the marker from plugin-form/core keeps a single spelling at the price of Clause-② yes (widening)."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none - noted, not filed (unchanged): RecordFormPage turns every query-string entry into a create prefill, so preview=draft becomes a prefill value under ?preview=draft; the write sanitizer drops it unless the object declares a field named preview."
      ]
    }
  14. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX

    File surface amended (form half, PR #34843) · 2026-11-17T13:22Z · claim 6946453254 · seat's word 2026-11-17T13:21Z

    The seat rejected "drawn editable, silently stripped" for a draft-only field. A disabled control is not reachable from the field definition today: plugin-form maps FormField.disabled only from readonly (ObjectForm.tsx generateField, sectionFields.ts fromObjectSchema), and a readonly: true field is dropped before render by filterSystemFields (os-dev report on this card, fix round). The surface now also covers one condition, || field._draftOnly === true, in each of those two mapping sites: ui/packages/plugin-form/src/ObjectForm.tsx (generateField disabled) and ui/packages/plugin-form/src/sectionFields.ts (fromObjectSchema disabled), with tests beside them in ui/packages/plugin-form/src/**.

    _draftOnly is an underscore-private convention between two of our own packages (app-shell's preview proxy sets it; plugin-form reads it): nothing is exported, the literal is pinned in both packages' tests, and it is not an authoring key. Clause-②: no, Metadata-protocol: none unchanged. The payload strip in the proxy stays as the safety net. Changeset gains an @object-ui/plugin-form patch.

  15. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    Route A landed on PR #34843: new head 9719bf9. Draft-only fields are drawn disabled; S1 is fixed; the census is green.

    {
      "issue": 34807,
      "status": "done",
      "branch": "claude/issue-34807-draft-preview-form-list",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34843",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Route A (surface amendment 6949282066) landed on PR #34843 (form half; Part of #34807, the list half stays on the card). New head 9719bf98104b42b343c8d2f02e69b1014b020e22. plugin-form: the `disabled` line in ObjectForm generateField and in sectionFields fromObjectSchema gains `|| field._draftOnly === true`. The literal is spelled in each package and nothing is exported. The app-shell proxy marks overlay-only fields `_draftOnly: true`, so under ?preview=draft a draft-only field is drawn visible and disabled; the proxy's create/update strip stays as a safety net, so its declared default is never written either. Outside preview the form gets the adapter itself, unchanged. S1 (review 6949215692) is fixed: the RecordFormPage comment says the field is drawn disabled, the proxy leaves it out of every create and update, and claimAnswerWarnings keeps the raw adapter. The helper module doc now names filterSystemFields (my earlier text said filterCreateModeFields; corrected in the PR body too) and describes the disabled behaviour. Changeset: @object-ui/app-shell patch + @object-ui/plugin-form patch. Census red at 03c259dcff (affordanceGrantMap-12082 'every write site in the tree has an entry…'): reproduced locally, fixed with two door(...) entries for createPreviewFormDataSource > writes > create/update, green, committed as 9719bf9810. PR body patched via issue_patch (read-back identical, 14550 bytes): its deviation section says `_draftOnly` is an underscore-private convention between two of our packages, not an authoring key (Clause-② no).",
      "tests": "Head 9719bf9810: `pnpm --dir ui exec vitest run --maxWorkers=2` over previewFormDataSource.test.tsx, RecordFormPage.draftPreview-34807.test.tsx, ObjectForm.test.tsx, sectionFields.test.ts, affordanceGrantMap-12082.test.tsx -> Test Files 5 passed (5), Tests 118 passed (118), VERDICT command-exit 0. Pins: the real ModalForm and the real RecordFormPage+ObjectForm under preview show Priority visible and disabled and absent from the create payload; outside-preview CONTROLs keep one published getObjectSchema read, no getItem, no Priority. plugin-form pins: the marked field is disabled, the unmarked CONTROL is editable (sectionFields + ObjectForm). Ablation at committed 03c259dcff: ablation-replace removed `|| field._draftOnly === true` from fromObjectSchema (anchor x1->x0, blob 0775f5a75bf2->69e117962018). Result: 2 failed ('the marked field is disabled'; 'draws the draft-only field disabled, and Save leaves it out of the create') | 50 passed (52). Restored: blob == HEAD 0775f5a75bf2, git diff HEAD empty. Census: red locally in the targeted run at 03c259dcff (plugin-form/ + 80 app-shell files: Tests 1 failed | 3405 passed | 1 skipped (3407), the only failure the census); after the entries that file has 55/55 passing. Type-check of plugin-form and app-shell: 0 error TS, VERDICT 0. eslint on the changed files: 0 errors.",
      "gates": "dispatch-gates --commands re-derived at 9719bf9810: the same 38 families. All 38 exit 0; `pnpm --dir ui exec vitest run scripts/` first hit queue-timeout 99, re-run under the lock: Test Files 171 passed | 2 skipped, Tests 5077 passed | 2 skipped, VERDICT command-exit 0. dispatch-gates --ran: 38 derived, 38 run, 0 NOT-MEASURED. check:new-line-citations (ui) on 9719bf9810: 0 new. overlap-check run alone before the push: VERDICT clean exit 0 (vs origin/main 7752cac7b0 and #34799). CI check-runs on 9719bf9810: in_progress at report time; not re-run locally.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 this round",
      "api_writes": "2 this round — fleet-write issue_patch on objectstack-ai/objectstack#34843 (PR body), and post-stamped issue comment on #34807 (this report); plus git push (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (read inference, not reproduced): RecordFormPage turns every query-string entry into a create prefill, so on a New page under ?preview=draft the pair preview=draft becomes a prefill value; the write sanitizer drops it as an unknown key unless the object declares a field named preview. In the PR Acceptance notes.",
        "NOT MEASURED: a live run on com.example.tracker under ?preview=draft; the AppContent modal call site rendered inside the full console; the full app-shell suite (left to CI Test UI, declared narrowing)."
      ]
    }
  16. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX

    File surface amended (form half, PR #34843) · 2026-11-17T14:17Z · claim 6946453254 · amendment 6949282066

    Names one test file explicitly (L1-a 6950630501 N1): ui/packages/plugin-form/src/affordanceGrantMap-12082.test.tsx, the write census, gains two entries for the preview proxy's create/update (they forward the form's own writes minus draft-only names; not a new CRUD affordance). No other change; Clause-②: no, Metadata-protocol: none unchanged.

  17. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    Fix round 3 (M1, review 6950630501) on PR #34843: new head 1bb765d. A required draft-only field no longer blocks Save. A form-view required on such a field still does; it is reported as an open question, not widened.

    {
      "issue": 34807,
      "status": "done",
      "branch": "claude/issue-34807-draft-preview-form-list",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34843",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Fix round 3 (L1-a REWORK 6950630501, M1) on PR #34843. New head 1bb765d4af0095aeb6efa18a59498f2f38709c66, additive on 9719bf9810. withDraftOnlyFields now drops `required` and `requiredWhen` from each `_draftOnly` copy, so a required draft-only field (no default) is drawn disabled and no longer makes New refuse. No further plugin-form edit. Value rules (minLength/maxLength/min/max and the type-implied email/url/location checks) are kept and declared in the body: they fire only on a value, and the only value a disabled draft-only control holds is its own draft default. Report-before-widening (measured with a one-off probe, not committed): a FORM VIEW entry restating `required: true` on a draft-only field still makes it required, because normalizeSectionField re-runs isRequiredInForm on the view entry's own `required` (probe answered required:true, disabled:true). Under preview the form view comes from the draft object, so a draft that both adds a field and lists it as required in its form view would still refuse New. Not changed; see open_questions. Changeset sentence updated. PR body patched via issue_patch (deviation + acceptance lines, tests, ablation, verification; read-back identical, 18599 bytes). The worktree is kept for the list-half dev who builds on this branch.",
      "tests": "Head 1bb765d4af: `pnpm --dir ui exec vitest run --maxWorkers=2` over previewFormDataSource.test.tsx, RecordFormPage.draftPreview-34807.test.tsx, ObjectForm.test.tsx, sectionFields.test.ts, affordanceGrantMap-12082.test.tsx -> Test Files 5 passed (5), Tests 122 passed (122), VERDICT command-exit 0. New pins: the real ModalForm under preview with a required draft-only field (required: true, no default) and a requiredWhen one: both disabled, Save goes through, and the create has neither key. The real RecordFormPage+ObjectForm under preview with a required draft-only field: disabled, Save goes through, the create leaves it out. Unit: the marked copy drops required/requiredWhen and a published field keeps required. CONTROL outside preview: a required published field left empty still blocks Save (aria-invalid true, create not called). Ablation at committed 1bb765d4af: ablation-replace restored the pre-fix `{ ...def, [DRAFT_ONLY_FIELD_KEY]: true }` (anchor x1->x0, blob 7795004bb009->96c69503085d). Result: 3 failed (the unit drop, the ModalForm required pin, the RecordFormPage required pin) | 17 passed (20); the outside-preview control stayed green. Restored: blob == HEAD 7795004bb009, git diff HEAD empty. app-shell type-check: 0 error TS, VERDICT 0. eslint on the 3 changed .ts/.tsx files: exit 0.",
      "gates": "dispatch-gates --commands re-derived at 1bb765d4af: the same 38 families as the full run at 9719bf9810 (38/38 exit 0, --ran 0 NOT-MEASURED). Re-run on 1bb765d4af, the families reading the changed changeset and test files: check-empty-changeset, check-adr-0087-registration, check-changeset-no-major, check:nul-bytes, check:cross-package-test-inputs, check:undeclared-dep-imports, check:type-check-coverage, check:test-source-alias, all exit 0; ui check:new-line-citations: 0 new. The remaining 29 families were not re-run on 1bb765d4af (the last commit adds no file they scan beyond the ones above); left to CI. overlap-check run alone before the push: VERDICT clean exit 0 (vs origin/main fc5913e117 and #34799). CI check-runs on 1bb765d4af: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 this round — fleet-write issue_patch on objectstack-ai/objectstack#34843 (PR body), and post-stamped issue comment on #34807 (this report); plus git push (not REST)",
      "open_questions": [
        { "question": "A draft form view that restates `required: true` on a draft-only field still makes the disabled field required (normalizeSectionField re-runs isRequiredInForm on the view entry). Close it?", "options": ["A: plugin-form, one line in normalizeSectionField: a view `required` does not apply to a `_draftOnly` base (required false when base carries the marker); same convention, no new export; about 30 minutes with a pin", "B: app-shell rewrites the draft form view's sections under preview to drop `required` on draft-only names; two call sites (RecordFormPage, AppContent modal) and a second reader of the marker; about 1-2 hours", "C: leave it, record it as an acceptance note (it is reachable only when a draft both adds a field and marks it required in its own form view)"], "recommendation": "A, because the requirement is decided in plugin-form, the marker already lives there, and it is one condition beside the disabled line; B spreads the rule over two call sites" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (read inference, not reproduced): RecordFormPage turns every query-string entry into a create prefill, so on a New page under ?preview=draft the pair preview=draft becomes a prefill value; the write sanitizer drops it as an unknown key unless the object declares a field named preview. In the PR Acceptance notes.",
        "NOT MEASURED: a live run on com.example.tracker under ?preview=draft; the AppContent modal call site rendered inside the full console; the full app-shell suite (left to CI Test UI, declared narrowing)."
      ]
    }
  18. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    List half built and pushed: head a0777bd on claude/issue-34807-draft-preview-list (cut from the form branch at 9719bf9). No PR until #34843 merges.

    {
      "issue": 34807,
      "status": "ready-no-pr",
      "branch": "claude/issue-34807-draft-preview-list",
      "pushed_head": "a0777bd542348198557fa85b159673f114dba201",
      "pr": null,
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "base": "cut from origin/claude/issue-34807-draft-preview-form-list at 9719bf98104b42b343c8d2f02e69b1014b020e22 (PR #34843 head, fetched fresh; unchanged at every later push). origin/main NOT merged, per the order; it was d947a93cf8 at cut and fc5913e117 at the last push.",
      "premise_still_valid": true,
      "premise_remeasure": "All three lines hold on the base tree, at the places the order named, cited here by content. (1) ListView builds $select from every authored column (`for (const c of cols) required.add(c);`, FLS-filtered only), sets `$orderby: sort` from serverSort, builds $filter with buildEffectiveFilter(authoredFilter, appliedFilters, appliedUserFilterConditions, appliedQueueSittingConditions) with no field gate, and sends `results = await dataSource.find(schema.objectName, findParams);`; rows go inline to the grid. (2) objectViewListRenderer's renderListView does `const ds = previewDrafts && rawDs ? previewDataSource(rawDs) : rawDs;` over withUnpublishedObjectReads (a Proxy overriding only find); ListView reads its schema only via `const def = await dataSource.getObjectSchema(schema.objectName);`. (3) ObjectDataPage and InterfaceListPage render ListView with the raw adapter. Not wider: no new exported prop or typed interface member was needed; every edited file is in the claimed surface; the form helper was imported, not edited. Extra finding inside the surface: readObjectSortability strips a draft-only sort only when the published read served a projection (an older deployment, or a never-published object, serves none), so ListView also strips the sort explicitly.",
      "summary": "List half built per ruling 6946403206 and amendment 6946712960, on top of the form branch; pushed, no PR (waits for #34843). App-shell: withUnpublishedObjectReads takes an optional overlay read and then answers getObjectSchema with the form half's readDraftPreviewObjectSchema (published document plus each draft-only field with its draft label, marked _draftOnly: true, published sortability projection kept). objectViewListRenderer passes the provider's getItem (through a ref) and makes one wrapper per data source per draft-aware objectDef, so a newly drafted field makes the list re-read its definition. New hook usePreviewListDataSource (same file, not exported from the package) gives ObjectDataPage and InterfaceListPage the same wrapper in preview and the adapter itself outside it; it caches on its inputs (source + revision payload), not on a memo identity (ui/AGENTS.md #10). Plugin-list: ListView reads the marker once (draftOnlyFields, a shared empty set outside preview) and leaves marked names out of the authored $select columns, the speculative harvest (knownObjectFields), $expand, the server export's fields, $filter (buildEffectiveFilter gains an optional draftOnly argument that strips every comparison on such a field from the merged node, in the fetch, the child-view node and the export) and $orderby (serverSort), and out of the Filter panel (kept only while a held condition names it, like hidden fields) and the Sort picker (listed disabled only while the current sort names it). The column is drawn empty under the draft label. A sort or filter naming such a field is dropped and one status line says so: new key list.draftOnlyQueryDropped (en, all 10 other locales, zh-Hant regenerated by gen-zh-hant.mjs, and LIST_DEFAULT_TRANSLATIONS). Outside preview every reader answers as before (control pins). No server, protocol or REST change; nothing exported.",
      "files": "vs 9719bf9810: 20 files, +978 -29. ui/packages/plugin-list/src/ListView.tsx +208/-20 (incl. helpers readDraftOnlyFieldNames, refersToDraftOnlyField, withoutDraftOnlyFields, omitDraftOnlyFilterFields, mergeEffectiveFilterSources, all module-private); ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx +199 (new top-level describe ListView.draftOnlyColumn-34807, per the shared-harness rule); ui/packages/app-shell/src/preview/unpublishedObjectReads.ts +68/-1; ui/packages/app-shell/src/views/objectViewListRenderer.tsx +18/-6; ObjectDataPage.tsx +6/-1; InterfaceListPage.tsx +6/-1; new ui/packages/app-shell/src/preview/__tests__/unpublishedObjectReads.draftOnly-34807.test.tsx (262 lines); new ui/packages/app-shell/src/views/ObjectView.draftOnlyColumn-34807.test.tsx (184 lines); ui/packages/i18n/src/locales/{en,ar,de,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts +1 each; new .changeset/34807-draft-preview-list-column.md (plugin-list, app-shell, i18n patch; Clause-② and Metadata-protocol lines verbatim from claim 6949175867).",
      "i18n_budget": "Measured on origin/main d947a93cf8 (includes #34677 and #34713) plus this branch's en.ts key, in a throwaway worktree: turbo build of the console closure, then VITE_BASE_PATH=/console/ vite build, then check:eager-closure, under the verify lock. Baseline build: exit 0, i18n-locale-en 60.4 KB / 60.5 KB ceiling, headroom 0.2 KB. With the key: exit 0, eager-closure.json i18n-locale-en gzipBytes 61,855 of the 62,000 ceiling, headroom 145 B; check:eager-locale-catalogues exit 0 (en the only eager catalogue). The key costs 37 B gzip (the with-key chunk with the key removed re-gzips to 61,818; the baseline report's exact byte count was overwritten by the second build, so 61,818 is derived, not read). Under the ceiling, so the key stays in the EAGER en pack; no lazy namespace. Ceiling not touched. Caveat: open PRs #34850 and #34851 also edit every locale file; their en keys draw on the same 145 B. Re-measure on the tree merged with origin/main before the PR opens.",
      "tests": "Head a0777bd542 (last code change; tests re-run after each change). Targeted: plugin-list harness + both new app-shell files -> 114 tests, 1 failed first (the ObjectView control asserted list-error-code; a 400 INVALID_FIELD draws list-error-state without a code), fixed, rerun 2/2 passed; app-shell 34807 file 8/8 passed after a type fix. Packages: `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-list/ packages/i18n/` -> Test Files 276 passed (276), Tests 3768 passed | 13 skipped (3781), VERDICT command-exit 0. App-shell: the 139 test files that import ObjectDataPage, InterfaceListPage, ObjectView, objectViewListRenderer or unpublishedObjectReads -> Test Files 139 passed (139), Tests 1326 passed (1326), VERDICT command-exit 0 (at 704c8740cf; a0777bd542 changed only a test's mock typing, and that file was rerun: 8 passed). New pins: plugin-list ListView.draftOnlyColumn-34807 (6 tests: column drawn under 'Priority (draft)', $select exactly ['id','title'], no error; viewer filter dropped, title condition kept, note shown; sort dropped with no projection; sort dropped with the published projection served (readObjectSortability pin); Filter panel and Sort picker do not offer it; CONTROL with the field published: $select ['id','title','priority'], $orderby and $filter carry it, no note). App-shell: wrapper answers _draftOnly with draft label and keeps the projection, CONTROL without overlay read; hook returns the adapter itself outside preview, one wrapper per revision inside; ObjectDataPage and InterfaceListPage hand ListView the wrapper in preview and the adapter itself outside (4 tests); real ObjectView + ListView under preview draws the list with the draft column and no request names priority, CONTROL outside preview still sends it and shows the error state. Type-check: plugin-list exit 0; app-shell first red (2x TS2348 on an untyped vi.fn in the new test), fixed, app-shell and i18n `type-check` exit 0 (VERDICT command-exit 0). eslint --no-inline-config on the 19 changed ts/tsx files: 0 errors (warnings only, pre-existing no-explicit-any).",
      "ablation": "Committed first. scripts/ablation-replace.mjs on ListView.tsx: anchor `? rawCols.filter(c => !refersToDraftOnlyField(c, draftOnlyFields))` -> `? [...rawCols]` (anchor x1 -> x0, replacement x0 -> x1, blob 1fb8ed75e0e9 -> 6eb1ac8619d8). Run: 6 failed | 100 passed (106): the ObjectView preview test and the 5 draft-mode plugin-list pins; both controls green. Restored: blob == HEAD 1fb8ed75e0e9, git diff HEAD empty. A first attempt was a no-op the tool refused (replacement `? rawCols` already inside the anchor, count 1 -> 1); nothing ran, file restored, then the run above.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at 704c8740cf: 41 commands (stderr warned STALE TREE: the branch is behind origin/main by order). All 41 run with exit codes captured before any pipe: all exit 0 (`pnpm --dir ui exec vitest run scripts/` under the lock: Test Files 171 passed | 2 skipped (173), Tests 5077 passed | 2 skipped). `dispatch-gates --ran` -> 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. ui `check:new-line-citations` -> 0 new, exit 0. CI check-runs: none (no PR).",
      "overlap_check": "Run alone before every push. Probe push (9719bf9810): first run exit 3 (PREREQUISITE NOT MET, files of #34831 unreadable: unexpected end of JSON input), rerun VERDICT clean exit 0 (origin/main d947a93cf8, #34799). WIP push 4b5b476f7f: VERDICT clean exit 0 (origin/main, #34843, #34799, #34850, #34851). Last push a0777bd542: VERDICT clean exit 0 vs origin/main fc5913e117 and 4 PR heads.",
      "dogfood_battery": "n/a: no PR yet, no `!` in the planned title and no (narrowing) arm",
      "not_measured": [
        "Live run on com.example.tracker under ?preview=draft (acceptance reading): NOT MEASURED, no booted console in this run.",
        "Full app-shell suite: NOT MEASURED locally (139 affected files run instead; left to CI Test UI).",
        "The tree merged with origin/main: NOT MEASURED for tests and gates (the order defers the merge); the i18n budget was measured on origin/main d947a93cf8 plus the key only, not on the full branch merged.",
        "Exact baseline byte count of i18n-locale-en on d947a93cf8: derived (61,818), not read."
      ],
      "mcp_calls": "4 - mcp__github__issue_read (get, get_comments) on #34807; mcp__github__pull_request_read (get) on #34677 and #34713; no write tool",
      "api_writes": "1 - POST /repos/objectstack-ai/objectstack/issues/34807/comments (this report, via post-stamped.mjs). git push x3 direct (probe 9719bf9810, 4b5b476f7f, a0777bd542).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34807 (this PR's Acceptance notes) - read inference, not reproduced: a view's searchableFields naming a draft-only field still goes out as $searchFields with a search term; not stripped (not in the ruling's list). Dedupe words: draft preview searchFields draft-only field.",
        "carrier: #34807 (Acceptance notes) - read inference: a server-grouped grid (plugin-grid objectGridRowLoad, the gridOwnsGroupedFetch path) grouped by a draft-only field sends its own query; ListView no longer projects that field, but the grid's own fetch is outside this surface. Dedupe words: draft preview grouped grid draft-only field.",
        "carrier: none - design note, noted: a draft-only comparison removed from inside an `or` group widens that group (preview only, said by the note line).",
        "carrier: none - noted: for a never-published object the list now reads the overlay definition with every field marked (before, the adapter read failed and the list had no definition); the empty state keeps its publish sentence, and a view sort on such an object also shows the dropped-sort note.",
        "carrier: area o3-A - noted: open PRs #34850 and #34851 add en keys too; after this key i18n-locale-en has 145 B headroom on origin/main d947a93cf8."
      ],
      "worktree": "/home/claude/objectstack-issue-34807-list kept (no PR yet; the next round merges origin/main and opens the PR there). Measurement worktree removed after restoring it."
    }
  19. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    Fix round 4 (option A) on PR #34843: new head 75e7773. A draft form view that restates required on a draft-only field no longer makes it required.

    {
      "issue": 34807,
      "status": "done",
      "branch": "claude/issue-34807-draft-preview-form-list",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34843",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Fix round 4 on PR #34843 (option A). New head 75e777380dffd4f15bcc52f967ff3b3fa8d93ceb, additive on 1bb765d4af, from a fresh worktree off the remote head. In normalizeSectionField (sectionFields.ts) a form-view entry's `required` no longer applies when the object-schema field carries `_draftOnly === true`; the field stays disabled. The view entry carries no `requiredWhen` on that path (normalizeSectionField reads only `fd.required`), so there was nothing more to skip. Same underscore-private convention, no new export; changeset plugin-form sentence updated. Together with round 3 (the marked copy drops required/requiredWhen), a draft-only field is now never required, whether the requirement comes from its definition or from a draft form view. PR body patched via issue_patch (read-back identical, 20021 bytes): the form-view restatement is out of the declared gap, and the new tests and ablation are added. M1 and its form-view leftover are closed.",
      "tests": "Head 75e777380d: `pnpm --dir ui exec vitest run --maxWorkers=2` over previewFormDataSource.test.tsx, RecordFormPage.draftPreview-34807.test.tsx, ObjectForm.test.tsx, sectionFields.test.ts, affordanceGrantMap-12082.test.tsx -> Test Files 5 passed (5), Tests 125 passed (125), VERDICT command-exit 0. New pins: sectionFields, a view entry `{ field: 'priority', required: true }` over a `_draftOnly` base gives required false and disabled true; CONTROL, the same entry over an unmarked base gives required true. Rendered: the real RecordFormPage+ObjectForm under preview with a draft form view whose section restates `{ field: 'due_note', required: true }`: due_note disabled, Save goes through, and the create has title and no due_note. Ablation at committed 75e777380d: ablation-replace replaced `if (fd.required != null && !draftOnly) {` with `if (fd.required != null) {` (anchor x1->x0, blob f1a74df5666d->199e51e13a0e). Result: 2 failed ('a form view restating `required: true` does not make the marked field required; it stays disabled' in sectionFields.test.ts; 'a draft form view restating `required` on the draft-only field does not block Save' in RecordFormPage.draftPreview-34807.test.tsx) | 59 passed (61); the published-base CONTROL stayed green. Restored: blob == HEAD f1a74df5666d, git diff HEAD empty. type-check of plugin-form and app-shell: 0 error TS, VERDICT 0. eslint on the 3 changed .ts/.tsx files: 0 errors (48 warnings).",
      "gates": "dispatch-gates --commands re-derived at 75e777380d: the same 38 families as the full run at 9719bf9810 (38/38 exit 0, --ran 0 NOT-MEASURED). Re-run on 75e777380d: check-empty-changeset, check-adr-0087-registration, check-changeset-no-major, check:nul-bytes, check:cross-package-test-inputs, check:undeclared-dep-imports, check:type-check-coverage, check:test-source-alias, check-sdui-manifest, check:skill-identifier-liveness, all exit 0; ui check:new-line-citations: 0 new. The other 28 families were not re-run on 75e777380d (declared narrowing; left to CI). overlap-check run alone before the push: VERDICT clean exit 0 (vs origin/main fc5913e117 and #34799). CI check-runs on 75e777380d: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 this round — fleet-write issue_patch on objectstack-ai/objectstack#34843 (PR body), and post-stamped issue comment on #34807 (this report); plus git push (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed (read inference, not reproduced): RecordFormPage turns every query-string entry into a create prefill, so on a New page under ?preview=draft the pair preview=draft becomes a prefill value; the write sanitizer drops it as an unknown key unless the object declares a field named preview. In the PR Acceptance notes.",
        "NOT MEASURED: a live run on com.example.tracker under ?preview=draft; the AppContent modal call site rendered inside the full console; the full app-shell suite (left to CI Test UI, declared narrowing)."
      ]
    }
  20. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
    os-dev-report

    List half opened as draft PR #34936 (head c34be37), after #34843 landed on main as 13e0305.

    {
      "issue": 34807,
      "status": "done",
      "branch": "claude/issue-34807-draft-preview-list",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34936",
      "head": "c34be3746021f4f10634cc454217ef08b335c649",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "summary": "Merged origin/main 13e0305c33 (the form half squash) into the list branch. The only conflicts were in form-half files, and every one of the 11 files the squash touches was resolved to main's version, which includes rounds 3 and 4. The list half had never edited any of them. `git diff origin/main...HEAD --stat` shows 20 files, all inside the claimed list surface (ListView.tsx and its harness, the app-shell preview wrapper and its three call sites, two new app-shell test files, 11 locale files, the changeset); no form-half file appears. Main's readDraftPreviewObjectSchema keeps the signature the wrapper calls. The draft PR was opened through fleet-write pr_create (draft forced by the relay), assigned to os-support-ai, with Fixes #34807 and the Clause-② and Metadata-protocol lines copied word for word from claim 6949175867. Its acceptance notes carry the grouped-grid gap (carried by #34898, seat ruling A, with both measured shapes), the $searchFields fix, the or-group design note and the never-published object note.",
      "i18n_budget": "Merged tree c34be37460, which includes #34850 and #34851. Under the verify lock: pnpm install --frozen-lockfile, VITE_BASE_PATH=/console/ vite build, node scripts/check-eager-closure-budget.mjs, all exit 0. eager-closure.json i18n-locale-en gzipBytes 61,878 of the 62,000 ceiling, headroom 122 B (report line: 60.4 KB measured / 60.5 KB ceiling). Under the ceiling, so the key stays in the eager en pack and no lazy namespace was needed. The ceiling was not touched. origin/main later moved to 189358f212 (#34882, scenarios only); en.ts, the console app and the budget script did not change.",
      "tests": "At c34be37460, under os-verify-lock. Closure build `pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build` VERDICT command-exit 0. `pnpm exec vitest run --maxWorkers=2` on ListView.harness, unpublishedObjectReads.draftOnly-34807, ObjectView.draftOnlyColumn-34807, RecordFormPage.draftPreview-34807 and previewFormDataSource.test (main's form-half pins, included to check the merge): Test Files 5 passed (5), Tests 137 passed (137), VERDICT command-exit 0. Type-check for plugin-list, app-shell and i18n: 0 error TS each, VERDICT command-exit 0, script name echoed. eslint --no-inline-config on the 19 changed ts/tsx files: 0 errors, 374 warnings on pre-existing lines. Ablations are unchanged from earlier rounds: projection strip 6 failed | 100 passed, then restored; $searchFields strip at 509f3eab79 1 failed | 105 passed, then restored, blob equal to HEAD and git diff HEAD empty.",
      "gates": "dispatch-gates --commands at c34be37460 derived 41 families. All 41 ran with exit codes captured before any pipe, and all exited 0; `pnpm --dir ui exec vitest run scripts/` gave Test Files 171 passed | 2 skipped (173). `dispatch-gates --ran` on the exit-coded record: 41 derived, 41 run, 0 NOT-MEASURED, a DERIVED zero. ui check:new-line-citations: 0 new citations, exit 0. overlap-check was run on its own before the push: VERDICT clean exit 0 against origin/main 189358f212 and #34914, #34925, #34929 and #34930 (#34925 shares objectViewListRenderer.tsx; all merge cleanly). PR check-runs when this was written: 22 listed, the required ones in_progress and the opt-in ones skipped; CI convergence is the PM's.",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2: pr_create through the fleet-write relay (POST /repos/objectstack-ai/objectstack/pulls, plus its assignee leg POST /repos/objectstack-ai/objectstack/issues/34936/assignees; the read-back matched the 16904 bytes sent, assignees os-support-ai, no labels sent) and this comment (POST /repos/objectstack-ai/objectstack/issues/34807/comments via post-stamped.mjs). Also git push x1 directly (509f3eab79 to c34be37460).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34898 · the grouped-grid 400 under preview (plugin-grid builds its own $select and groupBy from the marked schema). Measured shapes are in the PR's acceptance notes.",
        "carrier: none · design note corrected in the PR. Earlier reports called the filter behaviour simply the or-group widening; measured from the code, dropping a draft-only comparison widens an and group or the top level, narrows an or group, and an or group with nothing left disappears, which widens again."
      ]
    }
  21. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX

    Delivered · 2026-11-17T18:38Z · both halves have merged, and this card closed on #34936's Fixes line.

    Form half (#34843, 13e0305): under ?preview=draft, the New/Edit form draws a field that exists only in the draft as disabled, never requires it, and never writes it. That holds whether the requirement comes from the field definition or from a draft form view.

    List half (#34936, 4aeeca5): the list reads the draft definition. A draft-only column draws empty under its draft label. A draft-only name never reaches the data door in $select, $expand, $filter, $orderby, $searchFields or export fields. A dropped sort or filter shows one note.

    The grouped grid's half landed as #34944 (#34898).

    The data contract is unchanged, per ruling 6946403206. L1 nits with a user effect went to the seat:

    • a draft default that breaks its own value rule (epic note 19);
    • the singular wording of the note when it names several fields.

    pm:dispatched removed.

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

Metadata

Metadata

Assignees

Labels

domain:uipriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions