Skip to content

feat(console): the console reads and edits forms as form items - #38484

Merged
os-zhuang merged 5 commits into
mainfrom
claude/project-thread-yri9ke
Nov 29, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/project-thread-yri9ke

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Part of #37087

Clause-②: yes
Metadata-protocol: none
Skills-docs: none — no metadata an author writes changes; the console reads and writes the form type card ② added.

维护者速读

  • 用户能看到什么变化:Setup 的公开表单页看起来不变,只是改读改写表单类型;在 Studio 里打开一个表单(地址 …/metadata/form/表单名)就是表单设计器,能改字段、必填、分组、标题、地址和提交后的提示,存草稿再发布;控制台自己的表单页改读表单类型。表单类型暂不进 Studio 菜单(下一张 PR)。
  • 为什么做:ADR-0159 把表单独立成 form 元数据,控制台要改读改写它,后面才能退役开发者页的公开表单页。
  • 出错会怎样:最坏是某个表单在 Setup 里开关失败、或在 Studio 里存不上;设计器没有开关,保存和发布都按当时存着的开关写回,所以不会把 Setup 关掉的表单重新打开;匿名打开和提交不经这张 PR 的代码;可整体撤回。
  • 要你做什么:契约审核(L2)未完成,先不用批;审核通过后席位会附审核记录请你批。

What changes

ADR-0159 D9 for the console, card ③ PR 1 of 2 (the seat's claim 7248756424, amendment 7248849494). Every console surface here reads and writes the form type; the server's projection (ADR-0159 D5, completed by #38453) serves an old-shape form there too.

  1. Setup → Configuration → Public forms (ui/packages/app-shell/src/views/setup/): the list read is GET /meta/form; the row reader takes the form item itself (no viewKind filter, no config hop). The two layered reads, the save paths, the reset and the override save name form. A switch saves authorableForm(effective) with sharing.enabled set: the read's _ keys and the old shape's data are left out, since FormSchema refuses data. The shipped-off judgement reads the app's own document from the form layered read's code with the spec's formExplicitlyWithdraws (ADR-0159 D6 rule 6). A row whose app document cannot be read (code: null) is shown as status unknown and offers no switch.
  2. The feat(studio): design an object's public forms in Studio's Form tab #36784 designer becomes the form editor (studio-design/publicForm/): publicFormDesign.ts reads and writes the top-level body. PublicFormsDesigner.tsx now holds FormItemEditor, which edits one form, and FormItemPage, registered as the form type's EditPage and CreatePage. It has no switch: storedNow reads sharing.enabled and sharing.allowAnonymous again at every save and publish, and a draft whose sharing differs is saved again before it is published. A form an installed app ships is saved as a declared override in the app's .custom pair. A form with no public link (one an action opens) is edited without an address. The new-name and address checks read the effective form list plus form drafts. The designer's own list and the Form-tab switch from feat(studio): design an object's public forms in Studio's Form tab #36784 are not carried over.
  3. List columns and registration (formListColumns.tsx; the form resource is registered in services/builtinComponents.tsx beside the other lazy editor pages, so metadata-admin/registry.ts stays free of side effects): name (shows title when there is no label), label, object, public address and status. /meta/types serves no list layout for form, so these are the client's own listColumns. form stays out of Studio's menu.
  4. FormPage (ui/apps/console/src/components/FormPage.tsx): the internal route reads GET /api/v1/meta/form/NAME. The anonymous route is unchanged.
  5. Strings: new engine.studio.publicForms.* and engine.list.col.publicAddress / publicState keys in ./namespaces/studio (en, zh). This PR removes no key.

Outside the claimed file surface (reported to the seat):

  • ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx: one branch, so that a form item in a package's Studio area opens FormItemPage with the area's customization, publishNonce and onDraftSaved. Only the area's surface holds a read-only base's customization. Without it, an installed app's form could not be saved as its override.
  • ui/packages/app-shell/src/services/builtinComponents.tsx: the form resource's registration (listColumns, lazy EditPage / CreatePage). The claim named metadata-admin/registry.ts, but a registration there makes that module side-effectful and check-side-effects-array refuses it; every other editor page registers here.
  • ui/packages/app-shell/src/views/runtime-metadata-persistence.ts: RuntimeArtifactType gains 'form', and a form save invalidates the view caches the way a view save does, because Setup's switch goes through saveAndPublishInPackage('form', …).

Read first (by risk):

  1. studio-design/publicForm/PublicFormsDesigner.tsx, storedNow, save and publish: the no-switch rule.
  2. setup/publicForms.ts, switchPublicForm / authorableForm / markShippedOff: the body a switch writes over an old-shape form.
  3. studio-design/publicForm/publicFormDesign.ts, publicFormItemOf: what is kept, and what is dropped (data, viewKind, config, _ keys).

Tests

  • publicFormDesign.test.ts (29): the top-level body both ways; a new form passes FormSchema.safeParse; an old-shape projected item is written back without data or _formDefinedIn; sharing is written as read (off stays off, an unchanged address keeps the stored publicLink, a changed one becomes /forms/SLUG); a form with no public link; isPublicFormItem.
  • PublicFormsDesigner.test.tsx (14, the feat(studio): design an object's public forms in Studio's Form tab #36784 tests re-pointed to the form shape): create, taken address and name, delete, the no-switch rule at save and at publish, the publish re-save of a draft whose sharing differs, reads that fail, a form with no public link, an old-shape save without data. Every write is asserted as type form with a body FormSchema accepts.
  • setup/publicForms.test.ts, PublicFormsSetupPage.test.tsx: the list read and both layered reads are form; the shipped-off judgement from the form layered code; a row whose app document cannot be read is status unknown with no switch; a switch over an old-shape row writes no data.
  • FormPage.* (about 30 files): the internal route reads /meta/form/NAME; the fixtures moved to the top-level body.
  • PublicFormsDesigner.test.tsx (+2, head 48a01c7ff7, L2 S2): "shows the server's address refusal its own check missed (409 FORM_ADDRESS_TAKEN) as the address clash, at save and at publish" and "CONTROL: shows any other 409 as a pending draft". Ablation (the FORM_ADDRESS_TAKEN branch deleted): 1 failed, 15 passed, the failure is the address case (received the pending-draft sentence), the CONTROL stayed green; restored to the HEAD blob.
  • FormPage.recordObject.test.tsx (+1, L2 S3): "Log Time on a task: /meta/form/NAME is read, the form renders the record, and the submit writes it". The real ActionRunner runs {type:'form', target:'showcase_task.edit'} with record 42; FormPage reads exactly one /api/v1/meta/form/showcase_task.edit and no /meta/view, renders the record and PATCHes /data/showcase_task/42.

Acceptance notes

Remaining formViews / viewKind: 'form' hits under ui/

Docblocks only in FormPage.tsx, recordFormNavigation.ts, SchemaForm.tsx, clientValidation.ts, registry.ts, view-item-normalize.ts, freeze-schema.ts and imported-defaults.ts; the view editor's own form arm (anchors.ts, ViewPreview.tsx, view-item-normalize.ts), which still edits a view; MetadataProvider.tsx, kept on purpose for packages that still ship forms in views:; and the developer PublicFormsPage, which PR 2 retires.

Verification

  • Tests on head 83c51d8: app-shell ConditionWidget.conditionScope, studio-design/publicForm, StudioMetadataArea.*, views/setup and runtime-metadata-persistence.*: 35 files, 458 passed. An earlier run of all of views/metadata-admin, views/studio-design and views/setup was red only on the conditionScope exhaustiveness check, while form was registered in registry.ts; moving the registration fixed it (the targeted run above). Also packages/i18n plus the console's src/components and the two form-page tests in src/__tests__: 173 files, 2618 passed, 13 skipped.
  • Type checks: @object-ui/console type-check exit 0 (after building its dependencies).
  • Gates: dispatch-gates --commands derived 28 families, each run and recorded; --ran reconciles 28 derived, 28 run, 0 NOT-MEASURED. pnpm --dir ui exec vitest run scripts/ was killed by memory (SIGKILL, exit 1) while a build ran beside it; run again alone it exits 0, recorded as an extra line.
  • Dogfood (examples/app-showcase, objectstack dev, console dev server, signed in as the seeded admin):
    • Setup lists both showcase forms as form items, both on. Switching Contact off makes GET /forms/contact-us and its submit answer 404; switching it on again answers 200.
    • Studio opens the old-shape showcase_inquiry.contact at /studio/com.example.showcase/metadata/form/showcase_inquiry.contact. Removing message is refused (the object requires it). Adding source as required, removing company and retitling, then save and publish: the anonymous form serves the new title and fields, a submit without source answers 400 VALIDATION_FAILED, with it 201.
    • Off in Setup, then edited and published in Studio: the form stays off (404) and Setup still shows it off. Switched on again, it serves the newest title.
    • New form: the title Contact us is refused because its address is taken (confirm disabled); Demo signup is created in the app's .custom pair, published, and opens and accepts a submit (201).
    • Studio's form list shows the label/title, name, object, address and status columns.
    • Screenshots: /mnt/project-files/card-37087/pr1-dogfood/ (seat 3's project files).
  • Patch round, head 48a01c7ff7 (L2 S2 and S3; the designer's 409 mapping, two tests, one changeset sentence): PublicFormsDesigner.test.tsx, publicFormDesign.test.ts and FormPage.recordObject.test.tsx 3 files, 55 passed; @object-ui/app-shell and @object-ui/console type-check exit 0; pnpm --dir ui exec vitest run scripts/ 172 passed, 2 skipped. The server's refusal (formAddressClashRefusal, packages/metadata-protocol/src/protocol-form-writes.ts) carries status 409 and code FORM_ADDRESS_TAKEN and names the holder only in its prose, so the editor maps the code to the shipped addressTaken key (no structured holder for addressTakenBy; no key added).
  • Live check of a form an action opens (head 48a01c7ff7, examples/app-showcase): on task "Build homepage", the header action Log Time (showcase_log_time, type form, target showcase_task.form) navigates to /apps/com.example.showcase/forms/showcase_task.form?recordId=…&recordObject=showcase_task; GET /api/v1/meta/form/showcase_task.form answers 200 and no /meta/view/NAME is read; the form renders prefilled; Submit sends PATCH /api/v1/data/showcase_task/… 200 and the record reads the new title. Screenshots and the network log: /mnt/project-files/card-37087/pr1-dogfood/s3-*.png, s3-network.json; the live 409 envelope: s2-envelope-probe.txt (project files of the seat 5 project).
  • Dogfood battery (pnpm --filter @objectstack/dogfood test under os-verify-lock, closure built as CI does, no shard, no path): head d5581291b6 · VERDICT exit 0 · Test Files 495 passed, 3 skipped (498) · Tests 4183 passed, 68 skipped (4251) · failures: none. The head moved since by the patch round's four ui/ files and the changeset only; none is in the dogfood closure.

Ablation of the no-switch rule (L1-b R1, card Done-when "ablate: build the designer's save from the base's body")

Measured at head d5581291b6, in a throwaway detached worktree, through scripts/ablation-replace.mjs (HEAD-blob restore with hash check), from the ui/ root under os-verify-lock: pnpm exec vitest run --maxWorkers=2 --reporter=verbose packages/app-shell/src/views/studio-design/publicForm/PublicFormsDesigner.test.tsx packages/app-shell/src/views/studio-design/publicForm/publicFormDesign.test.ts.

  • Ablation (one line, PublicFormsDesigner.tsx, the single point where both save and publish read the sharing through storedNow): the sharing is taken from the body as it was opened, form.base.sharing, before the effective, draft and code layers.
  • Baseline: 2 files passed, 43/43 tests (14 + 29).
  • Ablated: 2 failed, 41 passed. Red:
    • "has no switch: saves and publishes the form's sharing as it is stored at that time, not as it was when the form was opened" (PublicFormsDesigner.test.tsx:376, expected true to be false on sharing.enabled; the save leg);
    • "publishes an installed app's form with the switch as stored at the app, after it was switched off" (PublicFormsDesigner.test.tsx:425, the publish-time re-save carrying the switched-off sharing never happened; the publish leg).
    • publicFormDesign.test.ts stayed 29/29, as expected (publicFormItemOf writes whatever sharing it is handed).
  • Restored: blob 0e7cb3887b equals HEAD, git diff HEAD empty, 43/43 green again.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibxQiu6MyZ2ngLJtA5Y

Setup's public forms page lists and switches form items, Studio's public
form designer becomes the form type's editor (no switch: every save and
publish writes the sharing stored at that moment), the form list gets its
columns, and the console's own form page reads /meta/form.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibxQiu6MyZ2ngLJtA5Y
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u
2026-11-29T06:08Z · Final green head declared for L1: d5581291b6506079564dec81175031d05b5d9bb3.

  • Checks at this head (pr-state.mjs via l1-face.mjs --pr 38484): 45 success, 13 expected skip, 0 unexpected skip, 0 failed, 0 pending; mergeable_state clean; Lint & Repo Gates and TypeScript Type Check success. overlap-check.mjs at this head: clean against origin/main b926d37 and every open PR head.
  • Card Console reads and edits form items: Setup public forms re-pointed, the PR #36784 designer becomes the form editor in Studio (ADR-0159, card ③) #37087 (PR 1 of 2, Part of #37087): claim 7251649959 (seat 5, resumes seat 3's claim 7248756424, amendment 7248849494, Release 7251253363 and addendum 7251555985); os-dev-report 7251244605 plus reading 7251326244 (the changeset move to the root .changeset/).
  • Contract faces read off this head: no packages/spec/src/** path, no governed path; the PR body and the changeset both declare a bare Clause-②: yes (new engine.studio.publicForms.* and engine.list.col.* keys in the exported ./namespaces/studio, nothing removed from a published package: the two removed exports sit in the private @object-ui/app-shell). reviewFace therefore reads the declaration face, so the L2 owed on PR 1 is a TIER_DEFAULT record. The card's narrowing arm (the removed Studio nav_public_forms label key) rides PR 2, which owes the CONTRACT_REVIEW_TIER review with item ④.
  • Lands as Tier H by size: 3,469 changed lines (check-governed-merges.mjs --pr 38484), so after L1 ACCEPT, the same-head L2 PASS and the dogfood battery from the landing head, it goes to the seat for the hand-off. L1 by thread L1-b.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB

席位核对 — REWORK · L1-b · area o5-ux · Head-sha d5581291b6506079564dec81175031d05b5d9bb3 · 2026-11-29T06:10Z

First L1 record on this PR, a full review of #37087 PR 1. There are three items. None of them asks for a product code change: R1 is a measurement, and R2 and R3 are body or claim lines.

R1 (evidence): the ablation the card asks for on the no-switch rule is missing. The card's Done-when reads: "Switch a form off in Setup, then edit and publish it in Studio … (one test and one browser check; ablate: build the designer's save from the base's body)." The test (PublicFormsDesigner.test.tsx "has no switch: saves and publishes the form's sharing as it is stored at that time …") and the browser check are both reported. The ablation is not, in the body or in report 7251244605. Run it on this head: make save and publish take sharing from the body as it was opened (open.base), not from storedNow. Record which tests go red (the no-switch test and its installed-app sibling are expected to), restore the HEAD blob, and write the reading into the body. If the head moves, a new green-head comment and a delta L1 follow.

R2 (body): the 409 address-clash residual has no carrier, and it is the card's own requirement. Acceptance notes say Setup's 409 FORM_ADDRESS_TAKEN refusal "does not name the form holding the address … Noted for the seat". The report says carrier: seat · noted, not filed. Card item 1 asks that the page "shows the refusal with both names", so this is unfinished card scope, not a stray observation. Since this PR says Part of, name where it goes: either PR 2 of #37087 (add it to the claim amendment that dispatches PR 2, and say so in the body) or a filed #N. Replace "Noted for the seat" with that carrier.

R3 (claim/body): the L2 tier the claim names does not match this PR's face. The body and the changeset declare Clause-②: yes with no (narrowing). The ./namespaces/studio diff only adds lines (en +56, zh +56, no - line). The two removed exports (RuntimeArtifactType widened, baseShipsFormOff signature) are in @object-ui/app-shell, which is private: true. No packages/spec/src/** or governed path is touched. Read by contract-review.md, this is the declaration face, so TIER_DEFAULT is owed, which is the area's reading and mine. Claim 7251649959 still reads Clause-②: yes (narrowing) and owes "an isolated L2 at CONTRACT_REVIEW_TIER with ④" on PR 1. That is inherited from seat 3's claim, where the narrowing is PR 2's removed nav_public_forms key. Post a claim amendment line that PR 1 owes TIER_DEFAULT and the narrowing and its CONTRACT_REVIEW_TIER review move to PR 2, so that the seat's Tier H hand-off cites a tier the record carries.

Checklist (l1-face --pr 38484 at d558129: CLEAN, 13 items)

  • Shape: open draft → main, 51 files +3,008/−461, Part of #37087. That is right: PR 2 carries Fixes #37087 / #36444 under seat 3's two-PR cut (7248756424), and pm:dispatched stays. No closing keyword binds another card.
  • Scope: the claimed surface plus the three files of the surface amendment in claim 7251649959. I judge all three as delivering the claimed change, so they need no further amendment:
    • StudioMetadataArea.tsx: one branch that hands FormItemPage the area's customization. Only the area holds a read-only base's customization.
    • runtime-metadata-persistence.ts: form joins RuntimeArtifactType, and a form save invalidates the object's view caches, because a form save over an old shape removes the view row.
    • builtinComponents.tsx: the registration beside every other lazy editor page. The card's registry.ts placement is refused by check-side-effects-array, a reason that holds.
  • Changeset: @object-ui/app-shell, @object-ui/console and @object-ui/i18n, all patch (app-shell is private, and there is precedent at the root). Metadata-protocol: none, and Skills-docs: none is true.
  • Gates at this head: 45 success, 13 expected skip, 0 failed, 0 pending, mergeable_state clean. Lint & Repo Gates and TypeScript Type Check are both success. The local test readings are on 83c51d8238. 83c51d82..d5581291 is a pure rename of the changeset (numstat 0/0), so they carry over, and the check-runs on this head are the gate reading.
  • ③ SQL push-down: no server or query code.

My readings, at this head

  • The no-switch rule, in the tree. storedNow reads the layered form at the save target, plus the shipping package when the customization serves nothing yet. It takes sharing from effective, then draft, then code, and throws rather than guess. save writes enabled and allowAnonymous from it. publish re-saves a draft whose sharing differs before it publishes. A form never stored keeps the editor's own values. This matches card item 2 ("reads the effective form item … writes sharing.* back as it read them").
  • Setup's switch saves withSwitch(authorableForm(effective), on). authorableForm drops the read's _ keys and the old shape's data, which FormSchema refuses by name. The installed-app branch keeps the shipped-off refusal, "Restore package original", and the pending-draft guard. The shipped-off judgement reads the form layered code (ADR-0159 D6 rule 6).
  • FormPage reads /meta/form/NAME on the internal route only. The remaining-hits section lists each kept formViews / viewKind: 'form' hit with its reason, and MetadataProvider.tsx and the view editor's form arm are kept as the card requires.
  • I read the changeset sentence by sentence: the Setup list and switch on form, without data; the unchanged page; the new "no switch on an unreadable app document"; the editor with no switch, writing the stored sharing at save and publish; a shipped form saved as a declared override; form kept out of the menu; FormPage on /meta/form; the new keys. Each sentence matches the diff.
  • The dogfood readings and screenshots are in card-37087/pr1-dogfood/. The card's live check of an action-opened form and the removed-key probe are carried to PR 2, which is named.
  • Nit, no action: StudioMetadataArea.tsx imports PublicFormsDesigner statically, so the editor rides the Studio area's chunk even though builtinComponents.tsx lazy-loads it.

L2: TIER_DEFAULT (declaration face, R3). The area is running the isolated review and posts its record on the PR. After R1–R3, a delta L1 ACCEPT plus that record, then the dogfood battery from the landing head, then the seat's Tier H hand-off (card total over 3,000 lines).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u

Contract review

Served-tier: TIER_DEFAULT
Head-sha: d5581291b6506079564dec81175031d05b5d9bb3
Local-runs: none

Inputs read: card #37087 (body and all 12 comments: claim 7248756424, amendment 7248849494, dev report 7251244605, release 7251253363 and addendum 7251555985, seat-5 claim 7251649959), PR #38484 body, the net diff against main (51 files, +3008 / −461), and the 58 check-runs on this head: every completed run is success or skipped, none failed or pending (Check Changeset, Type Check UI, Test UI 16/16, Build & E2E UI, Live E2E UI, Lint & Repo Gates, Governed Surface Queue Guard and the PR-body guards included). The face is declaration: no packages/spec/** or governed path is in the tree, and no (narrowing) line is on the PR body or the changeset.

① Derived judgments

Published packages the diff reaches: @object-ui/i18n (public, exports ./namespaces/studio) and @object-ui/console (public; its code export . is only ConsolePlugin, and its published surface is the SPA in dist, which bundles the private @object-ui/app-shell; @object-ui/console is the only package that depends on it, as a devDependency). @object-ui/app-shell is private: true, so its module exports are not a published surface.

  1. @object-ui/i18n ./namespaces/studio: widened, right. It gains 55 keys in en.ts and the same 55 in zh.ts: 53 engine.studio.publicForms.* keys plus engine.list.col.publicAddress and engine.list.col.publicState. Both files show 0 removed lines, no other locale file is touched, and en and zh have the same key set. This is the only exported dictionary change, and it is a pure addition. addressTakenBy (which names the form holding an address) is among the new keys.
  2. @object-ui/console SPA, internal form route (FormPage.tsx): the read moves, right. It reads GET /api/v1/meta/form/NAME instead of /meta/view/NAME. The set of names it opens is unchanged: on this tree the server's form read projects every old shape (a container's form, a formViews entry, a viewKind: 'form' item) under the name it is served at today (projectViewForms → projectedItem in packages/spec/src/ui/view.zod.ts). A name that projects no form (a list) closes the address (protocol-form-reads.ts, step 3), so it gets a 404 and the not-found state. That replaces the client-side "is a … view, not a form view" throw, which is removed. The console now needs a server that has the form read. That server ships in the same 19.0.0-next train: card ②'s changesets are already consumed under .changeset/pre/, and metadata-protocol: the layered and per-package reads of type form do not serve a base's old-shape form, so Setup cannot judge an installed app's own form document #38437's layered-read fix is pending at the root, so it goes out in the same release as this change. Nothing published is narrowed by this.
  3. @object-ui/console SPA, Setup → Public forms: reads and writes move from view to form, right. The list read, both layered reads, the two save paths, the reset and the override save all name form. The body written is authorableForm(effective): the _ keys and data are dropped, because FormSchema refuses data. One behaviour change is fail-closed: a customization row whose app document reads as code: null is now shown as unknown with no switch, and a switch-on with no base is refused (load-failed). Before, such a row was switchable. The changeset declares this. It is a UI refusal, not an accept-set narrowing of any published contract.
  4. @object-ui/console SPA, Studio: a new form editor and list, widened, right. FormItemEditPage and FormItemCreatePage are registered as the form resource's EditPage and CreatePage, alongside the client listColumns (name or title, label, object, public address, status). form stays out of Studio's menu. This adds capability and removes nothing.
  5. @object-ui/app-shell module exports (private, bundled, not published): RuntimeArtifactType gains 'form', baseShipsFormOff drops two parameters, and authorableForm, FormItem*, FORM_LIST_COLUMNS and formListAddress / formListState are new. These are internal to the console bundle. Named for completeness; nothing is published.

No published export is removed or renamed, no translation key is removed, and no @objectstack/* package moves.

② Semver level

.changeset/37087-console-reads-form-items.md bumps @object-ui/app-shell, @object-ui/console and @object-ui/i18n, each at patch, with Clause-②: yes and Metadata-protocol: none. Right.

  • Level. AGENTS.md Post-Task Checklist step 3: "the level follows the kind alone … none takes patch". Nothing a metadata author can write changes here (the console reads and writes the form type card ② added), so none and patch are correct. The precedent for console strings over the form type, .changeset/pre/37086-form-type-console-strings.md, lists @object-ui/app-shell (private) and @object-ui/i18n at patch the same way. Each package the diff moves is listed, which matches the card's "a patch changeset on each released package the diff moves".
  • Clause-②: yes. New keys in an exported language pack make it yes, as the card's seat note says. The bare yes is well-formed (AGENTS.md allows at most one arm) and has 62 root precedents; yes (widening) would also be accurate.
  • No (narrowing) arm owed. Item ① found nothing published narrowed in PR 1: 0 keys removed, no export of a public package removed. The card-level Clause-②: yes (narrowing) in claim 7248756424 is driven by the removed Studio navigation label apps.studio.navigation.nav_public_forms.label and the Developer page strings. Both are PR 2's. So this tree owes the declaration face at TIER_DEFAULT, and PR 2 carries the narrowing face, its (narrowing) arm and its migration text. The seat claim's "L2 at CONTRACT_REVIEW_TIER with ④ on each PR" should be read in that light for PR 1.
  • Location. The note moved from ui/.changeset/ to the root, where Check Changeset counts it, and that check is green on this head. The body describes the change in business words and its Clause-②: / Metadata-protocol: lines match the PR body.

③ Boundary flags

Dev report 7251244605 has open_questions: [] and five out_of_scope_findings. Each is answered below.

  1. StudioMetadataArea.tsx (surface breach): accepted. It adds one branch: for a form item in a package area (type === 'form' && host?.packageId), it opens FormItemPage with the area's customization, publishNonce and onDraftSaved. Card item 2 needs this ("an installed app's form saved as a declared override in the app's .custom pair"), and only the area holds the read-only base's customization. Without a package host it falls through to the registered EditPage. The static import follows the file's own precedent (StudioPermissionSetPage). Seat amendment 7251649959 already adds the file.
  2. runtime-metadata-persistence.ts (surface breach): accepted. 'form' joins RuntimeArtifactType, and a form save invalidates the object's cached views as a view save does. Setup's switch saves through saveAndPublishInPackage('form', …), and card ②'s write rule removes the old-shape view row at that address, so the view caches would otherwise be stale.
  3. services/builtinComponents.tsx instead of metadata-admin/registry.ts (surface breach): accepted. A registration in registry.ts makes that module side-effectful, which check-side-effects-array refuses, and every other lazy editor page registers here. Card item 4 named registry.ts as the place; this does what the item asks in the place the repo's gate allows. No spec row is added, as the card requires.
  4. Setup's 409 FORM_ADDRESS_TAKEN does not name the holding form: escalated, see S1. It is worse than reported. serverRefusalText maps every non-403 refusal to publicFormsSetup.refusalServer, so the admin reads "Couldn't switch X: the server refused the change. Try again, or ask an administrator." That does not say the address is taken, and "try again" is wrong advice for a clash. Card item 1 ("the page shows the refusal with both names and leaves the form off") and its Done-when ("a taken address is refused with a clear message … at Setup's switch-on") are both in PR 1's cut (claim 7248756424). "Noted, not filed" leaves the item with no owner.
  5. Owed by PR 2:
    • Removed-key probe: accepted. PR 1 removes no key (0 removed lines in either studio file, no locale file touched), so there is nothing to probe until PR 2 removes nav_public_forms. The seat carries it into PR 2's claim amendment.
    • Live check of a form an action opens: not accepted as deferred, see S3. PR 1 is the change that re-points that route's read and drops its client-side non-form guard.

SQL push-down: no new id materialisation or in-app join over records. The designer's early address and name checks scan the effective form list plus form drafts, which is metadata, not records. Ruled question 3 gives the reason: it is the early message in front of the server's authoritative 409. Setup's per-row layered read for customization rows is the same shape as on main. No finding.

Findings:

  • S1 (should-fix): Setup → Public forms shows the generic refusalServer sentence for a 409 FORM_ADDRESS_TAKEN switch-on (PublicFormsSetupPage.tsx serverRefusalText). Card item 1 and the Done-when need a clear address-clash message that names both forms, and the server's refusal names both. Fix it here: match code === 'FORM_ADDRESS_TAKEN' to a publicFormsSetup key in the 11 locale files, under a surface amendment. Or the seat writes it into PR 2's claim amendment as an owed Done-when line. It must not stay "noted, not filed".
  • S2 (should-fix): The designer's refusalText (PublicFormsDesigner.tsx) maps every 409 to engine.studio.publicForms.draftConflict. A server FORM_ADDRESS_TAKEN that the designer's own check missed is therefore shown as "Someone else has a draft of this form pending. Reopen the form to see it." Card item 2 (ruled question 3) says "the designer shows the server's refusal when its own check missed". Fix: branch on the error code, mapping FORM_ADDRESS_TAKEN to the shipped addressTaken / addressTakenBy keys, and add one test. PublicFormsDesigner.test.tsx has no 409 case today.
  • S3 (should-fix): The live check of a form an action opens is deferred to PR 2, but PR 1 changes that route's read from /meta/view to /meta/form and replaces the client's non-form guard with the server's 404. Fix: add one step to the landing-head dogfood battery the seat already owes on PR 1, for example the showcase's Log Time opening showcase_task.form, a container's default form. The card's Done-when ("one live check and one test") is then observed on the PR that carries the risk.
  • N1 (nit): Until PR 2 retires it, Developer → Public forms (ui/apps/console/src/pages/developer/PublicFormsPage.tsx) still lists and saves view, while Setup and the designer write form. At an address a stored form row holds, that row wins, so the page can show a stale on/off state and its saves change nothing served. It is safe because it fails toward the form row, but it is confusing if a next release is cut between PR 1 and PR 2. Fix: land PR 2 in the same release, or add a changeset line naming the interim.

Implemented-by: claude/project-thread-yri9ke
Reviewed-by: session_01FEkQ5nBh856nLqWBYMy29u

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u

The brief the card thread handed its isolated TIER_DEFAULT reviewer for record 7251744213 (filled from record-recognisers.mjs --brief-template --face declaration; the reviewer was an isolated sub-agent, read-only, posted nothing itself; the seat thread adopts the record after reading this brief).

Contract review brief — PR #38484 @ d5581291b6506079564dec81175031d05b5d9bb3 (card #37087)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

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

⛔ 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/545f8edc-802d-59aa-9490-4e7bbede023a/scratchpad/37087/pr-38484/ 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).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

…e address clash

A 409 FORM_ADDRESS_TAKEN the editor's own check missed was shown as a
pending draft. Branch on the refusal's code: FORM_ADDRESS_TAKEN shows the
address sentence, any other 409 still shows the pending-draft one.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nBh856nLqWBYMy29u
… read

The real ActionRunner produces the Log Time URL; FormPage at that route
reads GET /api/v1/meta/form/NAME, never /meta/view, renders the record
and submits it.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5nBh856nLqWBYMy29u
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u
2026-11-29T07:23Z · Final green head declared for the delta L1 and the delta L2: 48a01c7ff71bbd997b18b498ae0e79f5b6e1a8e1 (was d5581291b6).

  • Checks at this head (pr-state.mjs): 47 success, 15 expected skip, 0 unexpected skip, 0 failed, 0 pending; mergeable_state clean. The patch round's overlap-check before the push: clean against origin/main a2205a8 and every open PR head.
  • d5581291..48a01c7f, fast-forward, 3 commits, 4 files: PublicFormsDesigner.tsx +12 (409 FORM_ADDRESS_TAKEN maps to the shipped addressTaken key, any other 409 stays draftConflict; L2 S2), PublicFormsDesigner.test.tsx +42/−1 (the address case and its CONTROL), FormPage.recordObject.test.tsx +39 (an action of type form opens its form through /meta/form; L2 S3), the changeset +1/−1 (one sentence for S2).
  • L1-b REWORK 7251700564: R1 ablation reading now in the PR body (two named tests red, restored to the HEAD blob); R2 carrier is claim amendment 7251711074 (PR 2), named in the body's Acceptance notes; R3 claim amendment 7251711074 moves the narrowing and its CONTRACT_REVIEW_TIER review to PR 2, PR 1 owes TIER_DEFAULT.
  • L2 7251744213: S1 carried to PR 2 (amendment 7251711074), S2 fixed with a test and an ablation, S3 live check plus a test, both readings in the body. Dogfood battery on d5581291b6: 4183 passed, 68 skipped, 0 failed; the four patch files are outside the dogfood closure (reading in the body).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5kjJ6Qm1z2mRox4ZbB

席位核对 — ACCEPT · L1-b · area o5-ux · Head-sha 48a01c7ff71bbd997b18b498ae0e79f5b6e1a8e1 · 2026-11-29T07:25Z

Delta review after REWORK 7251700564, reading d5581291..48a01c7f (fast-forward, 3 commits, 4 files +94/−2) plus the body and the claim amendment.

  • R1: closed. The body's "Ablation of the no-switch rule" section gives the card's ablation at d5581291. The sharing is taken from form.base.sharing, the body as it was opened, at the one point where both save and publish read storedNow. That turns exactly the two tests I named red: "has no switch …" (:376, the save leg) and the installed-app publish (:425, the publish leg). publicFormDesign.test.ts stays 29/29, which is expected, and the restore is checked against the HEAD blob 0e7cb3887b. The ablated line is unchanged by this delta, so the reading carries to this head.
  • R2: closed. The Acceptance notes name the carrier: PR 2 of Console reads and edits form items: Setup public forms re-pointed, the PR #36784 designer becomes the form editor in Studio (ADR-0159, card ③) #37087 under claim amendment 7251711074 (card item 1, "shows the refusal with both names"). The amendment says the same.
  • R3: closed. Amendment 7251711074 records that PR 1 owes TIER_DEFAULT (a bare Clause-②: yes, keys only added to ./namespaces/studio, the changed exports in the private @object-ui/app-shell), and that the narrowing and its CONTRACT_REVIEW_TIER review move to PR 2.
  • The code delta (L2 S2). refusalText maps 409 + code === 'FORM_ADDRESS_TAKEN' to the shipped engine.studio.publicForms.addressTaken (en and zh present), and any other 409 stays draftConflict. The code is real: the metadata client's MetadataError carries status and code (metadata-client.get-envelope.test.ts A9, firstWritePin toMatchObject({ status: 409, code })), and the server names FORM_ADDRESS_TAKEN (protocol-authoring-gate.ts ~143). The address case and its CONTROL are pinned, and the body records the ablation (branch deleted → the address case red, the CONTROL green).
  • L2 S3. The new FormPage.recordObject.test.tsx arm drives the real ActionRunner for a type: 'form' action to /forms/showcase_task.edit?recordId=42&recordObject=showcase_task. It asserts one GET /meta/form/NAME and no /meta/view, then the PATCH on submit. That is test-only.
  • The changeset. The new sentence ("When the server refuses a save or publish because another form already uses the address, the editor says the address is taken, not that a draft is pending.") matches the code. The rest is unchanged.
  • Gates at this head (comment 7252456007): 47 success, 15 expected skip, 0 failed, 0 pending, mergeable_state clean.

Still owed: the delta L2 at TIER_DEFAULT must PASS on this same head (it is running from the card thread). Then the landing goes as the claim records it. Part of #37087: the card stays open with pm:dispatched for PR 2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nBh856nLqWBYMy29u

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 48a01c7ff71bbd997b18b498ae0e79f5b6e1a8e1
Local-runs: none

Delta round over round-1 record 7251744213 (head d5581291b6). Inputs read: the delta d5581291b6..48a01c7ff7 (three commits, 4 files, +94 / −2), the updated PR #38484 body, claim amendment 7251711074 on card #37087, and the 62 check-runs on this head. Every check-run is completed as success or skipped, none failed or pending; Check Changeset, Type Check UI, Test UI 16/16, Build & E2E UI, Live E2E UI, Lint & Repo Gates, Governed Surface Queue Guard and the PR-body guards are all included. The face is still declaration: the tree touches no packages/spec/** and no governed path, and carries no (narrowing) line.

① Derived judgments

Round 1's judgments stand. What the delta changes:

  • PublicFormsDesigner.tsx (private @object-ui/app-shell, bundled into the @object-ui/console SPA). refusalText now maps a 409 whose code is FORM_ADDRESS_TAKEN to the shipped engine.studio.publicForms.addressTaken key; any other 409 still maps to draftConflict. The SPA's behaviour gets more accurate and no published contract moves. The real client sets both fields on the error it throws (parseError in ui/packages/data-objectstack/src/metadata-client.ts sets err.status and err.code), so the branch is reachable in production and not only in the test double. No key is added: addressTaken was already in round 1's 55.
  • FormPage.recordObject.test.tsx and PublicFormsDesigner.test.tsx: tests only, no surface.
  • @object-ui/i18n ./namespaces/studio: unchanged from round 1. It gains 55 keys in each of en and zh, with no line removed. Amendment 7251711074 says "+56", which counts the 56 added lines including one comment line. That is the same widening.

No published export or key is removed. Nothing published is narrowed.

② Semver level

.changeset/37087-console-reads-form-items.md keeps @object-ui/app-shell, @object-ui/console and @object-ui/i18n at patch, with Clause-②: yes and Metadata-protocol: none. Still right. The only delta is one added sentence in the Studio form editor bullet: "When the server refuses a save or publish because another form already uses the address, the editor says the address is taken, not that a draft is pending." It is business wording and describes the delta accurately. The kind stays none, so the level stays patch. No (narrowing) arm is owed. Amendment 7251711074 (R3) now records the same tier split this record's ② gave: PR 1 is reviewed on the declaration face at TIER_DEFAULT, and PR 2 carries Clause-②: yes (narrowing) with its CONTRACT_REVIEW_TIER L2 and ④.

③ Boundary flags

  • S1: closed. Carried by claim amendment 7251711074 (R2). PR 2 owes Setup's address refusal naming the form that holds the address, beside the form being switched on, with the key in every locale file. PR 2's file surface adds the 11 locale files. The PR body's Acceptance notes name that amendment as the carrier.
  • S2: closed. codeOf and the FORM_ADDRESS_TAKEN branch come before the generic 409 arm. Two tests cover it:
    • "shows the server's address refusal its own check missed (409 FORM_ADDRESS_TAKEN) as the address clash, at save and at publish" asserts the address sentence and the absence of the pending-draft sentence on both legs.
    • "CONTROL: shows any other 409 as a pending draft" keeps the draft-conflict arm.
    • The body reports an ablation: with the branch deleted, the address case goes red and the control stays green.
  • S3: closed.
    • The new test runs the real ActionRunner on { type: 'form', target: 'showcase_task.edit' } with record 42. It asserts exactly one GET /api/v1/meta/form/showcase_task.edit, no /meta/view read, the record prefilled, and a PATCH to /data/showcase_task/42.
    • The body records a live check on this head in examples/app-showcase. Log Time (showcase_log_time, type form, target showcase_task.form, a container's default form) reads GET /api/v1/meta/form/showcase_task.form with a 200 and no /meta/view read, renders prefilled, and its submit PATCH answers 200.
    • Together these meet the card's Done-when ("one live check and one test") on the PR that carries the risk.
  • N1 (nit): open, accepted as a deviation. The delta does not touch it. Developer → Public forms still reads and saves view until PR 2 retires it. It fails toward the stored form row, so it is safe. It is recorded here as an accepted deviation carried by PR 2's retirement of the page. The seat keeps PR 2 inside the same next release.
  • Delta SQL push-down check: no new id materialisation or in-app join. The delta maps an error and adds tests. No finding.
  • New findings: none.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-yri9ke
Reviewed-by: session_01FEkQ5nBh856nLqWBYMy29u

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

维护者速读

席位意见:同意合并。第 2 个 PR(收窄、契约档 L2)在本 PR 合并后开工,和本 PR 进同一个 next 版本。

席位核对 — ACCEPT · repo:objectstack#5 · Head-sha 48a01c7ff71bbd997b18b498ae0e79f5b6e1a8e1 · 2026-11-29T07:28Z

  1. 形态:open draft → main,51 files,+3100/−461,Part of #37087(PR 1/2),Clause-②: yes(新增 Studio 语言包键),Metadata-protocol: none,Skills-docs: none。PR 作者是 3 号座位(os-tesla),按交接由本座位审核落地(Release 7251253363)。
  2. 前提实测:Tier H(体量超 3,000 行,维护者落地)。L2 记录经 contractReviewRecordReading 本地读:7252479800 VERDICT PASS,Served-tier TIER_DEFAULT(本 PR 是 declaration 面,按 record-recognisers 恰等规则 L2 须为该档),Head-sha 即本 head,open 与 unreadable 均为空;第一轮 7251744213 的 S1–S3 已闭。
  3. 门禁 check-runs:本 head 47 success、15 skipped、0 失败,mergeable_state clean(卡线程绿灯评论 7252456007)。全量 dogfood 在上一 head d5581291 跑过:4183 过、0 失败;之后只动了 4 个 ui 文件,不在 dogfood 闭包里,读数写在 PR 正文。
  4. 接受的偏差:N1(第 2 个 PR 要进同一个 next 版本)记为接受偏差。
  5. 范围外去向:收窄(删 Studio 的 nav_public_forms 标签键)、Setup 409 报两个表单名 → 本卡第 2 个 PR(认领修订 7251711074),契约档 L2 带 ④。
  6. 落地条款:Tier H,维护者批准后才入队;L2(TIER_DEFAULT)PASS 7252479800 在本 head,无未闭须修/应修;L1-b delta ACCEPT 7252471427。批准后由席位落地(ready + auto-merge)。⛔ 未批不入队。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Approval requested (Tier H by size: 3,561 lines changed, over 3,000; Clause-②: yes) · 2026-11-29T07:29Z

  • Head-sha: 48a01c7ff71bbd997b18b498ae0e79f5b6e1a8e1
  • 维护者速读 and the seat's ACCEPT: the seat record above. L2 (TIER_DEFAULT) PASS on this head: 7252479800 (no open must-fix or should-fix; first round 7251744213). L1-b delta ACCEPT: 7252471427.
  • After your approval the seat lands it (ready + auto-merge); it stays draft until then.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 29, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 29, 2026 09:03
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit e68d23b Nov 29, 2026
68 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-yri9ke branch November 29, 2026 09:26
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…Public Forms page is retired (objectstack-ai#38619)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Jianguo** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9Ubb7NAv1vsLzLdMX44CnW7rhy)_

Fixes objectstack-ai#37087
Fixes objectstack-ai#36444

Clause-②: yes (narrowing) — released translation keys, one Studio
navigation entry and a console page are removed (listed under What
changes); two `publicFormsSetup` keys are added in every locale
Metadata-protocol: none
Skills-docs: none — no metadata an author writes changes; the Studio
page retired is a console page.

## 维护者速读

-
用户能看到什么变化:搭建者在应用搭建左侧菜单的「界面」分组里,「报表」下面多了一行「表单」,点进去是这个应用的表单列表,再点一个表单进设计器;原来「开发者
→ 公开表单」那一页没有了,旧网址自动跳到表单列表;管理员在设置里打开一个公开表单时,如果地址被别的表单占着,提示会同时说出两个表单的名字。
-
为什么做:属于「表单独立成一种元数据」专题里控制台这张卡的后一半;表单已经改在应用搭建里设计、在设置里开关,旧页面读写的还是旧存法,留着会让人改到不再生效的东西。
-
出错会怎样:最坏是搭建者在菜单里找不到「表单」,或旧网址跳不到表单列表;访客匿名打开和提交表单、管理员在设置里开关表单都不经过这次改动的代码;可以整体撤回。
-
要你做什么:这次改了一份架构决策记录里的表格、删掉了已发布的翻译条目,改动也超过三千行(大多是删掉的旧页面和它的测试),需要你本人批准,请在审核通过后审批。

## What changes

Card ③ of ADR-0159, PR 2 of 2 (PR 1 was objectstack-ai#38484). The claim is 7255649193
with amendments 7255720152, 7255945859, 7256242334 and 7256905062.

1. **Forms in Studio's menu.** `form` leaves `HIDDEN_DIRECTORY_TYPES`
(`metadata-admin/directoryScope.ts`), and `STUDIO_MENU_PLACEMENT`
(`studio-design/studioMenuPlacement.ts`) gains `{ type: 'form', tier:
'common' }` directly after `report`: the UI group, the common tier,
placed by name as the ADR-0084 amendment ruled. Being common, the row is
always listed, also in a package that holds no form, and the type
directory lists the type too. ADR-0084's type-to-group table gains the
`form` row (`view` and `action` move to 6 and 7) and one dated note,
nothing else; the table now has a row for each of the registry's 35
entries.
2. **Developer → Public Forms is retired.** The page module and its five
test files are deleted. The Studio app's `nav_public_forms` entry is
removed from `packages/platform-objects/src/apps/studio.app.ts`, with
`apps.studio.navigation.nav_public_forms.label` in the 11 translation
files and the 10 source-hash files. Both addresses of the page redirect,
in one hop, to Studio's cross-package list of forms
(`/studio/~all/metadata/form`): the standalone route
`/apps/APP/developer/public-forms` (`AppContent.tsx`) and the component
address `/apps/APP/component/developer/public-forms` (the key
`developer:public-forms` stays registered in
`registerDeveloperComponents.tsx`, as a redirect). The 47 keys under
`console.developer.publicForms` leave `@object-ui/i18n`'s
`./namespaces/developer` in every locale. Setup's navigation entry of
the same id is untouched, and the three pins still assert it.
3. **Setup names both forms when an address is taken.** When the server
refuses a switch-on with `409 FORM_ADDRESS_TAKEN`, the page reads the
forms again, finds the form that holds the address
(`publicAddressHolderOf`, which mirrors the server's `formHeldSlug` and
leaves the row's own layers out) and says: "Couldn't switch Request a
demo: the form “Talk to the team” already uses the same address. Give
one of the two forms another address in App Studio." When two forms
share a title, the holder's name follows in brackets. When the holder
cannot be read, the sentence says another form holds the address. Two
keys in all 11 locale files: `publicFormsSetup.refusalAddressTaken` and
`publicFormsSetup.refusalAddressTakenUnknown`. Any other 409 keeps
today's sentence.

Removed, for the record:

- Page: `ui/apps/console/src/pages/developer/PublicFormsPage.tsx`.
- Tests: `PublicFormsPage.emptyPlaceholderAffordance-8504.test.tsx`,
`PublicFormsPage.publicUrlBasename-11769.test.tsx`,
`PublicFormsPage.redirect.test.tsx`,
`PublicFormsPage.servedRule-11545.test.tsx`,
`PublicFormsPage.sharedSelect-11865.test.tsx`; the `PublicFormsPage`
cases in `consolePagesLocale-13460.test.tsx` and
`developerMetadataEnvelope.contractEnvelope-6917.test.tsx`.
- Navigation entry: `nav_public_forms` of the Studio app (component
`developer:public-forms`), with its label key.
- Keys: the 47 under `console.developer.publicForms` (shipped since
18.2.0).

References the removal touched (claim: "only where they name the removed
page"):
`ui/.claude/skills/objectui-contributor/guides/console-development.md`
(the pages tree, the developer routes line, one legacy-redirect line).
`ui/scripts/markdown-test-inputs.mjs`,
`scripts/check-ci-filter-parity.mjs` and the `ci.yml` path lists do not
name the page and are not changed.

Tests that enumerate the listed types, changed to add `form` only:
`studioMenuPlacement.test.ts`, `studioMenuModel.test.ts`,
`StudioMenu.test.tsx`. `StudioPaletteGroups.surfaceScope-36900.test.tsx`
needed no change.

Read first (by risk):

1. `ui/packages/app-shell/src/views/setup/publicForms.ts`,
`publicAddressHolderOf`: which form is named as the holder, and which
layers of the row itself are left out.
2. `ui/apps/console/src/registerDeveloperComponents.tsx` and
`AppContent.tsx`, the two `<Navigate>` redirects: a bookmark of either
address must land on a page.
3. `docs/adr/0084-application-builder-information-architecture.md`: the
`form` row and the note.

Two-minute check: `pnpm --dir ui exec vitest run
apps/console/src/__tests__/publicFormsRetired-37087.test.tsx` prints 8
passed; or open `/apps/setup/developer/public-forms` in a running
console and land on Studio's list of forms.

## Tests

- `studioMenuPlacement.test.ts`: `form` is listed and common, directly
after `report` and so directly before `view`; CONTROL `field` and
`package` stay hidden; the ADR-0084 table pin now reads the `form` row.
- `studioMenuModel.test.ts`: the directory rule lists `form` on a
package and still drops `field` and `package`; the UI group's tiers.
- `StudioMenu.test.tsx`: the row is drawn after Report above the fold
with the package's list address; the count shows when the package holds
forms; CONTROL no `form` served, no row.
- `publicForms.test.ts`: `publicAddressHolderOf` (another form on the
slug, switched on or off; the row's own base, override and package-less
layers left out; nothing found) and `isAddressTakenRefusal` (status and
code both required).
- `PublicFormsSetupPage.test.tsx`: the refusal names the holder; equal
titles add the name; holder unreadable; CONTROL another 409 keeps the
old sentence.
- `publicFormsRetired-37087.test.tsx` (new): each address lands on
`/studio/~all/metadata/form` in one hop (a recorder logs every
location), no query or fragment carried, the key stays registered by the
console, the page module is gone, CONTROL the neighbouring developer
route still renders.
- Catalogue pins moved with the keys (claim amendment 7256905062; the
pins and one comment line each, nothing else):
`ui/packages/i18n/src/__tests__/developer-namespace.test.ts` (the en
catalogue has 184 leaves where it had 231, so its floor of 200 becomes
150) and `de-quote-pairing-3876.test.ts` (the de pack holds 134 paired
quote spans where it held 133, at both pins: the new refusal's
„{{holder}}“).
- Pins:
`packages/platform-objects/src/apps/console-page-nav-entries.test.ts`,
`packages/cli/test/console-page-nav-entries.pin.test.ts`,
`packages/cli/test/connect-agent-both-halves-wire.pin.test.ts`: the
Studio app serves no `nav_public_forms` and names no
`developer:public-forms`; Setup serves exactly one, with
`forms:public-forms`.

## Acceptance notes

Driven in a browser on `examples/app-showcase` (`objectstack dev --ui
--seed-admin` on its own port and data file, the console's dev server
proxied to it), head `afcf5fb1` before the merge of main. Two shipped
public forms: the old-shape `showcase_inquiry.contact` (served through
the projection) and the `form` item `showcase_inquiry.feedback`. Every
step ran on the old-shape form.

| Step | Result |
|---|---|
| An administrator sees Public forms in Setup, an ordinary member does
not | Admin: the sidebar entry and the list. A member minted through
`admin/create-user` (role `member`): `/api/v1/meta/app` serves no
`setup` app, and the page's address answers "Only system administrators
can manage public forms." |
| Both forms listed with title, object and address | Share feedback and
Tell us about yourself, Inquiry, `/f/showcase-feedback` and
`/f/contact-us`, both On |
| Switch one off, then on | Off: `/f/contact-us` shows Page not found
without signing in, `GET /api/v1/forms/contact-us` 404, submit `404
FORM_NOT_FOUND`; the row stays listed as Off. On again: the form renders
and a submit answers 201 |
| Edit a shipped form in Studio and publish | Title changed, Company
made required, Source added: the anonymous page shows all three; a
submit without Company answers `400 VALIDATION_FAILED` ("Company is
required"), with it 201. Then Source removed and published: it is gone
from the anonymous page |
| Create a public form with four fields at a new address | Request a
demo on Inquiry at `request-demo` (Name, Email, Message, Company), saved
into the app's `.custom` pair, published; filled in and submitted
without signing in (201, the thank-you page); the record reads back with
the four values; Setup lists it |
| A taken address is refused, in the designer | Editing: "The form
“showcase_inquiry.feedback” already uses this address. Choose a
different one." and Save draft is disabled. Creating: "Another form
already uses this address. Choose a different one." and Create is
disabled |
| A taken address is refused, at Setup's switch-on | Request a demo,
switched off, was given `/forms/contact-us` through the metadata API (a
save that leaves a form closed is never refused; the designer's own
check would have stopped it). Switching it on: `PUT … 409`, the switch
stays off, and the message names both forms, in English and in Chinese.
CONTROL: with its own address back, the same switch saves |
| Removing an object-required field is refused with its reason | "“Name”
cannot be removed: the object requires it, so a submission without it
could not be saved." |
| Off in Setup, then edited and published in Studio | The designer's
save carries `sharing.enabled: false`; after the publish the address
still answers 404 and takes no submission, and Setup still shows Off |
| An action of type `form` opens its form | On a task, Log Time
(`showcase_log_time`, target `showcase_task.form`): `GET
/api/v1/meta/form/showcase_task.form` 200 twice, no `/meta/view` read,
the form renders with the record |
| `form` in Studio's menu | After Report in the UI group, with its count
(Form 7), in English and Chinese (表单); a package with no form (Setup's)
shows the row too |
| The retired page's addresses | `/apps/setup/developer/public-forms`,
`/apps/showcase_app/developer/public-forms` and the two
`/component/developer/public-forms` addresses each land on
`/studio/~all/metadata/form`, which lists the 8 forms |

Screenshots (project files, `/mnt/project-files/card-37087/pr2/`):
Setup's list `01-setup-public-forms-admin.png`, the member's view
`02-…`, the Studio list `12-studio-form-list.png` and
`24-studio-form-list-zh.png`, the editor
`06-studio-form-editor-shipped.png` and `14-studio-new-form-editor.png`,
the refusal `20-setup-switch-on-address-taken.png` and `21-…-zh.png`,
and one per step above (24 files).

The showcase does not mount the `studio` app, so the navigation entry's
removal is shown by the three pins, not live.

**Removed-key probe** (does a user's translation of a removed key get
refused):

- In a project's files: yes, and it already was. A stack that does not
define `studio` and translates
`apps.studio.navigation.nav_public_forms.label` gets `error
translation-target-unknown`, before and after this change. A stack that
owns the Studio app gets no finding while the entry is declared and the
same error once it is removed, which is why the 11 translation files
lose the key in this PR.
- In an environment: no. A `translation` item naming the removed key,
saved through the metadata API, saves and publishes with
`_diagnostics.valid: true`, exactly like one naming a live Studio key or
Setup's entry (three probes, then deleted). That door judges no targets
today. The key then translates nothing. The changeset says so and tells
the reader to delete it.
- `console.developer.publicForms.*` are console catalogue keys with no
metadata door: an override in a deployment's own i18next resources stops
applying, as the changeset says.

**Remaining hits** of `git grep -nE "formViews|viewKind: 'form'|viewKind
=== 'form'" -- ui ':!**/CHANGELOG.md'`: 81 lines in 34 files, none in a
console surface that reads a form's definition.

- `providers/MetadataProvider.tsx` and its merge test: the branch that
keeps `viewKind: 'form'` items out of the list switcher, kept by the
card until major 19.
- The `view` editor's form arm under `metadata-admin/` (`anchors.ts`,
`previews/ViewPreview.tsx`, `view-item-normalize.ts`) and its tests: it
still edits a `view`, kept by the card.
- Docblocks and comments only: `FormPage.tsx`,
`recordFormNavigation.ts`, `SchemaForm.tsx`, `clientValidation.ts`,
`registry.ts`, `freeze-schema.ts`, `imported-defaults.ts`.
- Tests that pin the old shape as refused, retired or filtered
(`formViewFeaturesRootRefused-6262`, the two `internalFormRetired-36425`
files, `data-objectstack`'s `listViews` tests, `view-create-body`,
`clientValidation.*`, the inspectors' tests), and one dated audit under
`ui/docs/audits/`.
- The retired page's hits are gone with the page.

Not changed here, reported to the seat:

- `carrier:` ADR-0159 D9's table still names the retired page and D10
still lists the menu row as owed; the weekly ADR revisions card carries
both at landing (the claim keeps ADR-0159 out of this PR).
- Admitted by claim amendment 7256242334 and still not changed: the
`form` row of `StudioMenu.tsx`'s icon table (the menu row draws the UI
group's icon), and two comments that name what this PR changes, in
`services/builtinComponents.tsx` ("`form` stays out of Studio's menu")
and `plugin-form/src/submitRedirect.ts` (`PublicFormsPage`). The
session's permission check declined the icon-table edit twice; it was
not retried, the three files are byte-equal to main, and the three items
go to a follow-up.
- Never admitted, and left as it is: the docblock of
`ui/apps/console/src/components/submitRedirect.ts` says the Public Forms
dialog calls `checkSubmitRedirectUrl` at save time; with the page gone,
the only caller is `resolveSubmitRedirect` in the same file.
- The designer's early clash message names the other form by its
internal name, not its label (PR 1's surface).

## Verification

Head `81426a31`: `origin/main` `696d02f5` merged in at `bf797ae1`, then
the two catalogue pins. Changed lines 3731 (+785 / −2946, 72 files),
over the 3000-line human-merge threshold; 2787 of the deleted lines are
the retired page with its five test files (2248) and its 47 keys in 11
locales (539).

- **Build**: `pnpm exec turbo run build --filter=!@objectstack/docs
--concurrency=3` at `bf797ae1`, 123 of 123 tasks, exit 0.
- **Unit tests**: the related UI suites, `@objectstack/platform-objects`
`src/apps` and the two CLI pins are green at the head (readings below).
- **Type checks**: `turbo run type-check` of `@object-ui/app-shell`,
`@object-ui/console` and `@object-ui/i18n` (each covers its test files;
82 of 82 tasks, 53 from cache), then `typecheck` of
`@objectstack/platform-objects` and `@objectstack/cli`, at the head
under the verify lock: VERDICT command-exit 0.
- **Gates**: `dispatch-gates --commands` derives 81 commands at the
head; all 81 exit 0. `--ran`: 81 derived, 81 run, 0 NOT-MEASURED, 0
UNRUN.
- **Changeset**: `check-changeset-no-major --base origin/main` and
`check-adr-0087-registration --base origin/main` pass; the changeset's
`adr-0087` marker is `not-required (no-migration-prescription)` (no spec
schema or registered type changes, and no stored item stops parsing).
- **Dogfood battery**: the full battery at the head, `pnpm --filter
@objectstack/dogfood test` under the verify lock (no shard, no path),
after its closure build (79 of 79 tasks): VERDICT command-exit 0 (held
1,948 s); Test Files 495 passed, 3 skipped (498); Tests 4187 passed, 68
skipped (4255); no failure, and nothing left in the tree.
- **Browser**: the acceptance table above, on head `afcf5fb1` (the tree
before the merge of main and the two pins; main brought no `ui/` or
`examples/` change).
- **Overlap**: `overlap-check` at the head, against `origin/main`
`48da7161` and the open PRs that share a file: main merges cleanly;
objectstack-ai#38612 (the 11 locale files) merges cleanly; objectstack-ai#38598 (the retirement of
`/studio/~org`) conflicts in `studioMenuModel.test.ts`, on two
neighbouring lines of one expectation (its `automation` row loses
`orgFlows`, this PR's `ui` row gains `type:form`). Verdict exit 1: this
PR queues behind objectstack-ai#38598.

<details><summary>Unit test readings</summary>

- `pnpm --dir ui exec vitest run --maxWorkers=2 packages/i18n
packages/app-shell/src/views/studio-design
packages/app-shell/src/views/setup
packages/app-shell/src/views/metadata-admin apps/console/src/__tests__
apps/console/src/pages/developer` at `bf797ae1`: Test Files 2 failed,
1324 passed (1326); Tests 3 failed, 14645 passed, 14 skipped (14662).
The three reds were two catalogue pins this branch moves:
`developer-namespace.test.ts` (the en catalogue's floor of 200 leaves;
231 became 184 with the 47 keys gone, floor now 150) and
`de-quote-pairing-3876.test.ts` (the de pack's paired quote spans, 133
became 134 with the new refusal's „{{holder}}“, at both pins). Claim
amendment 7256905062 admits the two files.
- After the pins moved: those two files and
`packages/app-shell/src/__tests__/product-neutral-renderer.ratchet.test.ts`,
3 files, 83 passed.
- `pnpm --filter @objectstack/platform-objects exec vitest run
src/apps`: 42 files, 885 passed.
- `pnpm --filter @objectstack/cli exec vitest run
test/console-page-nav-entries.pin.test.ts
test/connect-agent-both-halves-wire.pin.test.ts`: 2 files, 6 passed. The
CLI reads `@objectstack/platform-objects/apps` from `dist`: before that
package was rebuilt, both new assertions were red on the old build (the
Studio app still served `nav_public_forms`).
- `pnpm --dir ui exec vitest run scripts/` (in the derived list): 172
files passed, 2 skipped; 5159 tests passed.

</details>

<details><summary>Gate notes</summary>

- `node scripts/check-plugin-teardown-shape.mjs --self-test` exits 3 on
a shallow clone until its pinned fixture commit is fetched (`git fetch
--depth=1 origin 621a487`); then 48
cases pass.
- An earlier loop at `bf797ae1` recorded `vitest run scripts/` and
`check:type-check-debt` as NOT MEASURED (the verify lock was held by
this thread's own unit run). The loop reported above is the second one,
at the head, with nothing else holding the lock.
- Beside the derived list, from `ui/`: `check:i18n-keys`,
`check:i18n-drift`, `check:i18n-dead-keys`, `check:spec-symbols`,
`check:new-line-citations` and `check:skill-examples`, exit 0 each.

</details>

<details><summary>Ablations (four, one behaviour each)</summary>

Run at the head through `scripts/ablation-replace.mjs` under
os-verify-lock; each anchor hit once, each mutation was verified on
disk, and each restore ended with the file's blob equal to HEAD and `git
diff HEAD` empty. Expected direction was red for each, and each went
red.

| Mutation | Run | Result |
|---|---|---|
| `directoryScope.ts`: `form` back in `HIDDEN_DIRECTORY_TYPES` |
`studioMenuPlacement.test.ts`, `studioMenuModel.test.ts`,
`StudioMenu.test.tsx` | 3 files failed; 10 failed, 97 passed of 107.
Red: the directory rule, the rows-equal-listable-types check, the `form`
placement, the ADR table pin, the always-listed row and the three `form`
menu cases |
| `PublicFormsSetupPage.tsx`: the `isAddressTakenRefusal` branch never
taken | `PublicFormsSetupPage.test.tsx` | 3 failed, 9 passed of 12. Red:
both forms named, equal titles, holder unreadable. The CONTROL (another
409) stayed green |
| `AppContent.tsx`: the `developer/public-forms` route deleted |
`publicFormsRetired-37087.test.tsx` | 4 failed, 4 passed of 8. Red: the
three standalone-route cases and the no-query case. The component
address, the registration, the page-gone check and the CONTROL stayed
green |
| `registerDeveloperComponents.tsx`: the registered component renders
nothing | same file | 2 failed, 6 passed of 8. Red: the component
address and the no-query case |

Restored baseline: the five files, 127 passed.

</details>

## Owed before landing

- The contract review (L2), then the seat's L1.
- The maintainer's approval (Tier H: `docs/adr/**`, `ui/.claude/**`, the
narrowing, and 3731 changed lines).
- The queue behind objectstack-ai#38598: the two PRs conflict on one expectation of
`studioMenuModel.test.ts`. Whichever lands second merges main and keeps
both edits (the `automation` row without `orgFlows`, the `ui` row with
`type:form`).
- A dogfood battery from the landing head.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jV8fqvAbRv26gu8ZYB

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… at boot (objectstack-ai#38682)

<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ844kETyNGBBt9atKc1Snfzd)_
Part of objectstack-ai#37444
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:看不到界面变化。打开 Console 的每一页时,首屏不再提前下载 Studio 的翻译包(约 82
KiB);表单列表的「开/关」文字在打开 Studio 列表时才加载。
- 为什么做:objectstack-ai#38484 之后,表单列表的列定义在启动时就静态引入了 Studio 翻译模块,把 objectstack-ai#38429
已经挪出首屏的翻译包又带了回来(objectstack-ai#37444 的固定对照测量发现,评论 7264938326)。
- 效果:首屏少下载 82 KiB;但复测对象列表 LCP 只快 15 ms(p 0.54,误差内),仍比 2500 ms 超约 68
ms。所以本 PR 修掉回退,不关卡;列表剩下的差距在渲染 CPU,归 objectstack-ai#37575。
- 出错会怎样:最坏是表单列表「开/关」一栏首次显示时晚一帧;可直接撤回。
- 要你做的:无。发布冻结期保持 draft。

## What changes

-
`ui/packages/app-shell/src/views/studio-design/publicForm/formListColumns.tsx`
no longer imports `../../metadata-admin/i18n.js` statically. The form
list's On cell loads the designer string table with `React.lazy` on
first draw; the Studio list has already loaded that module by then, so
it resolves at once.
- `services/builtinComponents.tsx` still registers `FORM_LIST_COLUMNS`
at boot, but the boot closure no longer reaches the metadata-admin i18n
module, so the built Console's `index.html` no longer preloads
`i18n-ns-studio-en` (70.8 KiB) or the metadata-admin i18n chunk (10.3
KiB): 134 modulepreloads, list 229 → 225 scripts before LCP.
- Pin:
`ui/packages/app-shell/src/services/__tests__/builtinComponents.formListWordsOffBoot-37444.test.tsx`
— (1) the walk sees the edge it guards (ResourceListPage reaches the
designer table); (2) `builtinComponents.tsx` reaches no designer table
through static imports; (3) the On cell renders "On"/"Off" after the
lazy load.
- Changeset: patch, `@object-ui/app-shell`.

## Tests

Head `e1bbe0b8` (reworded to `394a0455` for the commit-trailer check;
identical tree):
- Under the lock: the new pin plus `studio-design/publicForm` and
`firstScreenStudioCatalogue-37444`: 4 files, 54/54 passed; `ui
scripts/__tests__/check-i18n-call-site-keys.test.ts`: 152/152 passed.
- Ablation (`scripts/ablation-replace.mjs`): a static `import { t } from
'../../metadata-admin/i18n.js'` put back into `formListColumns.tsx`
turns case 2 red (1 failed, 2 passed); restored, blob == HEAD.
- `pnpm --filter @object-ui/app-shell type-check`: exit 0. `pnpm
console:build`: exit 0; `index.html` has no `i18n-ns-studio` or
metadata-admin i18n chunk.
- Browser, branch production build:
`/_console/studio/~all/metadata/form` shows "On" for
`showcase_inquiry.contact` and `showcase_inquiry.feedback`.

## Measurement (production build, HTTP/2, Lighthouse desktop, ruling
conditions)

One session, arms branch / base `f5da514b` / control `1afd9c13`, 20 runs
per arm per page; control list 2535.1 ms, inside the pre-set band, so
scored; no block discarded.

| page | branch | base | branch − base |
|:--|--:|--:|--:|
| object list | 2568.4 | 2583.4 | −15.0 ms (p 0.54, 95% CI −60…+71) |
| record | 2446.9 | 2434.3 | +12.7 ms (p 0.81) |

The cut restores the bytes but has no measurable LCP effect; the
done-when stays unmet on the list. Readings and instrument: project
folder `card-37444/a-measure/recut/`; report comment 7266607998 on
objectstack-ai#37444.

## Verification

- `dispatch-gates --commands`: 38 derived, 38 run, all exit 0 (`ui
scripts/` vitest re-run with `--maxWorkers=2` after an OOM kill while
measurement servers were up: 172 passed, 2 skipped). `--ran`: 0
NOT-MEASURED.
- `overlap-check.mjs`: clean against origin/main; `git merge-tree`
against origin/main at push: clean.
- CI check-runs: read on this PR.

Files to read first: `formListColumns.tsx` (the lazy On cell).
Two-minute check: open Studio → Forms list; the On column reads
"On"/"Off".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01JQwxbamiNxp7695qyaEYsH

<!-- signed: repo:objectstack#2 · os-warren ·
session_01JQwxbamiNxp7695qyaEYsH -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…s five records) (objectstack-ai#38774)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBHuLciv5hYVYUu4pypDP48J)_

Part of objectstack-ai#38438

Clause-②: no
Metadata-protocol: none

This pull request carries seven of the card's nine rows. The two
ADR-0161 rows stay on the card; see "Rows not carried".

## 维护者速读

- 用户能看到什么变化:用户无感;只在五份设计记录里补了七条带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 29
日这一周);清单每一行指出一处「记录写的和主线不一致」或「记录留给某项工作回答、那项工作已经做完」,这次把代码已在主线的七行一并补齐。
- 出错会怎样:最坏是某条说明写得不准,照着设计记录干活的人会被带偏;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这七条说明并批准一次(设计记录须由你本人批)。

## What changes

Five ADR files gain seven notes dated 2026-11-30. Every diff line is an
addition: 62 lines added, 0 removed. No original decision text is
rewritten, and no decision changes. Each note follows the note
convention its own record already uses, and each says that the passage
it is read with is left as written.

Each row's "what is true now" was read against the code on `main` before
its note was written. Where a row's wording did not match the tree, the
note says what `main` does; the last column says so and the list under
the table gives the detail.

| ADR · section | Was (the record's words) | Now (what the note records)
| Source PR | Row on the card · result |
|:---|:---|:---|:---|:---|
| ADR-0084 · amendment of 2026-11-28, item (3) | "one landing for every
door is not ruled"; the command palette's package entries, an app's
design-in-Studio entry, the empty menu's entry and Setup's doors "still
open the object list" | One landing is ruled: ruling record 7247357556
on objectstack-ai#37958, the maintainer's 「OK」, quoted with its question. Every door
lands on the package's overview, `/studio/PACKAGE/overview`.
`/studio/PACKAGE/data` stays a working address for the object list. The
review-changes deep link still opens the Changes drawer over the object
list and is read as no door, by a seat reading and not by a ruling |
objectstack-ai#38501 | Card body row and 7252442785 · **written, corrected to the
tree** (two labels, the date) |
| ADR-0084 · the note of 2026-11-29 on the `form` row (near line 219) |
"The same change takes the type off the directory's hidden types and
brings its designer" | True of card objectstack-ai#37087, loose for the change: objectstack-ai#38484
brought the designer, and objectstack-ai#38619, which wrote the row, lists the type
(off the hidden types, a place in the menu) | objectstack-ai#38484, objectstack-ai#38619 |
7258423977 · **written as an added note** (the row says "Reword") |
| ADR-0037 · TL;DR item 2 and the "What already exists" table | "the
streaming build tree (`data-build-progress` parts)", and a table row
that marks "`data-build-progress` stream parts" shipped | The
build-progress stream frame is retired. Its reader left with the build
chat frontend, its producer with the cloud build loop, and its
declaration left `@objectstack/spec/ai`. The upgrade guidance is the
migration entry `ai-build-progress-frame-retired` | objectstack-ai#38398 (reader:
objectstack-ai#37720) | 7250363289 · **written** (one sentence beyond the row) |
| ADR-0150 · the note of 2026-11-26, bullet "Reads stay the missing
name" | "Three reads at `_env` still answer `409` at this head
(`?state=draft`, `?preview=draft`, `?layers=true`), and card objectstack-ai#34261
carries their move to `404`." | The move has landed. For a name only
disabled packages hold, each of the three answers its own `404` and
names no package, on both transports. An enabled package's stored draft
that the plain read does not see keeps the `409` for the two draft reads
| objectstack-ai#38633 | 7259890438 · **written, corrected to the tree** (codes and
callers made exact) |
| ADR-0150 · D4, the engine's flow-map row | The table keys the engine's
flow map by `(package, name)` and says nothing of the status rows read
from it | Each status row carries the `packageId` of the engine slot it
reads, so `(packageId, name)` names one row. The toggle door reads back
the row of the slot it switched, and echoes the request only where the
reading cannot name that flow | objectstack-ai#38652 | 7266385586 · **written** |
| ADR-0085 · the note of 2026-11-27 | "Neither key is in the spec yet:
`ObjectSchema` is strict and refuses both until objectstack-ai#37792 lands
`pinOverview` and objectstack-ai#37802 lands `fieldTabs`." | `pinOverview` is in the
spec, an optional boolean on `ObjectSchema`; `false` means the desktop
full record page never pins. An object extension does not carry the key.
`fieldTabs` is still refused | objectstack-ai#38679 | 7271302663 · **written**, no
`fieldTabs` line |
| ADR-0146 · the note of 2026-11-24 (near line 908) | "A `.custom`
package that is not the object's pair is not applied, and the boot log
names it." | Maintainer ruling 7268226134 on objectstack-ai#36548, item 5, arm (c),
verbatim 「保存和安装都拒绝」. A non-pair `.custom` package that writes
`fieldGroups`, `relatedLists` or `actionLayout` on an object extension
is refused at the save, the restore, the draft promotion, a package
duplicate and marketplace install. Where no door can read the installed
packages, the sentence stands | objectstack-ai#38706 | 7272564306 · **written,
corrected to the tree** (statuses; the duplicate's answer corrected in
patch round 1) |

### Rows not carried

- **ADR-0161, two rows** (Consequences, "The service keeps none of its
own"; K7 components table, "Split algorithm version"). The claim for
this pull request leaves that file out, because pull request objectstack-ai#38764 was
open on the same record when the claim was written. objectstack-ai#38764 merged at
2026-11-30T13:15:16Z, while this branch was being verified, and the
prerequisites both rows name (objectstack-ai#38307, objectstack-ai#38401, objectstack-ai#38375, objectstack-ai#38452) are
merged. Pull requests objectstack-ai#38730 and objectstack-ai#38732 (card objectstack-ai#38692) are still open and
both write ADR-0161, so that record still has other writers. By the
seat's call on the card (comment 7280598106) the two rows stay on objectstack-ai#38438
behind them, and this pull request is `Part of objectstack-ai#38438`.
- **ADR-0085, a `fieldTabs` line.** Its pull request, objectstack-ai#38742, was open
and a draft when this was opened (read at 2026-11-30, head
`59220bf331`). The card says that line follows when it merges.

Every prerequisite of the seven rows is merged on `main`: objectstack-ai#38398,
objectstack-ai#38501, objectstack-ai#38484, objectstack-ai#38619, objectstack-ai#38633, objectstack-ai#38652, objectstack-ai#38679 and objectstack-ai#38706. The newest
comment on the card when this was opened is the claim, 7279134045; a row
added after it is not in this pull request.

### Where a note differs from its row

- **ADR-0084, item (3).** The row names Setup's doors "Open in Studio"
and "Customize in Studio". The labels on `main` are "Open in App Studio"
and "Customize in App Studio", and the note uses them. The proposed text
was dated 2026-11-29; the note is dated 2026-11-30, the day it was
written into the record. The note names the three Setup doors one by one
and says of the review-changes deep link what the row says: no door, by
a seat reading, not by a ruling.
- **ADR-0084, the `form` row.** The row says "Reword". The card's rule
is that a row lands as an added dated note, so the 2026-11-29 note stays
as written and a note under it says which pull request did which half.
- **ADR-0037.** One sentence goes beyond the row: Phase 2's first
invalidation source, the `buildProgress.items` diffs, was the same
signal as the chat held it, and no code under `ui/` holds it any more.
Cut it if the note should carry the row alone. The note also names the
producer's retirement in the cloud repository and what a host does that
still streams a progress part of its own.
- **ADR-0150, the reads.** The row's proposed sentence gives `404` for
`?preview=draft` and `?layers=true`. The note gives the code the tree
answers, `404 RESOURCE_NOT_FOUND`, says that these are the answers to a
caller admitted to the switch, and that a caller who is not admitted
gets the plain read's `404`. It adds two facts from the tree: a
package-less draft is withheld while a disabled package holds the name,
and the layered view answers `404` under the leak guard.
- **ADR-0150, D4.** The note spells out the three cases where the toggle
door still echoes the request. The row's proposed sentence leaves them
out.
- **ADR-0085.** The row offers a "Built by" line in the style of an
earlier note. The note carries it and also restates what `false` does
and why an object extension does not carry the key, both from the row's
own "what is true now".
- **ADR-0146.** The row gives one code for every door. The tree answers
`VALIDATION_ERROR` with status 400 at the save, the restore and the
draft promotion, and with status 422 at marketplace install, with
nothing installed. A package duplicate saves each copied row through the
save door and lists a refused row in its own `failed[]`, with the save
door's sentence and no code, storing nothing for that row. The note says
all three, and that no error code is minted.

## Patch round 1 (head `04cc5911`)

The contract review at `947b7e64` (comment 7280965486) passed with one
should-fix: the ADR-0146 note put `VALIDATION_ERROR` / 400 on the
package duplicate. Commit `04cc5911` corrects this branch's own
2026-11-30 note to the tree (`duplicatePackage` reports the refused row
in `failed[]`) and adds one sentence from item 3 of ruling 7268226134 (a
target whose owner the door does not know is not judged by role). Only
that note moves: +9 / -3 inside it, and the branch is still +62 / -0
against `main`. Dev report: card comment 7281379369. Sections below that
name `947b7e64` record the first round.

## Tests

Docs only. No package source is touched, so no package test and no type
check is owed for the change. No tested behaviour changed, so there is
no ablation.

Checked on the committed text at `947b7e64`:

- Each phrase a note quotes from its ADR is in that file as it stands on
`main`. A script compared them. One quotation, in the ADR-0085 note,
reads as the sentence renders: the record links its two card references
and the quotation does not.
- Each verbatim maintainer quotation was compared with its record on
GitHub (7247357556 and 7268226134).
- Each path a note cites exists on the tree. The one exception is
deliberate: the ADR-0037 note names
`packages/spec/src/ai/build-progress.zod.ts` to say that the module is
gone.
- Each test title a note quotes is in the test file the note names.
- A probe on the spec source: `ObjectSchema` accepts `pinOverview:
false`, refuses `pinOverview: "no"`, and refuses `fieldTabs` as an
unrecognised key; `ObjectExtensionSchema` refuses `pinOverview` as an
unrecognised key, with its guidance.
- Upstream moved four commits while this was written. The branch merges
`main` at `f576dee5`; none of the four touches one of the five files or
a path a note cites. `overlap-check` answers `VERDICT clean exit 0`
against that `main`, and no open pull request shares a file with this
branch.

Two tests read these records from disk. Both were run on `947b7e64`
under the verify lock, after building what each needs:

-
`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts`
reads ADR-0084's type table: `Test Files 1 passed (1)`, `Tests 21 passed
(21)`.
- `packages/qa/scenarios/test/score/entry.test.ts` reads ADR-0150's D1
table: `Test Files 1 passed (1)`, `Tests 14 passed (14)`. Its first run
answered `Failed to resolve entry for package "@objectstack/types"`, a
missing build in the fresh worktree and no verdict on this change; it
passed once that package's build closure was built.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 21 commands, run on commit `947b7e64` (patch round 1
ran the same 21 on `04cc5911`, all exit 0). Each exit code was captured
before any pipe. Reconciliation: `Run reconciliation — 21 derived, 21
run, 0 NOT-MEASURED, 0 UNRUN`. The same 21 were derived and run on the
commit before the merge, with the same result.

<details><summary>ADR gates on 947b7e6 (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4597
anchors across 165 records resolve`, 0 line anchors survive. On the base
commit the gate read 4570, and 4593 with this change alone; the other
four come with `main`. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1284
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | `check-adr-anchors: OK (135 anchored
file(s), every governing ADR still referenced` |
| `pnpm check:adr-index` | 0 | `adr-index --report: OK —
docs/adr/README.md is current, every record parsed` |
| `pnpm check:doc-authoring` | 0 | |
| `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 29015 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm check:pm-governed-merges` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building `@objectstack/spec`, `@objectstack/formula` and
`@objectstack/lint` under the verify lock |

</details>

<details><summary>The other derived families on 947b7e6 (all exit
0)</summary>

`node scripts/check-closing-keyword-parity.mjs` and its `--self-test`,
`node scripts/check-comment-mask-corpus.mjs`, `node
scripts/ci/plan-test-core-shards.mjs --self-test`, `pnpm
check:ci-filter-parity`, `pnpm check:cross-package-test-inputs`, `pnpm
check:driver-memory-census`, `pnpm check:gitlink-declared`, `pnpm
check:pm-prior-rulings`, `pnpm check:refd-timer-probe`, `pnpm
check:watch-hint-literal`.

Before the last push: `node scripts/check-commit-card-trailers.mjs
--range origin/main..HEAD` exit 0, two commit messages (three after
patch round 1, also exit 0), no card relation and no model identifier in
the trailer pair.

</details>

<details><summary>A local-only reading that is red for a reason outside
this change</summary>

`pnpm check:dev-prereqs` exits 1 in this worktree: "The workspace is not
built", 105 of 110 workspace packages have no build output. It judges
the machine and not the diff, CI does not run its scan, and a fresh
worktree that builds only what a docs change needs reads this way. It is
not in the derived list.

</details>

Not run locally: the repository test project behind `test:repo`, and
every package suite. CI runs them on the pull request and on the merge
group. Every other family CI runs is read from this pull request's check
runs, not re-run here.

## Acceptance notes

- **Changeset.** None, and the pull request carries `skip-changeset`.
`docs/adr/**` ships in no package.
- **Governed surface.** `docs/adr/**` lands on the maintainer's
approval. This pull request stays a draft; the seat arranges the review
at the tier this surface owes and hands it over.
- **Why "Part of".** The card says it ends when its pull request merges.
Two of its rows are not here, so merging this one must leave the card
open.
- **Seen and left alone.** These are outside the seven rows and are not
changed here.
- ADR-0037's Status line says all four phases are implemented. On this
tree the console's canvas-invalidate signal has a subscriber and no
publisher: nothing calls the bus function that emits it. It is a
candidate row for the card of this name.
- ADR-0150's D4 note of 2026-11-10 gives its own end condition, an
earlier card landing. That card ended on 2026-11-12, and the record
carries no line that says so. A possible row; not judged here.
- Comments in the chat plugin still name the retired build-progress
part, and one test fixture uses the name as an open `data-` part. Not a
record, so not a row.

## Verification

### Read first

1.
`docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`,
the note of 2026-11-30 under the note of 2026-11-24. The highest-risk
hunk: it quotes a maintainer ruling, and it draws the line between the
doors that refuse and the places where the old sentence still stands.
Check the two statuses and the list of places with no door.
2. `docs/adr/0084-application-builder-information-architecture.md`, the
amendment of 2026-11-30 under the amendment of 2026-11-28. It quotes a
maintainer ruling and lists every door; check the list, and the sentence
on the review-changes deep link, which records a seat reading and says
so.
3.
`docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`,
the first amendment note of 2026-11-30. Check the three answers, who
gets which, and the leak-guard paragraph against the tests it names.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect five
rows under `docs/adr/`, each with `0` in the removed column, and 62
added lines in total (2, 4, 18, 28 and 10). Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`anchors across 165 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS)_

<!-- signed: repo:objectstack@os-support-ai · os-support-ai ·
session_01WGufzhPdWmTd47Fi2bKYZS -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants