Skip to content

form metadata type: define, register and serve form items (ADR-0159, card ②) #37086

Description

@objectstack-fleet

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).

  1. The type (ADR-0159 D2, D3). A FormSchema in packages/spec/src/ui/, derived by reference from FormViewSchema: name (qualified OBJECT.KEY, the part before the last segment must equal object), object (required), label (optional), the form body at the top level (ruled question 5: no config wrapper), plus protection, the ADR-0010 fields and the ADR-0146 overrides declaration. No viewKind, config, isDefault, order or scope. data is refused by name with the prescription to bind with object. object must name an object the package can reference, judged where a view's object is judged today (os validate, publish) (D2).
  2. Registration, in one change: the MetadataTypeSchema member, the DEFAULT_METADATA_TYPE_REGISTRY row (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 collection forms with its plural and singular map entries, and form: listed in OVERRIDE_TYPE_CLASSIFICATION (the pin in customization-package.test.ts fails without it). The showcase's KIND_COVERAGE row with one authored form item: a new public form on an address no other form holds (examples/app-crm and examples/app-showcase both publish /forms/contact-us today; take another). ⛔ No action targets it and no existing form is moved: the console reads forms from view until 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), so an action-opened form item would answer not found.
    • Hand-keyed per-type arms outside the registry. List in the PR every arm keyed on 'view' under packages/rest/src, packages/metadata-protocol/src and packages/spec/src/kernel (git grep -nE "=== 'view'|'view'," -- packages/rest/src packages/metadata-protocol/src packages/spec/src/kernel), and for each say whether form takes an arm and why. Read at 254e396a29e: the per-caller read gate, its packaged-base map and its translate arm in packages/rest/src/meta-item-read-gate.ts; META_COMPILE_CACHE_TYPES in packages/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/NAME today is refused it at /api/v1/meta/form/NAME.
  3. The factory (ruled question 1 = A). defineForm becomes this type's factory and the existing Studio schema-bound metadata-form helper is renamed defineMetadataForm, 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 689e5695b98 git grep -lw defineForm names 60 files, 41 of them code). Count again at your own head and put the count in the PR:
      • 17 *.form.ts modules under packages/spec/src that import and call it;
      • 3 that declare, export or build around it: packages/spec/src/ui/view.zod.ts, packages/spec/src/index.ts, and packages/spec/tsup.config.ts, whose pure-constructor set names it (the renamed helper joins that set);
      • 4 tests: 3 under packages/spec that call it, 1 under packages/lint that names it in a test title;
      • 17 that name it only in a comment: 10 tests (9 under packages/spec and packages/lint, 1 under ui/) and 7 sources (3 under packages/lint/src, 2 under packages/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/spec API-surface and export-origin snapshots, the generated reference page), 9 released or historical texts ⛔ not edited (seven CHANGELOG.md, a released notes page, an audit), and 4 hand-written (two packages/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.
    • 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 form type takes *.form.ts. The 17 Studio modules are renamed *.metadata-form.ts, and METADATA_FORM_MODULE_SUFFIX in scripts/i18n-bundle-surface.mjs becomes .metadata-form.ts. Readers of the suffix, measured at 689e5695b98 (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.mjs on nine lines across several cases (5641 to 5691, and 5881), one of which asserts endsWith('.form.ts') on the live walk (line 5662) and so fails as soon as the modules are renamed; the kind text in scripts/pm/dispatch-gates.data.mjs; a fixture path in scripts/pm/landing-k.mjs; the comments of scripts/check-i18n-bundles.mjs (lines 163 to 170). scripts/ablation-dist-preflight.mjs names a temporary fixture file skill.form.ts and 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/src import a .form module (the seven domain barrels, system/metadata-form-registry.ts, 23 tests). Thirty spell it ./NAME.form; packages/spec/src/kernel/repeater-item-titles.test.ts imports 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.ts is the new type's suffix, "a *.form.ts module binds data" teaches the wrong root for an app's lead.form.ts. Name the Studio modules by their new suffix in: the data root explanation in packages/lint/src/rule-explanations.ts; the data arm of the message in packages/lint/src/validate-expressions.ts (it spells *.form); the docblock wording of packages/lint/src/validate-visibility-predicates.ts together with the two toContain pins on it in validate-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 (the MOVED table lists *.form.ts for VISIBILITY_ROOT_MISLAYERED, line 1904 at be1c0cbd4da), which changes with the explanation in rule-explanations.ts; and the row "Metadata-editing forms (*.form.ts)" in content/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 under packages/lint/src, packages/cli/src, ui/packages/app-shell/src/views/metadata-admin/): re-point the ones that name a live file; released text (a CHANGELOG.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 --write changes no bundle value, and pnpm check:i18n is green.
    • 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-ai and 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 of defineForm from @objectstack/spec outside objectstack-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.
  4. The projection (D5): one pure function beside expandViewContainer that turns a view body into the form items it carries (the container's form, each formViews entry, a viewKind: 'form' item), under the name each is served as today, an item's config lifted 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 object from today's four-rung resolution (anonymousFormObjectName) and its body unchanged (D5). ⛔ The authored-only refusals of item 1 (data by name; the name's prefix equals object) 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-form refusal.
  5. 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 stored form row 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; a form save, reset or delete at (package, name) also removes the old-shape row carrying that form at that address, in the same transaction (an item-shaped view row deleted, a stored container re-saved without the form). ⛔ It removes form content only: a list item of type view that holds the same OBJECT.KEY name 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 to forms: while a stored view row still stands over the form (card ④ does that to first-party apps). So the effective form read resolves a package's form over both types in the one served-row order (servedOverlayRowCandidates): the stored view row 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 the form item it projects, over the package's source form item of that name. A stored form row at the same place in the order wins over the stored view row.
    • A declared form override is admitted where the base ships the form in either type (ADR-0159 D4, D7-b). judgeOverrideWrite asks "does the base ship this item" inside one type today and refuses declared_package_ships_no_such_item (packages/metadata-protocol/src/protocol-packaged-base-refusal.ts). For form it reads the base's forms through the projection as well, so a form override 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. A form override of a name the base ships in neither type is still refused.
    • A stored view row 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 a form item, a view save 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 no overrides) 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 own views: container that expands a list at the name of its own form item is its list beside its form.
    • For the served form read the projection reads served rows only (ADR-0159 D5). A stored view row enters the effective form read 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 stored view row. "Served" is asked at each package's address, inside the form read's own resolution over both types, and ⛔ never taken from the effective view list: 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 in forms: it has left the view type, so the view merge 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-less view row that carries an open form, behind a writable package's own view row that carries a list of the same name, is read by no layer today and both doors answer 404; they answer 404 after 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 view write that would store a list at a name a read-only package authors as a form item (in forms:; 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 in protocol-save.ts judges names shipped as view items. ⛔ 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-less view write 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-shape view item: 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.
  6. The anonymous doors and the withdrawal judgement over both types (D6, rules 1 to 9 and 11): candidates from the effective form read, 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 both form and view, 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 at error, 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_FOUND for a switched-off form is unchanged. The tenancy intake advisory and the organization-scoped refusal judge form writes 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).
  7. The public address clash (ruled question 3 = A). The form write door, os validate and publish each refuse a form whose open slug another form already holds, naming both forms. It is a refusal on the new type only: an old-shape view write keeps today's first-match behaviour, and nothing an author has today narrows. "Another form" is judged over the effective form read, so a projected old-shape form holding the slug counts. A form holds an address while its sharing.publicLink names 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 every form save 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 next form save and os validate are refused, naming both, until the retired form's link is cleared. A new error code goes through the ledger (check:error-code-casing).
  8. Translations (D8): the forms family in the bundle schema, the extractor and the translation lint; the translator reads forms.NAME first and the form tails under objects.OBJECT._views.KEY as the declared fallback; section copy keeps objects.OBJECT._sections.SECTION as its object-level default. label and description under _views.KEY are not form tails: they are neither moved nor read as a fallback (ADR-0159 D8).
  9. Lint: the form walkers read form items and the projection; the consumer-less warning of D1 (successor of form-view-internal-not-loaded). ⛔ It is not raised for an item that declares overrides when 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-loaded stays as it is and is the only advisory on the old shapes (D5).
  10. 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, serves GET /api/v1/meta/form and /api/v1/meta/form/NAME, and publishes; os validate refuses a name whose prefix differs from object, an authored data key, 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 and code and naming both forms, one pin shows an old-shape view write on a taken slug still saves as before, and one pin shows a form saved open on the address of a switched-off form is refused (ablate: the switched-off half of the holder read).
  • A form save, a reset and a delete at a name a list item of type view holds each leave the list row byte-equal (ADR-0159 D5; ablate: the form-content test of the old-shape row removal).
  • A form save, a reset and a delete at (package, name) each remove the old-shape row that carries that form, in the same transaction: an item-shaped view row is gone; a stored container is re-saved without the member, its lists byte-equal; a form write that fails leaves both rows as they were.
  • The override gate over both types (item 5): a form override saved through the save door into the pair of a base whose form is an old-shape view item is admitted; a form override of a name the base ships in neither type is refused declared_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.object differs from its container's object answers on both doors as before this change, byte-equal on the resolve door (ablate: parse projected items with FormSchema; the form is closed or dropped).
  • Rule 9: in an organization-scoped environment a form save that would leave a withdrawn form open is refused as the same view save is today, with the withdrawal held in the other type (status and code; ablate: the form arm 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 form save).
  • Translations (item 8): forms.NAME.title wins over objects.OBJECT._views.KEY.title; the tail is read when the family has no value; objects.OBJECT._views.KEY.label is not read for a form; the extractor emits no _views tail for an authored form item.
  • The consumer-less warning (item 9): raised for an item with no link that no action targets; not raised for an item that declares overrides over 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/NAME is 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 form item, a list saved package-less at the form's name is refused (status 400, code VALIDATION_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 stored view row of the name; the doors answer 404. Ablate: the expansion half of the refusal; the container saves and the doors answer 404);
    • the closed reading: a package-less view row that carries a list at the name, seeded as stored, keeps both doors at 404 at 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 source form item when the stored row projects no form).
  • Served rows only (ADR-0159 D5), one pin with an ablation: a writable package's own view row that carries a list, and a package-less view row of the same name that carries an open form; both doors answer 404 at the form's address before this card's change and after it (ablate: project every stored view row into the form read; the address answers). A second fixture, for the address: a read-only package authors an open form item, and a package-less view row 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 answer 404 at the package's address before the list is saved and after it (ablate: take the served rows from the effective view list; the address answers).
  • A stack that still authors the three old shapes loads unchanged, and each of its forms is also served as a form item under the same name. GET /api/v1/meta/view answers exactly what it answered before (pin against a fixture taken before the change).
  • The public form of examples/app-crm answers at its address before and after, byte-equal on the resolve door.
  • The eight D6 pins exist, each asserting status, code and that no record was written, each with one ablation run recorded in the PR (rebuild, on-disk mutation proof, restore proved by an empty git diff HEAD):
    • withdrawn by a view override in .custom, open as an authored form of the same name (ablate: the view half of the layer);
    • the mirror (withdrawn by a form override, open as an old-shape item in the base); the withdrawing row is written through the save door, not seeded (ablate: the form half of the layer);
    • withdrawn in a container's formViews entry, open as a form item 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 404 at 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: getMetaItemsPerPackage for 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 view override in .custom whose body has no publicLink, over a base that authors the same name as an open form item, and its twin with a package-less row: both doors answer 404 at the base's address (ablate: the cross-type resolution of item 5, by serving the package's source form item when the stored row is a view row);
    • the submit door refuses wherever the resolve door does.
  • The exempt reader: pnpm check:adr-anchors is green with its anchor; the unreadable-body and view-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.ts is green with the new row; the showcase coverage test is green.
  • Changeset: minor on every package the diff moves, Metadata-protocol: narrowed in the PR body and the changeset; the BREAKING banner and the ADR-0087 disposition for the defineForm export change (ruled question 1), with the FROM and TO mapping (defineForm for a schema-bound Studio form becomes defineMetadataForm), 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. ⛔ Not not-required (no-migration-prescription): it is refused on a declared narrowing. The seat settles the yes of the Clause-②: 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 edits form items: Setup public forms re-pointed, the PR #36784 designer becomes the form editor in Studio (ADR-0159, card ③) #37087) ship in the same major release, so no release serves a public form item that Setup does not list, and the changeset carries no sentence about that gap. The gap exists on main between the two merges only.
  • Skills-docs: follow-up #N in the PR body, naming the skills card (Skills teach forms: as the one way to declare a form, and views: as lists only (ADR-0159, card ④s) #37105). The docs pages follow in First-party sources author forms as form items: examples move to forms:, skills and docs teach forms: (ADR-0159, card ④a) #37088. skills/** is not in this card's surface.
  • packages/spec generated 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; defineForm is 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 under ui/ 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

  1. added
    priority:p1
    pm:queue
    domain:spec
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-24T19:30Z

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Outside-use reading for defineForm (item 3, ruled question 1) · 2026-11-25T22:58Z

    Taken before any claim or edit. gh api search/code (defineForm org:objectstack-ai) reaches only objectstack-ai/objectstack from this session (a control query defineStack org:objectstack-ai also 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, .git and node_modules excluded):

    repository head files naming defineForm
    objectstack-ai/objectstack 80da086 61 (the platform itself, the card's own inventory)
    objectstack-ai/objectui b2c0adecb0b 1: packages/app-shell/src/views/metadata-admin/SchemaForm.groupSectionReachability-8725.test.tsx:115, a COMMENT ("the data binding defineForm writes onto every metadata form"), no import or call
    hotcrm 228c5536d6b · docs.objectos.ai 746379395f8 · docs 7fe838981f9 · objectdocs 3ab62eb51c5 · gallery 782d801902a · duly 6125c0b6a6b · marketing f615eb320e1 · templates 960f24db4fa · kpi 60293521584 · claude-plugin 66ee3e370e6 · gemini-extension 3de2a80ff3c · hotsrm 2d28a25804b · website-astro e22d6f79622 · brightrule c051a22840e · mobile 8e4235f6d7a · objectos-v1 7787a8b6e17 · hotclm 938928f18c3 · marketplace 4e6b30cbb2a · bridges faf993e3840 · www.objectos.ai cdb0eb628ca · plugin-auth 1936d2cba17 · .github 69d1c1310c4 each its own 0

    Reading: 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.

  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbX11yNi4DyGhuzqBpV

    Reading for repo:objectstack#7 (mailbox request 7177025148) · 2026-11-25T23:00Z.

    objectstack-ai/cloud default-branch head 03769766a92d8809abe0cf8aa63e56ebc5905d4a: git grep -nw defineForm over the whole tree (sources, tests, docs, CHANGELOGs, lockfile) returns 0 hits. Cloud has no import or call of defineForm, from @objectstack/spec or anywhere else.

  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

    Claim: PM loop round 1 (seat 7) · 2026-11-25T23:05Z
    Session: session_011y7As8wf3DSPRevwNnYLcM
    Thread session: session_011y7As9cjn4Y9vAUQbVH4fq
    Account: os-alice
    Branch: claude/project-thread-pu5dnt
    Second 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-37086
    Domain: domain:spec
    Seat: repo:objectstack#7
    File surface: the card's own inventory, counted again at the dev's head: packages/spec/src/** (the form type, registry rows, the defineForm/defineMetadataForm rename and the *.metadata-form.ts move, 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 (one form item + KIND_COVERAGE), content/docs/protocol/objectui/layout-dsl.mdx (one row), comment/path re-points under packages/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_SUFFIX all present; no form metadata type yet; defineForm 61 files, 18 *.form.ts modules — 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/cloud 0 hits at 03769766a92 (repo:cloud#1, 7177053511). The rename proceeds.

    Clause-②: yes reason: a new metadata type, new @objectstack/spec exports, the defineForm meaning change, and item 7's new error code (always yes); the (narrowing) arm comes with Metadata-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.mjs before reporting.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:builddomain:specpm:dispatchedpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions