Skip to content

feat(spec): serve metadata list columns on /meta/types, hook first - #36881

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-gs5c0d
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-gs5c0d

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Part of #36860

This is part (a) of the card's two-PR split, which the seat chose when the whole change measured about 3,530 changed lines: the spec declaration, the serving, the header translation, the extractor support and the console precedence, proven end to end on hook. Part (b) follows from main once this merges and closes the card: the other 26 types, their 52 new header leaves in the 11 metadata-forms bundles, the 9 console declarations moved into spec and the duplicate object registration resolved.

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — the served list is Studio display data that only the spec registry declares; a metadata author cannot write it, and no skill under skills/** teaches Studio list columns (skills/objectstack-ui/SKILL.md names entries[].schema only, unchanged)

维护者速读

  • 工作室里「钩子」列表的列改由平台规范统一声明,列头随界面语言显示,其他元数据列表暂时不变。
  • 属于工作室元数据列表标准化:列定义从控制台代码搬进规范,命令行和 AI 客户端读同一份。
  • 只有看钩子列表的管理员会看到列变化;出错时退回原来的默认列,合并后可直接撤回。
  • 无。

What changes

  • Spec (@objectstack/spec). MetadataListViewSchema is a list layout bound to the type's own schema (data: { provider: 'schema', schemaId }) with columns. Each MetadataListColumnSchema is ListColumnSchema narrowed to field / label / type. field is a schema key or a dotted path into it, and type is a MetadataListCellTypeSchema renderer: text, badge, boolean, count, list or summary. defineList({ schemaId, columns }) builds one and refuses anything else. METADATA_LIST_REGISTRY (system) sits beside METADATA_FORM_REGISTRY and declares hook here. resolveMetadataListLabels translates a list's headers through metadataForms.<type>.fields.<field>.label.
  • Serve (@objectstack/metadata-protocol, @objectstack/rest). getMetaTypes() serves the registry entry as list beside form, and GetMetaTypesResponseSchema declares it. translateMetaTypesResponse localizes the headers with the bundle and locale it already uses for form. A type with no entry carries no list key.
  • i18n (@objectstack/lint). walkMetadataForms emits the form field slot for each column path the type's form does not already label, with the header as the English source. scripts/check-i18n-bundles.mjs names the registry module as a bundle trigger. Every hook header reuses a form label, so no bundle changes.
  • Console (@object-ui/app-shell). ResourceListPage reads the served columns first (servedListColumns.tsx). If the type serves none, it uses the console's listColumns, then the default name / label / description. A served header is shown as served. A key the stored row omits shows the schema default at that path. listCells overrides a served column's cell and listExtraColumns appends server-stamped values that are not schema keys. builtinComponents.tsx and anchors.ts are not touched here; their 9 declarations move in part (b).

Tests

  • packages/spec/src/system/metadata-list-zod-reconciliation.test.ts: every column resolves to a declared, writable, non-retired, non-overlay key of its type's schema. No column is duplicated, and each header equals the form field label or the humanized path. Each refusal has a "gate can fail" pin: an undeclared key, an _ overlay key, a retired key, an undeclared nested key, and defineList refusing currency, an empty column list and width.
  • packages/metadata-protocol/src/protocol.meta-types-list-layout-36860.test.ts: every registry type is served with its own frozen layout. The control is a type with no entry, which carries no list key.
  • packages/rest/src/meta-types-list-headers.test.ts: zh-CN headers are translated through the form field slot, dotted path included, and only the header is rewritten. The controls are the en headers, a type serving no list, and no in-place mutation across requests. Ablation: replacing the translate call with next.list = entry.list reds the zh-CN case (1 failed, 2 passed), restored by trap.
  • ui/.../servedListColumns.test.tsx covers the renderers, path and default readers and the precedence helpers. ui/.../ResourceListPage.servedListColumns-36860.test.tsx mounts the page and checks served headers in order, each renderer, schema defaults for absent keys, a dotted path, the default list as control, a listCells override and a listExtraColumns column.

Acceptance notes

Verification

Read first, by risk:

  1. ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx: the precedence expression and localizeColumnLabel skipping a served header.
  2. packages/lint/src/i18n-walk.ts: the column step in walkMetadataForms. It decides which bundle leaves part (b) adds.
  3. packages/spec/src/ui/view.zod.ts: the pick/extend narrowing behind defineList.

Two-minute check: pnpm --filter @objectstack/rest exec vitest run src/meta-types-list-headers.test.ts. Expect 3 passed, with the zh-CN case reading ['名称', '事件', '最大重试次数'].

Gates on 597f70e
  • node scripts/pm/dispatch-gates.mjs --ran: 145 derived, 145 run, 0 NOT-MEASURED, 0 UNRUN. Two findings were fixed in this PR: check:test-source-alias (module-top @objectstack/objectql import in the new rest test) and check:engine-double-contract (ledger rewritten with --write for the new metadata-protocol test). Three gates first exited 3 on prerequisites and were re-run green: the plugin-teardown self-test after fetching its pinned fixture commit, and check:skill-examples and check:dual-build-cjs-loads after building the packages that had no dist.
  • pnpm --filter @objectstack/spec check:generated: all 14 artifacts up to date. check:authorable-surface, check:llms-txt, check:spec-parsed-alias, check-i18n-bundles (no bundle changes), check:i18n, check:i18n-walk-parity, check-changeset-no-major, check-empty-changeset and check-changeset-fixed pass. check:i18n-coverage passes after building service-print.
  • check-governed-merges --branch HEAD: not governed, 1,309 changed lines.
  • tsc --noEmit is clean for @objectstack/metadata-protocol, @objectstack/rest and @objectstack/lint. @object-ui/app-shell type-check was not measured locally because the ui workspace deps have no dist; the only error in the changed files is the shared unresolved @object-ui/components import. CI's type-check lane is the verdict.
  • Tests: spec src/system + src/api/protocol 2,941 passed; app-shell metadata-admin list and directory pages 221 passed (15 files); @objectstack/lint i18n 27; metadata-protocol meta-types 67; rest list headers 3 + schema titles 3.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzg7mFFG5b13DcQ93kf

Trim the list registry to hook for the first half of the card (the other
26 types, their bundle leaves and the nine console moves follow in the
second half), keep the console declarations as they were, regenerate the
spec baselines and add the changeset.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg7mFFG5b13DcQ93kf
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 4 package(s): @objectstack/lint, @objectstack/metadata-protocol, @objectstack/rest, @objectstack/spec, touching 23 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/spec/api-surface/system.json, packages/spec/api-surface/ui.json, packages/spec/authorable-surface/ui.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/kernel/services-checklist.mdx (via getMetaTypes (symbol, a method of class ProtocolDiscoveryAndBasesFacet))
  • content/docs/plugins/adding-a-metadata-type.mdx (via getMetaTypes (symbol, a method of class ProtocolDiscoveryAndBasesFacet))
  • content/docs/protocol/kernel/i18n-standard.mdx (via metadataForms (literal, a string literal in walkMetadataForms))
  • content/docs/ui/reports.mdx (via LABEL (symbol, a top-level const object))
  • content/docs/ui/translations.mdx (via metadataForms (literal, a string literal in walkMetadataForms))

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

  • content/docs/releases/implementation-status.mdx (via RestServer (symbol, a top-level class))
  • content/docs/releases/v12.mdx (via RestServer (symbol, a top-level class))
  • content/docs/releases/v16.mdx (via RestServer (symbol, a top-level class))
  • content/docs/releases/v17/17-3.mdx (via RestServer (symbol, a top-level class))
  • content/docs/releases/v17/17-5.mdx (via RestServer (symbol, a top-level class))
  • content/docs/releases/v18/18-3.mdx (via RestServer (symbol, a top-level class), metadataForms (literal, a string literal in walkMetadataForms))

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
  • 8 changed file(s) yielded no anchor (packages/spec/api-surface/system.json, packages/spec/api-surface/ui.json, packages/spec/authorable-surface/ui.json, …) — pages documenting those are invisible to this run
  • 2 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 — 179 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 97e0f934e5e0613179a429ce9fcaa47e2d351768 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 9564f2ffa652853cd99bf35c017614c887bfc09f — the merge of head 597f70e74069d518950e6ea574de3ac32c71e2e1 into base 97e0f934e5e0613179a429ce9fcaa47e2d351768, 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 9564f2ffa652853cd99bf35c017614c887bfc09f && git checkout 9564f2ffa652853cd99bf35c017614c887bfc09f
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 97e0f934e5e0613179a429ce9fcaa47e2d351768 597f70e74069d518950e6ea574de3ac32c71e2e1 && git checkout -B drift-repro 97e0f934e5e0613179a429ce9fcaa47e2d351768 && git merge --no-ff 597f70e74069d518950e6ea574de3ac32c71e2e1

node scripts/docs-audit/affected-docs.mjs --json 97e0f934e5e0613179a429ce9fcaa47e2d351768

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract-review-claim: session_01WGufzesUz1Y8VZuKJRhVL8 · head 597f70e · 2026-11-24T07:34Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 597f70e74069d518950e6ea574de3ac32c71e2e1
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts, packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/index.ts, packages/spec/src/system/metadata-list-registry.ts, packages/spec/src/ui/view.zod.ts + packages/spec/src/system/metadata-list-zod-reconciliation.test.ts, packages/metadata-protocol/src/protocol-discovery-and-bases.ts, packages/metadata-protocol/src/protocol-meta-type-schema.ts, packages/metadata-protocol/src/protocol-meta-types-listing.ts, packages/metadata-protocol/src/protocol.meta-types-list-layout-36860.test.ts, packages/rest/src/rest-server.ts, packages/rest/src/meta-types-list-headers.test.ts, packages/lint/src/i18n-walk.ts, scripts/check-i18n-bundles.mjs, scripts/engine-double-contract.pinned.json, ui/packages/app-shell/src/views/metadata-admin/servedListColumns.tsx, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/registry.ts, ui/packages/app-shell/src/views/metadata-admin/useMetadata.ts, the two app-shell tests, the generated spec shards (api-surface, authorable-surface, declaration-map, export-origins, json-schema.manifest) and content/docs/references, .changeset/36860-metadata-list-columns.md
Security-touching: no
Rule-change-verified: none

Inputs: card #36860 body and all six comments (7122720706, 7122828117, 7122844515, 7122871023, 7123560039, 7124466797), the PR body, the 32-file net diff against merge-base 5c2e34cdb2b4, and the head's check-runs. The tree touches packages/spec/src/**, so the face is the published schema and the record carries ④; the brief named the declaration shape, the committed tree decides the tier.

No must-fix, no should-fix.

① Derived judgments

  • MetadataListCellTypeSchema, MetadataListColumnSchema, MetadataListViewSchema, defineList and their six types (@objectstack/spec/ui): right. New names only. The column is ListColumnSchema.pick(field, label, type) with type re-declared as a closed six-value enum; ListColumnSchema.type is a free string on main, so every value a metadata column accepts is one a ListColumn already accepts. The view is ListViewShapeSchema.pick(data, columns) with columns narrowed to at least one metadata column. Both stay strict, so width and the other ListView keys are refused (pinned by the "gate can fail" case). No accept-set on any existing schema moves.
  • METADATA_LIST_REGISTRY, MetadataListType, resolveMetadataListLabels (@objectstack/spec/system): right. A frozen const beside METADATA_FORM_REGISTRY, one entry (hook: name, label, object, events, priority, async, description). All seven keys are declared on HookSchema at head (hook.zod.ts 555 to 684) and all seven are fields of hook.form.ts with no explicit label, so each header equals the humanized form label and no bundle leaf is new. The resolver returns a new object, rewrites label only, and leaves a list untouched when the bundle has no entry for the type.
  • GetMetaTypesResponseSchema.entries[].list optional: right. Additive on a non-strict entry object; a client that ignores it parses as before. The dev's note that schema and form are still undeclared there is accurate and stays out of scope.
  • getMetaTypes() serves list beside form, omitted when the type has none: right. Both emit sites carry it, the MetaTypesListingEntry pin gains list?, and the protocol test holds the control (no list key on an undeclared type).
  • translateMetaTypesResponse translates the headers through metadataForms.TYPE.fields.FIELD.label: right. Same bundle, locale and options as form; the rest test pins zh-CN, a dotted path, the en control, a type with no list and no in-place mutation.
  • walkMetadataForms step 3 and the METADATA_LIST_REGISTRY_MODULE coupling constant: right by reading. The de-duplication key matches the entry shape walkFormField pushes (['metadataForms', type, 'fields', path, 'label'], source metadataFormField), so a column the form labels emits nothing and a column it does not emits one leaf with the header as source. The constant follows the two bare constants already there. See N2: on this head the branch has no input.
  • Generated shards and reference docs: right. They list exactly the new names and the five keys ui/MetadataListColumn:field|label|type, ui/MetadataListView:columns|data; Spec property liveness, Lint · docs & code guards and Build Docs are green on the head.
  • engine-double-contract.pinned.json: right. Three ledger rows for the new metadata-protocol test file, nothing else.
  • Console precedence (servedListColumns): right. Served list, else the console listColumns, else the default; listExtraColumns appended after any of the three with key de-duplication. For hook no console declaration exists on main, so the only visible change is the Hooks list. A type that serves no list reads exactly the expression it read before.

② Semver level

  • Changeset: @objectstack/spec, @objectstack/metadata-protocol, @objectstack/rest, @objectstack/lint, @object-ui/app-shell, each minor. These are every package whose source the diff touches; scripts/** and content/docs/** publish nothing. Check Changeset is green on the head.
  • Clause-②: yes (widening) is right: new exports and one new optional served key; nothing accepted before is refused. It is present in the PR body and the changeset body.
  • Metadata-protocol: added is right, and nothing here is semantic. No existing key changes meaning or default. The authorable ratchet gains five keys, which is added by AGENTS.md step 3, and added takes at least minor, which every listed package has. No author-facing door accepts a MetadataListView yet (only the spec's own registry calls defineList), so none was arguable; added is the conservative reading and costs nothing.
  • Skills-docs: none with its reason is on both the changeset and the PR body (the body line was added after the dev report, without a head move). Its truth is judged in ③.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Seat route 7122844515, four points: followed. (1) Shape: ListViewShapeSchema and ListColumnSchema narrowed through defineList, no new shape. (2) Label source: the existing fields.KEY.label slot; no new translation slot, and the extractor emits that slot for a column the form does not label. (3) Absent keys: schemaDefaultAt reads the served JSON Schema default at the column path, pinned for priority and async. (4) flow: not declared in (a); the report states type only for (b).
  • Skills-docs: none: true on this head, and no skills follow-up is owed by (a). Read at head: outside packages/spec nothing calls defineList or imports MetadataListViewSchema / MetadataListColumnSchema. The only caller is metadata-list-registry.ts; the only other reference is the response schema's list. There is no loader, no registrar, no metadata type and no stack-definition key through which an app or plugin author's list declaration is consumed, and the registry is a frozen module constant. An author can import defineList and build a value, but nothing loads it. skills/** at head teaches no Studio metadata list columns (its only hits are the record-page relatedListColumns, a different surface). The five authorable-surface/ui.json rows are the ratchet's mechanical ledger of the keys of every exported strict object schema in the category; it does not test for a door, and listing them is correct and required by the gate. The export therefore does not make none untrue. Two things follow. The body's own words "a metadata author cannot write it" sit beside Metadata-protocol: added, whose definition is what an author can write: the added rests on the ratchet count alone and is the conservative choice (② above); it is not evidence of a door. And the skills debt starts the day a door opens: the card that adds a list registrar or a stack key owes Skills-docs then, not this one (N4).
  • Plugin registrar: correctly absent. No registrar is added; the registry is frozen; the PR body says so.
  • Part of #36860: right for split (a). The card's acceptance for Flows, Jobs, the 9 console types, object, and the zh screenshots is not met by this PR and is named for (b), which carries Fixes. The split and its line counts are on the card (7123560039).
  • Corrected and dropped columns (report 7124466797): nothing in (a) is made false by them. The registry holds hook only, and the reconciliation test asserts exactly ['hook'], so (b) must edit that assertion to add a type. One comment is made false meanwhile (N3).
  • Dev flag, out-of-scope 1 (schema and form undeclared on the response schema): accurate, pre-existing, not widened here. The seat files it.
  • Dev flag, out-of-scope 2 (the runtime dispatcher serves form, and now list, untranslated): accurate and pre-existing for form, but it has one new consequence in (a), recorded as N1. The seat files it with that consequence named.
  • Security: no new exposure. list is a compile-time constant of column keys and English labels, a subset of what the same entry already serves as schema and form. The diff changes no route registration and no guard: the REST route and the dispatcher's /meta domain keep their existing caller gates. Header translation reads the bundle the same call already reads for form. Cells read the row body the list read already returns whole.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join; the served value is a module constant and the console reads rows it already fetched.
  • Author: the PR user.login was not read as an input; the body is signed by the dev session session_01WGufzg7mFFG5b13DcQ93kf through the relay.

④ Design judgment

Each hits file holds against the seat route and its first consumer (Studio's generic list, proven on hook). Nits and accepted deviations, none affecting correctness or the contract on this head:

  • N1 (accepted deviation, goes on the dispatcher card). servedListColumns marks every served header labelLocalized: true whether or not the server translated it. Where the listing is served untranslated (the runtime dispatcher path, or a host with no translation bundle), a zh reader of the Hooks list now sees Name / Label / Description where the console's own engine.list.col.* table gave 名称 / 显示名 / 描述 before. On the REST path with the shipped bundles the headers are translated. Part (b) widens this to 27 types, so the dispatcher card should land before or with (b), or (b) should fall back to the console table when a served header equals its English source.
  • N2 (carry to (b)). The extractor's list-column branch in i18n-walk.ts emits nothing on this head (every hook column is a form field) and no lint test pins it. It reads correct. Part (b) gives it its first input and owes the pin: one column path the form does not declare emits one leaf, and a path the form declares emits none.
  • N3 (prose). registry.ts now says the columns reading listInclude: 'grants' are the type's own listExtraColumns; position still declares _holderCount and _grantedPermissionSets under listColumns in the untouched builtinComponents.tsx. True only after (b).
  • N4 (carry to the registrar card). defineList is exported and its jsdoc does not say that only the spec's own registry is read. No skill should teach it until a door consumes an author's declaration; the card that opens one owes the skills and docs update and should say so in its Skills-docs: line.
  • N5. MetadataListViewSchema inherits data as picked: optional, any provider arm. Only defineList forces provider: 'schema', and no consumer in the diff reads data. Accepted under the seat's shape-reuse ruling (one declaration can feed the record grid later); if a second producer appears, narrow data to the schema arm.
  • N6. MetadataListType is keyof a Record keyed by string, so it is string, not a union. Same as MetadataFormType; parity, not a defect.
  • N7. The reconciliation test hand-copies humanizeFieldPath from @objectstack/lint. A drift between the two would show as a header mismatch only for a column the form does not label, which (b) introduces.

Check-runs on the head: 71 names, latest run each; all success except nine skipped (opt-in, queue-only and matrix-parent lanes). None failed, none pending.

Implemented-by: claude/project-thread-gs5c0d
Reviewed-by: session_01WGufzesUz1Y8VZuKJRhVL8 (isolated L2 subagent, model claude-fable-5-2)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — ACCEPT · repo:objectstack#3 · head 597f70e · 2026-11-24T07:42Z

L1 read of #36881, which is Part of #36860: part (a) of the seat's split, the spec, serve and console precedence. Seat routes 7122844515; dev report 7124466797. Contract-review claim 7125152059. CONTRACT_REVIEW_TIER L2 record 7125274794: PASS, clean round, rendered on the schema face because packages/spec/src/** is touched.

Face. l1-face.mjs --pr 36881: every item ok. skills-docs reads ok once the body carries the none — … line, and the L2 confirms that line is true (below). At this head: 61 checks succeed, 9 skip as expected, 0 fail. mergeable_state clean. check-governed-merges.mjs says NOT governed (1309 changed lines). Clause-②: yes (widening), Metadata-protocol: added.

Read and sound.

  • Spec: MetadataListViewSchema and MetadataListColumnSchema are strict narrowings of ListViewShapeSchema / ListColumnSchema, which follows the seat's shape-reuse route. The closed six-value cell enum is a subset of the free type string. defineList refuses an unknown renderer, an empty list and keys outside field/label/type. METADATA_LIST_REGISTRY holds hook only. The reconciliation test refuses an undeclared, retired or overlay key, and a header that differs from the form label for the same path.
  • Serve: getMetaTypes() serves list beside form on both emit sites, and GetMetaTypesResponseSchema declares it. REST translates headers through the existing metadataForms.<type>.fields.<path>.label slot (resolveMetadataListLabels), which follows the seat's label-source route. The rest-server translate-call ablation turns the pin red.
  • Console: servedListColumns puts served columns first, then the console listColumns, then name/label/description. An absent key shows the schema default (seat route point 3). flow declares type only (point 4). No plugin registrar is added, which is correct per the route.
  • Security: list is a compile-time constant and a subset of the schema and form already served on the same row. No route or guard changes.
  • Skills-docs: none is true. Outside packages/spec, nothing calls defineList or consumes an authored list (no loader, registrar, metadata type or stack key). The five authorable-surface/ui.json rows are the ratchet's mechanical ledger of exported strict schemas, which the gate requires. The card that opens a registrar or stack key owes the skills and docs update.

Changeset, read sentence by sentence. Every sentence matches the diff.

No must-fix, no should-fix.

For the seat (landing todo). The report names two out_of_scope_findings that no card carries. Before or with part (b), which widens the first to 27 types, file:

  • (a) The runtime http-dispatcher /metadata/types path serves form, and now list, untranslated, unlike the REST /meta handler. On that path the console treats served headers as already localized, so a zh reader of Hooks would see Name / Label / Description where the console's own table gave 名称 / 显示名 / 描述 (L2 N1).
  • (b) GetMetaTypesResponseSchema still declares neither schema nor form on an entry, though both are served.

Notes (nit, no action required in (a)):

  • N1. The changeset lists @object-ui/app-shell (private: true) at minor. That is harmless, and other ux PRs leave it out.
  • N2. Carried from the L2 record: the extractor's list-column branch has no pin yet, and (b) owes one. The registry.ts listInclude jsdoc names listExtraColumns while position still declares the grant columns under listColumns, which is false until (b). The defineList jsdoc should say only the spec registry is read (carry to the registrar card). MetadataListViewSchema.data is accepted under the shape-reuse route. The reconciliation test hand-copies humanizeFieldPath.
  • N3. Most of 元数据列表列改为在 spec 里声明,经 /meta/types 下发(像表单布局一样);第一批补上 hook、flow、job 等类型的关键列 #36860's acceptance (the first-batch types, the 9 console moves, the object fix, zh screenshots of Hooks, Flows and Jobs) lands with (b). That is why this PR is Part of.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

Landing · 2026-11-24T07:44Z · L1 ACCEPT 7125297029 (L1-a) at head 597f70e · #36860 part (a)

reading value
check-governed-merges.mjs --pr 36881 NOT governed · +1287/−22
landing-k.mjs --pr 36881 OK · K = 4 < 15 · locale and shared-budget legs clear
contract Clause-②: yes (widening) · Metadata-protocol: added (served list on /meta/types; spec list registry seeded with hook) · L2 PASS 7125274794 (CONTRACT_REVIEW_TIER) · Skills-docs: none confirmed by L1
checks at 597f70e 63 success, 11 expected skip, 0 failed, 0 pending

State: ready + auto-merge (Tier S). Part of #36860: the card stays open for part (b), which follows from main after this merges.

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

2 participants