Skip to content

docs: layout record fixes Node tool ownership, quality placement and root directories (part of #10084) - #10656

Merged
TrapsterDK merged 2 commits into
mainfrom
layout-js-quality-owner
Nov 10, 2026
Merged

TrapsterDK merged 2 commits into
mainfrom
layout-js-quality-owner

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #10084.

docs/design/layout.md gains two sections and extends one:

  • Node tools: javascript/ owns every tool that runs on Node. One hub, @dx_npm_tools, in javascript/private/quality/; Prettier, remark, Stylelint, graphql-eslint, gplint and Redocly stay there with the js shard. No markdown, css or graphql package. Decides layout: Node tool hub stays in javascript/private/quality; prettier tier loads only core (part of #10084) #10200.
  • Quality code: language quality lives in <lang>/private/quality/; file families without rules stay in core/quality/families/; multi-language shards live with the runtime owner; _tools.bzl files are data and core/quality/tools.bzl is the only core file that loads them.
  • Shared directories: dx/, deploy/, ci/ and bcr_test_module/ are shared; containers/ goes.

No code changes. The page is 977 words.

Issues: rewrote #10200, #10076, #10507; closed #10086, #10105, #10113, #10506 with evidence; filed #10650, #10651, #10652, #10653 (opus); sequence posted on #10084.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: changes requested

Docs-only; checked against main at 43b5fcf. Paths, the six lang.json quality files, the row split in js_tools.bzl / core_tools.bzl, and the 1300-word limit (977) all hold. The page now contradicts itself in three places, and workers on #10651 to #10653 will follow it literally.

Must fix:

  1. docs/design/layout.md:78 vs docs/design/layout.md:93: line 78 says the aspects and tool rows of Markdown and CSS stay in core/quality/families/; line 93 says the remark and Stylelint rows are in javascript/private/quality/js_tools.bzl (true on main, lines 137 and 151), and line 92 puts every Node tool's aspect in the js shard. State one rule, for example that line 78 covers only tools not run on Node.
  2. docs/design/layout.md:9 vs docs/design/layout.md:82: line 9 says "Core never loads a language .bzl file. A test enforces it."; line 82 says core/quality/tools.bzl loads from language directories (it already loads eight <lang>/private/quality:*_tools.bzl files). Put the exception on line 9, and align AGENTS.md:10, which states the same rule without it.
  3. docs/design/layout.md:81: "It loads only //core/quality:tool_defs.bzl" does not match core/quality/families/core_tools.bzl:3, which loads //core/quality:taxonomy.bzl, and no issue in the layout: one module, per-language public API, data manifests #10084 sequence covers it. Widen the rule to core data files or file the issue that removes the load.

Not blocking: docs/design/layout.md:71 says the list has no pending entries while tools/testing/root_layout_test.rs:17 still has five; #10650 tracks it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

…root directories (part of #10084)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz
@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 10, 2026
…oad exception and data-file loads (part of #10084)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz
@TrapsterDK
TrapsterDK force-pushed the layout-js-quality-owner branch from c10144c to 95549f5 Compare November 10, 2026 10:45
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Fixed:

  • docs/design/layout.md Quality code: the no-rules family rule now covers only tools that do not run on Node; Node tools of those families follow the Node tools section (remark and Stylelint rows stay in js_tools.bzl).
  • docs/design/layout.md Modules and AGENTS.md: the core load rule now names its one exception, core/quality/tools.bzl loading the _tools.bzl files.
  • docs/design/layout.md Quality code: a _tools.bzl file loads only the core data files //core/quality:tool_defs.bzl and //core/quality:taxonomy.bzl.

Rebased onto main. The page is 1010 words. No test target depends on the two files; tools/dx check --affected did not finish locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: approve

Docs-only (AGENTS.md, docs/design/layout.md), checked at 95549f5. The three earlier must-fix items landed:

  1. docs/design/layout.md Quality code: the no-rules family rule now covers only tools that do not run on Node and defers Node tools to the Node tools section, so it no longer conflicts with the remark and Stylelint rows in javascript/private/quality/js_tools.bzl.
  2. docs/design/layout.md:9 and AGENTS.md:10 both name the core/quality/tools.bzl exception.
  3. The _tools.bzl load rule names //core/quality:tool_defs.bzl and //core/quality:taxonomy.bzl; no _tools.bzl file on main loads anything else.

No removed names, no rationale, no compat text.

Not blocking: "the only core file that loads from a language directory" is a target, not the current state. core/quality/families/core_probe.bzl, cc.bzl, go.bzl, dart.bzl, core/quality/compile_check.bzl:8 and core/quality/artifacts/extension.bzl:66 still load language files; the #10084 sequence has to remove them before the enforcing test can hold.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

@TrapsterDK
TrapsterDK merged commit 3ac20e4 into main Nov 10, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the layout-js-quality-owner branch November 10, 2026 10:49
@github-actions

Copy link
Copy Markdown
Contributor

This pull request touched paths in .github/review-paths.txt and was merged without a Review: comment. See CONTRIBUTING.md.

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

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

layout: move libs/ Rust into cli/ and shared Starlark into core/ (part of #10084)

1 participant