Code docs are repo-scoped; spec is link-only
Platform spec ADR
Code docs are repo-scoped; spec is link-only
Spec standingStandard
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Context
Section titled “Context”Nexus runs a hidden doc-maintenance worker after analyze. Without a hard boundary, generated node text could duplicate or paraphrase normative platform-spec MDX — creating two sources of truth and stale copies when spec changes.
Platform spec on site/website leads code per project policy. Nexus is a reader of spec URLs, not a publisher of spec prose.
Decision
Section titled “Decision”codeDocis repo-scoped AI documentation — generated from graph metadata and short file snippets only.- Platform spec MDX bodies are never fed into code-doc prompts as source material.
- A read-only spec link index (
spec-index.json) stores titles, slugs, and headings for link discovery only. resolve_spec_linkstool returns candidate{ title, href }from the index; unknown hrefs must be rejected at commit.specLinksare 0–3 validated pointers — not summaries of spec content.code-doc-validatoranti-copy guard rejects records containing ≥40 consecutive characters matching spec index excerpts.- Graph API and UI must expose
codeDocandspecLinksas separate fields/sections.
When a topic is fully covered by platform spec, codeDoc stays brief and defers via specLinks.
Consequences
Section titled “Consequences”- Two-phase doc pipeline: Phase A writes
codeDocfrom graph context; Phase B attaches links via index search. - Public API and UI must not mention OpenRouter, prompts, or AI vendors.
- Spec deploys require Nexus restart or index rebuild to pick up new link targets.
Status
Section titled “Status”Accepted — normative contracts in design model and contracts.