Skip to content

[finding] spec/metadata: four pointers still cite cluster-semantics.mdx, a page redirected to /docs/kernel/cluster #15141

Description

@claude

Found while executing #14180 (retiring MetadataChangedEventPayloadSchema, PR #15139). Observation, not a defect repro — stale documentation pointers.

Measurement (origin/main 2cc4610)

content/docs/concepts/cluster-semantics.mdx no longer exists; apps/docs/redirects.mjs:98 redirects /docs/concepts/cluster-semantics to /docs/kernel/cluster. Four places still cite the old file by name, two of them customer-facing .describe() strings that gen:docs copies into the reference pages:

  • packages/spec/src/kernel/events/core.zod.ts:73.describe('Per-emit cluster routing & delivery options. See cluster-semantics.mdx §4.') → lands in content/docs/references/kernel/events-core.mdx:46 and :64
  • packages/spec/src/kernel/service-registry.zod.ts:86.describe('Cluster scope & leader strategy. See cluster-semantics.mdx §5.') → lands in content/docs/references/kernel/service-registry.mdx:98
  • packages/metadata/src/metadata-manager.ts:493 and :2947 — source comments Cluster wiring (cluster-semantics.mdx §5) / Cluster fan-out (cluster-semantics.mdx §5)

The section numbers happen to line up with today's content/docs/kernel/cluster.mdx (§4 event scope and delivery, §5 service scope), but the file name is dead. PR #15139 corrects a fifth such pointer — the ClusterMetadataChangedPayload doc-comment at metadata-manager.ts:234 — only because that comment was inside its ruled file surface; these four were not.

What this card asks

Point the two .describe() strings and the two comments at content/docs/kernel/cluster.mdx (§4 / §5 respectively) and regenerate the reference pages (pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec check:generated --fixcheck:docs will report the two reference pages stale). packages/spec is the single owner of the describe strings; the two metadata comments ride along or split.

Dedup: the REST search endpoint answers 403 in this container, so one targeted MCP search_issues was used — it returned only the closed #14339 (which documented the lanes on cluster.mdx, not these pointers), and the control term answered #14180.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions