Skip to content

fix(metadata-protocol): a form view's unknown field or group is answered on save and publish, and the group finding reaches the read - #29389

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-vl6jfx
Nov 2, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-vl6jfx

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

domain:server#2 · os-steve · session_01ADHkmQxwoGb5fSnrFkpxmt

Requested by Steve · project thread
Fixes #29309

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:表单视图写了对象上不存在的字段或字段分组时,直接保存(非草稿)和发布的应答现在在 advisories 里带上 lint 原文警告(form-field-unknown / form-section-group-unknown);读取的 _diagnostics.warnings 也补上了分组那一条。
  • 为什么改:MCP / AI 作者只看保存与发布的应答,以前这两处一声不吭,只有之后再读一次才知道字段或整个分区被静默跳过。
  • 风险与回滚:只加警告,不拒绝任何保存或发布,valid 不变;草稿保存照旧不跑规则。规则现在也读 Studio 存的表单项(viewKind: 'form',分区在 config 下),所以 os validate / os build / os lint 对这类表单也会多出同样的警告。回滚即还原本 PR,无数据迁移。
  • 先看:packages/lint/src/validate-form-layout.ts(表单项 config 这一级的遍历),packages/lint/src/authoring-rules.ts(validateFormLayout 登记项改为 runtimeTypes: ['view']),packages/metadata-protocol/src/metadata-diagnostics.ts(读取放行两条规则),packages/metadata-protocol/src/protocol.form-layout-diagnostics.test.ts。
  • 两分钟验证:pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.form-layout-diagnostics.test.ts,预期 10 个用例全绿;在 main 上新增的用例 4 个红(对照组绿)。
  • 需要你做的:无,席位落地。

What changes

  • Save and publish answers (packages/lint/src/authoring-rules.ts): the validateFormLayout registration moves from CLI_ONLY + RUNTIME_NEEDS_FULL_SNAPSHOT to CLI_AND_RUNTIME + runtimeTypes: ['view'].
  • The form item rung (packages/lint/src/validate-form-layout.ts, the view walk only, per claim amendment 6579089637): the rule also walks a viewKind: 'form' item's config sections, the shape Studio saves ({ name, object, viewKind: 'form', config }), binding config.data.object first and the item's object otherwise. Rule ids, messages, hints and severity are unchanged. A list item's config is not walked. The rung lives in this rule, not in the shared view-walk.ts, so the other walkers' verdicts do not move. The CLI commands see the same rung, so a stack carrying a form item is judged there too. The rule is advisory, so an active save and a publish of a view whose form names an unknown field or an undeclared field group land as before and answer both findings in advisories (rule id, message, hint, severity: 'warning').
  • The read (packages/metadata-protocol/src/metadata-diagnostics.ts): withFormLayoutWarnings lets form-section-group-unknown through beside form-field-unknown, with the lint's own message (one spelling). Its own config adapter (formLayoutSubject, from meta door: a form view naming a field its object lacks publishes with _diagnostics valid, because the door validates the Zod shape only and never runs the lint's FORM_FIELD_UNKNOWN #29196) is retired: the rule now reads the served item as it is, the same walk the gate runs, and the read's paths (config.sections.0.fields.1) are unchanged.

The measurement the card asked for (the snapshot at the real doors)

Read and then measured on a real showcase boot (pnpm dev --fresh, this branch's build):

door runs the registry? objects in the snapshot result
PUT /meta/view/X (active save) yes registry.listItems('object') = getAllObjects → resolveObject (overlay + every extender folded, the shape getObject serves), plus stored rows folded by foldStoredCollection container form naming loyalty_tier (a showcase_account extension field), no_such_field and group no_such_group: two advisories, the extension field not reported
POST /meta/view/X/publish yes same no_such_field answered as a warning, publish not refused
PUT /meta/view/X?mode=draft no (#4463 D1: no rule gates a draft) none handed to any rule no advisory, by contract; the draft read carries the warnings (#29196)
runtime-authored object (stored row only) yes stored half form on it: its real fields known, nope_field reported
control yes same form naming name + loyalty_tier: no advisory
Studio form item, before the rung yes same PUT /meta/view/showcase_account.probe_e (viewKind: 'form', no_such_field under config): no advisory, the read warned. This is what the rung closes; pinned below.

So the objects are present, extensions and stored rows included, on both doors that run rules. No door hands the rule a snapshot without them.

No double report on the read

The read carries no runtime advisory: the draft read folds the publish verdict's refusals only (withPublishVerdict), and these findings are never refusals. Pinned: the active read after an active save carries each finding once.

Tests

packages/metadata-protocol/src/protocol.form-layout-diagnostics.test.ts (the #29196 file and harness, no new engine double), four new cases:

  1. a section naming an undeclared field group reads with the lint warning, draft and active (half 2);
  2. an active save naming an unknown field and an unknown group answers both as warnings with the lint's rule/message/hint, and the active read carries each once (half 1);
  3. a draft save carries no advisory (D1), and its publish answers form-field-unknown as a warning and is not refused (half 1);
  4. control: real fields (an extension field among them) and a declared group answer no advisory and read { valid: true };
  5. a Studio form item naming an unknown field: an active save and a publish answer it as a warning, and its read carries it once at config.sections.0.fields.1;
  6. control: a form item naming only real fields (an extension field among them) answers no advisory.

packages/lint/src/validate-form-layout.test.ts, four new cases: a form item's unknown field and undeclared group, found at views[0].config… with where · config; the config's own data.object binding wins over the item's object; control: real fields and a declared group are clean; control: a list item's config is not walked.

Red first: cases 1-3 red on origin/main 57cde8cb (control green); after the round-1 fix, case 5 and the two lint finding cases red on 9226d33b (both controls green).

Forced test edits, named:

  • protocol.form-layout-diagnostics.test.ts: the stub registry's listItems('object') now lists the served (merged) object rather than the authored one. Both real registry reads go through resolveObject; the old stub answered a shape no registry answers and would have invented a phantom on the extension field. The fixture object also declares one fieldGroups entry.
  • runtime-gate.test.ts (three lists), authoring-rule-wiring.test.ts (one), runtime-gate.page-visibility-predicate-writes.test.ts (one): the view write's rule list gains validateFormLayout after validateReferenceIntegrity.

Acceptance notes

Verification

Head: 6266ec85 (merge of origin/main 7f277a86 into the rung commit eb7ddbb4). All runs below on 6266ec85 unless marked.

  • Round 1 red first on origin/main 57cde8cb: Tests 3 failed | 5 passed (8) (cases 1-3; control green).
  • Round 2 red first on 9226d33b (new pins, rule unchanged): validate-form-layout.test.ts Tests 2 failed | 34 passed (36), protocol.form-layout-diagnostics.test.ts Tests 1 failed | 9 passed (10) (case 5; both controls green).
  • Green on eb7ddbb4: 36 passed (36), 10 passed (10).
  • Ablation 1 (registration back to CLI_ONLY, lint rebuilt, preflight marker in 4 built files): cases 2 and 3 red; restored, preflight --absent exit 0.
  • Ablation 2 (read filter back to form-field-unknown only): cases 1 and 2 red; restored.
  • Ablation 3 (the config rung removed, lint rebuilt, preflight marker in 4 built files): lint 2 failed | 34 passed; door 3 failed | 7 passed (the meta door: a form view naming a field its object lacks publishes with _diagnostics valid, because the door validates the Zod shape only and never runs the lint's FORM_FIELD_UNKNOWN #29196 read pin, case 1 and case 5: the read has no adapter now, so it depends on the rung too); restored, git diff HEAD empty, rebuilt, preflight --absent exit 0.
  • Real showcase boot measurements: see the table above.
Package suites and typecheck (head 6266ec8, under the verify lock)
  • turbo run build --filter='./packages/**' exit 0; pnpm --filter @objectstack/spec check:generated exit 0
  • pnpm --filter @objectstack/lint test → exit 0, Test Files 189 passed (189), Tests 7834 passed (7834)
  • pnpm --filter @objectstack/lint typecheck → exit 0
  • pnpm --filter @objectstack/metadata-protocol test → exit 0, Test Files 304 passed | 4 skipped (308), Tests 22161 passed | 26 skipped (22187)
  • pnpm --filter @objectstack/metadata-protocol typecheck → exit 0
Derived gates: 61 derived, 61 run, 0 NOT-MEASURED, 0 UNRUN (dispatch-gates --ran, head 6266ec8)
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-adoption.mjs :: exit 0
node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/docs-audit/check-affected-docs.mjs :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:docs-transcript-drift :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:durability-log-level :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:error-code-casing :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:keyed-text-bounds :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:logger-receiver-detach :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:objectql-double-limit :: exit 0
pnpm check:org-identifier :: exit 0
pnpm check:page-declaration-shape :: exit 0
pnpm check:platform-object-tenancy-census :: exit 0
pnpm check:pm-changeset-deadline-census :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:slot-lookup :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:system-context-census :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

Package lint: root eslint --no-inline-config on packages/lint and packages/metadata-protocol → exit 0.


Generated by Claude Code

…red on save and publish, and the group finding reaches the read

validateFormLayout crosses to the runtime publish gate for view writes, so
an active save and a publish answer form-field-unknown and
form-section-group-unknown as advisories (warnings, never refusals). The
view read lets form-section-group-unknown through beside
form-field-unknown.

Claude-Session: https://claude.ai/code/session_01ADHkmQ25mz3PUm6CpePgB3
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/lint, @objectstack/metadata-protocol, touching 10 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/validating-metadata.mdx (via AUTHORING_RULES (symbol, a top-level const object), runtimeTypes (symbol, a field of const object AUTHORING_RULES))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v12.mdx (via validateFormLayout (symbol, a top-level function))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 60 of 216 client-bound route-ledger rows — the other 156 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 156: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 101 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 — 14 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 7f277a86f670a956dcdf677937c1894706992bee → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 195fce740d54c188a67c7d75e61112a0d7c99267 — the merge of head 6266ec855994fe6b126f7d8f75a602bb1eb7417a into base 7f277a86f670a956dcdf677937c1894706992bee, 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 195fce740d54c188a67c7d75e61112a0d7c99267 && git checkout 195fce740d54c188a67c7d75e61112a0d7c99267
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 7f277a86f670a956dcdf677937c1894706992bee 6266ec855994fe6b126f7d8f75a602bb1eb7417a && git checkout -B drift-repro 7f277a86f670a956dcdf677937c1894706992bee && git merge --no-ff 6266ec855994fe6b126f7d8f75a602bb1eb7417a

node scripts/docs-audit/affected-docs.mjs --json 7f277a86f670a956dcdf677937c1894706992bee

⚠️ 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 7f277a86f670a956dcdf677937c1894706992bee → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…Studio form is judged on save and publish

validateFormLayout walks a `viewKind: 'form'` item's `config` sections
beside the container rungs. The runtime publish gate hands the rule the
written body as authored, so a Studio-saved form item now earns its
form-field-unknown / form-section-group-unknown advisories on an active
save and a publish. The view read drops its own config adapter and hands
the rule the served body.

Claude-Session: https://claude.ai/code/session_01ADHkmQ25mz3PUm6CpePgB3
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#2 · os-steve · session_01ADHkmQxwoGb5fSnrFkpxmt

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 6266ec855994fe6b126f7d8f75a602bb1eb7417a
Local-runs: none

Face: the PR's nine paths decide no face (record-recognisers.mjs --paths on the file list); the changeset's line reads Clause-②: no with no (narrowing) arm, so the declaration face is served at TIER_DEFAULT. Read: the net diff against main at 7f277a86, card #29309 with every comment (claim 6578091400, amendment 6579089637, reports 6579051645 and 6579936678), the precedent's pins in protocol.form-layout-diagnostics.test.ts (#29196 / PR #29307), and the cited code in the head tree: packages/lint/src/validate-form-layout.ts, view-walk.ts, object-field-groups.ts, runtime-gate.ts (buildRuntimeWriteSnapshotSet, runRules, runRuntimeAuthoringRules), packages/metadata-protocol/src/protocol-authoring-gate.ts (judgeRuntimeAuthoringRules, draftPublishVerdict), protocol-stored-collection-fold.ts, runtime-authoring-gate.ts (evaluateRuntimeAuthoringGate), metadata-diagnostics.ts (itemRelativeIssuePath, withPublishVerdict, withFormLayoutWarnings), the four gate call sites in protocol.ts (active save 16834, per-item publish 18733, batch publish 19649/19842, restore via refuseRestoredBodyTheSaveDoorRefuses), the view read at protocol.ts 5466-5490, and packages/objectql/src/registry.ts (listItems 7497, getAllObjects 6134, resolveObject 4541). Check-runs on the head: every run completed, 0 failed, 0 in progress (success on Build Core, Test Core 1-8, Lint and Repo Gates, both Type Check lanes, Governed Surface Queue Guard, Check Changeset, PR-body guards, Dogfood Regression Gate; the skipped ones are opt-in or schedule lanes).

① Derived judgments

  1. Registration moves to CLI_AND_RUNTIME + runtimeTypes: ['view'], entry only — right. The diff touches that one entry in AUTHORING_RULES; tier: 'advisory', commands: ALL, input: 'parsed' and run are unchanged. runtimeAuthoringRulesFor('view') now includes it; registry order puts it after validateReferenceIntegrity and before validatePublicFormFileFields, which is where the five rule-list pins put it.
  2. The snapshot carries the bound object on every door that runs the rule — right, by the tree, not only by the dev's boot table. All four doors (active save, per-item publish, batch publish, restore) reach judgeRuntimeAuthoringRules, which builds objects once: registry.listItems('object'), which is getAllObjects() → resolveObject() (the overlay-or-owner base with every extend contributor folded, the shape getObject serves), then foldStoredCollection folds the active sys_metadata object rows with the registry's extenders folded onto them. A stored object_extension row is registered as an extend contributor on every sync (registerObjectExtension, protocol.ts 1949), so a tenant-authored extension field is in both the gate's universe and the read's. The batch door adds its own pending drafts (pending, folded in evaluateRuntimeAuthoringGate), so a view published beside its object in one batch sees that object. Where the object can be absent — outside the write's package closure (narrowObjectsToPackageClosure), still a draft outside this batch, or a registry/store read that failed (best-effort, warned) — both checks skip: objectFields.get(objName) is undefined so (a) never fires, and checkSectionGroupRefs returns on an undeclared object. No door can produce a false warning from an absent object. The draft save returns before any collection read (D1), so it runs no rule, as the card and the dev state.
  3. Nothing is refused; valid cannot flip — right. validateFormLayout emits severity: 'warning' only, and runRuntimeAuthoringRules splits on the finding's severity (errors = error, advisories = the rest), so the gate's error is never built from these findings; a rule throw is itself caught into a warning (authoring-rule-threw). On the read, withFormLayoutWarnings keeps valid from the prior verdict (or true), and withPublishVerdict folds only the gate's refusal issues. Pinned: an active save answers two warning advisories and success: true, the publish of a draft naming an unknown field answers success: true, and the read after both answers valid: true.
  4. One finding, once, on the read — right. The read's only runtime judgement is draftPublishVerdict → judgeRuntimeAuthoringRules, whose advisories are discarded (verdict.error.issues only). So the rule's output reaches _diagnostics through withFormLayoutWarnings alone, and it runs once per read. The draft read now runs the rule a second time inside the gate for no output; that is a pure walk over objects the gate already gathers for the other view rules, no new read. Pinned on the active read after the active save (each message once) and on the form item read (one warning at config.sections.0.fields.1).
  5. formLayoutSubject retired, paths byte-identical — right. The old adapter handed { name, object, form: config } and rewrote the leading form to config; the rule now yields the site at ${viewPath}.config itself, and itemRelativeIssuePath('view', name, 'views[0].config.sections[0].fields[1]') strips views[0], dots the indices and the leading dot, giving config.sections.0.fields.1 — the exact meta door: a form view naming a field its object lacks publishes with _diagnostics valid, because the door validates the Zod shape only and never runs the lint's FORM_FIELD_UNKNOWN #29196 pin, which is unchanged in the file and green on the head. The binding order is the same as the adapter's (config.data.object → the item's object, via viewObjectName(site.view) ?? containerObject). The formViews.edit.sections.0.fields.0 pin is untouched. One observable difference: spelledObjectNames now walks the whole served item instead of the trimmed subject, which can only add getObject map lookups for names the item spells elsewhere; a name the lookup does not answer is not judged, so no new finding and no false one.
  6. The config rung cannot throw or misfire — right. It is keyed on view.viewKind === 'form' && isRec(view.config); a list item (viewKind: 'list', pinned), a form item whose config is missing, an array or a scalar, and any non-item container shape do not get the site. Inside the site every read is guarded as before: sections/groups must be arrays, a section must be a record, fields must be an array, an entry is a string or { field }. A form item carries no root sections, form or formViews, so the shared ladder yields nothing for it and the config site is the only one: no double finding. recordsOf(obj.fieldGroups) tolerates an array, a record or nothing. Rule ids, messages, hints, where spelling and severity are unchanged; the rung is in this rule only, view-walk.ts is untouched, so no other walker's verdict moves.
  7. Forced test edits — justified. The meta door: a form view naming a field its object lacks publishes with _diagnostics valid, because the door validates the Zod shape only and never runs the lint's FORM_FIELD_UNKNOWN #29196 stub's listItems('object') listing authoredTask was a universe no real registry answers (listItems → getAllObjects → resolveObject, the same merged object getObject serves); with it the gate would have charged the extension field region__c as unknown on save. Listing servedTask is the measured shape; the fixture's one fieldGroups entry is what the group control needs. The five view rule-list pins (three in runtime-gate.test.ts, one each in authoring-rule-wiring.test.ts and runtime-gate.page-visibility-predicate-writes.test.ts) enumerate runtimeAuthoringRulesFor('view') in registry order and gain exactly the one entry at the one slot the registry gives it; all green on the head.
  8. Cost — right. withFormLayoutWarnings is called at one site only, the item read (getMetaItem, protocol.ts 5473); no list read runs it. The gate's five collection reads already ran for every active view write (the type already carried runtime rules); the new rule walks those objects and reads nothing else. The view read loses the adapter.
  9. CLI surface — the rung is also seen by os validate / os build / os lint (commands: ALL), so a stack carrying a Studio-shaped form item now warns there too; additive warnings on an advisory rule, named in the changeset.

Design judgment on the two cited rules files (folded here; the declaration face carries no ④): the change holds against the code it cites and the card's acceptance — both findings answered as warnings on save and publish through the real door, form-section-group-unknown on the read, red-first pins and a control on each. I tried to break it on the paths above (absent object, cross-package object, malformed config, list item, draft save, batch publish, the read's double) and found no false warning, no refusal and no second report.

② Semver level

@objectstack/lint: patch, @objectstack/metadata-protocol: patch — right. Nothing published changes shape: the 2xx advisories[] and _diagnostics.warnings[] gain entries of their existing element shape, valid and every status are unchanged, no key, schema or export is added or removed (FORM_SECTION_GROUP_UNKNOWN was already exported from the lint root). Clause-②: no is right for the same reason, and Metadata-protocol: none is right (no door, verb or address moves). The changeset text matches the diff, D1 included.

③ Boundary flags

  • Dev flag, draft save carries no advisory (D1, open question 2 of 6579051645): answered — contract unchanged by the seat's amendment; the tree agrees (judgeRuntimeAuthoringRules returns before any collection read on state !== 'active'), and the draft read and the publish both carry the finding. Pinned.
  • Open question 1 (form ViewItem's config not walked): closed by amendment 6579089637 (option A); the rung is on this PR, within the amended surface (validate-form-layout.ts, view walk only), and the PR is Fixes #29309.
  • Delta report's open_questions: []: nothing left open.
  • Claim surface: runtime-authoring-gate.ts (held by PR fix(metadata)!: refuse a flow with an undeclared cycle at publish, as the engine refuses it at registration #29226), ui/**, packages/spec/** untouched; the only lint rule-logic change is the one the amendment admits.
  • Residual, not a fix: the boot measurement's control named real fields only; the declared-group control is pinned on the stub (fieldGroups on the served object) and holds by reading (resolveObject folds onto a spread of the base definition, fieldGroups kept).
  • Should-fix, non-blocking: packages/lint/src/validate-form-layout.test.ts splices the new #29309 describe into the middle of the [#22161] Slice 21 comment block (its last line, "members is the id's os explain entry.", is now orphaned above the [#22161] describe). Move the new block below that describe, or above the comment.
  • Author: objectstack-fleet[bot]; no non-fleet login to name.

Implemented-by: claude/project-thread-vl6jfx
Reviewed-by: session_01ADHkmQxwoGb5fSnrFkpxmt

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#2 · os-steve · session_01ADHkmQxwoGb5fSnrFkpxmt

席位核对

ACCEPT · domain:server seat 2 · os-steve · session_01ADHkmQxwoGb5fSnrFkpxmt · 2026-11-02T14:52Z · head 6266ec85 · claimed by seat 2 on #29309 (claim 6578091400, amendment 6579089637)

The maintainer's words for this seat, verbatim: 「接手所有开发,包括跟进之前未完成的开发落地。」 There is no maintainer ruling on the card. The seat filed it as the follow-up owed by PR #29307 (#29196).

  1. Shape: a draft against main, with Fixes #29309, Clause-②: no and a patch for lint and metadata-protocol. check-governed-merges --pr 29389 says NOT governed (0 of 9 paths). No packages/spec, no ui/**, and no change to runtime-authoring-gate.ts, which fix(metadata)!: refuse a flow with an undeclared cycle at publish, as the engine refuses it at registration #29226 holds.
  2. Contract review: PASS at this head (6580189617). The reviewer checked four things:
    • Every door that runs the rule (active save, per-item publish, batch publish, restore) gets the registry's merged objects with extensions folded in, and skips when an object is absent. So no warning is false.
    • The findings are warnings only, and valid and the publish verdict are unchanged.
    • Each finding appears once on the read.
    • Retiring formLayoutSubject keeps fix(metadata-protocol): a form view naming a field its object lacks reads with the lint's form-field-unknown warning #29307's pinned paths byte-identical.
      Its one should-fix is cosmetic: a test describe was spliced into a comment block. The seat does not cut a new head for it.
  3. Acceptance against the card and the amendment:
    • Save and publish answer form-field-unknown and form-section-group-unknown as advisories. That includes a Studio form ViewItem, whose config sections the rule now walks. This was option A of the amendment.
    • The read serves form-section-group-unknown.
    • Pins are red first, with controls and ablations.
    • The snapshot claim was measured on a real boot before the rule was crossed.
  4. Evidence:
    • lint: 7834 tests passed.
    • metadata-protocol: 22161 passed.
    • Typechecks: 0.
    • Gates: 61 of 61 exit 0.
    • CI on this head: 56 success, 11 skipped, 0 failed, all completed.
  5. Landing: pr_ready + automerge_enable through the relay. Studio form designer: show a form view's _diagnostics.warnings (a section naming a field its object lacks) #29311 (Studio display, domain:ui) is unaffected.

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 2, 2026 14:53
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 2, 2026 14:53
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit f129848 Nov 2, 2026
68 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-vl6jfx branch November 2, 2026 15:16
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#2 · os-steve · session_01ADHkmQxwoGb5fSnrFkpxmt

Landing record · PR #29389

domain:server seat 2 · session_01ADHkmQxwoGb5fSnrFkpxmt · 2026-11-02T15:32Z · card #29309

Reading Probe Result
Merged PR #29389 state merged, merge commit f1298486d8
On main git merge-base --is-ancestor f1298486d8 origin/main yes
Queue refs git ls-remote origin refs/heads/gh-readonly-queue/* matching 29389 0
Content git grep -n "runtimeTypes: ['view']" origin/main -- packages/lint/src/authoring-rules.ts present

Generated by Claude Code

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 size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant