Skip to content

layout: one module, per-language public API, data manifests #10084

Open

Description

@TrapsterDK

Target layout for the whole repo. Replaces the family-module plan (#6032, #6054, #10068).

Modules

  • One Bazel module, rules_dx. Users add one bazel_dep.
  • Language rule sets stay bazel_deps of rules_dx at their # floor: versions. Bazel fetches a rule set only when a loaded .bzl needs it.
  • Core never loads a language .bzl. A test enforces it (core: loading core never fetches a language rule set #10085).
  • No families/ modules. Family is only a grouping label in the language manifest (CI sharding, docs).

Per language

<lang>/defs.bzl          public rules and macros (only file users load)
<lang>/extensions.bzl    public module extensions
<lang>/BUILD.bazel       toolchain_type, public config flags
<lang>/lang.json         manifest: family, ecosystems, lockfiles, manifests, tools, platforms
<lang>/pins.json         tool pins (sha256, urls), written by dx update
<lang>/private/          rules, toolchains, aspects, quality, coverage, tools
<lang>/tests/

Labels: @rules_dx//<lang>:defs.bzl, @rules_dx//<lang>:toolchain_type.

Shared

core/            shared Starlark: providers, quality framework, dx_wrap, toolchain and pins factory
config/          public build settings
cli/             the dx CLI, all Rust crates (today cli/ and libs/)
tools/           maintainer-only scripts and generators
patches/         upstream patches, table generated from MODULE.bazel
docs/            user docs; per-language pages generated from lang.json
examples/        every example is a tested target

Data flow

Order

  1. Design record docs/design/layout.md (this issue).
  2. Load-graph test and lazy quality registration (core: loading core never fetches a language rule set #10085).
  3. Per language group: move families/<f>/<lang>/tests back to <lang>/tests, rules/ to private/, defs.bzl to <lang>/, add lang.json (config: every compiled language honours //config:warnings_as_errors #10075, layout: per-language schema test (part of #10084) #10073). Delete the family module in the same PR.
  4. Shared factory and pins.json (libs/starlark: one pinned-binary module extension fed by pins tables #10065), then lang.json consumers (layout: <lang>/lang.json manifest schema and validator (part of #10084) #10079, dx: one ecosystem registry replaces the three Ecosystem enums #10052).
  5. Move libs/ Rust into cli/, shared Starlark into core/.

Tracking

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

Activity

  1. added
    P1
    model:opus
    on Nov 9, 2026
  2. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    Remaining layout work as an ordered sequence. Rules are in docs/design/layout.md.

    1. layout: Node tool hub stays in javascript/private/quality; prettier tier loads only core (part of #10084) #10200 Node tool hub stays in javascript/private/quality; prettier tier loads only core. model:sonnet
    2. api: one public entry point @rules_dx//<lang>:defs.bzl #10076 android/private/rules and the last rules:defs.bzl strings. model:sonnet
    3. layout: root holds only languages and shared directories, PENDING list is empty (part of #10084) #10650 root directory list, PENDING empty. model:sonnet
    4. layout: single-language quality families move from core/quality/families to <lang>/private/quality, cmake to make (part of #10084) #10651 single-language quality families, cmake to make. model:sonnet
    5. layout: single-language quality families move from core/quality/families to <lang>/private/quality, lua to zig (part of #10084) #10652 single-language quality families, lua to zig. model:sonnet, after 4
    6. layout: multi-language quality shards move to their runtime owner: jvm, beam, dotnet, cc (part of #10084) #10653 multi-language shards to their runtime owner. model:opus, after 5
    7. layout: per-language schema test (part of #10084) #10073 per-language schema test with an empty allow list. model:opus, after 6
    8. layout: remove family plumbing from CI, tools and dx #10107 family plumbing, families.json, cli/families. model:opus, after 6
    9. layout: module extensions read <lang>/lang.json with json.decode (part of #10079) #10507 extensions read lang.json; audit first. model:sonnet, last

    Steps 1 to 3 are independent. Closed as done: #10086, #10105, #10113, #10506. #10622 and #10545 run beside this sequence.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

  3. 1 remaining item

  4. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    Remaining, updated: #10200, #10650, #10651 and #10652 are closed. Left, in order: #10076, #10653 (opus), #10073 (opus), #10107 (release part in PR #10897), #10507 last.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

  5. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    Remaining: 31 of the tracked children are closed; since the last list #10200, #10650, #10651 and #10652 closed and families/ is gone (#10068 closed). Open children, in order:

    1. api: one public entry point @rules_dx//<lang>:defs.bzl #10076 android/private/rules and the last rules:defs.bzl strings. model:sonnet, independent.
    2. layout: multi-language quality shards move to their runtime owner: jvm, beam, dotnet, cc (part of #10084) #10653 multi-language quality shards (jvm, beam, dotnet, cc) to their runtime owner. model:opus.
    3. quality: core_load_graph_test misses in-repo language loads from core/quality #10622 shrink PENDING_LANGUAGE_REACH and PENDING_TIER_PACKAGES in core/quality/core_load_graph_test.rs.
    4. layout: per-language schema test (part of #10084) #10073 per-language schema test. model:opus, after 2.
    5. layout: remove family plumbing from CI, tools and dx #10107 core/modules/families.json, Gazelle @rules_dx_<x>//rules:defs.bzl values, workflow family loops. model:opus, after 2.
    6. libs/starlark: one pinned-binary module extension fed by pins tables #10065 pins factory, dx: one ecosystem registry replaces the three Ecosystem enums #10052 ecosystem registry, layout: <lang>/lang.json manifest schema and validator (part of #10084) #10079 with layout: module extensions read <lang>/lang.json with json.decode (part of #10079) #10507 last.
    7. core: loading core never fetches a language rule set #10085 closes after core/native_coverage.bzl leaves PENDING_CORE_FILES and quality: core aspects use the prebuilt Python tools from @dx_prebuilt, not rules_py #10545 lands (blocked on the hosting decision through quality: release a pinned prebuilt bundle of the core Python quality tools #10544).
      config: every compiled language honours //config:warnings_as_errors #10075 has one test left (Swift fixture).

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

  6. TrapsterDK commented on Nov 12, 2026

    @TrapsterDK
    CollaboratorAuthor

    Step 1 (docs/design/layout.md) is on origin/main via #10089 and #10656. Nothing left for this issue beyond the open children listed in the earlier comments.

  7. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    Remaining open children: #10073 (per-language schema test), #10065 (pins factory), #10085 (core never fetches a language rule set). Everything else listed earlier is closed; this tracker closes when those three do.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

  8. added
    cloud-pool
    on Nov 21, 2026
  9. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    cloud-claim 03833592


    Generated by Claude Code

  10. added
    cloud-taken
    and removed
    cloud-pool
    on Nov 21, 2026
  11. TrapsterDK commented on Nov 21, 2026

    @TrapsterDK
    CollaboratorAuthor

    Tracker only: #10065 is closed; left are #10073 (taken by another cloud slot) and #10085. Nothing to change here; it closes when those two do.

    Next slice: none on this issue; work #10073 and #10085.


    Generated by Claude Code

  12. added
    blocked
    and removed
    cloud-taken
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1blockedmodel:opus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions