Repository navigation
feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types - #37422
feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types#37422objectstack-fleet[bot] wants to merge 31 commits into
Conversation
…ead a form over both types ADR-0159 card ②, everything past the rename (PR B of the card's cut): FormSchema derived from FormViewSchema by reference with defineForm and *.form.ts; the registry row, the stack's forms collection and the forms translation family; one projection of the three old view shapes; the effective form read resolved over both types; the form write's removal of the old-shape row; the address clash refusal (FORM_ADDRESS_TAKEN); the package-less list-at-a-form's-name refusal on save, publish and restore; the anonymous doors' two-type withdrawal layer with rule 7's closed links; the lint rules, the liveness ledger and the showcase form. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…gation, cli i18n bucket, provenance row, checklist waiver, transcript counts Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…les, showcase feedback form zh-CN, walk-parity fixture member; typed form-body refinement params Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…ocol serving no form item, one registry heal for old-shape removals, the by-name form read keeps the generic answer unless resolved across types, census and enumeration pins Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
The owner-stamp fixture tables, the meta list/item census, the CLI schema-gate classification and the metadata-form catalog ratchets each gain the form type (ADR-0159 card ②, #37086). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…label Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
📓 Docs Drift CheckThis PR changes 10 package(s): 82 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 22 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 191 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f6099f18fa1d0e2f0ffeecb359e3f71aa73f69c1 && git checkout f6099f18fa1d0e2f0ffeecb359e3f71aa73f69c1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin cb854ea4d065c489e03a0d1b3b5bb9aeb8998626 c75ea6281cd7418af82eeb6de9cf927027ff77a6 && git checkout -B drift-repro cb854ea4d065c489e03a0d1b3b5bb9aeb8998626 && git merge --no-ff c75ea6281cd7418af82eeb6de9cf927027ff77a6
node scripts/docs-audit/affected-docs.mjs --json cb854ea4d065c489e03a0d1b3b5bb9aeb8998626
|
…object translateForm reads a form item's section headings at objects.<object>._sections.<name>, so translation-target-unknown must accept those keys. The showcase feedback form's zh-CN section heading tripped it in the dogfood build. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…ectstack-ai/objectstack into claude/project-thread-pu5dnt-b # Conflicts: # packages/spec/dropped-refinements.baseline.json
- TranslationPreview draws the forms group, with its strings and fixtures. - Pending changes count a drafted form in every pack. - The console loader namespaces a served forms group. - Studio's directory and menu leave form out until card ③ brings its designer, placement and ADR-0084 row. - The types censuses: spec FormSchema is a name collision with the form node, and checkFormItemNamePrefix judges a schema objectui does not mirror. - rest: the unused withdrawal import goes, and the intake test pays the objectql load at collection. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…s form item Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…ectstack-ai/objectstack into claude/project-thread-pu5dnt-b # Conflicts: # content/docs/deployment/cli.mdx # content/docs/deployment/validating-metadata.mdx # content/docs/getting-started/build-with-claude-code.mdx # content/docs/ui/react-pages.mdx
…vel keys The enumeration row only (check:skill-top-level-keys); the prose, examples and evals are #37105's. The token ceiling moves by the row's measured +2 (6149 -> 6151), the standing enumeration-row case: ruling A on #32584 (record 6819475461), made standing by #32673 letter A (record 6840575378). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM Contract reviewServed-tier: PR #37422 (PR B of card #37086's fixed cut), base = PR A's branch The security question of the brief, answered first. No path that re-opens a withdrawn public form was found by reading. Traced: a ① Derived judgmentsEach accept-set and public-surface change, named right or wrong.
② Semver level
③ Boundary flags
④ Design judgmentAgainst ADR-0159 D1 to D8, the ruled questions, and the card's Done-when. The tree was read, not the PR body's account. M1 (must-fix) — The address-clash refusal is judged at one door, and the published ledger says three. M2 (must-fix) — Done-when's pins are not all there, and two of the eight D6 pins do not hold the read they name. The card makes the pins the proof that no withdrawn form re-opens; a design that reads closed is not that proof.
S1 (should-fix) — S2 (should-fix) — S3 (should-fix) — S4 (should-fix) — S5 (should-fix, SQL first) — S6 (should-fix) — Rule 9: Done-when asks a pin that an organization-scoped S7 (should-fix) — S8 (should-fix) — the second changeset declares S9 (should-fix) — the PR body still lists the N1 (nit) — Files that hold. Two must-fix. The verdict is on M1 and M2; the nine should-fix items do not carry it. Implemented-by: VERDICT: FAIL |
…ectstack-ai/objectstack into claude/project-thread-pu5dnt-b Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…estore; one candidate read at the form doors formTypeWriteRefusal asks the package-less list refusal and the public address clash together, at draft promotion and in the restore writer, so the three doors the ledger names all refuse FORM_ADDRESS_TAKEN. The form doors read their candidates from the effective form read alone; the test doubles serve that read as the protocol does for an old-shape fixture, through projectedFormsOf. The effective form read pushes names down, resolves a package-less stored form row at an old-shape address in the served-row order (one definition per address), and the by-name read resolves the name once. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…eading, the bound and the form write doors Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…ead, and a form override's own text over its base's catalog The cached plain read of GET /meta/:type/:name judges a form through the per-caller read gate, as it judges a view, so a caller refused a form's document at /meta/view/NAME is refused it at /meta/form/NAME. A form gets a packaged-base accessor (getPackagedFormBase: the base's authored form, else the form its old shape carries through the projection), so an override's changed text outranks the base's catalog on /meta/form and on the public door (ADR-0029 D9.2a). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
… ④ as the contact-us mover Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
… the registry row says what overlays a form, and the cross-type resolution has an anchor Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
… the file; the CRM pin loads the example by path check-examples-live-imports read only a package's `#test` inputs, so a repo-project file (hashed on `#test:repo`, #16466) read as invisible even with its inputs declared. It now asks the task its package's vitest.repo-tests.json assigns the file, with three self-test cases read off rest's own split. The CRM byte-equal pin loads the two example sources through `new URL(...)`: a static import put them in rest's tsconfig.test.json zone, whose rootDir is packages/. The form changeset names the publish and restore refusals and the forms.NAME.sections keys. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM Contract reviewServed-tier: Delta round on PR #37422 (PR B of card #37086's fixed cut), base = PR A's branch The security questions of the brief, answered first.
① Derived judgmentsEach accept-set and public-surface change that moved since
② Semver level
③ Boundary flags
④ Design judgmentAgainst ADR-0159 D5, D6, D8, ruled question 3 and the card's Done-when. The tree was read, not the PR body's account. Earlier findings, by id, judged in the tree at this head.
New findings. M3 (must-fix) — a security item is with the owner seat. It is new in this round and is not the item already there. No detail in this record. S10 (should-fix) — Ablation records the card asks for and the body does not carry. None of these re-opens M2; each is a run Done-when or D5 names.
S11 (should-fix) — N6 (nit) — the publish refusal is pinned at the per-item publish door. A package publish asks the same promoter in both phases, by reading, and has no pin of its own. Files that hold. One must-fix. The verdict is on M3; the four should-fix items (S5, S8, S10, S11) do not carry it. Implemented-by: VERDICT: FAIL |
…vert put back the old-shape rows a form write removed Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
… leave the old-shape row as it was, on an engine that cannot roll back Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…udged at its own forms node, the object-level slot its default Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…e row removal and the forms sections translation family in lint and cli Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…ape row restore among the hand-series module writers Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
… cache it filled A read inside a transaction can cache that transaction's own uncommitted sys_metadata rows at the generation its earlier writes already moved; a driver rollback undoes the rows below the middleware seam, so nothing moved the generation again and the entry stood until the TTL. Every transaction the protocol opens (the package publish batch, the form-aware publish, save and delete, the repository's write unit, the atomic data batch) now goes through retireOverlayCacheOnRollback, which advances the generation when the transaction fails after moving it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…an engine that can roll back leaves nothing of the batch served Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
Requested by Alice · project thread
Fixes #37086 — PR B of the card's fixed 3,000-line cut, stacked on #37366 (the rename only). Merge #37366 first, then retarget this onto
main. The two land together, because ADR-0159:109 anchorsview.zod.ts#defineForm, and only this PR declares it again.Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37105
维护者速读
What changes
formbecomes a metadata type of its own (ADR-0159 card ②, items 1, 2 and 4 to 10, as the card rules them):FormSchemaderives every body key fromFormViewSchemaby reference. The name isOBJECT.KEY.data,viewKind,config,isDefault,orderandscopeare refused by name.defineForm, the registry row (*.form.ts|yml|json), the stack'sforms:and theformstranslation family. The family readsforms.NAMEfirst, with the_viewstitle and thank-you tails as the fallback. A form's own section copy isforms.NAME.sections.SECTION.{label,description}and.fields.FIELD.{label,placeholder,helpText}(D8). Each key the form's node lacks readsobjects.OBJECT._sections.SECTION, the object-level default.projectViewForms, reads the three oldviewshapes. The intake layer isformIntakeLayer/openFormAt.FORM_ADDRESS_TAKEN, a liveness ledgerform.json, and a semantic migration entry18.form-type-define-form-and-packageless-list-at-form-name.formread resolves over both types in the served-row order (D5). Each address holds one definition. A package-less storedformrow over a base that ships the form as an old shape is listed once, at the base's address, with the row's body.formleft open on a held address is refused with 409FORM_ADDRESS_TAKEN. The refusal applies on the save, on the publish of a draft whose address was taken after the draft was saved, and on a rollback to a version that is open on a held address.formsave, publish, reset or delete removes the package's old-shape row of that name in the same transaction. This touches form content only: a list of that name stays byte-equal.formis refused with 400. The refusal applies on the save, on the publish of a pre-gate draft and on restore.healOldShapeFormRowRemovals) restores theviewregistry for each removed row.error, the first time the form doors read it. There is no boot hook: a project kernel must not readsys_metadataviewrows at boot.getPackagedFormBaseanswers a form's packaged base: the authoredformitem, or else the form the base'sviewitem projects.GET /forms/:slugand its submit read their candidates from ONE effectiveformread. They judge withdrawal acrossformandview, both effective and per-package (D6 rules 1 to 11). This narrows only.formitem serves no candidate.GET /api/v1/meta/form/NAMErefuses whoever/meta/view/NAMErefuses, on the cached plain read as well as on the uncached read.formoverride's own changed text outranks the base's catalog, on/meta/formand on the public door (theformrow ofPACKAGED_BASE_ACCESSORS).form-public-address-taken(gating),form-consumer-less(advisory),form-object-outside-closureandform-object-unknown.formsis loaded, typed, registered and counted for i18n coverage.Why
ADR-0159 card ②. The breaking surface is written out in
.changeset/37086-form-metadata-type.md.Measure-first answer (D7-b)
formitem: a declaredviewlist override at the form's name is refused with 403 NOT_OVERRIDABLE.Both cases are pinned in
packages/rest/src/public-form-two-type-withdrawal.test.ts("measure-first").Rule 9: the premise is stale
D6 rule 9 asks that an organization-scoped
formsave be judged as the sameviewsave is. On this tree, every organization-scoped write is refused before any other gate reads the body.packages/metadata-protocol/src/protocol-save.ts,saveMetaItemUnaudited:It calls
refuseOrganizationScopedWrite.protocol-write-gates.ts#organizationScopedWriteRefusalreturns null only for an empty organization; otherwise it returns 403NOT_OVERRIDABLE. So no organization layer exists to hold a withdrawal, in either type. The pin "rule 9" holds theformsave and theviewsave to the same answer: 403NOT_OVERRIDABLE, nothing written, the doors still closed.protocol.org-scoped-write-refused.test.tsalready enumeratesDEFAULT_METADATA_TYPE_REGISTRY, so it coversform.Door pins and ablations
The pins are in
packages/rest/src/public-form-two-type-withdrawal.test.ts. The harness is a real ObjectQL engine with SqlDriver on:memory:, the real protocol and the real routes. Each door pin drives both doors:GET /forms/:slugand its submit.First round (the head this PR opened at):
formlayerviewlayerPin 1 stays green under A1 and A8, and pin 2 under A2: D5's cross-type resolution, or the candidate itself, already holds the withdrawal. That is why the second round adds pin 2b, where the
formhalf is the only reader.Second round (this rework). Each run follows the same steps:
git checkoutand rebuild.git diff HEAD --stat(empty after every run).No ablation was committed. No pin was weakened to get these readings.
formhalf of the layer (formIntakeLayer's loop over the forms)viewrow projectedviewlist, not the served-row orderform)declared_package_ships_no_such_itempin (its CONTROL is refused), pin 2, narrowing, and the five pins that write aformoverride over an old-shape baseformitems (datastripped, refused ones dropped)data.objectdoor pin, the/meta/formroute pinformrow ofPACKAGED_BASE_ACCESSORSformrow deferral)formin the cached plain read's audience fold/meta/formroute pinforms.NAME.sectionsintranslateForm(spec source; spec tests read the source, so there was no rebuild)i18n-resolver.form-item.test.ts"reads the form's own section node first"The per-run proof (the mutation diff, the build exits, the red titles and the empty
git diff HEAD) is below. In the diffs, angle brackets are written as ‹ › so the body's sanitizer keeps them.R1, form-half: 3 of 48 red
packages/spec/src/ui/form-intake-layer.ts(diff below). Rebuilt: the spec dist, exit 0.formcloses the form (ablate: getMetaItemsPerPackage for that type)formhalf alone: the base authors the form switched off with its link kept, and a dependent's old-shape row of the name stands open on that link (ablate: theformhalf of the layer)formitem: the base's own document still withdraws itgit checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R2, every-stored-view-row: 3 of 48 red
packages/metadata-protocol/src/protocol-form-reads.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.viewcloses the form (ablate: getMetaItemsPerPackage for that type)viewrow)git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R3, served-rows-from-view-list: 4 of 48 red
packages/metadata-protocol/src/protocol-form-reads.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.viewoverride with no link over an open authoredformitem closes the address (ablate: the cross-type resolution of D5)formitem under a package-less row whose form has no link: 404 before and after a list of the name is saved beside it (ablate: take the served rows from the effectiveviewlist)formitem)git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R4, closed-reading-fallthrough: 2 of 48 red
packages/metadata-protocol/src/protocol-form-reads.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.formitem)git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R5, the-bound: 5 of 48 red
packages/metadata-protocol/src/protocol-form-writes.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R6, expansion-half: 2 of 48 red
packages/metadata-protocol/src/protocol-form-writes.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R7, removal-form-content-test: 3 of 48 red
packages/metadata-protocol/src/protocol-form-writes.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.formwrite leaves a list row of the same name untouchedformdraft save, its publish and its reset (ablate: the form-content test of the old-shape row removal)formdelete of an override whose base ships the form as an old shapegit checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R8, override-gate-projection-half: 8 of 48 red
packages/metadata-protocol/src/protocol-packaged-base-refusal.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.formoverride, open as an old-shape item in the base (ablate: theformhalf)formoverride cannot re-open a form the base's old shape withdrawsformsave at a package removes that package's old-shape row of the name, in the same writeformwrite leaves a list row of the same name untouchedformoverride 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 CONTROL below is then refused)formdelete of an override whose base ships the form as an old shapeformdelete at the pair removes the pair's old-shape row of the nameformwrite that fails leaves both rows as they weregit checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R9, parse-projected-with-FormSchema: 2 of 48 red
packages/metadata-protocol/src/protocol-form-reads.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0./api/v1/meta/view/NAMEis refused it at/api/v1/meta/form/NAME; its holder is served bothdata.objectdiffers from its container's object answers both doors as before, byte-equal on the resolve door (ablate: parse projected items with FormSchema)git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R10, publish-refusal: 2 of 48 red
packages/metadata-protocol/src/protocol-history-and-publish.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.formdraft left open on an address another form took after the draft was saved is refused 409 FORM_ADDRESS_TAKEN, naming both forms, and nothing is promotedgit checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R11, restore-refusal: 1 of 48 red
packages/metadata-protocol/src/protocol.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R12, packaged-base-accessor-form-row: 1 of 48 red
packages/rest/src/meta-item-read-gate.ts(diff below). Rebuilt: none (the rest tests run its source), exit 0./meta/formand on the public door; text it kept is translated (ablate: theformrow of PACKAGED_BASE_ACCESSORS)git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R13, one-definition-per-address: 1 of 48 red
packages/metadata-protocol/src/protocol-form-reads.ts(diff below). Rebuilt: the metadata-protocol dist, exit 0.formrow over a base that ships the form as an old shape is listed once, at the base's address, with the row's body (D5 served-row order)git checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R14, cached-read-audience-form: 1 of 48 red
packages/rest/src/meta-item-read-routes.ts(diff below). Rebuilt: none (the rest tests run its source), exit 0./api/v1/meta/view/NAMEis refused it at/api/v1/meta/form/NAME; its holder is served bothgit checkoutand rebuilt (exit 0).git diff HEAD --statafter: (empty).R15, forms.NAME.sections: 1 of 10 red
packages/spec/src/system/i18n-resolver.ts:translateFormpasses no form name totranslateFormSections, so only_sectionsis read.pnpm exec vitest run src/system/i18n-resolver.form-item.test.ts(spec tests import the source): 9 passed, 1 failed. Red: "reads the form's own section node first, and_sectionsfor each key it lacks". The CONTROL ("with noforms.NAME.sectionsnode,_sectionstranslates the section as before") stays green.git checkout.git diff HEAD --statafter: (empty).The fixtures taken before the type
packages/rest/src/form-old-shape-before.jsonwas captured on PR A's head,cb854ea4d: the rename-only tree, which has noformtype. A throwaway test booted the same stacks these pins boot, and it was never committed (git statuson PR A is clean). The fixture holds three answers:GET /api/v1/meta/viewover a container's default form, aformViewsentry and a storedviewKind: 'form'item;formViewsentry whosedata.objectnames another object, on both doors;GET /forms/contact-us.Each answer is compared as the wire serializes it, byte for byte. The save clock is written as
TIME, because it is the one value two runs cannot share. The CRM pin (public-form-app-crm-byte-equal.test.ts,repoproject) reads twoexamples/app-crmfiles. They are declared as resttest:repoinputs inscripts/cross-package-test-inputs.mjsand inturbo.json.Per-type arm inventory (card item 2)
Command:
git grep -nE "=== 'view'|'view'," -- packages/rest/src packages/metadata-protocol/src packages/spec/src/kernel. It finds 64 hits in source files. The test files are left out: they hold fixture rows, not arms. Each hit is listed with whetherformtakes the arm.64 source hits, by file
rest
form-routes.ts:245, 300, 511-514: the doors' own reads of theviewcarrier of a projected form. These are by design;formis the other half of the same reads.meta-item-read-gate.ts:1796(item audience) and:1998(list audience): taken. Theformarms sit at:1818and:2015.meta-item-read-gate.ts:2850and:4780-4782(theobjectlist filter): not taken. The filter is theviewlist's. Theformlist declares no filter, and a form's object is its name's prefix.meta-item-read-gate.ts:3438(PACKAGED_BASE_ACCESSORS): taken, as['form', 'getPackagedFormBase'](S4).meta-item-read-gate.ts:3791and:3867(withoutInventedViewLabel): not taken.translateFormtranslates only a label that the form authors, so it invents none.meta-item-read-gate.ts:3843and:3932(container translation): not taken. Aformitem is never a container.meta-item-read-gate.ts:4492and:4526(lists: 'app' | 'view'): not taken. These name the two list shapes that a navigation member reads.meta-app-bundle-routes.ts:311(an app bundle'sviewmembers): not taken. No app navigates to aformitem until card ③.meta-item-read-routes.ts:778(the cached plain read's audience fold): taken (this rework), so the cached arm applies the same audience gate as the uncached one. See R14.meta-item-read-routes.ts:766andrest-server.ts:4445(the public-form intake warning stamped on a servedview): not taken. The warning's reader is the console's form designer, which is card ③. Aformwrite is warned at the save door (runtime-authoring-gate.ts:437).rest-server.ts:4096(gatesOnItsOwnKey, the history, diff, audit and published doors): not taken. Those doors serve storedformrows only. An authoredformitem declares norequiredPermissions, so its gate always passes. A projected form, the onlyformthat carries a gate, has noformrows, so those doors expose nothing of it.metadata-protocol
build-probes.ts:653-674(the renderer probe over published views): not taken. The probe reads theviewrenderer's path, and the public form renderer reads aformitem through the doors pinned above.destructive-still-shown-by.ts:343(views that still show a field a destructive change removes): not taken in card ②. Aformitem's sections name fields too. Measuring that it should be shown is listed under "Named for the seat".meta-compile-cache.ts:159: not taken, by design. Theformread is never cached, because its answer moves with the storedviewrows (protocol-meta-item-reads.ts, the by-name read's header).metadata-diagnostics.ts:645and:736(form-layout diagnostics on a served formview): not taken. The consumer is Studio's form designer, card ③. The save and publish gate runs theformrules registered for the type.package-namespace-rename.ts:133andpackage-unmanaged-install.ts:634-642and:1015-1017(the copy names of a view and of a container's expansions): not measured forform. Aformitem namedOBJECT.KEYfollows the genericrenameName, not the qualified-view rename. Whether an unmanaged copy of a package that authorsforms:keeps the name's prefix equal to its renamed object is listed under "Named for the seat".protocol-authoring-gate.ts:663(the storage fold of a disabled extension's fields): not taken. No rule that aformwrite runs reads its object's fields. Theformrules judge theobjectbinding only.protocol-discovery-and-bases.ts:879and:947: theviewhalf ofgetPackagedViewBase, and the old-shape fallback of the newgetPackagedFormBase.protocol-form-reads.tsandprotocol-form-writes.ts(all hits): the cross-type reads and writes themselves.protocol-meta-item-reads.ts:704: the projected-item mark.:1592(ADR-0047 list-view reference diagnostics) is not taken: those rules read list-only keys.protocol-meta-list-reads.ts:320(theviewmerge's container handling) and:1027(containers left out of theviewlist): not taken. Aformrow is never a container.protocol-packaged-base-refusal.ts:1349(a container's expansion in the override gate): not taken, for the same reason.:1441is theformgate's projection half (R8).protocol-registry-hydration.ts:872and:2024(finding(metadata-protocol): on an unscoped kernel, a package-bound stored row of a view name two packages ship is hydrated into the registry's bare slot, so a by-name read naming the other package serves that row's body under its own _packageId #22057, aviewrow bound to one package is not registered under a name another package ships): not taken in card ②. The header marks the case "View only". Theformread resolves the address itself and does not read the registry for a stored row.protocol-save.ts:1511: the package-less list refusal.:1706(projectStorableViewBody) is not taken: aformbody is stored through the generic path, andFormSchemais strict, so no undeclared key survives the parse.protocol-unmanaged-import.ts:60: a container's expansions. Not taken.runtime-authoring-gate.ts:1670: taken.PUBLIC_FORM_INTAKE_UNAVAILABLEruns forform.protocol-diff-delete-load.ts:841,protocol-registry-hydration.ts:1694andsys-metadata-repository.ts:2433: comments.spec/kernel
metadata-plugin.zod.ts:98and:967:formhas its own enum member and its own registry row.Notes for the review items
S5 (one candidate read; predicates pushed down).
namesis pushed into both generic reads.packageIdis not pushed, for two reasons, both written inreadEffectiveFormList's docblock. A declaredformoverride is re-keyed onto its base's address from the base's projectedviewitem, and a list scoped to the pair never holds that item. Aviewlist scoped to a package seats the package-less rows in that package's slots ([finding] getMetaItems scoped to a package reads only that package's rows, so it never falls back to the package-less row that getMetaItem naming the package serves #21817), and they would be projected as the package's own forms ahead of the served-row order.formread. Theviewlist and the stored rows it also needs are not shared through a new protocol extension:protocol.tssits at its facade ceiling, 11705 of 11705 lines. The row sets come from the overlay row cache. That is the residual.S8 (the
@object-uichangeset stayspatch). The diff adds and narrows nothing published:formrow inTYPE_COUNT;preview.changes.typeCount.formkey in each bundled locale;formsin the language loader's recognised groups;forminHIDDEN_DIRECTORY_TYPES, a read-only set of strings whose type is unchanged. It hides a type that did not exist before this change.No export is removed or retyped, and no accepted input is refused.
S9. The
formsrow inskills/objectstack-platform/SKILL.mdis done in this PR, in commit 6103f74: one line, with no teaching text, example or eval. The skills token ceiling rises from 6149 to 6151, the row's measured delta. That rise rests on ruling A on Adding a top-level key or a bound enum member reds two-way skill gates in both card orders under the skills split #32584 (record 6819475461), made standing by [Decision] Under ruling A (#32584), may the PR that adds a key raise the token ceiling of the published skill file its enumeration row lands in? #32673 letter A (record 6840575378, 「32843 32673 同意」).Accepted deviations (review nits)
form-consumer-lessis silent for everyoverridesitem). Kept. Lint judges the authoring stack, and the base form's consumers live in the installed base, which is not in that stack. The rule cannot tell an override that keeps a consumed address closed from one that steers nothing. A warning there would invite the removal of the override that keeps the address closed (validate-form-items.tsheader).readEffectiveFormItemscoped to a package where the name is listed only at another). Kept. That branch is the pair's address answered by its base, the same layered by-name answer every type gives. The address is closed on both doors, so nothing is exposed.The other three nits are done:
form.jsonsharingcitesfindPublicForm,openFormAtand the slug rule.scripts/adr-anchors/packages__metadata-protocol__src__protocol-form-reads.ts.jsonanchors the cross-type resolution.Verification
The head is
67af96fb6. Every count below was read on this rework's tree.@objectstack/metadata-protocol, full vitest run: 370 files passed and 9 skipped; 23454 tests passed and 45 skipped.@objectstack/rest,localproject, full run: 430 files passed; 8900 tests passed and 351 skipped.repoproject): 1 of 1.i18n-resolver.form-item.test.ts,i18n-resolver.form-sections.test.tsandi18n-resolver.test.ts, 578 of 578. The first holds the new sections describe, 10 of 10.typecheckfor spec, metadata-protocol and rest: exit 0. Rest's includescheck:test-typecheckovertsconfig.test.json.b1a299432. The one commit after it,67af96fb6, changes only three files: the CRM test (re-run green, and resttypecheckre-run green), a changeset, and the examples coupling gate (--self-test39 of 39, and the scan).check:generated,check:liveness,check:authorable-surface,check:api-surface,check:spec-changes,check:strictness-ledgerandcheck:export-origins;check:i18n,check:i18n-coverageandcheck:i18n-walk-parity;check:cross-package-test-inputs,check:test-source-alias,check:examples-live-importsandcheck:declared-population-live;check:adr-anchors,check:adr-symbol-anchorsandcheck:doc-anchors;check:facade-delegation-only(protocol.tsat 11705 of 11705) andcheck:nul-bytes;check:error-code-casing,check:engine-double-contract,check:meta-type-normalizedandcheck:rest-log-spy-declared;check:turbo-task-graph,check:undeclared-dep-imports,check:watch-hint-literalandcheck:ci-filter-parity;dispatch-gates --ranreads 164 of 196 derived families as unrun. The derivation covers the whole stacked diff, so this round ran the families that read the files it changed. CI runs the farm.check:type-check-debtdid not finish inside the 300-second budget.check:platform-checklistreportsareas/automation.jsonABSENT SYMBOLFlowItemMoreMenu.tsx#FlowItemMoreMenu. Neither file is in this diff. The finding is onmain(80da086 and b8c8c88).Edits needed outside this PR's surface (named, not made):
.claude/skills/spec-property-retirement: the lines that namedefineFormas the Studio helper.ui/docs/adr/0056: the same naming.Named for the seat (from the arm inventory; measured nowhere yet, so no card is asked):
formitems, whose sections name fields?forms:keep each form name's prefix equal to its renamed object?Finding for a follow-up: a security item is with the owner seat.
Human Minimum
packages/specholds no runtime logic.pnpm lintis CI's.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq