Repository navigation
feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types - #37422
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: ⛔ 23 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 192 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 580a72070c44ad1c5c5cd6171f1cab72442aeaee && git checkout 580a72070c44ad1c5c5cd6171f1cab72442aeaee
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f4ce756599358ed4ab3bd9944a9425ad3e3fd445 20a80b19d16058700b6a44ea91b38be9da771e45 && git checkout -B drift-repro f4ce756599358ed4ab3bd9944a9425ad3e3fd445 && git merge --no-ff 20a80b19d16058700b6a44ea91b38be9da771e45
node scripts/docs-audit/affected-docs.mjs --json f4ce756599358ed4ab3bd9944a9425ad3e3fd445
|
…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
… ceiling after the merge Main's eight new lines in the facade met this branch's additions above the ceiling. The form-body read's docblock points at its facet's contract, and the two spec/ui type imports join the pinned one; nothing else changes. 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 What moved. The net diff against PR A has the same 176 paths with the same statuses. Added and removed lines are identical on every path but five: the two files the authored commits touch, and three counters. Each is judged below. ① Derived judgmentsNothing in the delta changes an accept set, an answer's shape or the public surface of this PR.
② Semver levelUnchanged: both changesets are untouched by the delta, and nothing in it removes or retypes an export. Both ③ Boundary flags
④ Design judgmentAgainst ADR-0159 D3 and D5, ADR-0067 D2 and D3, and the card's Done-when. The tree was read, not the PR body's account. Earlier findings, by id.
Files that hold. No must-fix. No new should-fix; one carried (S5), not carrying the verdict. Implemented-by: VERDICT: PASS |
… merging the rename branch 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 What moved. No authored line of this PR. The net diff against PR A has the same 176 paths with the same statuses, and the added and removed lines are identical on every path, the two regenerated files included: their new rows are ① Derived judgmentsNothing in the delta changes an accept set, an answer's shape or the public surface of this PR. Every judgment of the previous records stands as judged there. What
② Semver levelUnchanged: both changesets are untouched by the delta, and nothing in it removes or retypes an export. ③ Boundary flags
④ Design judgmentAgainst ADR-0159 D3, D5 and D8, ADR-0067 D2 and D3, and the card's Done-when. The tree was read, not the PR body's account. Earlier findings, by id.
Files that hold. The two regenerated references, and every file of the previous record: each carries the same net change against PR A as at No must-fix. No new should-fix; one carried (S5), not carrying the verdict. Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM
席位意见:ACCEPT,交 os-zhuang 和维护者合并。 席位核对 — ACCEPT · head 20a80b1 (2026-11-26T21:54Z)
|
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM Maintainer ruling — S5 is an accepted deviation · 2026-11-26T23:45Z
|
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM 维护者速读
Review request, by the maintainer's order 2026-11-27T03:22Z (「这些应该你处理啊」) after her ruling on S5: seat ACCEPT 7204181264 and merge-delta PASS 7203725192 on head |
|
repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM Landing · 2026-11-27T03:26Z Maintainer approval: Alice (os-alice), 「37422 我批准了,你可以直接落地」, seat 7's project chat, 2026-11-27T03:24Z; os-zhuang APPROVED at |
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, in the same transaction, only the package's old-shape row that carries that same form. Which forms a stored row carries, and under which names, is theformread's own answer (storedViewRowHoldings), so the write and the read name a stored container's members one way. This touches form content only: a list of that name, and a container member served under another name, stay 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.failed[].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.formitem's section copy at the form's own node,forms.NAME.sections.SECTION…, with the object-level_sectionsslot as each key's fallback address. The translation reference lint judgesforms.NAME.sections.SECTIONagainst the sections the form names, and.fields.FIELDagainst each section's entries (translation-target-unknown). A form the stack does not author is not judged.formsis loaded, typed, registered and counted for i18n coverage.os i18n extractread the fallback address: a section translated at either address counts as translated, and extract writes no translated-locale scaffold over a translation the object-level slot holds.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. A5f and the exempt reader are measured again in the third round (T3, T7 to T9).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.git 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.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.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.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.git 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.git 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.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.git 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.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.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.git 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).Third round (rework 3). Same steps as the second round. The harness now holds 53 pins: five new ones in its last describe, on an engine double that cannot roll back (
NoRollbackSqlDriver,supports.transactionsUnsupported) and on SqlDriver. Pin titles name the rule each holds.formlayerviewplace holds the name)oldShapeFormWithdrawalsreturns none)formhalf (R1)formrow is the generic item)formsleg of the reference lintforms.NAME.sectionsemissionReadings from this round:
formlayer as its only reader. Pin 5f and pin 2b's twin now go red without it (T3).formhalf and by D5's cross-type resolution, pin 6 by rule 7's closed links. T8 and T9 remove those readers in turn. Pin 1 goes red only in T9, with all three removed. Pin 6 stays green in all three: only the first round's A6 (rule 7) turns it red.T1: 1 of 53 red
7b0f2f8c7; the mutation inpackages/metadata-protocol/src/protocol-history-and-publish.ts(the undo leg of the rule); rebuilt mp exit 0; 52 passed. Then restored and rebuilt mp exit 0;git diff HEAD --stat(empty). The red pin is named in the table.T2: 2 of 53 red
7b0f2f8c7; the mutation inpackages/metadata-protocol/src/protocol-history-and-publish.ts(the commit revert leg of the rule); rebuilt mp exit 0; 51 passed. Then restored and rebuilt mp exit 0;git diff HEAD --stat(empty). The red pins are named in the table.T3: 2 of 53 red
7b0f2f8c7; no rebuild (the tests import the source); 51 passed. Then restored;git diff HEAD --stat(empty). The red pins are named in the table.T4: 2 of 53 red
7b0f2f8c7; rebuilt mp exit 0; 51 passed. Then restored and rebuilt mp exit 0;git diff HEAD --stat(empty). The red pins are named in the table.T5: 1 of 53 red
7b0f2f8c7; rebuilt mp exit 0; 52 passed. Then restored and rebuilt mp exit 0;git diff HEAD --stat(empty). The red pins are named in the table.T6: 2 of 53 red
7b0f2f8c7; rebuilt mp exit 0; 51 passed. Then restored and rebuilt mp exit 0;git diff HEAD --stat(empty). The red pins are named in the table.T7: 4 of 53 red
7b0f2f8c7; rebuilt spec exit 0; 49 passed. Then restored and rebuilt spec exit 0;git diff HEAD --stat(empty). The red pins are named in the table.T8: 7 of 53 red
7b0f2f8c7; rebuilt spec exit 0; 46 passed. Then restored and rebuilt spec exit 0;git diff HEAD --statnames onlypackages/lint/src/i18n-walk.ts, this round's S11 edit then in progress (committed in 8ccb511), not an ablated file. The red pins are named in the table.T9: 10 of 53 red
8ccb511ce; rebuilt spec exit 0, mp exit 0; 43 passed. Then restored and rebuilt spec exit 0, mp exit 0;git diff HEAD --stat(empty). The red pins are named in the table.T10: 1 of 270 red
95cb02acf; no rebuild (the tests import the source); 269 passed. Then restored;git diff HEAD --stat(empty). The red pins are named in the table.T11: 3 of 7 red
95cb02acf; rebuilt lint exit 0; 4 passed. Then restored and rebuilt lint exit 0;git diff HEAD --stat(empty). The red pins are named in the table.T12: 1 of 7 red
95cb02acf; no rebuild (the tests import the source); 6 passed. Then restored;git diff HEAD --stat(empty). The red pins are named in the table.T13: 1 of 7 red
95cb02acf; no rebuild (the tests import the source); 6 passed. Then restored;git diff HEAD --stat(empty). The red pins are named in the table.Rework 4: after a refused publish the doors answer only committed state
The rule (
6bea26c97): after a refused or undone publish, the doors and the meta reads answer only committed state, on an engine that can roll back as on one that cannot. It is held at every transaction this package opens, through one helper,retireOverlayCacheOnRollback(packages/metadata-protocol/src/meta-overlay-cache.ts):protocol-history-and-publish.ts(inTxn)protocol-history-and-publish.ts(promoteFormAware)formpromotion with its old-shape row removal, single publish and batch memberprotocol-save.ts(putFormAware)formsave with its old-shape row removalprotocol-diff-delete-load.ts(deleteFormAware)formdelete or reset with its old-shape row removalsys-metadata-repository.ts(withTxn)put,delete, and through thempromoteDraft,restoreVersion, the rollback, revert and reset doors)protocol-batch-data.tsA transaction that commits, or that writes no
sys_metadatarow, costs nothing.protocol.tsis untouched (11705 of 11705).Pins. The harness's last describe, on SqlDriver (can roll back), at the shipped defaults:
formdrafts in the pair on one new link;success: false,failedis[[NAME, BATCH_ABORTED], [SECOND, FORM_ADDRESS_TAKEN]]; both doors 404FORM_NOT_FOUNDon that link with no record written; the store rows andGET /api/v1/meta/view/NAMEand/meta/form/NAMEequal to their reading before the publish.FORM_ADDRESS_TAKEN, the other twoBATCH_ABORTED); the same assertions at that address.meta-overlay-cache.test.ts§11 ("after a transaction that does not commit, the reads answer only committed rows"), with two CONTROLs.U1: 2 of 4 door pins and 1 of 3 protocol pins red
c75ea6281; the mutation inpackages/metadata-protocol/src/meta-overlay-cache.ts(the rule's helper); rebuilt metadata-protocol exit 0, the mutated line present indist/index.jsanddist/index.cjs(1 each).-t 'leaves nothing of the batch served'): 2 failed, 2 passed (the CONTROLs), 53 skipped. Red: both refused-batch pins.git restore --source=HEAD --staged --worktree;git diff HEAD --stat(empty); rebuilt exit 0, the mutation absent from dist; the four door pins 4 of 4.Rework 5: one naming of a stored row's forms, and the cost of a revert that stops
The rule: a
formwrite removes only the old-shape row that carries that same form. The write side now asks theformread's own naming:storedViewRowHoldings(packages/metadata-protocol/src/protocol-form-reads.ts) answers which forms one storedviewrow carries and under which names, for theformread (storedFormPlaces) and foroldShapeFormRowRemovals(protocol-form-writes.ts) alike. A stored container's members carry the names theviewlist and the doors serve them under:OBJECT.CONTAINER.KEYfor a named container on another package's object,OBJECT.KEYon its own package's object. Aformitem is namedOBJECT.KEY, so on another package's object noformwrite names a member of such a container.Measured on the fixed tree, with a pair's stored container whose member is served under the base's form name:
formwrites of every other name tried (a name the member's key spells under the object alone, the container's own name, open elsewhere or switched off), the reset of each, a package publish and its revert. In every one the container row stayed byte-equal and the address stayed closed.The cost of a revert that stops, as a rule (S12,
dee2c2106): when one view row a commit edited cannot be put back, every form item of that commit is kept as published, and each is listed in the revert'sfailed[]with nothing written for it. The scope is the commit, not the form: the plan does not record which form a row carried.Pins (
packages/rest/src/public-form-two-type-withdrawal.test.ts):formwrite removes only the old-shape row that carries that form: a stored container whose member is served under another name stays as it was across the save, the publish and the reset, and the address stays closed", on a pre-gate stored container row.formwrite of the name a stored container's member is served under re-saves the container without it, and the form is served as written".formwrite names, its lists byte-equal": the existing pin, now on a container of the pair's own object, where the member is served asOBJECT.KEY.T6 (rework 3) was read before the container re-save pin moved onto the pair's own object.
formwrite removes only the old-shape row that carries that form (the write side's naming)W1 and W2: the proofs
76ec9b3e4: the mutation inpackages/metadata-protocol/src/protocol-form-writes.tsthroughscripts/ablation-replace.mjs(anchor 1 to 0, blobefa21564701ctoedb06759f765); rebuilt metadata-protocol exit 0;ablation-dist-preflightfound the marker indist/index.jsanddist/index.cjs. Harness (-ton the three pins): 1 failed, 2 passed. Restored: blob equal to HEAD,git diff HEADempty; rebuilt exit 0; the marker absent from all 24 built files; tree clean.76ec9b3e4: the mutation inpackages/metadata-protocol/src/protocol-package-commits.ts, same tool (blob01bffacef065to03946034e8d5); rebuilt exit 0; marker in both dist files. Harness (-t 'commit revert'): 2 failed, 2 passed. Restored: blob equal to HEAD,git diff HEADempty; rebuilt exit 0; marker absent; tree clean.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.The capture source (S10). The throwaway test was
packages/rest/src/__capture37086.test.tsin PR A's worktree. It sat there only for the run and was removed after it. Its sha256 isc320d476deac60cd1b4341ac613b77a08af9267cc7abd80f9c147aa1fc0a6577, and its source is below. The command, frompackages/reston PR A:CAPTURE_OUT=FILE pnpm exec vitest run --project local --maxWorkers=2 src/__capture37086.test.ts. This round ran it again oncb854ea4d: 1 passed. The JSON it wrote equals the committed fixture byte for byte except one value,changedAtofftt_inquiry.standalone(line 104), the save clock the pins write asTIME.git statuson PR A after the run: clean.The capture test, as run
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
M3 (an undo puts back the rows the publish moved). The rule holds for the undo of a package publish refused part-way on an engine that cannot roll back, and for a commit revert on every engine. The writer is in the stored-row write census (
protocol.view-expansion-reconcile-call-sites.test.ts), with its heal route named. Pins: the undo describe of the harness, with two CONTROLs. Ablations: T1 and T2.S12 and N9. See "Rework 5": the commit-wide scope as a rule, and the re-saved container kind among the revert pins.
Rework 4. See its section: the rule, the six sites, the pins with their CONTROLs, and U1.
S10. The records asked for are T3 to T9 above, and the capture source is in "The fixtures taken before the type".
S11.
packages/lint/src/i18n-walk.tsandvalidate-translation-references.tsfollowforms.NAME.sections. The object-level_sectionsemission for a form item is gone from the walker: the form's own node carries the entry, with_sectionsas its fallback address. Pins:packages/cli/test/i18n-form-section-entry-coverage.test.ts(3, against the built lint) andvalidate-translation-references.test.ts(1, with a CONTROL). Ablations: T10 to T13.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.
@object-ui/typeshas no changeset entry: its two touched files (src/__tests__/zod-mirror-parity.test.ts,src/__tests__/spec-object-refinements-7715.test.ts) are tests, and the package'sfilesships onlydist,README.md,CHANGELOG.mdandLICENSE.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 6151 to 6153, the row's measured delta (+2), on a base wheremain'sknowledgecapability row had already moved it from 6149 to 6151. 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
20a80b19d. This round brings currentmain(c2bfa3ef7) in once more, through PR A:mainis merged into PR A's branch (f4ce75659, no conflict, nothing left to regenerate there), and that branch into this one (2321811241, no conflict), then the regeneration20a80b19d(content/docs/references/api/protocol.mdxandcontent/docs/references/system/translation.mdx). On PR A,mainchangedagent.form.ts, which PR A renames: the change landed inagent.metadata-form.ts, which still callsdefineMetadataForm, andmainadds no*.form.tsmodule and nodefineFormcall. The merge changed files this PR also changes (lint'si18n-walk.ts,index.tsandrule-explanations.ts; spec'stranslation.zod.tsandi18n-resolver.ts; the eleven*.metadata-forms.generated.tsbundles), so the battery ran again on this head.20a80b19d:check:generated(14 of 14 current after the regeneration),check:facade-delegation-only(protocol.tswithin its ceiling),check:test-source-alias,check:adr-symbol-anchors,check:nul-bytes: exit 0 each. On PR Af4ce75659:check:generated14 of 14 current.20a80b19d(pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test, under the verify lock): VERDICT command-exit 0; 489 files passed, 3 skipped (492); 4140 tests passed, 68 skipped (4208); no failure.921f5d060, after mergingmain9a65a48f8): conflicts reconciled by summing both sides' deltas (the translated-leaf census 841;dropped-refinements.baseline.json279 / 1223; theprotocol-diff-delete-load.tsimports),protocol.tsbrought back to its ceiling with no behaviour change (921f5d060), thefailed[]wording of a held-backformitem (d5c5b92d5); metadata-protocol full (371 files, 23472 tests), restlocal(431 files, 8931 tests), lint full (240 files, 9739 tests), platform-objects full (129 files, 2202 tests), their typecheck and the gates listed then, all green; battery 489 files, 4138 tests.environment-overlay-five-types.test.ts(36 of 36);@objectstack/cliunitran 445 files, 6361 tests. Their gate lists stand as reported then.main.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?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