Repository navigation
Generate the node types sheet in core and stop reading nodespace-docs - #4344
Conversation
|
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 |
|
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 |
…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]>
d13defc to
a992a47
Compare
Part of #3732.
What changed
scripts/check-node-types-doc.tsrenders a reference sheet from thedump_core_schemasoutput (registry table by kind; per type its own fields with storage key, type, enum values in order, extensible or closed). The sheet is committed atpackages/core/shape-record/node-types.md.bun run node-types:genwrites it;bun run node-types:checkfails 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:changedand the merge gate run the same check unconditionally.gate-scope.tsnow treats the script as a Rust-tier input instead of gate machinery.shape:checkandpackages/core/shape-record/current.json.AGENTS.md,.claude/skills/github-issue-management/SKILL.md,.claude/agents/pragmatic-code-reviewer.md, the stylelint and design-token notes and thescripts/code-review-swarmkit point at NodeSpace workspace documents and skills by their exact titles (verified against the live workspace). The issue skill'sallowed-toolsline is unchanged.check-code-references.tskeeps its doc-path guard but builds the pattern at runtime, sogit grep -n "nodespace-docs"finds nothing.packages/agent/tests/it/search_skills_latency.rswrote its benchmark report into a docs-repository sibling directory. It now writes to the directory named bySEARCH_SKILLS_BENCH_REPORT_DIRwhen set, otherwise only prints. The file-name exclusion incheck-code-references.tsis 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.
git grep -n nodespace-docs origin/main):.claude/skills/github-issue-management/SKILL.md36,142,143,241,242,296,348;.env.example5,12;CLAUDE.md261,265-272,280,284,310,311,664;README.md25,26,141,144-146;reference/core-sync-origin/README.md51-55..claude/skills/github-issue-management/SKILL.md56,171,172,291,292,319,401;CLAUDE.md30,36,41,45-48,86,115,173;README.md80,255,362,366,368,369;scripts/provision-parity-check.ts37.🤖 Generated with Claude Code