Repository navigation
xtask(ci): decouple pure static repository checks from workspace-coupled xtask - #1950
Conversation
0034e66 to
e6ae710
Compare
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
This PR implements ADR 026 D2 and D4: it extracts the pure static repository checks into a new xtask-check crate and routes Web sources, plugin pages, generated graphs and xtask/check changes to a new Linux static-checks job, while the runtime-assembled catalog.md check stays in xtask. I reviewed the full main...head diff, including the moved code against origin/main.
P2: xtask/check changes bypass the format gate
Problem. scripts/ci-changes.mjs:27 routes xtask/check/** to static and xtask, not rust. The only format check in CI is .github/workflows/ci.yml:202, guarded by if: needs.changes.outputs.rust == 'true' at line 198. The new static-checks job at .github/workflows/ci.yml:95-99 runs clippy, tests and the checks, but not cargo fmt.
Failure scenario. A PR changes only xtask/check/src/boundaries.rs and leaves an unformatted line. The changes job sets rust=false, so verify skips its format step; static-checks passes, and verify still builds xtask and runs xtask check. The PR merges. The following main push classifies xtask/check/... as non-documentation and selects every group, so verify runs the format step and main turns red, blocking later PRs. docs/architecture/build.md:320 states that CI runs this format check.
Evidence. .github/workflows/ci.yml:198 and :202; .github/workflows/ci.yml:95-99; scripts/ci-changes.mjs:27; docs/architecture/build.md:320.
Fix. Add cargo fmt --all -- --check --config error_on_line_overflow=true to the static-checks run block. rustfmt is installed from rust-toolchain.toml, and the command is cheap for every static route. Keeping xtask/check on rust would also restore the gate, but it reintroduces the heavy workspace build this PR removes.
P3 (optional): enforce that xtask-check stays lightweight
Problem. The PR's central property is that xtask-check has zero business-crate dependencies, but nothing enforces it. xtask/check/src/boundaries.rs:42-52 enforces rules for dim-agent-types, dim-agent-runtime and dim-agent-capabilities; there is no rule for xtask-check.
Failure scenario. A later PR adds dim-agent-types to xtask/check/Cargo.toml to reuse a type. static-checks still passes, but every Web, plugin-page and generated-doc PR now compiles a business crate, silently undoing the L1 isolation and the cost saving.
Evidence. xtask/check/src/boundaries.rs:42-52; xtask/check/Cargo.toml:9-13.
Fix. Extend the existing metadata loop with a rule that rejects a dim-* or rutis dependency of xtask-check, leaving rutis-types allowed, or add a small unit test over the manifest. Optional because it guards a future change, not this head.
Verification
cargo test --locked -p xtask-check: 78 passed.cargo run --locked -p xtask-checkand-- check: all static checks passed (743 modules, 4558 edges, 26 plugin documents, 97 comment links, 11 literal_main uses).cargo run --locked -p xtask -- check: passed, includingservice catalog passed.cargo clippy --locked -p xtask-check --all-targets -- -D warningsandcargo clippy --locked -p xtask --all-targets -- -D warnings: passed.cargo fmt --all -- --check --config error_on_line_overflow=true: passed.node --test scripts/ci-changes.test.mjs: 9 passed.- The moved
comment_links,literal_main,modules,npmandtypesfiles are byte-identical to origin/main.plugin_docsandboundariesdiffer only by the expected extraction and the added--locked --offlinemetadata flags.catalog::checkremains inxtask, andxtask checkstill runs it afterxtask-check.
CI at this head: changes, dependencies, static-checks, web and windows-cli pass; verify is pending; acp-registry is skipped. Main moved to 3d5749c (#1920) during this review. git merge-tree --write-tree origin/main HEAD is clean (tree 5e58884a): the merged ci.yml contains each job once, has no conflicting or duplicated concurrency block, and ci-ok still includes static-checks. No #1920 follow-up is needed.
Verdict: REQUEST_CHANGES for the P2 format gate. The P3 is optional and does not block.
Cross-PR: #1941 changes rutis-types from 0.19.3 to 0.23.0 in xtask/Cargo.toml; after this move that line lives in xtask/check/Cargo.toml, so the bump must follow it. #1921 edits ci.yml and docs/release/README.md too, so the merge order needs care; I did not review that diff in detail here.
| build-warnings: "" | ||
| - name: Run pure static repository checks | ||
| run: | | ||
| cargo clippy --locked -p xtask-check --all-targets -- -D warnings |
There was a problem hiding this comment.
P2: xtask/check/** changes bypass the format gate.
Problem: scripts/ci-changes.mjs:27 routes these files to static and xtask, so needs.changes.outputs.rust is false. The only format check, cargo fmt --all -- --check --config error_on_line_overflow=true at .github/workflows/ci.yml:202, is guarded by if: needs.changes.outputs.rust == 'true' at line 198. This job does not run it.
Failure scenario: a PR edits only xtask/check/src/boundaries.rs and leaves an unformatted line. All PR checks pass. After merge, the main push selects every group for the non-documentation path, verify runs the format step, and main turns red.
Evidence: .github/workflows/ci.yml:198, :202, :95-99; scripts/ci-changes.mjs:27; docs/architecture/build.md:320.
Fix: add cargo fmt --all -- --check --config error_on_line_overflow=true to this run block. Keeping xtask/check on rust would also restore it, but reintroduces the heavy workspace build.
There was a problem hiding this comment.
Fixed in d50b2be. The static-checks run block still starts with the format gate at .github/workflows/ci.yml:94, scripts/ci-changes.mjs:30 still selects static for xtask/check/**, and ci-ok still needs static-checks at .github/workflows/ci.yml:411.
There was a problem hiding this comment.
Still fixed at ab9ea4c. The static-checks run block still starts with the format gate at .github/workflows/ci.yml:94, scripts/ci-changes.mjs:30 still selects static for xtask/check/**, and ci-ok still needs static-checks at .github/workflows/ci.yml:404 (the line moved from 411 after #1949 and #1951 removed ci.yml lines).
Extract all pure static repository checks (zero business-crate compilation)
into a standalone lightweight workspace crate `xtask-check` (`xtask/check`)
with only 9 pure-Rust transitive dependencies (`proc-macro2`, `quote`,
`syn`, `unicode-ident`, `serde_core`, `serde_json`, `itoa`, `memchr`,
`zmij`, `rutis-types`), implementing ADR 026 D2 and D4:
- `xtask/check` (`xtask-check`): owns `boundaries` (cargo metadata crate
rules, `crates.*` freshness, live `modules::check` syn-AST boundaries,
`plugin_docs::check`), `types` (`npm/branch-services.d.ts` via
`rutis-types`), `npm` (`runtime/plugins/*/package-lock.json`),
`comment_links`, and `literal_main`, plus on-demand `module-graph DIR`
and `types` regeneration and all 78 unit tests.
- `xtask`: depends on `xtask-check` and delegates all pure static checks,
`types`, `module-graph`, `boundaries::write`, and `plugin_docs::rewrite`
to it, keeping runtime-assembled `catalog::check`, `graph`, `measure`,
and eval harnesses in `xtask`. `cargo run --locked -p xtask -- check`
continues to run both `xtask-check` and `catalog::check`.
- `scripts/ci-changes.mjs` & `.github/workflows/ci.yml`: add a `static`
check group and lightweight `[self-hosted, linux, x64]` `static-checks`
job (wired into `ci-ok`). Route Web sources (`web/src/**/*.{ts,vue,mjs,js}`),
plugin pages (`docs/architecture/rust-agent/plugins/**`), and static
generated snapshots to `static` instead of the heavy macOS `verify` /
`xtask` build, while keeping `generated/catalog.md` on `xtask` and
`xtask/check/**` on both `static` and `xtask`.
- Update `scripts/ci-changes.test.mjs`, `AGENTS.md`,
`docs/release/README.md`, and `docs/design/branch-typescript.md`.
Fixes #1933
Refs #1919, #1925
# Conflicts:
# .github/workflows/ci.yml
# docs/release/README.md
# scripts/ci-changes.mjs
# xtask/Cargo.toml
e6ae710 to
cf331c5
Compare
|
Thanks for the thorough review! Addressed both findings and rebased onto
Re-verified locally: Ready for re-review! |
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Round 2 review of cf331c5. The PR extracts the pure static repository checks into xtask-check, routes Web sources, plugin pages, static generated graphs and xtask/check to a Linux static-checks job, and leaves the runtime-assembled catalog.md check in xtask.
Round-1 P2 fixed
The format gate now runs in the job that fires for xtask/check changes:
.github/workflows/ci.yml:94addscargo fmt --all -- --check --config error_on_line_overflow=trueto thestatic-checksrun block.scripts/ci-changes.mjs:30routesxtask/check/**tostatic, soclassifyreturnsstatic=true, rust=falsefor anxtask/check-only PR.ci-okneedsstatic-checksat.github/workflows/ci.yml:411, so the job cannot be skipped when it is selected.
The static-checks job at this head ran its check step successfully, so the fix executes in the job that fires for these changes. Locally, rustfmt --check exits non-zero on an unformatted copy of boundaries.rs, and the classification simulation returns static=true, rust=false. verify still runs for these paths because the xtask group stays selected; it builds xtask and runs xtask check including catalog.md.
Round-1 P3 withdrawn
xtask/check/src/boundaries.rs:30-32 rejects a dim-* or rutis dependency of xtask-check and leaves rutis-types allowed, with a unit test at :106-112. Cargo metadata confirms the crate's only dependencies are proc-macro2, rutis-types, serde_json and syn. Withdraw the optional P3.
Optional P3 (inline, non-blocking)
docs/release/README.md:181 still says "Architecture pages checked by xtask", while the new sentence at line 183 correctly sends plugin pages and static generated graphs to static-checks (xtask-check) and only catalog.md to the runtime-assembled xtask check. Wording only; see the inline note.
Verification
node --test scripts/ci-changes.test.mjs: 10 passed.cargo test --locked -p xtask-check: 79 passed.cargo run --locked -p xtask-checkand... -- check: passed (743 modules, 4560 edges, 26 plugin documents, 97 comment links, 11 literal_main uses).cargo run --locked -p xtask -- check: passed, includingservice catalog passed.cargo fmt --all -- --check --config error_on_line_overflow=true: passed.cargo clippy --locked -p xtask-check --all-targets -- -D warnings: passed.cargo clippy --locked -p xtask --all-targets -- -D warnings: passed.- A cold
CARGO_HOMErun ofcargo clippy --locked -p xtask-check,cargo test --locked -p xtask-checkandcargo run --locked -p xtask-checkpassed, so the new--offlinemetadata call works after only the static job's dependencies are fetched. - The moved
comment_links,literal_main,modules,npmandtypesfiles are byte-identical to origin/main.plugin_docsandboundariesmatch the extracted origin/main code apart from the path adjustments, the--locked --offlineflags and the newxtask-checkrule.xtaskstill exposes every command CI uses, andxtask checkandxtask-checkreport the same checks.
CI at this head: changes, dependencies, static-checks, windows-cli and web pass; verify (linux) has passed build, lint and boundary steps and is running workspace tests; macos-native is queued; acp-registry is skipped. origin/main is the head's parent, so #1921 and #1941 are already in the base and git merge-tree --write-tree origin/main HEAD is clean. Open PRs #1952 and #1953 are empty drafts, so they do not overlap.
Verdict: APPROVE. The blocking P2 is fixed and verified in the job that fires for xtask/check changes; the round-1 P3 is fixed. The docs wording note is optional.
| `ci.yml` runs on pull requests, pushes to `main`, and manual dispatch. A pull request runs the groups its changed paths need, as decided by `scripts/ci-changes.mjs`. A push to `main` runs only `changes` and `ci-ok` when its entire push range changes only documentation paths that select no check group. Architecture pages checked by `xtask` and the native storage format document retain the full main run, as do mixed pushes and pushes whose base cannot be compared. Manual dispatch selects every group. Every push to `main` runs its selected jobs to completion: a later push does not cancel them, so each merge has its own result and the `main CI` badge in the [README](../../README.md) reports the latest finished one. | ||
|
|
||
| CI builds the workspace, checks formatting and Clippy, runs workspace tests and boundary checks, runs the packaging/development script tests, and exercises the ignored actual CLI profile and public Node-backed flows. `ci-ok` passes when every selected gating job passes, so it is the check to require. CI builds without debug info (`CARGO_PROFILE_DEV_DEBUG=0`). The [build environment](../architecture/build.md) describes test artifact reuse, concurrency limits, and target deadlines. Cargo runs documentation tests with the same features, and ignored CLI and Node flows reuse the recorded binaries without package-scoped recompilation. Web source changes also run the `xtask` check, which reads them for branch id literals. Node-backed checks run for runtime, binding and service-contract paths, and CLI-only changes retain their ordinary and actual-profile flows. Evaluation tests use `xtask/eval-tests` for `xtask/` changes, and the wall-clock handoff runs for execution-related changes. PRs run `verify (linux)` for the selected groups. Rust changes also run `macos-native` on Apple Silicon, and changes affecting native packaging or code layout select its macOS script checks. Both jobs feed `ci-ok`. Full `main` pushes run `verify (macos)`, and manual dispatch runs full verification on both Linux and macOS. The `web` job runs on self-hosted Windows x64. It stages the frontend package, verifies generated declarations and bundled dependency notices, and runs the Web tests. | ||
| CI builds the workspace, checks formatting and Clippy, runs workspace tests and boundary checks, runs the packaging/development script tests, and exercises the ignored actual CLI profile and public Node-backed flows. `ci-ok` passes when every selected gating job passes, so it is the check to require. CI builds without debug info (`CARGO_PROFILE_DEV_DEBUG=0`). The [build environment](../architecture/build.md) describes test artifact reuse, concurrency limits, and target deadlines. Cargo runs documentation tests with the same features, and ignored CLI and Node flows reuse the recorded binaries without package-scoped recompilation. Web source changes, plugin pages and static generated graphs run the lightweight `static-checks` job (`xtask-check`) on Linux x64 without compiling business runtime crates, while `catalog.md` changes retain the runtime-assembled `xtask` check. Node-backed checks run for runtime, binding and service-contract paths, and CLI-only changes retain their ordinary and actual-profile flows. Evaluation tests use `xtask/eval-tests` for `xtask/` changes, and the wall-clock handoff runs for execution-related changes. PRs run `verify (linux)` for the selected groups. Rust changes also run `macos-native` on Apple Silicon, and changes affecting native packaging or code layout select its macOS script checks. Both jobs feed `ci-ok`. Full `main` pushes run `verify (macos)`, and manual dispatch runs full verification on both Linux and macOS. The `web` job runs on self-hosted Windows x64. It stages the frontend package, verifies generated declarations and bundled dependency notices, and runs the Web tests. |
There was a problem hiding this comment.
P3 (optional): the preceding sentence at line 181 still says "Architecture pages checked by xtask", but this sentence now sends plugin pages and static generated graphs to static-checks (xtask-check), leaving only catalog.md to the runtime-assembled xtask check.
Failure scenario: a maintainer reading this guide to find the job that failed for a plugin-page PR follows line 181 and inspects verify instead of static-checks.
Evidence: docs/release/README.md:181; scripts/ci-changes.mjs:5-6 (plugins|generated maps to static); .github/workflows/ci.yml:75-97.
Fix: say "Architecture pages that select a check group" or "Architecture pages checked by xtask or xtask-check".
There was a problem hiding this comment.
Still present at d50b2be. docs/release/README.md:181 still says architecture pages are checked by xtask; the merge of main did not change this paragraph. Optional P3, not blocking.
There was a problem hiding this comment.
Still present at ab9ea4c, optional P3. docs/release/README.md:181 still says architecture pages are checked by xtask, while :183 sends plugin pages and static generated graphs to static-checks on pull requests. The sentence is scoped to pushes to main, where the full run still executes the xtask step, so it is not false. Non-blocking; naming both jobs would be clearer, and this can be closed if the current split is intended.
…atic-xtask-checks
|
Merged |
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Round 3 review of d50b2be. The change keeps its scope: xtask-check owns the pure static checks, xtask delegates to it, and CI sends Web sources, plugin pages and static generated graphs to the Linux static-checks job while catalog.md keeps the runtime-assembled xtask check.
Head is an exact merge, not a rebase
d50b2be merges origin/main dbbd707 into the approved cf331c5. Content is preserved: git merge-tree --write-tree dbbd7079 cf331c5e returns exactly the head tree 9f0cb8c96575, so no conflict resolution changed either side, and git range-diff ffd3e116..cf331c5e dbbd7079..d50b2be3 reports cf331c5 unchanged. Main's ffd3e11..dbbd707 commits (#1943, #1960, #1895, #1958) do not touch ci.yml, scripts/ci-changes.mjs, xtask or AGENTS.md; their docs/release/README.md edit is at line 44, away from the open P3 at line 181.
Round-2 P2 is fixed and preserved
The format gate is in the job that fires for xtask/check changes: .github/workflows/ci.yml:75-97 defines static-checks with if: needs.changes.outputs.static == 'true', and its run block starts with cargo fmt --all -- --check --config error_on_line_overflow=true at :94. scripts/ci-changes.mjs:30 routes xtask/check/** to static and xtask, ci-ok needs static-checks at .github/workflows/ci.yml:411, and scripts/ci-changes.test.mjs:72 pins the classification.
Re-checked at this head
- The split keeps the approved boundaries.
git diff -M --summary dbbd7079..d50b2be3shows five byte-identical renames intoxtask/check/src/;plugin_docs.rsholds the moved document check, andxtask/src/plugins.rs:265-277keeps graph writing and delegates block rewriting toxtask_check::plugin_docs::rewrite.xtask/src/main.rs:64-65runsxtask_check::check_allthencatalog::check, and:354keepsgraphwriting throughxtask_check::boundaries::write. - The lightweight boundary holds.
xtask/check/src/boundaries.rs:30-31rejects adim-*orrutisdependency ofxtask-check, with the test at:107-111;cargo tree -p xtask-checkcontains only pure-Rust crates and nodim-*orrutispackage. - Static routing is complete.
scripts/ci-changes.mjs:10-11keepsgenerated/catalog.mdonxtaskand sends the other plugin and generated paths tostatic;:17sends Web sources toweb, static;:30sendsxtask/checktostatic, xtask.scripts/ci-changes.test.mjs:35-37,41-43,72covers all three. - Coverage after main moved is unchanged.
cargo run -p xtask-checkpasses 743 modules / 4560 edges, 26 plugin documents (including main's Permission.md text), 97 comment links, 11 unrelatedliteral_mainuses, service declarations and plugin locks.cargo run -p xtask -- checkalso passes, includingservice catalog passed. - Gates:
cargo fmt --all -- --check --config error_on_line_overflow=true,cargo clippy -p xtask-check --all-targets -- -D warnings,cargo clippy -p xtask --all-targets -- -D warningsandcargo test -p xtask-check(79 passed) pass.node --test scripts/ci-changes.test.mjsis 10 passed;scripts/tui-tmux.test.mjsandscripts/release.test.mjsare 48 passed. All runs used isolated HOME, TMPDIR, XDG dirs and CARGO_HOME under the review data dir, and left no processes.
Optional P3 (unchanged)
Problem: docs/release/README.md:181 still says "Architecture pages checked by xtask" while :183 sends plugin pages and static generated graphs to static-checks (xtask-check). Failure scenario: a maintainer looking up which job failed for a plugin-page PR checks verify instead of static-checks. The full-main-run outcome in the same sentence still holds, because a plugin-page push to main selects static and therefore keeps every group, so this is wording only. Evidence: docs/release/README.md:181, :183; scripts/ci-changes.mjs:11. Fix: say "Architecture pages checked by xtask or xtask-check". This is the existing thread, non-blocking.
Cross-PR
- Merge-tree against origin/main is clean and equals the head tree.
- #1949 and #1951 merge into this head cleanly.
- #1952 conflicts textually in
.github/workflows/ci.yml,docs/release/README.mdandscripts/ci-changes.mjs. It keeps Web sources and plugin and generated paths onxtask, so its rebase must preserve this PR'sstaticrouting, andci-okmust carry bothstatic-checksandscripts. - #1953 merges cleanly, but its new active-gate budget table in
docs/architecture/build.mdhas nostatic-checksrow. Whichever lands second should record the gate (ADR 026 D4); the PR body already states the added runtime, compile dependencies and runner pool, and the passingstatic-checksjob took 41 s end to end at this head.
CI
At d50b2be, changes, dependencies, static-checks, macos-native, web and windows-cli pass; verify (linux) is still running; acp-registry is skipped.
Verdict: APPROVE. The round-2 P2 is fixed and preserved, the merge changes no reviewed content, coverage is unchanged after main's move, and the only remaining note is the optional P3 wording.
…atic-xtask-checks
…atic-xtask-checks
yyhhyyyyyy
left a comment
There was a problem hiding this comment.
Round 4 review of ab9ea4c. The goal is unchanged: xtask-check owns the pure static repository checks, xtask delegates to it, and CI routes Web sources, plugin pages and static generated graphs to the Linux static-checks job while catalog.md keeps the runtime-assembled xtask check.
Verdict: APPROVE.
Head is main plus the reviewed implementation, nothing else
git merge-tree --write-tree cfeccadc5432928995b1779ef27faf1302a1cc5d 04186cc3f returns tree a579d2cec7e774d68c5417e44f670c20d55a0fd7, equal to git rev-parse HEAD^{tree}: the merge applied without manual resolution. git diff --name-only origin/main HEAD lists exactly the PR's 21 files, so every non-PR file in the head tree is byte-identical to origin/main. The delta from round 3, d50b2be..ab9ea4c, changes exactly main's 122-file set dbbd707..cfeccad, and git log --oneline origin/main..HEAD contains only cf331c5 plus merge commits, so no branch-side code changed after round 3. git diff -M --summary origin/main...HEAD still shows the five 100 percent renames into xtask/check/src/.
Round-2 P2 is fixed and preserved
static-checks is defined at .github/workflows/ci.yml:75 with if: needs.changes.outputs.static == 'true' at :77, and its run block still starts with cargo fmt --all -- --check --config error_on_line_overflow=true at :94. scripts/ci-changes.mjs:30 still routes xtask/check/** to static and xtask, and ci-ok still needs static-checks at .github/workflows/ci.yml:404 (the line moved from 411 because #1949 and #1951 removed lines above it). scripts/ci-changes.test.mjs:35-37, :41-43 and :72 pin the classification.
No semantic conflict with main's recent merges
- #1949: the release-stamped verify step is gone at head, and no file this PR changes mentions it; the ci.yml difference d50b2be..HEAD is exactly main's step removal and test target renames. Main's tui-e2e edits are outside this PR's files, and the AGENTS.md suite link still resolves.
- #1951: every test target ci.yml now names exists:
crates/dimcode/Cargo.toml:16,20,24,28(cli_flow,cli_tui_flow,cli_session_flow,cli_daemon_flow),crates/dim-app-server/Cargo.toml:10,18,crates/dim-event-hub/Cargo.toml:13andtests/integration/Cargo.toml:11. The routing table has no test-binary references, so the split cannot stale it. - #1962: after the web test prune, the static suite still passes on the pruned tree.
literal_mainscansweb/srcproduction files (xtask/check/src/literal_main.rs:262) and skips.test.files (:301-302), and the full run reports 743 modules, 4561 edges, 26 plugin documents, 97 comment links and 11 unrelatedliteral_mainuses. cargo run --locked -p xtask -- checkalso printsservice catalog passed, so the runtime-assembledcatalog.mdcheck is intact after #1949's build changes.
Checks run
cargo fmt --all -- --check --config error_on_line_overflow=true: pass.cargo clippy --locked -p xtask-check --all-targets -- -D warnings: pass.cargo test --locked -p xtask-check: 79 passed, 0 failed.cargo run --locked -p xtask-check: pass (743 modules and 4561 edges, 26 plugin documents, service declarations, plugin locks, 97 comment links, 11 unrelatedliteral_mainuses).cargo run --locked -p xtask -- check: pass, includingservice catalog passed.cargo clippy --locked -p xtask --all-targets -- -D warnings: pass.node --test scripts/ci-changes.test.mjs: 10 passed.node --test scripts/*.test.mjs: 159 tests, 155 passed, 4 skipped, 0 failed.node scripts/adr-check.mjs --base origin/main:ADR freeze passed: 21 changed files.git diff --check origin/main...HEAD: clean.cargo tree --locked -p xtask-check: external pure-Rust crates only, nodim-*and norutisruntime crate.git merge-treeagainst origin/main: clean and equal to the head tree.
All local runs used isolated HOME, TMPDIR, XDG dirs and CARGO_HOME under the review data dir with LC_ALL=en_US.UTF-8, and no processes remained.
CI
At ab9ea4c, changes, dependencies, static-checks (40s), macos-native, web and windows-cli pass. verify (linux) is still pending; acp-registry is skipped. I did not wait for verify.
Cross-PR
- #1952 (head ba8b3f3) conflicts against this head in
.github/workflows/ci.yml,docs/architecture/build.md,docs/release/README.mdandscripts/ci-changes.mjs, and shares four files with this PR. Itsci-okneedsscriptsand notstatic-checks(its ci.yml:406), and it keeps plugin, generated and Web paths onxtask(itsscripts/ci-changes.mjs:12,22). Whichever lands second must combine the two routings and keep both entries inci-ok. - #1953 (head 923aa33) conflicts in
.github/workflows/ci.yml,docs/architecture/build.md,crates/dimcode/tests/cli_flow.rsandscripts/run-rust-test.mjs; only ci.yml, Cargo.toml and the README overlap this PR. Its Active-gate budgets table at923aa339:docs/architecture/build.md:326-342has nostatic-checksrow; whichever lands second should record the new gate (ADR 026 D4). This PR's body already discloses the gate's runtime, compile dependencies and runner pool. - #1912 shares
xtask/src/main.rsthrough a singlesession_data_valuerename inconfigured_agent; it does not touch the moved checks and main.rs merges clean. #1900 and #1899 sharextask/src/plugins.rs(FsHost and ExecHost renames inGraphPlatform, which stays in that file) and merge clean. #1910 and #1909 sharedocs/design/branch-typescript.mdand merge clean. #1881 and #1306 share only Cargo files. - #1963 and #1917 conflict only in main-side test files, not in this PR's files.
Optional P3 (unchanged, non-blocking)
The open thread's sentence at docs/release/README.md:181 is unchanged: "Architecture pages checked by xtask". It is scoped to pushes to main, where the full run still executes verify's xtask step, so it is not false, and :183 now names static-checks for the PR routing. Wording only; naming both jobs would match the routing more directly, and the thread can be closed if the current split is intended.
Notes
A tree-wide grep still finds pre-move paths in docs/design/rutis-0.19-upgrade.md:147 (and docs/zh/design/rutis-0.19-upgrade.md:131) and docs/design/thin-instances.md:290. These are historical or draft design documents, and I am not counting them as findings.
Resolved and withdrawn
- Round-2 P2: fixed and preserved; the format gate is still first in the static-checks run block.
- No other round 1 to 3 finding remains open. The only prior note is the optional README wording above.
Unverified
- verify (linux) was pending when I finished; I did not wait for it.
- I did not run the web or macOS suites locally; they cover main-side changes and are green or running in CI.
- Nothing was published, commented, pushed or merged.
Summary
Implements ADR 026 D2 + D4 (physical isolation of pure static L1 checks from heavy workspace builds). Fixes #1933. Refs #1919, #1925.
Problem
xtaskdepends on 15 internal workspace crates (dim-app-server,dim-agent-runtimewithtesting,dim-agent-capabilities,dim-agent-aimux,rusqlite,rquickjs,axum,reqwest,rmcp,rutis, etc.) plus ~750 KB of evaluation harnesses. Because all checks lived in that single binary, PRs touching Web sources (#1925), plugin pages, or static generated files had to queue on the macOSverifypool and compile nearly the entire Rust backend just to run pure static checks (literal_main,boundaries,plugin_docs,types,npm,comment_links).Changes
xtask/check(xtask-check) with zero business-crate dependencies and zero C/C++ native dependencies — only 4 direct / 9 transitive pure-Rust crates (proc-macro2,quote,syn,unicode-ident,serde_core,serde_json,itoa,memchr,zmij,rutis-types):boundaries(Cargo metadata crate rules +crates.*freshness + livemodules::checksyn-AST boundaries +plugin_docs::check),types(npm/branch-services.d.tsvia AST-onlyrutis-types),npm(runtime/plugins/*/package-lock.json),comment_links, andliteral_main, plus all 78 unit tests.cargo run --locked -p xtask-check(all pure static checks),module-graph DIR, andtypes.xtaskdelegation:xtaskdepends onxtask-check(and dropssyn,proc-macro2,rutis-typesfromxtask/Cargo.toml) and delegates all pure static checks,module-graph,types,boundaries::write, andplugin_docs::rewriteto it.cargo run --locked -p xtask -- checkkeeps working as the single full local entry point (runningxtask_check::check_allfail-first, then runtime-assembledcatalog::check)..github/workflows/ci.yml&scripts/ci-changes.mjs):staticcheck group and a[self-hosted, linux, x64]static-checksjob (wired intoci-ok) that runscargo clippy --locked -p xtask-check --all-targets -- -D warnings,cargo test --locked -p xtask-check, andcargo run --locked -p xtask-check.web/src/**/*.{ts,vue,mjs,js}to['web', 'static']anddocs/architecture/rust-agent/{plugins,generated}/(exceptgenerated/catalog.md) to['static'], so Web and plugin-doc PRs skip the macOSverifyrunner and 15-crate backend build completely.docs/architecture/rust-agent/generated/catalog.mdon['xtask'](runtime-assembled catalog check) and routextask/check/**to['static', 'xtask'].scripts/ci-changes.test.mjs,AGENTS.md,docs/release/README.md, and the twotypes.rslinks indocs/design/branch-typescript.md.Gate cost disclosure (ADR 026 D4)
static-checkson[self-hosted, linux, x64](~15s total for clippy + 78 tests + full static check; 9 pure-Rust crates, zero backend crates).web/src/**/*.{ts,vue,mjs,js}) and plugin-doc PRs from the contended macOS ARM64verifypool and eliminates their ~10–30 mincargo build -p xtaskbackend builds.Design rule checklist
All plugin/runtime design rules are n/a: this change only reorganizes
xtaskstatic verification tooling and CI routing, with no runtime, Timeline, or plugin behavior changes.xtaskstatic verification tooling and CI only.beforecallbacks: n/a.Documentation
xtask/check/src/types.rsindocs/design/branch-typescript.md).Verification
cargo tree --locked -p xtask-check— confirmed zerodim-*/rutisruntime / native C dependencies (9 pure-Rust crates total).cargo fmt --all -- --check --config error_on_line_overflow=true— passed.cargo clippy --locked -p xtask-check --all-targets -- -D warnings— passed.cargo test --locked -p xtask-check— 78 passed, 0 failed (0.26s).cargo run --locked -p xtask-check— all 7 pure static checks passed (743 modules, 4558 edges, 26 plugin docs,npm/branch-services.d.ts, plugin locks, 97 comment links, 11 unrelatedliteral_mainuses).cargo run --locked -p xtask-check -- module-graph /tmp/dim-xtask-check-module-graph— emittedmodules.jsonandmodules.mmdon demand.cargo clippy --locked -p xtask --all-targets -- -D warnings— passed.cargo run --locked -p xtask -- check— full check (xtask-check+ runtime-assembledcatalog::check) passed.node --test scripts/ci-changes.test.mjs scripts/adr-check.test.mjs— 16 passed (9ci-changes+ 7adr-check).node scripts/adr-check.mjs --base origin/main&git diff --check— passed.