Skip to content

fix: navigation.size auto reads and opens as the host default width in nine locales and two record drawers - #38055

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-bnu37d
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-bnu37d

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Requested by Tesla · project thread

Fixes #36730

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:九种语言的 Studio 元数据表单里,导航「尺寸」的帮助文字不再说 auto 按字段数推导;数据页和界面列表页的记录侧边抽屉改为和对象列表一样以 460px 打开,并且可以拖宽拖窄、记住宽度。
  • 为什么做:上一轮只改了英文和简体中文,另外九种语言和两处抽屉还停在旧行为,这张卡收尾。
  • 出错会怎样:最坏是这两处抽屉宽度和之前不同,或帮助文字某种语言措辞不准,不影响数据,直接撤回即可。
  • 要你做什么:无。

What changes

  • (a) Nine locale bundles. navigation.size.helpText in the ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru and zh-Hant metadata-forms.generated.ts bundles now translates the current English sentence (the same meaning as en and zh-CN): 'auto' keeps the host's fixed default width, the same for every object whatever its field count (460px in the console), the sm..full buckets and their caps, a dragged width wins, and where it has no effect. The retired "derived from field count + viewport; AI writes nothing" sentence is gone from every leaf. Only the leaf string changed; no key was added or dropped.
  • (b) Two record drawers. The bare data page (ObjectDataPage) and the interface list page (InterfaceListPage) opened their record drawer at NavigationOverlay's own 42rem and passed no storageKey, so the drawer could not be resized. Now:
    • /data has no view and nothing authors a size there, so its drawer opens at RECORD_PREVIEW_DEFAULT_WIDTH (the side preview's 460) and keeps a dragged width under RECORD_PREVIEW_WIDTH_KEY, as the object list's drawer does.
    • The interface list page passes recordPaneWidth(viewDef.navigation, objectDef) and recordPreviewWidthKey(cfg.source, viewDef.navigation) from its source view, so an authored size bucket or pixel width is honoured and keeps its own per-object key; otherwise it is the 460 default with the shared key.
  • (c) Comments and TSDoc (no behaviour).
    • RecordFlowSurface.size (spec record-surface.ts) no longer claims to map onto navigation.size / FormView.modalSize; it says what reads it (the console's create / edit dialog turns 'full' into its full-screen sheet) and that the drawer's width does not.
    • The deprecated navigation.width TSDoc (spec view.zod.ts) no longer says "kept only as a renderer fallback": an authored width wins over size where a renderer reads both.
    • plugin-view recordSurface.ts (OverlaySize, deriveOverlaySize, overlayWidthFor, the file header) and react useNavigationOverlay.ts (OVERLAY_SIZE_WIDTHS, resolveOverlayWidth) no longer call the field-count bucket the 'auto' path, and OverlaySize is no longer paired with FormView.modalSize.
    • ui/e2e/toast-under-modal.spec.ts says ObjectView passes recordPaneWidth(...), not overlayWidthFor(...).
  • Changeset: patch for @objectstack/platform-objects, @objectstack/spec, @object-ui/app-shell, @object-ui/plugin-view, @object-ui/react. The spec, plugin-view and react edits are comment-only but ship in published bytes (src/**/*.zod.ts, .d.ts TSDoc), so they take a patch, not skip-changeset.

Tests

  • New InterfaceListPage.drawerWidth-36730.test.tsx (3 cases) and a new top-level describe in ObjectDataPage.openRule-35875.test.tsx (2 cases), through the real page, ListView and NavigationOverlay, reading the drawer card's --ov-w:
    • no size: 460, not 42rem (both pages);
    • a width under the shared preview key opens there (both pages), and the data page's drawer draws the resize separator;
    • interface list, source view size: 'xl': opens at the xl bucket and the shared width does not replace it.
  • Ablation: with ObjectDataPage.tsx and InterfaceListPage.tsx restored to origin/main (b4c99b8), all 5 new cases go red (expected '42rem' to be 'min(92vw, 460px)' and the like); restored to the fix, 5/5 green.
  • (a) re-check: each of the nine leaves read against en, not by grepping "field count" (which misses non-English leaves).

Rework at b68e9553 (L2 S1 in 7229399221 and the nit): comments and changeset text only, 3 files, +10/−7, with no .describe() line changed against origin/main. Re-run there: spec build 0, check:generated 14/14 up to date, spec tsc 0, eslint on the two files 0, check-empty-changeset 0, check-changeset-no-major 0, check:nul-bytes 0. The runs below are at b17aa295, and no code line moved after them.

Local runs at b17aa29
  • pnpm --dir ui exec vitest run packages/plugin-view/src/ packages/react/src/hooks/ packages/app-shell/src/views/__tests__/recordPreviewWidth-36149.test.tsx packages/app-shell/src/views/InterfaceListPage packages/app-shell/src/views/ObjectDataPage → Test Files 135 passed (135), Tests 1394 passed (1394)
  • pnpm --filter @objectstack/platform-objects test → Test Files 130 passed, Tests 2214 passed
  • pnpm exec turbo run type-check --filter=@object-ui/app-shell --filter=@object-ui/plugin-view --filter=@object-ui/react → exit 0
  • pnpm --filter @objectstack/spec exec tsc --noEmit → exit 0
  • pnpm --filter @objectstack/spec check:generated (after a spec build) → all 14 generated artifacts up to date
  • pnpm check:i18n (after its build closure) → check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys)
  • eslint over the 9 touched source/test files → 0 errors
  • pnpm --dir ui run check:new-line-citations → 0 new citations
  • dispatch-gates --commands (96 families) → --ran: 94 run, 2 NOT MEASURED, 0 unrun. Not measured (prerequisite, exit 3): check-plugin-teardown-shape --self-test (needs an unshallow clone) and check:dual-build-cjs-loads (needs a full pnpm build); both are left to CI. check:dts-closure was red on the first run only because an earlier OS_SKIP_DTS=1 build left no .d.ts; after real builds it reports 312/312 declaration files present.

Acceptance notes

  • The /data drawer and the interface list drawer now show a drag handle; before this change they had none. That follows from sharing the side preview's key, which the claim asked for.
  • deriveOverlaySize (field count → bucket) is still exported from @object-ui/plugin-view; no console surface calls it for 'auto' any more. Removing it is not in this card.

Verification

Open /apps/APP/OBJECT/data, hover a record name and click 「Open in side panel」: the drawer opens about 460px wide (not 672px) and its left edge can be dragged; the width you drag is the width the object list's side preview opens at next.


Generated by Claude Code

…lt width everywhere

The nine hand-translated metadata-form locales (ar, de, es-ES, fr, ja-JP, ko,
pt-BR, ru, zh-Hant) now carry the current navigation.size help text instead
of the retired field-count derivation. The /data page's and an interface list
page's record drawers open at the side preview's 460px default with the
shared dragged width, and an interface list page takes its source view's
navigation.size or width. Stale comments and TSDoc now say what the code does.

Claude-Session: https://claude.ai/code/session_01L9qibzZa1L8r7yGLe8nsmm
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:data protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/platform-objects, @objectstack/spec, touching 2 documentable anchor(s).

⛔ 1 release-owned page(s) name something this change touched. These are read-only:

  • content/docs/releases/v17/17-7.mdx (via NavigationConfigSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 39d611d4769a567cff55b3321a6a70f3cc32e2ba → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f6a8e9298232d6c7232586e9713f199767254d6d — the merge of head b68e955306bbb335ede90d65672f4bd44fcbefba into base 39d611d4769a567cff55b3321a6a70f3cc32e2ba, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f6a8e9298232d6c7232586e9713f199767254d6d && git checkout f6a8e9298232d6c7232586e9713f199767254d6d
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 39d611d4769a567cff55b3321a6a70f3cc32e2ba b68e955306bbb335ede90d65672f4bd44fcbefba && git checkout -B drift-repro 39d611d4769a567cff55b3321a6a70f3cc32e2ba && git merge --no-ff b68e955306bbb335ede90d65672f4bd44fcbefba

node scripts/docs-audit/affected-docs.mjs --json 39d611d4769a567cff55b3321a6a70f3cc32e2ba

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 39d611d4769a567cff55b3321a6a70f3cc32e2ba → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head b17aa29 · 2026-11-27T22:25Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (published-schema face: the comment-only edits in packages/spec/src/data/record-surface.ts and packages/spec/src/ui/view.zod.ts, read against the drawer code they describe), and posts its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b17aa295a4bfecdd5c3c4d5e395f637438d17947
Local-runs: none
Scope: packages/spec/src/data/record-surface.ts, packages/spec/src/ui/view.zod.ts + ui/packages/app-shell/src/views/ObjectDataPage.tsx, ui/packages/app-shell/src/views/InterfaceListPage.tsx, ui/packages/plugin-view/src/recordSurface.ts, ui/packages/react/src/hooks/useNavigationOverlay.ts

Inputs read: card #36730 body and every comment (triage 7104562672, unlock 7113261613, claim 7228443977, os-dev report 7229291227, amendment 7229306962), PR #38055 body and its comments, the net diff b4c99b8dd1...b17aa295a4 (19 files, +249/-30), and the check-runs on the head. Code outside the diff was read at the head, not reviewed: recordDrawerContext.ts, objectViewRecordNavigation.ts, recordDrawerStack.tsx, objectViewRecordOverlay.tsx, console/AppContent.tsx, utils/recordFormNavigation.ts, components/src/custom/navigation-overlay.tsx, plugin-form/src/ModalForm.tsx, components/src/custom/mobile-dialog-content.tsx.

The rest of the diff (the nine locale bundles, the two test files, ui/e2e/toast-under-modal.spec.ts, the changeset) is the lane seat's ACCEPT at TIER_DEFAULT; what this record says about them is under ① and ② only.

① Derived judgments

  • Published accept set: unchanged. Right. packages/spec/src/ui/view.zod.ts moves four comment lines inside the TSDoc block above NavigationConfigSchema.width; the schema expression and its .describe() string on the same key are byte-identical. packages/spec/src/data/record-surface.ts replaces a one-line TSDoc on RecordFlowSurface.size; the member's type 'auto' | 'full' is unchanged. No key, enum value, default or .describe() text moves, so no JSON-schema or reference-doc output moves (the dev reports check:generated 14/14 up to date; the CI Spec property liveness run is green).
  • Published bytes: they do move. Right as declared. Both spec edits are TSDoc on exported symbols and reach the .d.ts; so do the comment edits in @object-ui/plugin-view (OverlaySize, deriveOverlaySize, overlayWidthFor) and @object-ui/react (resolveOverlayWidth). The PR treats them as shipped bytes, not as skippable.
  • Public surface of the UI packages: unchanged. Right. No export is added or dropped. deriveOverlaySize stays exported from @object-ui/plugin-view; at the head its only caller is overlayWidthFor, whose only caller is recordPaneWidth with a non-auto bucket.
  • Behaviour change (b): two drawers change their opening width and gain a drag handle. Right, and declared. /data and the interface list page go from the overlay's 42rem with no storageKey to min(92vw, 460px) with a remembered width. Amendment 7229306962 and the PR's Acceptance notes both state the drag handle.
  • Locale leaves (a): nine strings change, no key added or dropped. Right. One line per bundle. Each of ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru and zh-Hant carries every clause of the unchanged en .describe() of navigation.size (fixed host default, same for every object whatever the field count, 460px in the console, the 480/720/960/1200/1600 caps clamped to the viewport, a dragged width wins over either, prefer it over pixel width, no effect where the record opens as a page or on a phone-width screen) and none carries the retired field-count or "AI writes nothing" clause. Nothing in them states a behaviour the head does not have; (b) makes the 460px clause true on two more console drawers.
  • Metadata-protocol: none: holds. No authorable key, stored shape or wire shape moves.

② Semver level

Clause-②: no holds: the accept set is unchanged and nothing an author can write parses differently. The changeset is one file with five patch entries (@objectstack/platform-objects, @objectstack/spec, @object-ui/app-shell, @object-ui/plugin-view, @object-ui/react), which is exactly the set of packages whose src moves. The comment-only spec, plugin-view and react edits take a patch and not skip-changeset, as the house rule requires for shipped TSDoc bytes. Check Changeset is green on the head. The claim named three changesets; amendment 7229306962 adds the other two, so the claim and the diff agree.

Changeset prose, read against the head: the nine-locale paragraph, the 42rem and not-draggable statement for both drawers at the merge base, "at 460px, or at the width the reader last dragged in any side preview", and "an interface list page also takes its source view's navigation.size bucket, or its pixel width, which then wins over the shared dragged width" (an authored size or width moves the drawer to the per-object key, so the shared key is not read) are each true. The third paragraph's "now say what the code does" is true except for the one sentence under S1.

③ Boundary flags

  • open_questions: empty in report 7229291227. Nothing to answer.
  • Out-of-scope finding 1 (deriveOverlaySize still exported, no console caller for auto): confirmed at the head; the rewritten plugin-view comments say so truthfully. Removing a public export is not this card's. Accepted as noted.
  • Out-of-scope finding 2 (objectViewRecordNavigation reads the off-spec objectDef.navigation): confirmed, untouched here. InterfaceListPage does not copy that read; it passes viewDef?.navigation only. Accepted as noted.
  • Claim surface: 19 files against "about 15"; the extra ones are the new pin file and the two amended changeset entries. No file outside the claimed surface is touched.
  • SQL push-down: not applicable. The diff adds no data read, no id materialisation and no in-app join.
  • CI on the head is not concluded. Green: Check Changeset, Spec property liveness, Lint · ESLint, Governed Surface Queue Guard, PR-body guards, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Auto Label, filter, both shard planners. Pending at the time of this record, named and not waited for: Build Core, Build UI Deps, Live E2E UI, Test Core (1/10) to (10/10), Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger, Lint · PM dispatch-gates, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure. No run has failed. This record does not stand in for those verdicts.

④ Design judgment

packages/spec/src/data/record-surface.ts — RecordFlowSurface.size

  • "The record drawer's width does not read it (that is navigation.size's)": true. Every drawer width at the head comes from recordPaneWidth (recordDrawerContext.ts:132) or resolveOverlayWidth (useNavigationOverlay.ts:177), which read navigation.width and navigation.size and nothing from the flow surface.
  • "routes ignore it": true. The only reader of the derived size is AppContent.tsx:1802, for the create / edit dialog.
  • "lets 'auto' size itself": true. resolveRecordFormModalLayout (recordFormNavigation.ts:232) sets no modalSize for 'auto', and ModalForm then picks its own bounded lg / xl.
  • S1 (should-fix) — "the console's create / edit dialog turns 'full' into its full-screen sheet" is not what the code does. resolveRecordFormModalLayout turns a derived 'full' into ModalForm's modalSize: 'full' (recordFormNavigation.ts:240), and that size is the class sm:max-w-[95vw] sm:w-full (ModalForm.tsx:345) with the common height sm:h-auto sm:max-h-[90vh]: a 95vw dialog from sm up, not a full-screen one. The full-screen sheet is ModalForm's below-sm posture (mobile-dialog-content.tsx:135, fixed inset-0 ... h-[100dvh]), which every size gets, 'auto' included; ModalForm's own comment says so (:331). The console host also calls deriveRecordFlowSurface with no viewport (AppContent.tsx:1802 and the comment above it), so it never receives 'full' at all. The sentence is new, ships in the .d.ts, and card (c) asks that each comment say what the code does. A wording that holds: the console's create / edit dialog passes 'full' to its form dialog as that dialog's full size (95vw from the sm breakpoint up; below it the dialog is a full-screen sheet whatever the size) and lets 'auto' size itself.

packages/spec/src/ui/view.zod.ts — deprecated NavigationConfig.width

  • "It is still honoured": true. recordPaneWidth returns an authored width as written (recordDrawerContext.ts:134); resolveOverlayWidth returns it first (useNavigationOverlay.ts:179); the grid, kanban, calendar, gantt and tree overlays read the hook's resolved width; ObjectView's form drawer reads it (ObjectView.tsx:2913).
  • "where a renderer reads both keys an authored width wins over size (the console's record drawer does)": true. Both resolvers that read both keys test width first. The console's record drawer goes through recordPaneWidth on all four hosts at the head: the object list (objectViewRecordNavigation.ts:266), the drawer stack (recordDrawerStack.tsx:993), and now InterfaceListPage.tsx:739; /data authors neither key.
  • "so new metadata sets size (or omits it for auto) and leaves width out": agrees with the unchanged .describe() texts ("Prefer this over the pixel width" on size; "use the size bucket" on width). The TSDoc and the .describe() do not contradict each other; the TSDoc adds the precedence fact, which is the reason to leave width out.
  • N1 (nit) — the unchanged size TSDoc three lines above glosses the console's 460px side panel as "(opened from an object's list, and the drawer level over a record page)". After (b) the /data drawer and the interface list page's drawer open at 460 as well, so the gloss is no longer the whole list. It is not false, and the .describe() text carries no such list. A follow-up may widen it.

ui/packages/app-shell/src/views/ObjectDataPage.tsx

Agrees with the contract. The width is RECORD_PREVIEW_DEFAULT_WIDTH (recordDrawerContext.ts:96, 'min(92vw, 460px)'), imported, not a new literal; it reaches the overlay through resolveOverlayWidth. The key is RECORD_PREVIEW_WIDTH_KEY ('drawer-width:record-preview'), the same constant objectViewRecordOverlay.tsx:37 defaults to and recordPreviewWidthKey returns for an unauthored view. The page has no view, so there is no authored size to honour, as the claim says. The overlay enables resize only for a storageKey in drawer mode, which is the mode here; a remembered width is capped at 900 and the phone keeps the full-width sheet, so the help text's phone clause holds.

ui/packages/app-shell/src/views/InterfaceListPage.tsx

Agrees with the contract. width={recordPaneWidth(viewDef?.navigation, objectDef)} follows the spread of the hook state, so it is the width the overlay draws: authored width first, then an authored bucket through overlayWidthFor, else the shared 460 default. storageKey={recordPreviewWidthKey(cfg.source, viewDef?.navigation)} is the shared key unless the source view authors a width or a non-auto size, then the per-object key, exactly as on the object list. Both names are in scope before the early return. Tried to break it: an auto or absent navigation, a hollow viewDef (undefined resolves to the default and the shared key), a page or none record action (the overlay is not drawn), and a phone (the sheet is full width regardless of the variable). None breaks.

ui/packages/plugin-view/src/recordSurface.ts

Each rewritten sentence is true at the head: OverlaySize is the five buckets other than 'auto'; deriveOverlaySize is a field-count bucket that auto does not mean; overlayWidthFor falls back to it for 'auto' or nothing, and the console never passes either because recordPaneWidth:136 resolves auto first. No pairing with FormView.modalSize remains.

ui/packages/react/src/hooks/useNavigationOverlay.ts

True at the head: resolveOverlayWidth returns width first, then a bucket, and undefined for 'auto' or absent, which is the host's own default. "The console's record hosts pass the side preview's fixed width as width" holds for the object list and /data through navigation.width, and for the drawer stack and the interface list page through the overlay's width prop.

Open on this head: S1 (should-fix), which earns a delta review of its fix. N1 is a nit. No must-fix.

Implemented-by: claude/project-thread-bnu37d
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #38055 @ b17aa295a4bfecdd5c3c4d5e395f637438d17947 (card #36730)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/data/record-surface.ts packages/spec/src/ui/view.zod.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36730: its body and EVERY comment (rulings and earlier records included)
· PR #38055: its body, its file list, and the net diff against main at b4c99b8dd17b4038b9b5891c87c998ad6e022bb5
· the check-runs on b17aa295a4bfecdd5c3c4d5e395f637438d17947: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/data/record-surface.ts, packages/spec/src/ui/view.zod.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38055/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T22:32Z

L1 REWORK at b17aa295a4 (L1-a for the seat). The isolated CONTRACT_REVIEW_TIER record 7229399221 is a PASS (claim 7229329247, filled brief 7229411820, verify-review-tier PASS). It has no must-fix and one should-fix, which owes a delta of its fix.

What holds.

  • Clause-②: no and Metadata-protocol: none are confirmed. The schema expressions and every .describe() string are byte-identical, so the accept set is unchanged. The comment-only spec edits ship in the .d.ts, so a patch changeset is right.
  • The NavigationConfig.width comment is true. Both resolvers that read both keys test width first: recordPaneWidth in recordDrawerContext.ts and resolveOverlayWidth in useNavigationOverlay.ts. It agrees with the unchanged .describe().
  • The drawer change uses the shared RECORD_PREVIEW_DEFAULT_WIDTH (min(92vw, 460px)) and RECORD_PREVIEW_WIDTH_KEY, not new literals. The plugin-view and react comments are true, and the nine locale helpText leaves match the en meaning.

Owed before ACCEPT.

  • S1 (should-fix). The new TSDoc on RecordFlowSurface.size (packages/spec/src/data/record-surface.ts) says "the console's create / edit dialog turns 'full' into its full-screen sheet". The code does not do that:

    • A derived 'full' becomes ModalForm's modalSize: 'full' (recordFormNavigation.ts), which is a 95vw dialog from sm up (ModalForm.tsx, height capped at 90vh), not full-screen.
    • The full-screen sheet is the below-sm posture that every size gets, 'auto' included (mobile-dialog-content.tsx).
    • The console host also calls deriveRecordFlowSurface with no viewport (AppContent.tsx), so it never receives 'full'.

    The sentence is new, ships in the .d.ts, and card part (c) asks that each comment say what the code does. The record offers a wording that holds: the console's create / edit dialog passes 'full' to its form dialog as that dialog's full size (95vw from the sm breakpoint up; below it the dialog is a full-screen sheet whatever the size) and lets 'auto' size itself.

    The changeset's "now say what the code does" inherits this, so fix both in the same push. The fix moves the head and owes a same-reviewer delta.

Nit (not blocking).

  • N1: the unchanged size TSDoc in view.zod.ts lists where the console's 460 px panel opens. After (b), /data and the interface list page open at 460 px too, so the list is incomplete but not false. Take it in the same push or leave it as a follow-up.

CI was still running when I read it, and no run had failed. I will read the final green head with the delta.

…g does with 'full'

RecordFlowSurface.size: a derived 'full' is the form dialog's full size
(95vw from the sm breakpoint up; below it every size is a full-screen
sheet), and the console derives with no viewport, so it only receives
'auto'. The navigation.size TSDoc lists the bare data page and the
interface list page among the drawers that open at 460px. The changeset
says the same.

Claude-Session: https://claude.ai/code/session_01L9qibzZa1L8r7yGLe8nsmm
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head b68e955 · 2026-11-27T22:38Z

L1-a runs the same reviewer's delta of record 7229399221 on this head (S1: the RecordFlowSurface.size TSDoc), with its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b68e955306bbb335ede90d65672f4bd44fcbefba
Local-runs: none
Scope: packages/spec/src/data/record-surface.ts, packages/spec/src/ui/view.zod.ts + none

Delta review of the record on b17aa295a4bfecdd5c3c4d5e395f637438d17947. The new head is one commit on it, three files, +10/-7: the changeset, record-surface.ts and view.zod.ts. Read: that commit's diff, the net spec diff against the merge base b4c99b8dd1, the cited code at the new head, and the check-runs on the new head. The four implementing files of the first record are untouched by this commit, so everything the first record says about them stands.

① Derived judgments

  • Published accept set: unchanged. Right. The net diff of packages/spec/src against the merge base adds or removes no line containing .describe(; both files still change TSDoc comment lines only (record-surface.ts +8/-1, view.zod.ts +7/-5). No key, enum value, default or description string moves.
  • Published bytes: the two TSDoc blocks move again, in the .d.ts only. Right as declared.
  • Metadata-protocol: none: holds.

② Semver level

Clause-②: no still holds, for the reason above. The changeset keeps its five patch entries; only its third prose paragraph changed. That paragraph is true at the new head, sentence by sentence: the record flow's size is read only by the console's create / edit dialog (AppContent.tsx:1802 is the one caller of deriveRecordFlowSurface, and it takes .size into resolveRecordFormModalLayout); a 'full' becomes the form dialog's full size, 95vw from the sm breakpoint up (ModalForm.tsx:345), and below sm every size is a full-screen sheet (mobile-dialog-content.tsx:135); the host never receives 'full' because it derives with no viewport; the record drawer's width does not read it; an authored width still wins over size.

③ Boundary flags

  • No new dev flag and no open_questions entry on this commit.
  • SQL push-down: not applicable; the commit touches prose only.
  • CI on the new head is not concluded. Green so far: Spec property liveness, Governed Surface Queue Guard, PR-body guards, Check PR Size, Flag docs affected by code changes, Auto Label, filter. Pending at the time of this record, named and not waited for: Check Changeset, Build Core, Build UI Deps, Live E2E UI, Dogfood Regression Gate, Plan Test Core shards, Plan Test UI shards (the Test Core and Test UI shards have not started), Lint · ESLint, Lint · PM dispatch-gates, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure, Type Check · workspace, Type Check · source gates, Type Check · consumer gates, Type Check · debt ledger. No run has failed. This record does not stand in for those verdicts.

④ Design judgment

S1: closed

packages/spec/src/data/record-surface.ts — RecordFlowSurface.size, each sentence against the new head:

  • "passes 'full' to its form dialog as that dialog's full size": recordFormNavigation.ts:240 sets modalSize: 'full' for a derived 'full' and nothing else.
  • "(95vw from the sm breakpoint up; below it the dialog is a full-screen sheet whatever the size)": ModalForm.tsx:345 and the dialog base class in mobile-dialog-content.tsx:135.
  • "lets 'auto' size itself": no modalSize key is set, and the form dialog picks its own bounded size.
  • "That host derives with no viewport, so it only ever receives 'auto'": deriveRecordFlowSurface returns 'full' only when the surface is 'page' and opts.viewport === 'mobile'; the one call, AppContent.tsx:1802, passes no options. True.
  • "The record drawer's width does not read it (that is navigation.size's), and routes ignore it": unchanged from the first record, true.

packages/spec/src/ui/view.zod.ts — the size TSDoc's list of 460px openers (the first record's nit N1, taken up on this prose face). The list is exact. The hosts that resolve the console's record side panel through recordPaneWidth or RECORD_PREVIEW_DEFAULT_WIDTH at the new head are four and only four: the object list (objectViewRecordNavigation.ts:266, drawn by ObjectViewRecordOverlay), the bare data page (ObjectDataPage.tsx:636), the interface list page (InterfaceListPage.tsx:739), and the drawer level over a record page (RecordPageDrawerHost, recordDrawerStack.tsx:993, mounted by RecordDetailView). None of the four opens at another width under auto, and no other host opens at 460: the block overlays (grid, kanban, calendar, gantt, tree) and RecordDetailDrawer default to min(960px, 60vw), and the list, gallery, map and timeline blocks fall to the overlay's 42rem, as the next clause of the same TSDoc says. The deprecated-width TSDoc is unchanged by this commit.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-bnu37d
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T23:10Z

L1 ACCEPT at b68e955306bbb335ede90d65672f4bd44fcbefba (L1-a for the seat), answering L1 REWORK 7229420499.

Contract review. Record 7229399221 on b17aa295, and the same reviewer's delta 7229522115 on this head (claim 7229500996): PASS, S1: closed, no must-fix, no should-fix. verify-review-tier PASS on each transcript.

  • S1 closed. Every sentence of the new RecordFlowSurface.size TSDoc holds:
    • a derived 'full' is the form dialog's modalSize: 'full', 95vw from sm up;
    • below sm every size is a full-screen sheet;
    • the console host passes no viewport, so it only ever receives 'auto'.
  • N1 taken. The navigation.size TSDoc now lists exactly the four hosts that open the 460 px panel under auto: the object list, /data, the interface list page, and the drawer over a record page.
  • Clause-②: no and Metadata-protocol: none confirmed. No .describe() line changes against main, so the accept set is unchanged. The comment-only spec edits ship in the .d.ts, so a patch is right. The five patch entries and the changeset paragraph are true.

Face. l1-face clean (13 of 13); CI at this head is 61 success, 12 expected skip, 0 failed, 0 pending; mergeable_state clean.

Behaviour, for the record. Part (b) moves the /data and interface-list record drawers from 42rem to the shared auto default (min(92vw, 460px)), using the shared drawer-width:record-preview key. Both drawers gain the drag handle, as the amendment 7229306962 and the Acceptance notes say. The five new pins read --ov-w, and with both pages reverted to main they all go red, 5 of 5.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Landing · 2026-11-27T23:12Z · zone o3-build (seat card thread)
Head-sha: b68e955306bbb335ede90d65672f4bd44fcbefba

  • L1 ACCEPT 7229941793 at this head (L1-a), after REWORK 7229420499.
  • Contract review: PASS 7229399221, and the same reviewer's delta PASS 7229522115 at this head, which closes S1 (the RecordFlowSurface.size TSDoc). No .describe() line changes, so Clause-②: no holds.
  • Claim 7228443977, amended 7229306962. Report 7229291227.
  • check-governed-merges.mjs --pr 38055: NOT governed, 0 of 19 paths, +254 / −32.
  • landing-k.mjs --pr 38055: OK, K = 2 < 15.
  • Checks at this head: 61 success, 12 expected skip, 0 failed. mergeable_state clean. The seat patched the PR body with the rework readings.
  • Action: ready for review and auto-merge (queue).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 27, 2026 23:12
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 27ee984 Nov 27, 2026
74 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-bnu37d branch November 27, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:data protocol:ui size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants