Skip to content

fix(spec,metadata-protocol): a view's packaged translation catalog yields to a published org overlay (#20731) - #20770

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-20731-view-catalog-override
Sep 30, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-20731-view-catalog-override

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Part of #20731. This PR lands the two producer halves that triage (5901376430) assigned to this card: the translator rule in @objectstack/spec and the packaged-view accessor in @objectstack/metadata-protocol. The card should stay open after this merges, because the /meta view arm in packages/rest still hands no base (see "Not in this PR"). Triage routes that arm onto #20730's per-type base resolver as one more arm. It is filed as a per-layer child, or added to #20730's PR, whichever the seats agree.

Clause-②: yes

Reproduced first, at the translator and protocol layer

Harness. A scratch vitest file in packages/objectql (not committed). It builds a real SchemaRegistry and registers a defineView container the way the boot does: the container under the bare object key, then each expandViewContainer item under its qualified name with a package id. It uses the real ObjectStackProtocolImplementation over a read-only in-memory sys_metadata that holds one published org overlay row: type: view, name: showcase_task.in_progress, package_id: null, the org, state: active, label In Progress (edited-20731). The catalog is keyed the way the showcase ships it (objects.showcase_task._views.in_progress.label, zh-CN 进行中). I did not run a real /meta boot. The HTTP reading is the #20680 dev's probe3 (os-dev-report 5900307018), and this probe reproduces it one layer down.

reading before (origin/main 33e4a5609c) after (this branch, rebuilt dist)
protocol.getMetaItem label (org read) In Progress (edited-20731) same
protocol.getMetaItems label (org read) In Progress (edited-20731) same
served _packageId com.example.showcase (the artifact envelope) same
typeof protocol.getPackagedViewBase undefined function
translateView(served, zh-CN), no base 进行中 进行中 (unchanged, by design)
translateView(served, zh-CN), handed the packaged view 进行中 (the base was ignored) In Progress (edited-20731)
translateMetadataDocument('view', …) zh-CN, with base 进行中 In Progress (edited-20731)
the same, en, with base In Progress (edited-20731) same
unedited sibling showcase_task.urgent, zh-CN 紧急 紧急
after reset (no overlay row): label, then zh-CN with base In Progress, 进行中 same

So the write and both protocol reads agree on one identity, and the protocol serves the edit. The catalog applied over it because translateView took no base: on origin/main its third parameter was ResolveOptions, and it never read packagedBase, even when the generic dispatcher passed one.

Hypotheses (the dispatch's zone 2), and which held

  • H1: held, with one correction. translateView was at i18n-resolver.ts:906 and translateDashboard at :1407. The comparison is not written inline in translateDashboard. PR fix(spec,metadata-protocol): a dashboard's packaged translation catalog yields to a published org overlay (#20680) #20728 already made it one private function, valueOverridesPackagedBase, behind the exported scalarOverridesPackagedBase, so there was nothing to extract. translateView now calls that same function, so there is no second comparison. The dashboard-specific piece was the part finder packagedDashboardPart, the lookup that finds the packaged counterpart of a widget, filter or option by key. It is renamed to packagedPart, its key union is widened, and both translators share it. translateDashboard's behaviour is unchanged (its 9 pins and the whole spec suite are green).
  • H2: held. getPackagedDashboardBase was at protocol.ts:7194. The view base comes from the same source, lookupArtifactItem. Views are top-level registry items. The objectql boot loop registers each view that a defineView container expands to as its own view item, under the qualified name OBJECT.VIEW_KEY, with the package id; it also keeps the container under the bare object key. objects.OBJECT._views.VIEW_KEY is only the catalog's layout, not a registry shape. The base mirrors the registry item, which is also the shape the overlay row and both reads carry. A view has no extension fold, so the artifact item is the packaged declaration.
  • H3: the key. The catalog key is objects.OBJECT._views.VIEW_KEY.label, derived from the served name by viewTranslationKey, which strips the OBJECT. prefix. The base is matched by the served view's registry identity, the qualified OBJECT.VIEW_KEY name, never by the bare key. The bare key is unique only within one object; the showcase ships in_progress views on more than one object. Pinned in protocol-packaged-view-base.test.ts: showcase_task.in_progress and showcase_project.in_progress each answer their own base, and the bare in_progress answers undefined. At the translator, every pin hands a qualified-name served document whose catalog sits under the bare key. I did not enumerate the example apps for a view whose registered name differs from its container key beyond the prefix. The only producer of that shape is expandViewContainer's collision rename, which the build-time view-ref lint turns into a hard error.
  • H4: held, measured. A scratch REST test (not committed) drove GET /api/v1/meta/view/:name and GET /api/v1/meta/view through RestServer's real route handlers, against this branch's rebuilt @objectstack/spec. The protocol double served the overlaid view and implemented getPackagedViewBase. Results: item and list, zh-CN, 进行中; getPackagedViewBase called 0 times. packagedObjectBaseOf in meta-item-read-gate.ts returns undefined for every type but object. So the defect stays observable over HTTP until the /meta view arm lands.

What changes

  • translateView takes TranslateDocumentOptions; it previously took ResolveOptions, and the new type only adds the optional packagedBase. When a base is supplied, the catalog replaces a string only while that string still equals its packaged counterpart. The rule is ADR-0029 D9.2a's, and it is the same one translateObject (The i18n catalog is resolved ahead of the document, so a tenant's own Studio rename never reaches either /meta/object read — and neither do extension scalar overrides #8284) and translateDashboard follow. It covers:

    • the view label and description;
    • each bulk-action def's label, confirmText and confirmLabel;
    • each param's label, help and placeholder.

    A def or param is matched by the name the bundle addresses it by. One that the base does not carry counts as authored ("a base that declares no such scalar"). With no base, the output is byte-identical to before.

  • Why the bulk-action copy is included: translateView translates those strings too, and the rule belongs to the translator, not to one attribute. Leaving them out would mean that when the base is handed, an edited view label wins while an edited bulk-action label on the same view still loses. The measured reading is the label. The bulk-action cases are pinned but were not measured on a running app.

  • ObjectStackProtocolImplementation.getPackagedViewBase(name) is the view twin of getPackagedDashboardBase. Both now delegate to one private packagedArtifactBase(type, name): lookupArtifactItem and nothing wider. It is shadow-immune to an overlay hydrated under the plain registry key. It answers undefined for a view no code package ships, for an unknown or empty name, and for a registry that cannot answer. getPackagedDashboardBase answers exactly as before (its 8 pins are green).

Readers of the changed functions, and which served answers move

  • translateView is reached through translateMetadataDocument('view', …). In the serving path, that means packages/rest/src/meta-item-read-gate.ts, where translateMetaDocument (item) and translateMetaList (list) pass packagedBase: packagedObjectBaseOf(…). That is undefined for view, so no serving path supplies a view base today, and the new branch does not run in production until the /meta view arm lands. Measured: H4 above. The CLI's i18n-bulk-action-coverage test drives translateView without a base and is green (17 of 17).
  • getPackagedViewBase has no caller yet; the /meta view arm will be its first reader.
  • packagedPart and valueOverridesPackagedBase are private.

Published surface (for the Clause-② line)

  • @objectstack/spec: no export is added, removed or renamed (check:api-surface: "public API surface + factory signatures unchanged"). One exported function's parameter type is widened: translateView's opts goes from ResolveOptions to TranslateDocumentOptions, and every existing call still compiles.
  • @objectstack/metadata-protocol: one new public method, getPackagedViewBase, on the exported ObjectStackProtocolImplementation.
  • Both are widenings, so both changesets are minor, as the dispatch ordered: .changeset/20731-spec-view-catalog-override.md and .changeset/20731-metadata-protocol-packaged-view-base.md.

No documented rule is reversed

A value equal to the packaged declaration still gets the catalog, and so does a label written as an inline locale map, because only a string counts as an override (pinned). That keeps the case content/docs/ui/translations.mdx describes: a package's own label against its own bundle. ADR-0029 D9.2a is applied one type further; nothing is reversed.

Tests

The code and pins below are at a3f753cead, which is the fix plus a merge of origin/main a51920f5fb. The only later commit, 64f4797662, adds one ledger row to scripts/engine-double-contract.pinned.json. The gates are at 64f4797662.

  • packages/spec/src/system/i18n-resolver.test.ts gains a block of 12 tests:

    • the qualified-name vs bare-key identity;
    • an unedited view keeps every string translated;
    • an edited label is served in zh-CN and in en;
    • per-string judgement;
    • every string kind (description, the def's three strings, the param's three strings);
    • a tenant-added def or param;
    • no base as the pre-change control (the measured defect);
    • reset;
    • the ruled no-op edge and an inline locale-map label;
    • an unedited sibling view handed its own base;
    • no mutation of inputs;
    • the generic dispatcher.

    The whole spec local project: 576 files, 17003 passed, 1 todo.

  • packages/objectql/src/protocol-packaged-view-base.test.ts has 10 tests against a real SchemaRegistry and the real protocol:

    • the packaged body by qualified name;
    • immunity to a plain-key overlay;
    • the key (another object's same-key view; the bare key answers undefined);
    • the three undefined answers;
    • a registry that cannot answer;
    • item and list reads serve the overlay (one identity);
    • translation with the base serves the edit in zh-CN and en, on item and list;
    • an unedited view stays translated;
    • the no-base control reproduces the defect;
    • reset.

    The objectql local project: 339 files, 6714 tests, all green.

  • @objectstack/metadata-protocol: 190 files passed (3 skipped); 2792 tests passed (19 skipped).

  • typecheck is green for:

    • spec, with check:scripts-typecheck and its test layer;
    • metadata-protocol;
    • objectql, with tsconfig.scripts.json and its test layer.
  • Reverse verification A (spec, source-resolved, scripts/ablation-replace.mjs). The mutation fed translateView no base: asRecord(opts?.packagedBase) became asRecord((opts as any)?.ABLATION_20731). The anchor went from 1 to 0, and the blob went from 1e7995c1148d to 2f0943d33e2a. -t 20731 turned 5 of 12 red: the edited label, every string kind, the tenant-added def or param, reset, and the dispatcher. It was restored with blob equal to HEAD and git diff HEAD empty. The per-string test stays green under this mutation by construction: it guards the other direction, withholding too much.

  • Reverse verification B (the same mutation, through dist). The spec was rebuilt, and ablation-dist-preflight found the marker in 4 built files. The objectql protocol pins turned 2 of 10 red: translation with the base (item and list, zh-CN and en), and reset. Restore leg: restore, rebuild, --absent over 230 built files, tree clean, 10 of 10 green.

  • Reverse verification C (accessor, through metadata-protocol dist). getPackagedViewBase was made to answer the plain registry read, which is the shadow trap. After the rebuild the marker was in 2 built files, and 2 of 10 turned red: plain-key overlay immunity, and the no-code-package case. Restore leg: rebuild, --absent over 24 built files, tree clean, 10 of 10 green.

  • Gates: node scripts/pm/dispatch-gates.mjs --commands derived 96 families at 64f4797662, and I ran all 96. Three first answered PREREQUISITE NOT MET because they needed built output: check:dual-build-cjs-loads, check:lean-entry-closure and check:type-check-debt. They exited 0 after turbo run build over ./packages/* and ./packages/*/*. --ran reconciliation: "96 derived, 96 run, 0 NOT-MEASURED, 0 UNRUN". check:engine-double-contract asked for the new double to be recorded, so scripts/engine-double-contract.pinned.json gains one findOne row, written by the gate's --write.

  • Narrowed lint: eslint --no-inline-config --format json over the 4 TypeScript files in the diff reported 4 files, 0 errors and 0 warnings. That population comes from the config's own files glob, **/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}; the other 3 changed paths are .md and .json. The config never enables type-aware linting (its own comment says so: no parserOptions.project), so this diff cannot move the verdict for an untouched file.

Not in this PR

Acceptance notes

  • Dormant until the /meta arm. With this PR alone, no served answer changes. Measured at the REST route layer (H4), not in a real boot.
  • The branch merged origin/main at a51920f5fb before this PR opened. Since then, main has taken 3 commits (cba417a8f2, 0d9349fea0, 7053333e1e), and none of them touches these packages. The merge queue rebuilds on the current main.

Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

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

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

  • content/docs/ai/actions-as-tools.mdx (via confirmText (literal, a string literal in translateBulkActionDefs))
  • content/docs/ai/connect-mcp.mdx (via confirmText (literal, a string literal in translateBulkActionDefs))
  • content/docs/concepts/metadata-lifecycle.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/deployment/validating-metadata.mdx (via globalFilters (literal, a string literal in packagedDashboardPart; a string literal in packagedPart))
  • content/docs/protocol/kernel/i18n-standard.mdx (via confirmText (literal, a string literal in translateBulkActionDefs))
  • content/docs/protocol/objectui/actions.mdx (via bulkActionDefs (literal, a string literal in packagedPart; a string literal in translateBulkActionDefs), confirmLabel (literal, a string literal in translateBulkActionDefs), confirmText (literal, a string literal in translateBulkActionDefs))
  • content/docs/protocol/objectui/record-alert.mdx (via confirmText (literal, a string literal in translateBulkActionDefs))
  • content/docs/ui/actions.mdx (via bulkActionDefs (literal, a string literal in packagedPart; a string literal in translateBulkActionDefs), confirmText (literal, a string literal in translateBulkActionDefs))
  • content/docs/ui/dashboards.mdx (via globalFilters (literal, a string literal in packagedDashboardPart; a string literal in packagedPart))
  • content/docs/ui/views.mdx (via bulkActionDefs (literal, a string literal in packagedPart; a string literal in translateBulkActionDefs))

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

  • content/docs/releases/v16.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class), globalFilters (literal, a string literal in packagedDashboardPart; a string literal in packagedPart))
  • content/docs/releases/v17/17-0.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/releases/v17/17-1.mdx (via confirmText (literal, a string literal in translateBulkActionDefs))

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
  • the SDK route bridge reached 54 of 206 client-bound route-ledger rows — the other 152 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 152: 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; 97 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 — 138 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 7053333e1e2194cea2e21d8b2e1c9b6f081fcfa6 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 1d5dcc10a9e972aaeb43a8377400cd597d9d9d04 — the merge of head 64f47976620529c3d3938a3240eab5233c10e248 into base 7053333e1e2194cea2e21d8b2e1c9b6f081fcfa6, 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 1d5dcc10a9e972aaeb43a8377400cd597d9d9d04 && git checkout 1d5dcc10a9e972aaeb43a8377400cd597d9d9d04
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 7053333e1e2194cea2e21d8b2e1c9b6f081fcfa6 64f47976620529c3d3938a3240eab5233c10e248 && git checkout -B drift-repro 7053333e1e2194cea2e21d8b2e1c9b6f081fcfa6 && git merge --no-ff 64f47976620529c3d3938a3240eab5233c10e248

node scripts/docs-audit/affected-docs.mjs --json 7053333e1e2194cea2e21d8b2e1c9b6f081fcfa6

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

@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Sep 30, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 64f47976620529c3d3938a3240eab5233c10e248
Local-runs: none

Head re-read twice this act and unmoved. Inputs, and nothing else: card #20731 (body; triage 5901376430; claim 5903072480; os-dev-report 5903655620), PR #20770 (body, its 7-file list, the net diff against main from the merge-base a51920f5fb), PR #20728 as precedent (merged as 1940afdaf), and the head's check-runs. Nothing was built, run or re-run.

Check-runs on the head, read at 2026-09-30T04:40Z: 35 in all; 32 completed success, 3 completed skipped (Build Docs, Console Pin Gate, Packed-tarball smoke (opt-in)), 0 in progress, 0 failed. Green includes Lint & Repo Gates, TypeScript Type Check (the spec artifact gates inside it: api-surface, authorable-surface), Check Changeset, Governed Surface Queue Guard, Part-of PR must not also close its card, Test Core 1 to 6, the Dogfood gates, Spec property liveness.

① Derived judgments

Accept-set: unchanged — right. No Zod schema, authorable key, conversion or migration registry is in the diff; check:authorable-surface and Spec property liveness are green.

Public surface, @objectstack/spec (/system, export * from './i18n-resolver').

  • translateView(view, bundle, opts?): the third parameter widens from ResolveOptions to TranslateDocumentOptions — right. That type already existed and was exported (extends ResolveOptions, adds only packagedBase?: unknown; translateObject and translateDashboard take it). A ResolveOptions value is assignable to it, so every existing call compiles unchanged; on main the dispatcher table METADATA_DOCUMENT_TRANSLATORS was already typed on TranslateDocumentOptions, so the base was handed to translateView and ignored — the PR body's reading of the cause is true. check:api-surface records export names plus defineX factory signature hashes only, so this widening is not caught mechanically; the changeset carries it, correctly.
  • No export added, removed or renamed — right. packagedDashboardPart to packagedPart is a private rename; valueOverridesPackagedBase stays private; scalarOverridesPackagedBase's exported signature is untouched.
  • Behaviour with no base: asRecord(undefined | null) is undefined; valueOverridesPackagedBase(undefined, …) is false for every string and packagedPart(undefined, …) is undefined, so every branch takes the pre-change call with the same arguments and the return statement is not in the diff. "Without packagedBase the output is byte-identical to before" — true.
  • Behaviour with a base: the comparison is the ONE function PR fix(spec,metadata-protocol): a dashboard's packaged translation catalog yields to a published org overlay (#20680) #20728 introduced (valueOverridesPackagedBase, the body behind scalarOverridesPackagedBase), and its three conservative edges are kept (no base → false; non-string or empty value → false; exact equality). No second comparison — right, as triage ordered. Coverage per string (view label and description; each def's label, confirmText, confirmLabel; each param's label, help, placeholder, matched by name; a def or param the base lacks answers {} and counts as authored) mirrors translateDashboard's "a part the base does not carry" rule — right. An inline locale-map label is never an override; an edit back to the shipped string is a no-op — pinned.
  • translateDashboard: only the finder's name changes at its four call sites, same keys, same body — unchanged, right.

Public surface, @objectstack/metadata-protocol.

  • ObjectStackProtocolImplementation.getPackagedViewBase(name): unknown — one new public method, additive; like getPackagedDashboardBase it sits on no interface — right.
  • getPackagedDashboardBase now delegates to the private packagedArtifactBase('dashboard', name), whose body is the former method's body line for line (non-string or empty guard, lookupArtifactItem, catch to undefined). "Answers exactly as before" — true. lookupArtifactItem prefers registry.getArtifactItem (composite package-qualified entries first) and, on the getItem fallback, drops an item without a genuine _packageId, so an overlay hydrated under the plain key is never the base — the shadow-immunity claim is true.
  • The key: the base is matched by the served view's registry identity, the qualified OBJECT.VIEW_KEY. expandViewContainer composes name as object plus dot plus key; the objectql boot (engine.ts, the views arm) registers each expanded item under that name with the owner package id and keeps the container under the bare object key; viewTranslationKey strips the prefix for the catalog. The bare key is not an identity (the showcase zh-CN bundle carries _views.in_progress under two objects). Stated in the body and TSDoc, pinned in protocol-packaged-view-base.test.ts (the KEY test: two objects, and the bare key answers undefined) and in i18n-resolver.test.ts (composes the identity). Triage's "states which key the base is matched by, and pins it" — met.
  • No served answer changes with this PR — true. packages/rest/src/meta-item-read-gate.ts packagedObjectBaseOf answers undefined for every type but object (the item read gates on metaType === 'object' before calling it); rest-server.ts translates object only; getPackagedViewBase has no reader outside the two test files. The /meta view arm is left to rest: the /meta dashboard item and list reads pass no packaged base to translateDashboard, so a published org overlay on a translated dashboard keeps the shipped widget title — per-layer child of #20680 #20730's per-type resolver; this diff adds no resolver — "not a second resolver" respected.

Ledger. scripts/engine-double-contract.pinned.json gains one row (protocol-packaged-view-base.test.ts, findOne, pinned 1), the twin of the dashboard test's row; the double calls assertEngineFindOnePredicate — right.

Shipped prose, sentence by sentence.

  • Both changesets: every factual sentence is true against the code, including "Every existing call compiles unchanged", "translateMetadataDocument already passed it through", "No serving layer in this release passes a view base yet", "No existing read changes answer, and getPackagedDashboardBase answers exactly as before", "Nothing is removed or renamed". One simplification: the protocol changeset says the bare key "answers undefined" flatly; the TSDoc carries the exact condition (unless some package registers a view under that literal name). Acceptable as CHANGELOG text.
  • New and edited TSDoc: true. The measured reading it cites (In Progress (edited-20680), 进行中, admin or member, item or list) is the card's own; ADR-0126's regime table lists view under O (overlay), which supports "a packaged view is overlay-editable"; ADR-0029 D9.2a and its "same comparison, one layer down" requirement are quoted as the resolver already records them.
  • PR body (the squash message): true throughout — the line references to main (i18n-resolver.ts:906, :1407, protocol.ts:7194), H1 to H4, the reader list, the published-surface section, the 12 and 10 pin counts, the commit lineage (a3f753cead then 64f4797662) — with ONE FALSE SENTENCE: "The CLI's i18n-bulk-action-coverage test drives translateView without a base and is green (17 of 17)". packages/cli/test/i18n-bulk-action-coverage.test.ts imports collectExpectedEntries, extractTranslations, computeI18nCoverage and ObjectTranslationDataSchema; it names translateView in comments only and never calls it. The no-base readers that ARE green are the pre-existing spec blocks (translateView — bulkActionDefs (#14253), the translateMetadataDocument('view', …) tests) and the REST read gate, all under Test Core. Wrong witness, right conclusion; not a contract fact. Ask of the adopting seat: remove or correct that sentence in the PR body before the squash — a body edit moves no head, so this record stands.

② Semver level

  • .changeset/20731-spec-view-catalog-override.md: @objectstack/spec minor — right. A parameter widened to an extension of its former type is additive; a fix that also widens a published signature takes minor, not patch (Post-Task Checklist 3: a yes declaration takes at least minor).
  • .changeset/20731-metadata-protocol-packaged-view-base.md: @objectstack/metadata-protocol minor — right. One new public method, nothing removed. Both packages are released (17.5.0, neither private), so skip-changeset would have been wrong.
  • Neither change is breaking, so no ADR-0087 disposition marker and no migration is owed; check:changeset-no-major, check:adr-0087-registration and Check Changeset are green.
  • The PR body declares Clause ② as yes — right: the diff widens the public surface (one exported function's parameter type, one new protocol method) while the accept-set is unchanged. No (widening) or (narrowing) arm is written, which the closed pair permits; (narrowing) would have been false. Both minor levels are consistent with the declaration, and with the dispatch's order.

③ Boundary flags

Dev flags, from the os-dev-report deviations and the PR body:

  1. The rule also covers the bulk-action copy, measured on the label only — answered, accepted. The rule belongs to the translator (the dashboard twin covered every string it translates); leaving the defs out would let an edited view label win while an edited def label on the same document loses. Pinned per string in the new spec block, including a tenant-added def and param. "Not measured on a running app" is declared in the body; the /meta view arm's verification is its carrier.
  2. The refactor inside the surface (packagedPart; the private packagedArtifactBase) — answered, accepted. Both private; the dashboard call sites and the accessor body are unchanged; the dashboard pins ride in Test Core (green). H1's corrected premise (the comparison was already one function) is true.
  3. Part of #20731, not Fixes — answered, right. Nothing served changes until the /meta view arm; the Part-of check is green; the card stays open. Escalated to the adopting seat, not to the dev: at landing, file the /meta view arm as the per-layer child on rest: the /meta dashboard item and list reads pass no packaged base to translateDashboard, so a published org overlay on a translated dashboard keeps the shipped widget title — per-layer child of #20680 #20730's per-type resolver, or fold it into rest: the /meta dashboard item and list reads pass no packaged base to translateDashboard, so a published org overlay on a translated dashboard keeps the shipped widget title — per-layer child of #20680 #20730's PR, "whichever the seats agree" (triage 5901376430). A seat act, not a review blocker.
  4. Reproduced at the translator and protocol layer, not in a real /meta boot — answered, accepted. Triage placed the pins "at the translator and protocol layer"; the real-boot reach is the card's own (metadata: a published org overlay on the built-in system_overview dashboard is never served — the plain read and the rendered board keep the shipped body while ?layers=true reports the overlay as effective #20680 probe3); H4 was measured at RestServer's real route handlers with a protocol double, which is where the dormancy claim is decided.
  5. origin/main merged once at a51920f5fb, commits since — answered. Read now: main has taken 6 commits since the merge-base (cba417a8f2 through eead9dcf40); none touches any of the PR's 7 files; c9c182ed14 touches packages/spec (migrations/registry.ts and an unrelated ui test), so the body's "none of them touches these packages" was true at PR-open and is now stale in wording only. An in-memory git merge-tree of the head onto current main is conflict-free; the queue rebuilds on current main.
  6. The three out-of-scope notes — answered, each consistent with triage: (a) the /meta view arm rides rest: the /meta dashboard item and list reads pass no packaged base to translateDashboard, so a published org overlay on a translated dashboard keeps the shipped widget title — per-layer child of #20680 #20730's per-type resolver as one more arm, and the open card is its tracker, so no new filing is owed; (b) the content/docs/ui/translations.mdx view sentence is deferred by triage until the rule is observable, next to rest: the /meta dashboard item and list reads pass no packaged base to translateDashboard, so a published org overlay on a translated dashboard keeps the shipped widget title — per-layer child of #20680 #20730's dashboard sentence; (c) the console's client-side re-resolution of _views labels is unmeasured and declared, its carrier the /meta arm's browser verification. Noted, not filed — right under Prime Directive 10: no new reproducible defect beyond the open card.
  7. (report only) pnpm --filter @objectstack/spec test -- --maxWorkers=2 may have dropped its flag — irrelevant to the contract; the head's Test Core shards are the gate.
  8. (report only) the three authored commits carry the model-free trailer pair; the merge commit a3f753cead carries none. Squash is the repository's only merge method (title from the PR title, message from the PR body); the PR title and body carry no model identifier (scanned), so nothing from a branch commit message lands.

open_questions: none declared, none found.

Implemented-by: claude/issue-20731-view-catalog-override
Reviewed-by: session_01DEvba2nBuD4tWzfq8r8NFY

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 30, 2026 04:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit 9ad6544 Sep 30, 2026
37 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-20731-view-catalog-override branch September 30, 2026 05:20
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 size/l 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