Skip to content

refactor(spec): narrow metadata-url-spelling exports to the verdict surface (#8424 ruling) - #8625

Merged
qq9340100 merged 3 commits into
mainfrom
claude/issue-8424-narrow-spelling-exports
Aug 14, 2026
Merged

refactor(spec): narrow metadata-url-spelling exports to the verdict surface (#8424 ruling)#8625
qq9340100 merged 3 commits into
mainfrom
claude/issue-8424-narrow-spelling-exports

Conversation

@qq9340100

@qq9340100qq9340100 commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Fixes#8424

Implements the amended spec-seat ruling (issue comment 5288556825, option A). PR opened by the PM seat from the dev's pushed branch — the implementing dev was terminated by a model usage limit immediately after reporting its work complete and green. A second dev has since adjudicated CI and independently re-verified every claim; see "Verification status" below.

Why the ruling was amended mid-card

The original ruling (comment 5280680385) said: internalize unmappedDeclaredTypeSpelling, restPluralOfMetaType, DECLARED_META_TYPES, keeping a two-symbol surface. The dev measured before writing code and falsified that premise: packages/metadata-protocol/src/protocol.ts imports the first two directly (the #7894400 refusal predicate and its message hint). The card's phrase "no consumer outside metadata-protocol" is true, but internalization requires no consumer outside packages/spec — a different claim. The dev stopped and reported instead of forcing the change; the ruling was then amended to option A.

What changed (3 commits)

  1. d4c39a3 — the narrowing. All three helpers become module-internal. metadata-url-spelling.ts gains ONE purpose-shaped export, metaUrlSpellingRefusal(urlType) → { declared, hint } | null, which answers the boundary's actual question (is this an unrecognized plural of a declared type, and what hint does the refusal carry) rather than exposing the predicate parts. metadata-protocol's request-boundary refusal consumes the composed verdict; its 400 INVALID_REQUEST wording is byte-identical. Tests re-pin the same invariants through the public surface, with a registry-quantified refusal pin replacing the set-membership pin.
  2. 02ee314 — regeneratedapi-surface + export-origins to the three-symbol surface.
  3. 1a097a4 — changeset accuracy. The first draft declared BREAKING; the ADR-0087 gate measured that honestly and the dev corrected it upstream of the marker: no published version ever carried the three exports (they merged 2026-08-13; the last publish is 17.0.0-rc.6 of 2026-08-10), so relative to every published artifact this release only adds spelling exports. Ships as minor.

Final surface, three symbols with three distinct roles: META_URL_TO_SINGULAR (spelling contract) · canonicalMetaUrlType (fold) · metaUrlSpellingRefusal (boundary verdict). Dropping DECLARED_META_TYPES from the surface also removes a symbol #8586 shows is hazard-shaped — it reads like a live registry and is not one.

Verification status — OBSERVED

The PM's earlier caveat ("reported, not PM-observed") is now discharged. Everything below was re-run against the pushed commit 1a097a4 in a fresh worktree, with the full dependency closure rebuilt first so no judgment rests on a stale dist/*.d.ts.

CI on this PR: fully converged, zero red. All 27 check runs complete — 25 success, 2 skipped by the path filter (Console Pin Gate, Build Docs). Green includes Build Core, Test Core (1-3/3), TypeScript Type Check, ESLint, Spec property liveness, Check Changeset, Dogfood Regression Gate (1-3/3), Dogfood Verify CLI, and Temporal Conformance (live PG + MySQL).

Local re-verification of the three consumer suites:

packageresult
@objectstack/spec397 files / 10527 tests passed
@objectstack/metadata-protocol86 files / 1263 tests passed
@objectstack/rest115 files / 1895 tests passed

Generated-artifact gates:check:generated — "All 13 generated artifacts are up to date" (including check:api-surface, check:export-origins, check:authorable-surface). check:export-origins — "5086 exports across 16 entry points resolve exactly as recorded". A full @objectstack/spec build (which runs gen:schema + gen:openapi) left the working tree clean — the authorable-surface anchor did not move.

Typecheck:@objectstack/spec and @objectstack/restpnpm typecheck exit 0. @objectstack/metadata-protocol declares no typecheck script; the repo-wide TypeScript Type Check CI job is green, and a direct tsc --noEmit there reports only 159 pre-existing test-layer errors (seed-loader / sys-metadata-repository / batch-atomic fixtures) in files this branch does not touch — none references protocol.ts or any spelling symbol.

#7894's boundary pins are unmoved. They live in packages/runtime/src/meta-field-overlay-lock.test.ts, outside the three packages above — worth naming, since a consumer-scoped sweep would not have run them. Whole @objectstack/runtime suite: 155 files / 2369 tests passed; the 6 #7894-named pins pass when selected individually, covering the plural fold (/themes/… folding to the singular namespace), the positive control (an unheard-of plugin kind still permitted), and the refusal (/capabilitys/…400 / INVALID_REQUEST naming both spellings, minting no namespace under the typo).

Reverse verification — direction predicted before running, and observed as predicted. A probe importing all four symbols from @objectstack/spec/shared, compiled against the freshly rebuilt .d.ts:

error TS2305: Module '"@objectstack/spec/shared"' has no exported member 'unmappedDeclaredTypeSpelling'.
error TS2305: Module '"@objectstack/spec/shared"' has no exported member 'restPluralOfMetaType'.
error TS2305: Module '"@objectstack/spec/shared"' has no exported member 'DECLARED_META_TYPES'.

metaUrlSpellingRefusal resolved cleanly (no diagnostic). The rebuilt dist/shared/index.d.ts export clause carries the three ruled symbols and none of the removed ones; the removed names survive only inside a doc comment. Probe deleted, worktree clean.

Docs drift: the bot flagged 106 pages, which is @objectstack/spec-wide noise rather than this diff. A targeted grep of content/docs/ for all four symbol names returns zero matches — no page documents a removed export, so there is nothing to sweep. content/docs/releases/** untouched.

Landing

Regenerates spec artifacts ⇒ lands under os-regen relay discipline (serialize against any other regenerated-artifact PR; merge one at a time, re-running the regen chain on each leg). Left as a draft for the PM to flip ready.


Generated by Claude Code

…urface (#8424)
Per the amended #8424 spec-seat ruling (option A): unmappedDeclaredTypeSpelling,
restPluralOfMetaType and DECLARED_META_TYPES become module-internal; the module
gains one purpose-shaped export, metaUrlSpellingRefusal(urlType) ->
{ declared, hint } | null. metadata-protocol's request-boundary refusal now
consumes the composed verdict; its 400 INVALID_REQUEST wording is
byte-identical. Tests re-pin the same invariants through the public surface,
with a registry-quantified refusal pin replacing the set-membership pin.
Co-Authored-By: Claude <noreply@anthropic.com>
…bol spelling surface (#8424)
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MNV7ZSCjNfA38eDCjsXQL
…aration, nothing published carried the removed exports (#8424)
The adr-0087 gate measured the first draft honestly: 'unpublished' is a
mechanical private:true category, and a declared-breaking changeset carrying a
FROM->TO prescription cannot claim no-migration-prescription. The accurate fix
is upstream of the marker: no released version ever carried the three exports
(they merged 2026-08-13; last publish is 17.0.0-rc.6 of 2026-08-10), so the
changeset should never have declared BREAKING - relative to every published
artifact this release only adds spelling exports.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MNV7ZSCjNfA38eDCjsXQL
@vercel

vercelBot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
objectstackIgnoredIgnoredAug 14, 2026 3:06am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

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

106 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/ai/agents.mdx(via @objectstack/spec)
  • content/docs/ai/skills-reference.mdx(via @objectstack/spec)
  • content/docs/ai/skills.mdx(via @objectstack/spec)
  • content/docs/api/client-sdk.mdx(via @objectstack/spec)
  • content/docs/api/environment-routing.mdx(via @objectstack/spec)
  • content/docs/api/error-catalog.mdx(via @objectstack/spec)
  • content/docs/api/error-handling-client.mdx(via @objectstack/spec)
  • content/docs/api/error-handling-server.mdx(via @objectstack/spec)
  • content/docs/api/index.mdx(via @objectstack/spec)
  • content/docs/automation/approvals.mdx(via @objectstack/spec)
  • content/docs/automation/connectors.mdx(via @objectstack/spec)
  • content/docs/automation/flows.mdx(via @objectstack/spec)
  • content/docs/automation/hook-bodies.mdx(via packages/spec)
  • content/docs/automation/hooks.mdx(via @objectstack/spec)
  • content/docs/automation/index.mdx(via @objectstack/spec)
  • content/docs/automation/webhooks.mdx(via @objectstack/spec)
  • content/docs/automation/workflows.mdx(via @objectstack/spec)
  • content/docs/concepts/architecture.mdx(via @objectstack/spec)
  • content/docs/concepts/design-principles.mdx(via packages/spec)
  • content/docs/concepts/index.mdx(via @objectstack/spec)
  • content/docs/concepts/metadata-driven.mdx(via @objectstack/spec)
  • content/docs/concepts/metadata-lifecycle.mdx(via @objectstack/metadata-protocol, packages/spec)
  • content/docs/concepts/north-star.mdx(via @objectstack/spec)
  • content/docs/data-modeling/analytics.mdx(via @objectstack/spec)
  • content/docs/data-modeling/drivers.mdx(via @objectstack/spec)
  • content/docs/data-modeling/external-datasources.mdx(via @objectstack/spec)
  • content/docs/data-modeling/field-types.mdx(via @objectstack/spec)
  • content/docs/data-modeling/fields.mdx(via @objectstack/spec)
  • content/docs/data-modeling/formulas.mdx(via @objectstack/spec)
  • content/docs/data-modeling/index.mdx(via @objectstack/spec)
  • content/docs/data-modeling/objects.mdx(via @objectstack/spec)
  • content/docs/data-modeling/queries.mdx(via @objectstack/spec)
  • content/docs/data-modeling/schema-design.mdx(via @objectstack/spec)
  • content/docs/data-modeling/seed-data.mdx(via @objectstack/spec)
  • content/docs/data-modeling/validation-rules.mdx(via @objectstack/spec)
  • content/docs/data-modeling/validation.mdx(via @objectstack/spec)
  • content/docs/deployment/cli.mdx(via @objectstack/spec)
  • content/docs/deployment/tenancy-modes.mdx(via @objectstack/spec)
  • content/docs/deployment/troubleshooting.mdx(via @objectstack/spec)
  • content/docs/deployment/validating-metadata.mdx(via @objectstack/spec)
  • content/docs/getting-started/build-with-claude-code.mdx(via @objectstack/spec)
  • content/docs/getting-started/common-patterns.mdx(via @objectstack/spec)
  • content/docs/getting-started/examples.mdx(via @objectstack/spec)
  • content/docs/getting-started/quick-reference.mdx(via @objectstack/spec)
  • content/docs/getting-started/quick-start.mdx(via @objectstack/spec)
  • content/docs/getting-started/your-first-project.mdx(via @objectstack/spec)
  • content/docs/kernel/cluster.mdx(via @objectstack/spec)
  • content/docs/kernel/contracts/auth-service.mdx(via packages/spec)
  • content/docs/kernel/contracts/cache-service.mdx(via packages/spec)
  • content/docs/kernel/contracts/data-engine.mdx(via @objectstack/spec)
  • content/docs/kernel/contracts/index.mdx(via @objectstack/spec)
  • content/docs/kernel/contracts/metadata-service.mdx(via packages/spec)
  • content/docs/kernel/contracts/storage-service.mdx(via @objectstack/spec)
  • content/docs/kernel/index.mdx(via packages/spec)
  • content/docs/kernel/runtime-services/data-service.mdx(via @objectstack/spec)
  • content/docs/kernel/runtime-services/email-service.mdx(via packages/spec)
  • content/docs/kernel/runtime-services/examples.mdx(via @objectstack/spec)
  • content/docs/kernel/runtime-services/index.mdx(via packages/spec)
  • content/docs/kernel/runtime-services/queue-service.mdx(via packages/spec)
  • content/docs/kernel/runtime-services/sharing-service.mdx(via @objectstack/spec)
  • content/docs/kernel/runtime-services/sms-service.mdx(via packages/spec)
  • content/docs/kernel/runtime-services/storage-service.mdx(via @objectstack/spec)
  • content/docs/kernel/services-checklist.mdx(via @objectstack/metadata-protocol, @objectstack/spec)
  • content/docs/kernel/services.mdx(via @objectstack/spec)
  • content/docs/permissions/authorization.mdx(via @objectstack/spec)
  • content/docs/permissions/permission-sets.mdx(via @objectstack/spec)
  • content/docs/permissions/permissions-matrix.mdx(via @objectstack/spec)
  • content/docs/permissions/positions.mdx(via @objectstack/spec)
  • content/docs/permissions/rls.mdx(via @objectstack/spec)
  • content/docs/permissions/sharing-rules.mdx(via @objectstack/spec)
  • content/docs/permissions/system-context.mdx(via packages/spec)
  • content/docs/plugins/adding-a-metadata-type.mdx(via @objectstack/spec)
  • content/docs/plugins/development.mdx(via @objectstack/spec)
  • content/docs/plugins/index.mdx(via @objectstack/spec)
  • content/docs/plugins/packages.mdx(via @objectstack/spec)
  • content/docs/protocol/backward-compatibility.mdx(via @objectstack/spec)
  • content/docs/protocol/diagram.mdx(via packages/spec)
  • content/docs/protocol/kernel/config-resolution.mdx(via @objectstack/spec)
  • content/docs/protocol/kernel/http-protocol.mdx(via @objectstack/metadata-protocol, @objectstack/spec)
  • content/docs/protocol/kernel/i18n-standard.mdx(via @objectstack/spec)
  • content/docs/protocol/kernel/index.mdx(via @objectstack/spec)
  • content/docs/protocol/kernel/lifecycle.mdx(via @objectstack/spec)
  • content/docs/protocol/kernel/plugin-spec.mdx(via @objectstack/spec)
  • content/docs/protocol/knowledge.mdx(via @objectstack/spec)
  • content/docs/protocol/objectql/index.mdx(via @objectstack/spec)
  • content/docs/protocol/objectql/query-syntax.mdx(via @objectstack/spec)
  • content/docs/protocol/objectql/schema.mdx(via @objectstack/spec)
  • content/docs/protocol/objectql/security.mdx(via packages/spec)
  • content/docs/protocol/objectql/state-machine.mdx(via @objectstack/spec)
  • content/docs/protocol/objectui/actions.mdx(via @objectstack/spec)
  • content/docs/protocol/objectui/concept.mdx(via @objectstack/spec)
  • content/docs/protocol/objectui/index.mdx(via @objectstack/spec)
  • content/docs/protocol/objectui/layout-dsl.mdx(via @objectstack/spec)
  • content/docs/protocol/objectui/record-alert.mdx(via @objectstack/spec)
  • content/docs/protocol/objectui/widget-contract.mdx(via @objectstack/spec)
  • content/docs/ui/actions.mdx(via @objectstack/spec)
  • content/docs/ui/apps.mdx(via @objectstack/spec)
  • content/docs/ui/create-vs-edit-form.mdx(via @objectstack/spec)
  • content/docs/ui/dashboards.mdx(via @objectstack/spec)
  • content/docs/ui/field-grouping-and-order.mdx(via @objectstack/spec)
  • content/docs/ui/forms.mdx(via @objectstack/spec)
  • content/docs/ui/index.mdx(via @objectstack/spec)
  • content/docs/ui/public-data-collection.mdx(via @objectstack/spec)
  • content/docs/ui/setup-app.mdx(via @objectstack/spec)
  • content/docs/ui/translations.mdx(via @objectstack/spec)
  • content/docs/ui/views.mdx(via @objectstack/spec)

7 release-owned page(s) also reference the affected code. These are read-only:

  • content/docs/releases/implementation-status.mdx(via @objectstack/spec)
  • content/docs/releases/index.mdx(via @objectstack/spec)
  • content/docs/releases/v12.mdx(via @objectstack/spec)
  • content/docs/releases/v13.mdx(via @objectstack/spec)
  • content/docs/releases/v16.mdx(via @objectstack/spec)
  • content/docs/releases/v17.mdx(via @objectstack/spec)
  • content/docs/releases/v9.mdx(via @objectstack/metadata-protocol, @objectstack/spec)

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.

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation tests tooling labels Aug 14, 2026
@qq9340100
qq9340100 marked this pull request as ready for review August 14, 2026 03:31
@qq9340100
qq9340100 added this pull request to the merge queueAug 14, 2026
Merged via the queue into main with commit 1e604c4Aug 14, 2026
30 checks passed
@qq9340100
qq9340100 deleted the claude/issue-8424-narrow-spelling-exports branch August 14, 2026 03:48
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/mteststooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#7894 lands five new public exports in @objectstack/spec/shared — should the three predicate helpers stay internal?

2 participants

@qq9340100@claude