Repository navigation
Description
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Source: ADR-0159 (PR #36957), decisions D1 to D6 and D8, and its five ruled merge questions. Parent: #36868, card ② of five. Maintainer ruling 2026-11-24, record 7123091354 on #36444: 「拆成 form 类型,对外表单并入」. The five merge questions are ruled (ruling record 7131569242 on #36868, 2026-11-24: 「表单拆成独立 form 元数据类型的 5 个合并问题 都同意」, all option A); questions 1, 3, 4 and 5 are requirements of this card, marked below. They are decided: ⛔ none is re-opened here.
Parent card #36868 (the ADR step) is done: ADR-0159 merged in PR #36957.
Metadata-protocol: narrowed
Clause-②: yes (narrowing)
(Seat note: the (narrowing) arm is fixed by Metadata-protocol: narrowed; the changeset gate reads narrowed beside a line without it as a contradiction, and the arm brings the title's ! and the dogfood battery. The seat confirms the yes at claim; yes is expected: a new metadata type, new exports, and item 7's new error code, which is always yes.)
Grading: area:build · Feature · adds the form metadata type and serves it · builders and administrators who author or publish forms · evidence: ADR-0159's readings at main 62692b7f8b. p1 by the blocker rule (#36444 waits on card ③, which waits on this).
What to build
One releasable change. Nothing an author wrote stops loading, and view reads behave as before. Old-shape writes save as before with one exception (item 5): a package-less view write that would store a list at a name a read-only package authors as a form item is refused, and some of those saves are admitted today. That is why the card is narrowed and not added (a value refused is narrowed; several kinds take narrowed over added).
- The type (ADR-0159 D2, D3). A
FormSchemainpackages/spec/src/ui/, derived by reference fromFormViewSchema:name(qualifiedOBJECT.KEY, the part before the last segment must equalobject),object(required),label(optional), the form body at the top level (ruled question 5: noconfigwrapper), plusprotection, the ADR-0010 fields and the ADR-0146overridesdeclaration. NoviewKind,config,isDefault,orderorscope.datais refused by name with the prescription to bind withobject.objectmust name an object the package can reference, judged where a view's object is judged today (os validate, publish) (D2). - Registration, in one change: the
MetadataTypeSchemamember, theDEFAULT_METADATA_TYPE_REGISTRYrow (page's flags; file patterns**/*.form.ts|yml|json; the suffix is free once item 3's rename has moved the Studio modules off it), the metadata-core lockstep enum, the type-to-schema map, the stack collectionformswith its plural and singular map entries, andform: listedinOVERRIDE_TYPE_CLASSIFICATION(the pin incustomization-package.test.tsfails without it). The showcase'sKIND_COVERAGErow with one authoredformitem: a new public form on an address no other form holds (examples/app-crmandexamples/app-showcaseboth publish/forms/contact-ustoday; take another). ⛔ No action targets it and no existing form is moved: the console reads forms fromviewuntil card ③ (Console reads and editsformitems: Setup public forms re-pointed, the PR #36784 designer becomes theformeditor in Studio (ADR-0159, card ③) #37087), so an action-openedformitem would answer not found.- Hand-keyed per-type arms outside the registry. List in the PR every arm keyed on
'view'underpackages/rest/src,packages/metadata-protocol/srcandpackages/spec/src/kernel(git grep -nE "=== 'view'|'view'," -- packages/rest/src packages/metadata-protocol/src packages/spec/src/kernel), and for each say whetherformtakes an arm and why. Read at254e396a29e: the per-caller read gate, its packaged-base map and its translate arm inpackages/rest/src/meta-item-read-gate.ts;META_COMPILE_CACHE_TYPESinpackages/metadata-protocol/src/meta-compile-cache.ts;packages/spec/src/kernel/metadata-create-seeds.ts;packages/rest/src/meta-app-bundle-routes.ts. A caller who is refused a form's document at/api/v1/meta/view/NAMEtoday is refused it at/api/v1/meta/form/NAME.
- Hand-keyed per-type arms outside the registry. List in the PR every arm keyed on
- The factory (ruled question 1 = A).
defineFormbecomes this type's factory and the existing Studio schema-bound metadata-form helper is renameddefineMetadataForm, both in this card, as a declared compiler-carried export break.- Scope of the rename, counted from the tree (ADR-0159 question 1, "For the cards"; at
689e5695b98git grep -lw defineFormnames 60 files, 41 of them code). Count again at your own head and put the count in the PR:- 17
*.form.tsmodules underpackages/spec/srcthat import and call it; - 3 that declare, export or build around it:
packages/spec/src/ui/view.zod.ts,packages/spec/src/index.ts, andpackages/spec/tsup.config.ts, whose pure-constructor set names it (the renamed helper joins that set); - 4 tests: 3 under
packages/specthat call it, 1 underpackages/lintthat names it in a test title; - 17 that name it only in a comment: 10 tests (9 under
packages/specandpackages/lint, 1 underui/) and 7 sources (3 underpackages/lint/src, 2 underpackages/spec/src/system,packages/cli/src/utils/config.ts,scripts/i18n-bundle-surface.mjs); - 19 that are not code: 6 generated outputs to regenerate (the
packages/specAPI-surface and export-origin snapshots, the generated reference page), 9 released or historical texts ⛔ not edited (sevenCHANGELOG.md, a released notes page, an audit), and 4 hand-written (twopackages/spec/liveness/files, one internal skill under.claude/, this ADR). The.claude/file is a governed path: leave it out of this PR and name it in the report for the seat.
- 17
- The file suffix moves with the name (ADR-0159 D2; the owning seat's routing on question 1, seat record 7132202077 on PR docs(adr): ADR-0159 — forms are their own metadata type; amend ADR-0017 and ADR-0146 D2 #36957, not the ruling's own words). The
formtype takes*.form.ts. The 17 Studio modules are renamed*.metadata-form.ts, andMETADATA_FORM_MODULE_SUFFIXinscripts/i18n-bundle-surface.mjsbecomes.metadata-form.ts. Readers of the suffix, measured at689e5695b98(count again at your head):- the one matcher,
scripts/i18n-bundle-surface.mjs(constant and predicate), and the files that spell the suffix beside it:scripts/pm/dispatch-gates.self-test.mjson nine lines across several cases (5641 to 5691, and 5881), one of which assertsendsWith('.form.ts')on the live walk (line 5662) and so fails as soon as the modules are renamed; the kind text inscripts/pm/dispatch-gates.data.mjs; a fixture path inscripts/pm/landing-k.mjs; the comments ofscripts/check-i18n-bundles.mjs(lines 163 to 170).scripts/ablation-dist-preflight.mjsnames a temporary fixture fileskill.form.tsand reads no suffix.scripts/pm/dispatch-gates.mjs(Tier H) imports the predicate and spells no suffix: ⛔ do not edit it; if your head shows it must change, stop and report; - import specifiers: 31 files under
packages/spec/srcimport a.formmodule (the seven domain barrels,system/metadata-form-registry.ts, 23 tests). Thirty spell it./NAME.form;packages/spec/src/kernel/repeater-item-titles.test.tsimports 15 modules as../DIR/NAME.form. Sweep by both spellings; - text that teaches the suffix: re-word it, do not re-point it. Once
*.form.tsis the new type's suffix, "a*.form.tsmodule bindsdata" teaches the wrong root for an app'slead.form.ts. Name the Studio modules by their new suffix in: thedataroot explanation inpackages/lint/src/rule-explanations.ts; thedataarm of the message inpackages/lint/src/validate-expressions.ts(it spells*.form); the docblock wording ofpackages/lint/src/validate-visibility-predicates.tstogether with the twotoContainpins on it invalidate-visibility-predicates.test.ts, and a third string pin in the same test file, on the emitted text: the tokens the explanation of the mislayered-root rule must print (theMOVEDtable lists*.form.tsforVISIBILITY_ROOT_MISLAYERED, line 1904 atbe1c0cbd4da), which changes with the explanation inrule-explanations.ts; and the row "Metadata-editing forms (*.form.ts)" incontent/docs/protocol/objectui/layout-dsl.mdx; - generated outputs that print the module paths (
packages/spec/export-origins/): regenerate, never hand-edit; - path citations in ledgers, checklists and comments (
packages/spec/liveness/,docs/qa/platform-checklist/areas/, comments underpackages/lint/src,packages/cli/src,ui/packages/app-shell/src/views/metadata-admin/): re-point the ones that name a live file; released text (aCHANGELOG.md, a released changeset, a migration entry of a past major) is not rewritten; - prove the rename with the i18n bundles:
node scripts/check-i18n-bundles.mjs --writechanges no bundle value, andpnpm check:i18nis green.
- the one matcher,
- First step, before any edit: read the seat's outside-use reading on this card (a comment that carries the output of
gh search code defineForm --owner objectstack-aiand the head of each repository read). If the card carries none, take the reading yourself the same way and record the tree and commit of each repository in the PR. "Outside use" is any import or call ofdefineFormfrom@objectstack/specoutsideobjectstack-ai/objectstack. The ruling rests on that use being platform-internal. - If outside use is found (one hit is enough): stop and report
needs_decision. The fallback is a new factory name, ⛔ never a dual-meaning overload, and by the ruling it returns to the maintainer for a word before it is built. It is not the dev's or the seat's to take.
- Scope of the rename, counted from the tree (ADR-0159 question 1, "For the cards"; at
- The projection (D5): one pure function beside
expandViewContainerthat turns aviewbody into theformitems it carries (the container'sform, eachformViewsentry, aviewKind: 'form'item), under the name each is served as today, an item'sconfiglifted to the top level (ruled question 5). It is the only reader of the old shapes for form content: loader, stored-row read, doors, withdrawal judgement and lint all call it.- A projected item is served as the form is served today. It takes
objectfrom today's four-rung resolution (anonymousFormObjectName) and its body unchanged (D5). ⛔ The authored-only refusals of item 1 (databy name; the name's prefix equalsobject) are not applied to a projected item: the view item never enforced that equality (D3), and nothing an author wrote stops loading. Rule 7's "cannot be read" (item 6) is a body the projection cannot turn into items at all, ⛔ never an item that fails an authored-formrefusal.
- A projected item is served as the form is served today. It takes
- Reads and writes of
form: authored items plus projected ones, a projected item marked in its read envelope; an authored item shadows a projected one of the same name in the same package, inside one layer (a package's source item over the projection of its own source; a storedformrow over the projection of a stored row at the same address), and ⛔ a package's source item never shadows the projection of a stored row; aformsave, reset or delete at(package, name)also removes the old-shape row carrying that form at that address, in the same transaction (an item-shapedviewrow deleted, a stored container re-saved without the form). ⛔ It removes form content only: a list item of typeviewthat holds the sameOBJECT.KEYname is left untouched.- A stored old-shape row keeps replacing its base's form when the base moves to
form(ADR-0159 D5, D6 rule 11). The overlay merge runs inside one type today (mergePackageAwareOverlay), and a package may move its source toforms:while a storedviewrow still stands over the form (card ④ does that to first-party apps). So the effectiveformread resolves a package's form over both types in the one served-row order (servedOverlayRowCandidates): the storedviewrow that order picks at the package's address — the pair's declared override, a row bound to the package, a package-less row, a stored container whose expansion writes the name — is served, as theformitem it projects, over the package's sourceformitem of that name. A storedformrow at the same place in the order wins over the storedviewrow. - A declared
formoverride is admitted where the base ships the form in either type (ADR-0159 D4, D7-b).judgeOverrideWriteasks "does the base ship this item" inside one type today and refusesdeclared_package_ships_no_such_item(packages/metadata-protocol/src/protocol-packaged-base-refusal.ts). Forformit reads the base's forms through the projection as well, so aformoverride of a base that still authors an old shape saves. Card ③'s Setup switch and designer write exactly this row, and until card ④ every first-party form is an old shape: without this read a public form of an installed app cannot be switched off from Setup. Aformoverride of a name the base ships in neither type is still refused. - A stored
viewrow that carries no form at a form's name is read as written over the form only in three bindings (ADR-0159 D5): two are closed by a write door that exists today, the third by a refusal this card adds. A list and a form of one name are two items (D3), so a list row closes nothing by sharing a form's name. Nothing is served for the name from the package only where the row is: a declared override of the package (the override write gate refuses a declaration of an item its base does not ship in that type,declared_package_ships_no_such_item); a row bound to a read-only package (once the package ships the name as aformitem, aviewsave naming the package there is a new item in a read-only package and is refused,WRITABLE_PACKAGE_REQUIRED); or a package-less row, an item or a stored container whose expansion writes the name. ⛔ A list saved in a package beside the form (an app of the environment's own, or the base's pair as the pair's own item with nooverrides) is never read this way, as an item or as a container's expansion: the form stays served. A row in a writable package is that package's own item, and a read-only package's ownviews:container that expands a list at the name of its ownformitem is its list beside its form. - For the served
formread the projection reads served rows only (ADR-0159 D5). A storedviewrow enters the effectiveformread through the projection only where the served-row order serves that row today; a row the order passes over is projected into no served read (it stays in whichever withdrawal layer reads it today, where it may only narrow). ⛔ Do not project every storedviewrow. "Served" is asked at each package's address, inside theformread's own resolution over both types, and ⛔ never taken from the effectiveviewlist: one row can be the served row at one package's address and be passed over at another's (a package-less row is in every package's order). Once a read-only package authors its form informs:it has left theviewtype, so theviewmerge no longer resolves its address; a package-less row that stands over its form is still the served body there, whatever a writable package holds at the name. The case it decides: a package-lessviewrow that carries an open form, behind a writable package's ownviewrow that carries a list of the same name, is read by no layer today and both doors answer404; they answer404after this card too. - Add one refusal, kept as long as rule 11's replacement check is kept (card ⑤ does not remove it): every package-less
viewwrite that would store a list at a name a read-only package authors as aformitem (informs:; a form the projection reads out of a package's old shape does not trigger it). No door of today closes it: ADR-0146 D11's close (packagelessOverlayWriteRefusal) refuses only where its ceremony would move the row (it stays open for a name several packages ship, a base whose pair cannot be formed or ensured, a container body, a row whose pair already holds the item), and the container name-collision refusal inprotocol-save.tsjudges names shipped asviewitems. ⛔ Do not build it by extending the D11 close: it must not ask the state of the base's pair or how many packages ship the name. It covers a save, the publish of a draft, and a rollback to a version that carries a list at the name (a delete is not judged: it stores nothing), of an item and of a container whose expansion writes the name (judge the expansion as the readers place it, as the container name-collision refusal does), and a re-save of a row already stored (the stored row keeps its bytes). It sits beside the container name-collision refusal and answers with its envelope (VALIDATION_ERROR,400); no new error code. The message names the form and the two saves that work whether or not the base has a pair: another key, or the list saved into an app of the environment's own. ⛔ It never prescribes a save under a name another stored row holds. A package-lessviewwrite that carries a form at the name is an old-shape write of the form and saves as before. It refuses saves that are admitted today, where the package's form is still an old-shapeviewitem: several read-only packages ship the name; the base has no pair that can be formed or ensured; a re-save of a stored row whose pair already holds the item; a container that overlays the package's own container by its own name. Name these and the door that remains in the changeset. - Known limit, fail-closed: a package-less row that carries a list at the name and was stored before this refusal judged the write (before the package shipped anything under the name, or through a corner today's doors leave open) is read the same way, an item and a container's expansion alike (today's answer inside one type). The form's layered read names the row that stands over it.
- Measure first: does any write door admit a declared override whose body carries no form at a name its base ships as a form (a list item saved over a form's name)? Record the reading in the PR with the tree and commit, and report it either way. The disposition at major 19 of a row that carries no form over a linked base is ruled (ruling record 7136809727 on 表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868 (「两类特殊的旧存储行怎么处置。不考虑」)): it gets none of its own and stays as stored. The measurement says only whether the declared row can exist. If a door admits it, the closed-reading pin below gains that row as a second fixture in this change.
- A stored old-shape row keeps replacing its base's form when the base moves to
- The anonymous doors and the withdrawal judgement over both types (D6, rules 1 to 9 and 11): candidates from the effective
formread, resolved over both types as item 5 says, so a stored row that closes an address by replacing its base's body keeps closing it; the withdrawal layer is the effective lists and the per-package layers of bothformandview, old shapes passed through the projection first; narrowing only, in both directions; identity is the served name and, inside one name, the whole item, so a same-name withdrawal closes the form whatever slug either side declares, and a definition under another name is a different form (rule 6: the slug match decides no case in this layer); a stored body the projection cannot read closes the links it names and says so once aterror, naming the row (type, name, package), the links it closed, and the way out that exists in this release: an old-shape save that repairs the body. ⛔ The message names no command that does not ship; the ceremony card (⑤a) adds the ceremony's name to it.404 FORM_NOT_FOUNDfor a switched-off form is unchanged. The tenancy intake advisory and the organization-scoped refusal judgeformwrites too.- The reader of old-shape withdrawals is exempt from ADR-0087's kit age-out (ruled question 4 = A, D6 rule 10, D7; a permission boundary). Build the read of a withdrawal in a stored old-shape body as its own named function inside the two-type layer, and mark the exemption where it lives: ADR-0159's id and the words "exempt from the ADR-0087 age-out; leaves only by a release whose upgrade precheck refuses a deployment still holding an old-shape form row" in its docblock, and its own anchor file in
scripts/adr-anchors/. ⛔ It is not registered as an ADR-0087 conversion-layer entry, so no retirement clock starts on it. No withdrawn public form may re-open. The precheck itself is card ⑤'s (major 19).
- The reader of old-shape withdrawals is exempt from ADR-0087's kit age-out (ruled question 4 = A, D6 rule 10, D7; a permission boundary). Build the read of a withdrawal in a stored old-shape body as its own named function inside the two-type layer, and mark the exemption where it lives: ADR-0159's id and the words "exempt from the ADR-0087 age-out; leaves only by a release whose upgrade precheck refuses a deployment still holding an old-shape form row" in its docblock, and its own anchor file in
- The public address clash (ruled question 3 = A). The
formwrite door,os validateand publish each refuse aformwhose open slug another form already holds, naming both forms. It is a refusal on the new type only: an old-shapeviewwrite keeps today's first-match behaviour, and nothing an author has today narrows. "Another form" is judged over the effectiveformread, so a projected old-shape form holding the slug counts. A form holds an address while itssharing.publicLinknames it, switched on or off (ADR-0159 question 3, "What holds means"): a switched-off form that keeps its link still holds it. The refusal is judged at everyformsave that leaves the form open, Setup's switch included. That reading is the record's own, marked outside the ruled block. It refuses one arrangement that is served today: a retired form that keeps its link, switched off, beside its successor open on the same address. The doors keep serving what is stored; the successor's nextformsave andos validateare refused, naming both, until the retired form's link is cleared. A new error code goes through the ledger (check:error-code-casing). - Translations (D8): the
formsfamily in the bundle schema, the extractor and the translation lint; the translator readsforms.NAMEfirst and the form tails underobjects.OBJECT._views.KEYas the declared fallback; section copy keepsobjects.OBJECT._sections.SECTIONas its object-level default.labelanddescriptionunder_views.KEYare not form tails: they are neither moved nor read as a fallback (ADR-0159 D8). - Lint: the form walkers read
formitems and the projection; the consumer-less warning of D1 (successor ofform-view-internal-not-loaded). ⛔ It is not raised for an item that declaresoverrideswhen the base's form of that name has a consumer: an override with no link over a linked form is what keeps that address closed, and a warning that it steers nothing would invite its removal. ⛔ No new warning, notice or deprecation for an old shape in this card:form-view-internal-not-loadedstays as it is and is the only advisory on the old shapes (D5). - Leave the ADR id in the code, and anchor the doors' two-type read and the exempt withdrawal reader in
scripts/adr-anchors/(one file per anchor).
Done when
- A stack with
forms: [...]loads, servesGET /api/v1/meta/formand/api/v1/meta/form/NAME, and publishes;os validaterefuses a name whose prefix differs fromobject, an authoreddatakey, and a taken public address; the metadata save door and publish refuse the taken address too. Each of the three refusals has a pin asserting status andcodeand naming both forms, one pin shows an old-shapeviewwrite on a taken slug still saves as before, and one pin shows aformsaved open on the address of a switched-off form is refused (ablate: the switched-off half of the holder read). - A
formsave, a reset and a delete at a name a list item of typeviewholds each leave the list row byte-equal (ADR-0159 D5; ablate: the form-content test of the old-shape row removal). - A
formsave, a reset and a delete at(package, name)each remove the old-shape row that carries that form, in the same transaction: an item-shapedviewrow is gone; a stored container is re-saved without the member, its lists byte-equal; aformwrite that fails leaves both rows as they were. - The override gate over both types (item 5): a
formoverride saved through the save door into the pair of a base whose form is an old-shapeviewitem is admitted; aformoverride of a name the base ships in neither type is refuseddeclared_package_ships_no_such_item(ablate: the projection half of the gate's "ships" read; the first save is refused). - The projection serves what is served today (item 4): an old-shape form whose
data.objectdiffers from its container's object answers on both doors as before this change, byte-equal on the resolve door (ablate: parse projected items withFormSchema; the form is closed or dropped). - Rule 9: in an organization-scoped environment a
formsave that would leave a withdrawn form open is refused as the sameviewsave is today, with the withdrawal held in the other type (status andcode; ablate: theformarm of the write-time judgement). - The address clash never refuses a save that leaves the form closed: switching off either form of a clashing pair saves (ablate: judge the clash on every
formsave). - Translations (item 8):
forms.NAME.titlewins overobjects.OBJECT._views.KEY.title; the tail is read when the family has no value;objects.OBJECT._views.KEY.labelis not read for a form; the extractor emits no_viewstail for an authoredformitem. - The consumer-less warning (item 9): raised for an item with no link that no action targets; not raised for an item that declares
overridesover a base form that has a consumer; no new advisory is raised for an old shape. - The per-type arm inventory of item 2 is in the PR, with one pin: a caller refused a form's document at
/api/v1/meta/view/NAMEis refused it at/api/v1/meta/form/NAME. - The row that carries no form at a form's name (ADR-0159 D5), two pins, each with an ablation:
- the bound: over a package that authors an open
formitem, a list saved package-less at the form's name is refused (status400,codeVALIDATION_ERROR), a package-less container whose expansion writes a list at that name is refused, and both are refused where the base's pair cannot be ensured; the same list saved into an app of the environment's own, and into the pair as its own item, saves; after all of them the two doors serve the package's form at its address (ablate: the bound, by letting the reading take any storedviewrow of the name; the doors answer404. Ablate: the expansion half of the refusal; the container saves and the doors answer404); - the closed reading: a package-less
viewrow that carries a list at the name, seeded as stored, keeps both doors at404at the package's address, and so does a stored package-less container whose expansion writes a list there (ablate: fall through to the package's sourceformitem when the stored row projects no form).
- the bound: over a package that authors an open
- Served rows only (ADR-0159 D5), one pin with an ablation: a writable package's own
viewrow that carries a list, and a package-lessviewrow of the same name that carries an open form; both doors answer404at the form's address before this card's change and after it (ablate: project every storedviewrow into theformread; the address answers). A second fixture, for the address: a read-only package authors an openformitem, and a package-lessviewrow of that name whose form has no link stands over it; a list of the name is then saved into an app of the environment's own, and into the pair as its own item; both doors answer404at the package's address before the list is saved and after it (ablate: take the served rows from the effectiveviewlist; the address answers). - A stack that still authors the three old shapes loads unchanged, and each of its forms is also served as a
formitem under the same name.GET /api/v1/meta/viewanswers exactly what it answered before (pin against a fixture taken before the change). - The public form of
examples/app-crmanswers at its address before and after, byte-equal on the resolve door. - The eight D6 pins exist, each asserting status,
codeand that no record was written, each with one ablation run recorded in the PR (rebuild, on-disk mutation proof, restore proved by an emptygit diff HEAD):- withdrawn by a
viewoverride in.custom, open as an authoredformof the same name (ablate: theviewhalf of the layer); - the mirror (withdrawn by a
formoverride, open as an old-shape item in the base); the withdrawing row is written through the save door, not seeded (ablate: theformhalf of the layer); - withdrawn in a container's
formViewsentry, open as aformitem named for the expansion (ablate: the projection step of the layer); - withdrawn in a body of the same name whose link names another slug than the open definition's: both doors answer
404at the open definition's address (ablate: the whole-item match of rule 6, by making it require an equal slug); - a per-package-layer withdrawal in either type (ablate:
getMetaItemsPerPackagefor that type); - an unreadable old-shape body closes its links, and the boot error names the row, the links and the repair save (ablate: rule 7);
- replacement across the types (rule 11): a stored
viewoverride in.customwhose body has nopublicLink, over a base that authors the same name as an openformitem, and its twin with a package-less row: both doors answer404at the base's address (ablate: the cross-type resolution of item 5, by serving the package's sourceformitem when the stored row is aviewrow); - the submit door refuses wherever the resolve door does.
- withdrawn by a
- The exempt reader:
pnpm check:adr-anchorsis green with its anchor; the unreadable-body andview-override pins above are the ones that turn red when it is removed (their ablations say so). - The PR records the outside-use reading for
defineForm(question 1) before the rename's first commit. customization-package.test.tsis green with the new row; the showcase coverage test is green.- Changeset:
minoron every package the diff moves,Metadata-protocol: narrowedin the PR body and the changeset; the BREAKING banner and the ADR-0087 disposition for thedefineFormexport change (ruled question 1), with the FROM and TO mapping (defineFormfor a schema-bound Studio form becomesdefineMetadataForm), and for the refusal of item 5: the saves it refuses that are admitted today, and the one-line fix (another key, or the list saved into an app of the environment's own). Exactly one ADR-0087 disposition marker covers the export break and the refusal together: a registered semantic entry, or a category that rests on a checked fact. ⛔ Notnot-required (no-migration-prescription): it is refused on a declared narrowing. The seat settles theyesof theClause-②:line and the PR title's!at claim against that export break. By the maintainer's sequencing ruling (「B:全部放进下一个大版本,升级命令先自动转换、再切换」) this card and card ③ (Console reads and editsformitems: Setup public forms re-pointed, the PR #36784 designer becomes theformeditor in Studio (ADR-0159, card ③) #37087) ship in the same major release, so no release serves a publicformitem that Setup does not list, and the changeset carries no sentence about that gap. The gap exists onmainbetween the two merges only. Skills-docs: follow-up #Nin the PR body, naming the skills card (Skills teachforms:as the one way to declare a form, andviews:as lists only (ADR-0159, card ④s) #37105). The docs pages follow in First-party sources author forms asformitems: examples move toforms:, skills and docs teachforms:(ADR-0159, card ④a) #37088.skills/**is not in this card's surface.packages/specgenerated artifacts regenerated and committed.
Not in this card
- No tombstone, no conversion, no stored-row ceremony, no upgrade precheck (card ⑤).
- No rename of any form (ruled question 2 = A: the name stays
OBJECT.KEY). - This card stays one card, spec and server together (the seat's call, on the ruling record). If the diff passes the 3,000-line threshold the cut is fixed and is no one's to choose again: PR A is item 3's rename and suffix move alone (no behaviour;
defineFormis absent between the two PRs, ⛔ never dual-meaning); PR B is everything else, with the doors' two-type read and every security pin in one change. Both land before the next release, the major, is cut. - No console behaviour change (card ③). The shipped console keeps working against
view. The comment and path-citation re-points underui/that item 3 lists are in scope. - No move of example or HotCRM sources beyond the one showcase item (card ④).
Security
The doors change which metadata type they read an anonymous admission from. A dev that finds a way to re-open a withdrawn form reports it through the private channel and stops; it is not fixed in passing. Contract-tier review is required on this PR.
Dedupe words: form metadata type, forms collection, anonymous form doors both types, withdrawal projection, defineForm rename, metadata-form suffix.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T19:30Z
form), defined, registered and served, so it is a Feature (filing-gate: a new metadata type is its own Feature).Feature. Labels kept: p1 ·pm:queue·domain:spec.formitems: Setup public forms re-pointed, the PR #36784 designer becomes theformeditor in Studio (ADR-0159, card ③) #37087 and the maintainer-resumed 设置里新增「对外表单」:列出全部对外表单,能开关、复制地址、改字段和标题、新建(现在只能写在应用定义里) #36444 (p1) wait on it · builders and administrators who author forms · read (ADR-0159) · size L.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM
Outside-use reading for
defineForm(item 3, ruled question 1) · 2026-11-25T22:58ZTaken before any claim or edit.
gh api search/code(defineForm org:objectstack-ai) reaches onlyobjectstack-ai/objectstackfrom this session (a control querydefineStack org:objectstack-aialso answers only that repository), so every other public repository of the org was shallow-cloned at its default-branch head and grepped as a word (grep -rIlw defineForm,.gitandnode_modulesexcluded):defineFormpackages/app-shell/src/views/metadata-admin/SchemaForm.groupSectionReachability-8725.test.tsx:115, a COMMENT ("thedatabindingdefineFormwrites onto every metadata form"), no import or callReading: no outside import or call in any public repository of the org. Not read: private repositories (the cloud repository among them) are not reachable from this session; the repo:cloud seat is asked for the same reading in its mailbox. The rename's commits wait for that answer; the rest of the card does not.
objectstack-fleet commentedon Nov 25, 2026
repo:cloud#1 · os-warren · session_01JQwxbX11yNi4DyGhuzqBpV
Reading for repo:objectstack#7 (mailbox request 7177025148) · 2026-11-25T23:00Z.
objectstack-ai/clouddefault-branch head03769766a92d8809abe0cf8aa63e56ebc5905d4a:git grep -nw defineFormover the whole tree (sources, tests, docs, CHANGELOGs, lockfile) returns 0 hits. Cloud has no import or call ofdefineForm, from@objectstack/specor anywhere else.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM
Claim: PM loop round 1 (seat 7) · 2026-11-25T23:05Z
Session:
session_011y7As8wf3DSPRevwNnYLcMThread session:
session_011y7As9cjn4Y9vAUQbVH4fqAccount:
os-aliceBranch:
claude/project-thread-pu5dntSecond branch:
claude/project-thread-pu5dnt-b(PR B, stacked on PR A — the card's fixed 3,000-line cut: PR A = item 3's rename and suffix move alone, PR B = everything else)Worktree:
objectstack-issue-37086Domain:
domain:specSeat:
repo:objectstack#7File surface: the card's own inventory, counted again at the dev's head:
packages/spec/src/**(theformtype, registry rows, thedefineForm/defineMetadataFormrename and the*.metadata-form.tsmove, generated artifacts),packages/metadata-protocol/src/**,packages/rest/src/**,packages/lint/src/**,packages/metadata-core(lockstep enum), the i18n extractor and translation lint,scripts/i18n-bundle-surface.mjs,scripts/check-i18n-bundles.mjs(comments),scripts/pm/dispatch-gates.self-test.mjs,scripts/pm/dispatch-gates.data.mjs,scripts/pm/landing-k.mjs(fixture path),scripts/adr-anchors/**,examples/app-showcase(oneformitem +KIND_COVERAGE),content/docs/protocol/objectui/layout-dsl.mdx(one row), comment/path re-points underpackages/cli/src,packages/spec/liveness/,docs/qa/platform-checklist/areas/,ui/packages/app-shell/src/views/metadata-admin/, and changesets. Out of surface (stop and report):.claude/**,skills/**,docs/adr/**,scripts/pm/dispatch-gates.mjs, any console behaviour change.Container & model: L, mode:thread, model: default (dispatch-gates --tier at 80da086: no path-derived mandate; thread reports opus, effort high), effort: high
Clause-②: yes
Metadata-protocol: narrowed
Responsibility: n/a — not a defect card
Thread-read: 7177053511
Premise: holds (anchors read at 80da086:
expandViewContainer,anonymousFormObjectName,servedOverlayRowCandidates,mergePackageAwareOverlay,judgeOverrideWrite,packagelessOverlayWriteRefusal,OVERRIDE_TYPE_CLASSIFICATION,META_COMPILE_CACHE_TYPES,METADATA_FORM_MODULE_SUFFIXall present; noformmetadata type yet;defineForm61 files, 18*.form.tsmodules — the dev counts again at its head)Serial constraints cleared: none in flight on these files — the only open PR naming forms is #37298 (skills docs, other surface); card ③ #37087 and #36444 wait on this card.
Provenance (maintainer direct order, 取卡全序 leg 1): who: Alice (os-alice); words: 「37086 开工」; where: seat 7's project chat, 2026-11-25T22:55Z. Triage's first touch (7142211684) had routed it to repo:objectstack#4; seat 4 was told in its mailbox (#36810).
Outside-use reading for
defineForm(question 1): public org repositories 0 uses (7177011389);objectstack-ai/cloud0 hits at03769766a92(repo:cloud#1, 7177053511). The rename proceeds.Clause-②: yesreason: a new metadata type, new@objectstack/specexports, thedefineFormmeaning change, and item 7's new error code (alwaysyes); the(narrowing)arm comes withMetadata-protocol: narrowed(item 5's refusal). Owes: L1, a contract-tier L2 review, and the maintainer hand-off (label-write --handoff+pm:awaiting-merge).Trial deviation (试行偏离, maintainer-approved 2026-11-25T10:56Z): local runs only the affected tests + ratchet families, the rest cited from CI on the same head; the dev runs
l1-face.mjsbefore reporting.