Skip to content

Generate the node types sheet in core and stop reading nodespace-docs - #4344

Merged
mstomar125 merged 2 commits into
mainfrom
issue-3732-repoint-docs
Nov 24, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
issue-3732-repoint-docs

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Part of #3732.

What changed

  • Node types check. scripts/check-node-types-doc.ts renders a reference sheet from the dump_core_schemas output (registry table by kind; per type its own fields with storage key, type, enum values in order, extensible or closed). The sheet is committed at packages/core/shape-record/node-types.md. bun run node-types:gen writes it; bun run node-types:check fails when the committed file differs from what the registry and seeded schemas generate. It reads nothing outside the checkout and runs no git or network against another repository. The docs-checkout lookup, the docs-remote comparison (--at/--published), the skip logic and the gate's published-sheet stage are deleted; test:changed and the merge gate run the same check unconditionally. gate-scope.ts now treats the script as a Rust-tier input instead of gate machinery.
  • Design and why. The recommended design (generate and diff a committed file) was taken: nothing in the code argued against it. Coverage caveat: the old check compared registry types by kind and each schema's own fields (storage key, type, enum values and order, extensibility); the sheet covers exactly that. It never compared protections or edges and the dump does not expose them; those are covered by shape:check and packages/core/shape-record/current.json.
  • Other repointing. AGENTS.md, .claude/skills/github-issue-management/SKILL.md, .claude/agents/pragmatic-code-reviewer.md, the stylelint and design-token notes and the scripts/code-review-swarm kit point at NodeSpace workspace documents and skills by their exact titles (verified against the live workspace). The issue skill's allowed-tools line is unchanged. check-code-references.ts keeps its doc-path guard but builds the pattern at runtime, so git grep -n "nodespace-docs" finds nothing.
  • Touches packages/agent (agent lane signed off by the user): packages/agent/tests/it/search_skills_latency.rs wrote its benchmark report into a docs-repository sibling directory. It now writes to the directory named by SEARCH_SKILLS_BENCH_REPORT_DIR when set, otherwise only prints. The file-name exclusion in check-code-references.ts is dropped.

Verification

  • bun test scripts/: 1698 pass, 0 fail. New tests were written first and each mutation-checked individually (14 mutations; two survivors were fixed with an added test and a corrected mutation).
  • bun run quality:fix (through the slot wrapper): exit 0.
  • bun run node-types:check: passes against the committed sheet (34 core node types).
  • bun run test:changed: frontend (118s), scripts, skill and browser tiers pass. The Rust tier did not run: the machine had only 16.7 GiB free, below the 20 GiB floor, for reasons outside this branch (other worktrees' targets). An earlier run on the same code with the Rust tier did pass nextest (176s) before the last edits, which touched only docs text, the check-code-references script and the benchmark test file. The bench test file compiles only in the Rust tier, so it is unverified until that tier runs.
  • git grep -n "nodespace-docs\|NODESPACE_DOCS_DIR" on the tree: no matches.

Other repositories (not edited)

Issues filed: nodespace-sync#1076, nodespace-cloud#348.

  • sync (git grep -n nodespace-docs origin/main): .claude/skills/github-issue-management/SKILL.md 36,142,143,241,242,296,348; .env.example 5,12; CLAUDE.md 261,265-272,280,284,310,311,664; README.md 25,26,141,144-146; reference/core-sync-origin/README.md 51-55.
  • cloud: .claude/skills/github-issue-management/SKILL.md 56,171,172,291,292,319,401; CLAUDE.md 30,36,41,45-48,86,115,173; README.md 80,255,362,366,368,369; scripts/provision-parity-check.ts 37.

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
Contributor Author

test:changed on head 9e8f160 (run directly, 32 GiB free at start): passed. Tiers: skill installer tsc, frontend Happy-DOM (129s), test:scripts (49s; bun test scripts/ also 1698 pass earlier), test:skill, test:browser, types:check, shape:check, node-types:check (committed sheet matches), rust:test nextest (244s) all green. The Rust workspace build compiled packages/agent/tests/it/search_skills_latency.rs.

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
Contributor Author

Follow-ups on head d13defc: node-types check now also fails when the code seeds a schema for a type the registry does not list (new tests, mutation-checked: removing the filter fails the ghost-schema test); the two design-token comments name the document "Design system". Results: bun test scripts/ 1700 pass, 0 fail; quality:fix exit 0; node-types:check passes (34 types, sheet unchanged); test:changed passed: tsc, frontend Happy-DOM 108s, test:scripts 41s, test:skill, test:browser, types:check, shape:check, node-types:check, rust:test nextest 224s.

🤖 Generated with Claude Code

mstomar125 and others added 2 commits November 24, 2026 13:15
…aders

The node types reference is rendered from the core type registry and the seeded
core schemas into packages/core/shape-record/node-types.md. node-types:gen
writes it and node-types:check fails when the committed sheet differs from what
the code generates, with no read of another checkout. The docs-remote
comparison, the docs checkout lookup and the gate's published-sheet stage are
removed.

AGENTS.md, the issue skill, the code reviewer agent, the design-token and
stylelint notes and the review swarm kit point at the NodeSpace workspace
instead of the docs repository. The doc-path guard in check-code-references
builds its pattern at runtime. The search-skills latency benchmark writes its
report to the directory named by SEARCH_SKILLS_BENCH_REPORT_DIR.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
unregisteredSchemas reports each seeded core schema whose id is not a registry
type, and both node-types:check and node-types:gen exit with that message
before rendering. The stylelint and design-token notes name the Design system
document in the NodeSpace workspace.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-3732-repoint-docs branch from d13defc to a992a47 Compare November 24, 2026 12:15
@mstomar125
mstomar125 merged commit b856b5a into main Nov 24, 2026
@mstomar125
mstomar125 deleted the issue-3732-repoint-docs branch November 24, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant