Skip to content

refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts - #37366

Merged
os-zhuang merged 64 commits into
mainfrom
claude/project-thread-pu5dnt
Nov 27, 2026
Merged

os-zhuang merged 64 commits into
mainfrom
claude/project-thread-pu5dnt

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Alice · project thread

Fixes #37086 — now carries the card's whole cut: PR A (item 3's rename and suffix move) and PR B #37422 (the form type, its factory defineForm, everything else), which merged into this branch on the maintainer's approval (2026-11-27T03:24Z). Reviews of record: this PR's ACCEPT 7204174977 and merge delta 7203719013; #37422's ACCEPT 7204181264 and merge delta 7203725192 on 20a80b19d1, the head #37422 merged at.

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37105

维护者速读

  • 用户无感:Studio 内部用来定义"元数据编辑表单"的工具函数改了名字,相关的 18 个文件也换了后缀,界面和行为都不变。
  • 属于"表单拆成独立 form 元数据类型"这一组工作,先把原来的名字和文件后缀让给新的表单类型。
  • 出错时只会在编译阶段报错(找不到旧名字),不会影响运行中的数据;可以直接撤回这个改动。
  • 无。

What changes

  • defineForm (the Studio schema-bound metadata-form helper, packages/spec/src/ui/view.zod.ts) is renamed defineMetadataForm, with the same argument and result; packages/spec/src/index.ts and the @objectstack/spec/ui barrel export the new name, and packages/spec/tsup.config.ts's pure-constructor set names it. defineForm is absent between this PR and PR B, never dual-meaning (ADR-0159 question 1, ruled A, ruling record 7131569242).
  • The 18 Studio modules move from *.form.ts to *.metadata-form.ts (the card counted 17 at 689e5695b98; 18 at this head, email-template being the newer one), plus their one dedicated test (ai-context.metadata-form.test.ts). Import specifiers swept by both spellings: 32 files under packages/spec/src (the seven domain barrels, system/metadata-form-registry.ts, the tests, and kernel/repeater-item-titles.test.ts's 15 ../DIR/NAME.form imports).
  • scripts/i18n-bundle-surface.mjs: METADATA_FORM_MODULE_SUFFIX becomes .metadata-form.ts, its module note re-worded. scripts/pm/dispatch-gates.self-test.mjs re-spells its suffix cases (the live-walk assertion included) and gains one case: a form item source (examples/app-crm/src/forms/lead.form.ts) is not a metadata-form module. scripts/pm/dispatch-gates.data.mjs kind text, scripts/pm/landing-k.mjs fixture path, scripts/check-i18n-bundles.mjs comments. scripts/pm/dispatch-gates.mjs is not edited (it spells no suffix).
  • Text that teaches the suffix is re-worded to the new one: packages/lint/src/rule-explanations.ts (the visibility-root-mislayered explanation), the data arm of the field-rule message in packages/lint/src/validate-expressions.ts, the docblock of validate-visibility-predicates.ts with its two toContain pins and the MOVED token pin, and the row of content/docs/protocol/objectui/layout-dsl.mdx. The test's file-name detector reads both spellings (/[.-](form|view|page)\.ts/).
  • Comments and live path citations re-pointed under packages/lint/src, packages/cli/src, packages/cli/test, packages/platform-objects/src, packages/metadata-protocol/src, packages/spec/src, packages/spec/liveness/, ui/packages/app-shell/src/views/metadata-admin/, and two live citations in docs/qa/platform-checklist/areas/studio-authoring.json.
  • Generated: packages/spec/api-surface*, packages/spec/export-origins/ (7 files), content/docs/references/ui/view.mdx, regenerated by check:generated --fix.
  • ADR-0087: registered semantic entry define-form-studio-helper-renamed-define-metadata-form (the runtime-export-retired category is closed: the helper is declared in a *.zod.ts, a metadata surface by the gate's reading).

Outside-use reading (question 1), recorded before the rename's first commit

Count at this head (80da0864 base)

git grep -lw defineForm named 61 files at the base. After this PR the word survives only in released or historical text, which is not rewritten: 8 CHANGELOG.md, content/docs/releases/v17/17-0.mdx, docs/audits/2026-06-handwritten-docs-accuracy-followups.md, ADR-0159 itself, the new migration entry and changeset (which name the old spelling as the FROM side), and the historical sentence added to defineMetadataForm's docblock.

Tests

Local runs at this head
  • pnpm --filter @objectstack/spec build: VERDICT command-exit 0.
  • pnpm --filter @objectstack/spec check:generated: 3 of 14 stale before --fix (api-surface, export-origins, docs), 14 of 14 green after.
  • pnpm --filter @objectstack/spec test: Test Files 894 passed, 1 skipped (895); Tests 28417 passed.
  • pnpm --filter @objectstack/lint exec vitest run: Test Files 235 passed (235); Tests 9629 passed.
  • pnpm check:pm-dispatch-gates (the self-test this PR edits): 2314 cases pass, fast tier.
  • Changeset and ledger gates: check-adr-0087-registration --base origin/main 0, check-changeset-no-major 0, check-empty-changeset 0; check:commit-card-trailers 0, check:nul-bytes 0, check:ratchet-remedy-authority 0, check-skills-token-ratchet 0 (and --self-test 0), check:i18n-stale-fill 0, check:adr-anchors 0, check:spec-docblock-symbol-anchors 0, check:scripts-symbol-anchors 0, check-platform-checklist --changed-from origin/main 0, landing-k --self-test 0, check:i18n-walk-parity 0. check:i18n-coverage NOT MEASURED locally (exit 3, example build closure absent): cited from CI.
  • pnpm check:i18n: OK, 10 packages in sync; node scripts/check-i18n-bundles.mjs --write changed no bundle (git status clean after it).

Acceptance notes

  • Not edited, named for the seat: .claude/skills/spec-property-retirement/SKILL.md lines 264 and 318 spell *.form.ts and defineForm (a governed path); ui/docs/adr/0056-permission-editing-studio.md line 349 names security/permission.form.ts (an ADR); docs/adr/0159 is the record itself. Two pending changesets (35926-field-inline-edit-boolean-retired.md, 36425-retire-internal-forms.md) and two released migration entries (18.field-max-length-…, 18.field-min-length-…) and registry.ts.template name the old spelling as history; not rewritten.
  • pnpm check:platform-checklist is red at this head on areas/automation.json (FlowItemMoreMenu.tsx#FlowItemMoreMenu), a file this PR does not touch: red at the base 80da0864 too. The scoped run --changed-from origin/main is green.
  • The protocol line is narrowed: since feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 merged into this branch, this PR carries the card's narrowing (item 5's refusal), which feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 declared as Metadata-protocol: narrowed. A's own commits change no metadata an author writes.

Verification

Two minutes: git grep -nw defineForm -- packages ui scripts returns only the docblock's history sentence and the migration entry; pnpm --filter @objectstack/spec exec vitest run src/system/metadata-form-registry (or any metadata-form test) is green.

🤖 Generated with Claude Code

https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq


Generated by Claude Code

…aForm and its modules to *.metadata-form.ts

ADR-0159 question 1 (ruled A): the name defineForm and the *.form.ts suffix
go to the new `form` metadata type. This commit is the rename and the suffix
move alone (the card's PR A): 18 modules renamed, import specifiers swept by
both spellings, the i18n surface constant, the gate self-test and fixtures,
comments and path citations re-pointed, lint text re-worded, the generated
spec artifacts regenerated, and the semantic ADR-0087 entry registered.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:ai protocol:data protocol:system protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 10 package(s): @objectstack/cli, @objectstack/lint, @objectstack/metadata-core, @objectstack/metadata-protocol, @objectstack/metadata, @objectstack/objectql, @objectstack/platform-objects, @objectstack/rest, @objectstack/runtime, @objectstack/spec, touching 552 documentable anchor(s). ⚠️ 45 changed file(s) yielded no anchor (packages/cli/src/utils/config.ts, packages/lint/src/index.ts, packages/lint/src/predicate-rhs-position.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

158 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 1028438748dfbb6a76a981a25310fe39c481fb2c.

⛔ 25 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 45 changed file(s) yielded no anchor (packages/cli/src/utils/config.ts, packages/lint/src/index.ts, packages/lint/src/predicate-rhs-position.ts, …) — pages documenting those are invisible to this run
  • 8 anchor(s) matched too much of the corpus to be a work list: VALIDATION_ERROR (literal, 39 pages), defaultValue (literal, 43 pages), master_detail (literal, 49 pages), objectName (literal, 60 pages), requiredPermissions (literal, 42 pages), sharingModel (literal, 49 pages), snake_case (literal, 55 pages), /api/v1/meta (route, 55 pages)
  • 30 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 192 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 1028438748dfbb6a76a981a25310fe39c481fb2c → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 97b70cca0f971b4e478f07ef9077069b189c1288 — the merge of head ebd9872fcdbfdece26f4e27969669bbd02f9c42a into base 1028438748dfbb6a76a981a25310fe39c481fb2c, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 97b70cca0f971b4e478f07ef9077069b189c1288 && git checkout 97b70cca0f971b4e478f07ef9077069b189c1288
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1028438748dfbb6a76a981a25310fe39c481fb2c ebd9872fcdbfdece26f4e27969669bbd02f9c42a && git checkout -B drift-repro 1028438748dfbb6a76a981a25310fe39c481fb2c && git merge --no-ff ebd9872fcdbfdece26f4e27969669bbd02f9c42a

node scripts/docs-audit/affected-docs.mjs --json 1028438748dfbb6a76a981a25310fe39c481fb2c

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 1028438748dfbb6a76a981a25310fe39c481fb2c → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…three SchemaForm tests the rename edits

check:test-source-alias judges the test files a change edits: the three
SchemaForm tests reach celAuthoring's dynamic imports of @objectstack/lint
and @objectstack/formula, so each now loads them at module top.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
…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
…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
… the authorable surface after merging main

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As9cjn4Y9vAUQbVH4fq
@github-actions github-actions Bot added size/xl and removed size/l labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4054d58f94187e6e6cbb1ddbc47ecc3fa80d21a8
Local-runs: none
Scope: packages/spec/src/ai/agent.metadata-form.ts, packages/spec/src/ai/ai-context.metadata-form.ts, packages/spec/src/ai/index.ts, packages/spec/src/ai/skill.metadata-form.ts, packages/spec/src/ai/tool.metadata-form.ts, packages/spec/src/api/error-code-ledger.zod.ts, packages/spec/src/automation/flow.metadata-form.ts, packages/spec/src/automation/index.ts, packages/spec/src/data/authoring-key-lint.ts, packages/spec/src/data/field.metadata-form.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/hook.metadata-form.ts, packages/spec/src/data/index.ts, packages/spec/src/data/object.metadata-form.ts, packages/spec/src/identity/index.ts, packages/spec/src/identity/position.metadata-form.ts, packages/spec/src/index.ts, packages/spec/src/kernel/collection-item-owner-stamp.ts, packages/spec/src/kernel/customization-package.ts, packages/spec/src/kernel/metadata-plugin.zod.ts, packages/spec/src/kernel/metadata-type-schemas.ts, packages/spec/src/meta-spelling/manifest-collection-spelling.ts, packages/spec/src/meta-spelling/meta-url-data.generated.ts, packages/spec/src/migrations/entries/semantic/18.define-form-studio-helper-renamed-define-metadata-form.ts, packages/spec/src/migrations/entries/semantic/18.form-type-define-form-and-packageless-list-at-form-name.ts, packages/spec/src/security/index.ts, packages/spec/src/security/permission.metadata-form.ts, packages/spec/src/stack.zod.ts, packages/spec/src/system/email-template.metadata-form.ts, packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/index.ts, packages/spec/src/system/metadata-form-registry.ts, packages/spec/src/system/translation.zod.ts, packages/spec/src/ui/action.metadata-form.ts, packages/spec/src/ui/anonymous-form-intake.ts, packages/spec/src/ui/app.metadata-form.ts, packages/spec/src/ui/dashboard.metadata-form.ts, packages/spec/src/ui/dashboard.zod.ts, packages/spec/src/ui/dataset.metadata-form.ts, packages/spec/src/ui/form-intake-layer.ts, packages/spec/src/ui/index.ts, packages/spec/src/ui/old-shape-form-withdrawals.ts, packages/spec/src/ui/page.metadata-form.ts, packages/spec/src/ui/report.metadata-form.ts, packages/spec/src/ui/view.metadata-form.ts, packages/spec/src/ui/view.zod.ts, skills/objectstack-platform/SKILL.md + .changeset/37086-define-metadata-form-rename.md, .changeset/37086-form-metadata-type.md, .changeset/37086-form-type-console-strings.md, content/docs/deployment/cli.mdx, content/docs/deployment/validating-metadata.mdx, content/docs/getting-started/build-with-claude-code.mdx, content/docs/references/api/automation-api.mdx, content/docs/references/api/protocol.mdx, content/docs/references/system/translation.mdx, content/docs/references/ui/view.mdx, content/docs/ui/react-pages.mdx, docs/audits/2026-07-unknown-key-strictness-ledger.counts/system.md, docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md, docs/qa/platform-checklist/coverage.json, examples/app-showcase/src/ui/forms/feedback.form.ts, packages/cli/src/utils/i18n-bundle-extract.ts, packages/cli/src/utils/i18n-coverage.ts, packages/cli/test/i18n-form-section-entry-coverage.test.ts, packages/lint/src/authoring-rules.ts, packages/lint/src/i18n-walk.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/validate-form-items.ts, packages/lint/src/validate-translation-references.test.ts, packages/lint/src/validate-translation-references.ts, packages/lint/src/validate-visibility-predicates.ts, packages/metadata-protocol/src/meta-overlay-cache.test.ts, packages/metadata-protocol/src/meta-overlay-cache.ts, packages/metadata-protocol/src/protocol-authoring-gate.ts, packages/metadata-protocol/src/protocol-batch-data.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/metadata-protocol/src/protocol-discovery-and-bases.ts, packages/metadata-protocol/src/protocol-form-reads.ts, packages/metadata-protocol/src/protocol-form-writes.ts, packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-list-reads.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/metadata-protocol/src/protocol-packaged-base-refusal.ts, packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/protocol.view-expansion-reconcile-call-sites.test.ts, packages/metadata-protocol/src/runtime-authoring-gate.ts, packages/metadata-protocol/src/sys-metadata-repository.ts, packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts, packages/rest/src/data-write-summary-recompute-other-doors.test.ts, packages/rest/src/form-old-shape-before.json, packages/rest/src/form-routes.ts, packages/rest/src/meta-dashboard-view-i18n-explicit-override.test.ts, packages/rest/src/meta-item-read-gate.ts, packages/rest/src/meta-item-read-routes.ts, packages/rest/src/public-form-app-crm-byte-equal.test.ts, packages/rest/src/public-form-file-field.test.ts, packages/rest/src/public-form-intake-availability.test.ts, packages/rest/src/public-form-option-subset.test.ts, packages/rest/src/public-form-required.test.ts, packages/rest/src/public-form-routes.stored-row.test.ts, packages/rest/src/public-form-routes.test.ts, packages/rest/src/public-form-section-i18n.test.ts, packages/rest/src/public-form-submit-answer.test.ts, packages/rest/src/public-form-title-i18n.test.ts, packages/rest/src/public-form-two-type-withdrawal.test.ts, packages/rest/src/public-form-withdrawal.test.ts, packages/rest/src/rest-write-route-hook-refusal-sentence.ledger.test.ts, packages/rest/vitest.repo-tests.json, packages/spec/authorable-surface/ui.json, packages/spec/dropped-refinements.baseline.json, packages/spec/liveness/form.json, packages/spec/liveness/state-counts/translation.md, packages/spec/liveness/translation.json, packages/spec/src/kernel/metadata-credential-fields.test.ts, packages/spec/src/system/i18n-resolver.form-item.test.ts, packages/spec/tsup.config.ts, scripts/adr-anchors/packages__metadata-protocol__src__protocol-form-reads.ts.json, scripts/adr-anchors/packages__rest__src__form-routes.ts.json, scripts/adr-anchors/packages__spec__src__ui__old-shape-form-withdrawals.ts.json, scripts/check-examples-live-imports.mjs, scripts/check-i18n-bundles.mjs, scripts/check-skills-token-ratchet.mjs, scripts/check-stack-collection-maps.mjs, scripts/cross-package-test-inputs.mjs, scripts/i18n-bundle-surface.mjs, scripts/pm/dispatch-gates.data.mjs, scripts/pm/dispatch-gates.self-test.mjs, scripts/pm/landing-k.mjs, turbo.json, ui/scripts/check-spec-symbol-derivation.mjs
Security-touching: yes
Rule-change-verified: none

Delta round on PR #37366, base main, which now carries the whole cut of card #37086: PR A's rename and PR B #37422's form type (merged into this branch by fast-forward at 20a80b19d1). 279 files, +6685 / -712. Records this one builds on: 7203719013 (PR A, PASS on f4ce756599) and 7203725192 (PR B, PASS on 20a80b19d1). Read for this round: the delta 20a80b19d1..4054d58f9 (the merge d607a3e492 of main 3ed97b7142, and the regeneration commit 4054d58f9), the committed merge compared with a recomputed merge of its two parents, the net diff against each merge base compared path by path, what main changed in the files this PR's code reads, the PR body against the three changesets, and the check-runs on this head. Nothing was built, run or re-run. The Scope: line is the union of the two earlier ones (47 hits, the same 47) plus the three regenerated files.

What moved. No authored line of this PR. Against 3ed97b7142 the net diff has the same 279 paths with the same statuses and the same added and removed counts on every path as 20a80b19d1 had against its merge base c2bfa3ef7c. The added and removed lines are identical on every path but one: docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md, a generated count (see ③). Three more paths differ in surrounding context only (packages/spec/src/ui/view.zod.ts, packages/spec/src/ui/form-option-enum-derive.test.ts, ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts): main edited lines beside this PR's, and this PR's own lines are unchanged.

① Derived judgments

Nothing in the delta changes an accept set, an answer's shape or the public surface this PR declares. The judgments of both earlier records stand as judged there. What main brought into the files this PR's code reads was judged for interaction:

  • The option-value floor (data/field.zod.ts, feat(spec): a select option value may be one character (grade a / b / c publishes as written) #37779). Interacts, and correctly. main replaces the two-character floor on a select option's value with a floor of one character, on SelectOptionSchema.value alone. The form type's field options reuse that shape by reference, so a form item accepts a one-character option value at this head. That is main's widening, declared by main's own changeset, arriving through the shared shape as its docblock says every reusing face does. No line this PR adds pins the old floor: none names SystemIdentifierSchema, a too_small code or a two-character rule for an option.
  • defineMetadataForm's remedy (view.zod.ts). No loss on either side. main re-worded the derive remedy and its docblock for the new floor and updated the pinned cases ('x' no longer refused; the empty value is). This PR's change to the same function is its name. Both are present at this head.
  • KanbanConfig.cardFooter (view.zod.ts, feat(kanban): card footer with open comment threads and attachments (#36423) #37667). A new optional key on the board config. The form schema and its intake layer do not read the board config. No interaction.
  • metadata-plugin.zod.ts (feat(studio): a dataset is a data type; datasets and positions are always listed in the menu #37599). main moves the dataset row's domain to data. This PR's form row is a separate row (domain: 'ui', page's flags); neither row reads the other. main's Studio menu table places types by name and this PR adds no row to it: the form type's menu placement is declared out of this card (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) in the console changeset.
  • i18n-resolver.ts. main changes one comment. No interaction.
  • packages/lint. main adds one rule for AI context packs (its export, its explanation, its row) and re-words two explanations. This PR's lines in the same three files are form rules and the suffix wording; none reads the new symbol.
  • Console form page (fix(console): a named or public form lays its sections out by the form view's own columns #37671). main changes how the named and public form pages lay sections out by the form view's columns, and re-cites that key in packages/spec/liveness/view.json. This PR's entries in that file are other keys (the defineMetadataForm evidence and the public-form door citation); the file merged as text and both sets of entries are present. This PR changes no console layout code.
  • Studio and locale bundles. main adds package-switcher keys and re-words save-footer strings. This PR's keys (engine.translationPreview.category.forms and the form count strings) are other keys, each present once at this head.
  • The rename holds. 18 *.metadata-form.ts modules under packages/spec/src, none under *.form.ts; main added no caller of the old helper and no module under the old suffix.

② Semver level

Unchanged by the delta: the three changesets are untouched. The PR body's Clause-②: yes (narrowing) and Metadata-protocol: narrowed match them: 37086-form-metadata-type.md declares yes (narrowing) / narrowed and grades @objectstack/spec minor; 37086-define-metadata-form-rename.md declares yes (narrowing) / none at patch; 37086-form-type-console-strings.md declares no / none. The body carries the strongest of the three, which is what the combined diff is. Check Changeset ran twice on this head: the first run, started before the body was edited, is red on the protocol declaration; the second, started after the edit, is green and is the newer verdict.

③ Boundary flags

  • The merge d607a3e492 equals the recomputed merge of its two parents on every path but one, packages/spec/src/ui/view.zod.ts, the one conflict: a docblock sentence above defineMetadataForm. The resolution takes main's wording ("object-field options and picklist items") and keeps this PR's defineMetadataForm. Both meanings are kept: the sentence now describes the grammar as main left it and names the function as this PR named it. It is a comment; no schema line was in conflict.
  • The regeneration 4054d58f9 touches three files. The merge driver set two aside as generated (content/docs/references/ui/view.mdx, packages/spec/authorable-surface/ui.json); the third, the strictness count for ui/, had merged as text to 231, one short. Each is consistent with the tree: view.mdx gains main's two rows for the option value and main's cardFooter rows, each matching the schema text at this head; ui.json gains ui/KanbanConfig:cardFooter, which main carries too; the count reads 232, main's 231 plus this PR's one object in view.zod.ts. Against main each file's net change is this PR's reviewed rows and nothing else.
  • Check-runs on this head, all concluded: 74 runs, 62 success, 11 skipped, 1 failure. The failure is the superseded first run of Check Changeset named in ②. Every lint lane, both builds, the type-check lanes, Test Core 10 of 10 and Test UI 16 of 16 concluded green, Lint · docs & code guards among them (red on PR A alone, as record 7203719013 said it would be until PR B joined).
  • mergeable true, mergeable_state blocked. main has moved 2 commits past the merged commit (to 6e8f663710). A recomputed merge with it has no conflict and sets no generated file aside; 13 locale and Studio string files are edited on both sides. Those commits were not judged here. A further merge makes a further head, which this record does not name.
  • Escalated to the seat: the approving review on this PR names f4ce756599, a head before PR B joined; the approving review on feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 names 20a80b19d1. Whether an approval naming an earlier head covers this one is the landing rule's to decide, not this record's.
  • Escalated to the seat, unchanged: ADR-0067 D3's sentence on per-item revert and ADR-0160 line 425's path (rows for the ADR upkeep card); .claude/skills/spec-property-retirement/SKILL.md and ui/docs/adr/0056 still name the old helper, outside this card's surface.
  • .claude/**: no path in the diff. The header reads none.
  • Security: the header reads yes: the combined diff carries the form read gate and the anonymous intake. The delta adds no line to them, and nothing main brought changes what they read.
  • SQL push-down (Prime Directive 5): the delta adds no read or write. S5 below is the standing finding on the form doors.

④ Design judgment

Against ADR-0159 D1, D3, D5 and D8, ruled question 1 (A), and the card's Done-when. The tree was read, not the PR body's account.

Earlier findings, by id (ids are those of record 7203725192 unless marked).

On S5: comment 7205846098 exists on #37422, posted under the seat's header, and records the maintainer's choice to leave the finding to #37709; #37709 is open and names the residual. The code is unchanged since the finding was raised.

Files that hold. Every file of both earlier records carries the same net change against main as at 20a80b19d1; the three regenerated files hold as judged in ③.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-pu5dnt
Reviewed-by: l2d-37086 subagent of session_011y7As8wf3DSPRevwNnYLcM

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

Landing · 2026-11-27T04:30Z

Maintainer approval: Alice (os-alice), 「37366 我也批准了,你合并后可以直接落地」, seat 7's project chat, 2026-11-27T03:24Z; os-zhuang APPROVED (#37366 and #37422). #37422 merged into this branch; this head adds one main merge (one docblock conflict, comment-only) and its regeneration. Reviews of record: merge-delta PASS 7209560540 at this head (S5 closed as the maintainer's accepted deviation 7205846098, residual #37709); dev report with this head's dogfood battery 7209851420 (exit 0, 490 files, 4144 tests). The first Check Changeset run predates the body's protocol line fix; its re-run on this head (job 140298002058) is green.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 27, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
@os-zhuang
os-zhuang removed this pull request from the merge queue due to a manual request Nov 27, 2026
# Conflicts:
#	packages/spec/src/system/i18n-resolver.ts
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As8wf3DSPRevwNnYLcM

CI note · 2026-11-27T05:45Z

Test Core (4/10) on c49cbc2 is red for an infrastructure reason, not this PR: every test step passed (check-test-completeness OK, 22645 tests accounted for; the shard attestation step reads "ran to completion with every step green"), and the job then failed uploading the attestation artifact (Failed to CreateArtifact: Unable to make request: ECONNRESET), job 140330167756. A re-run of that job clears it.


Generated by Claude Code

@os-zhuang
os-zhuang merged commit adb65d1 into main Nov 27, 2026
70 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-pu5dnt branch November 27, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ai protocol:data protocol:system protocol:ui size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants