Skip to content

ci: tighten path classification, isolate script checks, and remove dead steps - #1952

Merged
eric8810 merged 11 commits into
mainfrom
eric/1931-tighten-ci-routing-and-dead-steps
Nov 21, 2026
Merged

eric8810 merged 11 commits into
mainfrom
eric/1931-tighten-ci-routing-and-dead-steps

Conversation

@eric8810

@eric8810 eric8810 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Tightens CI path routing, isolates lightweight script checks on Linux x64, pins runner-agnostic control jobs off scarce macOS/Windows pools, activates the daily scheduled full cross-platform sweep (ADR 026 D5, staged before narrowing main code pushes), and removes a dead 0-test CI step.

Refs #1931

Summary of changes

  1. Explicit non-code path classification (scripts/ci-changes.mjs):
    • Classified .agents/**, skills/**, .github/ISSUE_TEMPLATE/**, and .github/pull_request_template.md (PULL_REQUEST_TEMPLATE.md) as [] so skill/template edits no longer fall through to full workspace builds on PRs or main pushes.
  2. Scope dependencies (cargo-deny) to manifest, lockfile and policy edits:
    • Changed .github/workflows/ci.yml dependencies.if to needs.changes.outputs.dependencies == 'true'.
    • Added 'dependencies' whenever any Cargo.toml (/(?:^|\/)Cargo\.toml$/) changes (root Cargo.toml / Cargo.lock continue to select all groups; deny.toml / LICENSE select dependencies only).
  3. Dedicated Linux scripts job, narrow scripts/ → web, and preserve cross-group Rust inputs:
    • Extracted Test development and release scripts out of verify into its own scripts job pinned to [self-hosted, linux, x64] (with pinned setup-node and setup-rust-toolchain) and wired it into ci-ok.
    • Narrowed scripts/ → web to scripts/stage-web.mjs.
    • Routed Windows client/terminal dependencies of dim-cli (crates/dim-client/, vendor/grok-build/) to include windows.
    • Routed Rust files read directly by packaging scripts to their owning packaging groups: crates/dim-app-server/src/protocol.rs → ['rust', 'node', 'web', 'scripts'], crates/dim-app-server/src/storage/sqlite.rs → ['rust', 'node', 'scripts', 'macos_scripts'], crates/dim-app-server/resources/ → ['rust', 'node', 'scripts'].
    • Updated macos-native so macOS packaging/code-layout script checks (macos_scripts == 'true') still run on PRs, main pushes, scheduled sweeps, and manual runs now that scripts is no longer inside verify (macos), without duplicating verify (macos) Rust tests.
  4. Pin changes and ci-ok to [self-hosted, linux, x64]:
    • Prevented runner-agnostic control jobs from claiming scarce macOS or Windows slots.
  5. Activate daily scheduled full sweep first (ADR 026 D5 staged rollout):
    • Added schedule: - cron: '0 19 * * *' to .github/workflows/ci.yml (runs all groups across both Linux and macOS, plus acp-registry, dependencies, windows-cli, web, scripts, macos-native, and Verify downloaded Node runtime).
    • Kept code pushes on main running the full suite (skipping only pushes whose entire range selects no check group) until the scheduled sweep is verified active on main, after which narrowing main code pushes can land in a small follow-up per ADR 026 D5.
    • Documented the scheduled sweep and triage/bisection responsibility in docs/release/README.md and docs/architecture/build.md.
  6. Remove dead step & clean up npm ci flags:
    • Removed the 0-test migration_flow node_ line from Verify public Node bindings.
    • Added --no-audit --no-fund to the three runtime npm ci / npm install commands in Verify actual CLI profiles and line-mode flows (kept installing runtime + runtime/plugins/workflow for all rust == 'true' runs because acp:: and workflow:: in the 12-flow cli_flow step require those packages even when node == 'false').

Verification

  • node --test scripts/ci-changes.test.mjs scripts/tui-tmux.test.mjs scripts/adr-check.test.mjs — passed (23/23)
  • node --test scripts/test-macos-native.test.mjs scripts/development.test.mjs — passed (9/9)
  • node --test --test-name-pattern='workflow actions use immutable commits' scripts/release.test.mjs — passed
  • node --check scripts/check-acp-registry.mjs && node --check scripts/ci-changes.mjs — passed
  • node scripts/adr-check.mjs --base origin/main — passed

Ablation review

  • Kept npm ci for runtime and runtime/plugins/workflow unconditionally in the Verify actual CLI profiles and line-mode flows step instead of gating it on node == 'true': cli_flow/acp.rs and cli_flow/workflow.rs both run in the 12-flow cli_flow selection on rust=true, node=false CLI-only PRs.
  • Kept Cargo.toml at repo root falling through to all groups while matching nested **/Cargo.toml additively to 'dependencies', avoiding duplicate rules per crate prefix.
  • No extra workflow files or helper scripts were introduced; all changes stay within existing scripts/ci-changes.mjs and .github/workflows/ci.yml.

@eric8810
eric8810 force-pushed the eric/1931-tighten-ci-routing-and-dead-steps branch from 8c36535 to 8f9a8a8 Compare November 20, 2026 12:47
@eric8810
eric8810 marked this pull request as ready for review November 20, 2026 12:48

@zerob13 zerob13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8f9a8a81d3255f97367c9d95507bd5b4d0045559 against main at ffd3e11623267f15e11421aa419532e131da82cb. Two CI coverage regressions need fixes before merge.

  1. Keep Windows verification for the Windows client transport. A change confined to crates/dim-client/src/lib.rs selects rust,node. That file contains a Windows-only transport path and dim-client is a direct dependency of the crate built by windows-cli. The previous full main push ran that Windows build. With path routing, the push runs verify (macos) and skips windows-cli, so the affected code can go uncompiled on Windows until a sweep. Please route this Windows client path to windows and add a regression case for a push changing only crates/dim-client/src/lib.rs. Selector · Windows transport · CLI dependency · Windows job
  2. Route packaging checks when their Rust inputs change. scripts/stage-web.mjs reads the protocol version directly from crates/dim-app-server/src/protocol.rs, but that path skips web. scripts/stage-release.mjs reads the SQLite format and upgrade table directly from crates/dim-app-server/src/storage/sqlite.rs, but that path skips both scripts and macos_scripts. Please keep the Rust checks and add the corresponding packaging groups, with a single-path regression case for each exact file. Selector · Web staging · Native staging · macOS packaging job

Coordination for rollout. ADR 026 is marked Proposed at this base. Its D5 calls for an active full sweep before narrowing main. Stage the rollout so the scheduled sweep is active and verified before switching main pushes to path routing. Coordinate the shared workflow and selector edits with #1950, keeping both scripts and static-checks in ci-ok and preserving the runtime catalog route. ADR 026 status · D5

Local verification passed 39 ordinary regression tests, with one macOS-only case skipped on Linux. Exact-head CI run 44738764024 was queued at submission. changes success, dependencies success, verify (linux) queued, scripts success, web success, windows-cli success, macos-native success, acp-registry skipped, ci-ok pending. CI run

@yyhhyyyyyy yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE.

Reviewed the full origin/main...HEAD diff at 8f9a8a8 (5 files, +86/-41). The PR does what it says: non-code metadata no longer falls through, dependencies follows manifests, lockfile and policy files, scripts/ routes only the web-packaging entry point to web, the script suite runs in its own Linux job, main pushes route by changed paths, and a daily full sweep covers them. No blocking defect found.

Verification: node --test scripts/ci-changes.test.mjs passes 10/10. The full node --test scripts/*.test.mjs suite is green except for one environment-only failure caused by the local mise cargo shim; with the toolchain cargo the same test passes (158 tests, 153 pass, 4 skipped). The PR's CI scripts job is green on a plain [self-hosted, linux, x64] runner; changes, macos-native, web, dependencies and windows-cli are green, and verify (linux) was still queued when I checked. I simulated representative paths: only Cargo.toml, Cargo.lock, toolchain, workflow and unknown paths select all groups; deny.toml and LICENSE select dependencies; nested Cargo.toml adds dependencies; scripts/stage-web.mjs is the only scripts path that selects web; test-macos-native selects rust,scripts; code-layout and release scripts select macos_scripts. Every group maps to a job and ci-ok.needs contains all eight non-gating jobs.

The schedule is safe on forks: it runs only the default branch, fork pull requests still skip changes, and every job depends on it, so the sweep never executes untrusted PR code or receives PR secrets. Its concurrency group uses github.run_id on main, so it neither cancels nor is cancelled by pushes.

P3 (non-blocking), docs/release/README.md:203: the ACP Registry paragraph still says the job runs for "full main push checks and manual CI runs". After this change, main pushes are path-routed and the job runs only when rust or scripts is selected, and the daily sweep also runs it. Failure scenario: a maintainer triaging a scheduled failure does not expect the registry job there, and a reader assumes every main push runs it. Fix: say "main pushes that select rust or scripts, scheduled sweeps, and manual CI runs".

P3 (non-blocking), inline on scripts/ci-changes.mjs:11: docs/architecture/tui-e2e.md is read by scripts/tui-tmux.test.mjs:8, and line 22 asserts every scenario name is documented, but the documentation rule still routes it to no group. Failure scenario: a doc-only edit that renames or removes a scenario name merges with the scripts job skipped; the broken assertion appears on the next scripts change or the next sweep. Fix: add a rule mapping docs/architecture/tui-e2e.md to scripts before the documentation rule and a case in the new documents that code reads keep their checks test. This predates the PR, but the new test states the policy and misses one of its inputs.

Optional follow-up: examples/, licenses/ and NOTICE still fall through to all groups, so a change to examples/ui-extensions/ui/panel.js still queues the full workspace. ADR 026 D5 asks for explicit classification of non-code assets; this predates the PR.

Conflicts: #1950 conflicts on .github/workflows/ci.yml, docs/release/README.md, scripts/ci-changes.mjs and xtask/Cargo.toml. Any resolution must keep its static group and its web/src and generated-docs rules alongside this PR's non-code, Cargo.toml and scripts rules, and combine ci-ok.needs (static-checks and scripts) with the Linux pin. #1951 conflicts on .github/workflows/ci.yml and docs/architecture/build.md; resolve with its renamed test targets plus this PR's routing, npm flags and scheduled-sweep wording. #1949, #1895 and #1958 merge cleanly.

No existing review threads exist, so no earlier finding is withdrawn. One provisioning assumption remains: the plain linux,x64 pool must keep Python 3 and a C compiler because scripts/code-layout.test.mjs:12 runs there; the current runner passed, so this is a note, not a defect.

Comment thread scripts/ci-changes.mjs

const rules=[
[/^benchmarks\/baselines\/[^/]+\.json$/,[]],
[/^\.agents\/|^skills\/|^\.github\/(?:ISSUE_TEMPLATE\/|pull_request_template\.md$|PULL_REQUEST_TEMPLATE\.md$)/,[]],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3, non-blocking. This new explicit list is the right place to finish the "documents that code reads keep their checks" policy, but docs/architecture/tui-e2e.md still selects no group even though scripts/tui-tmux.test.mjs:8 reads it and line 22 asserts every scenario name appears in it. A doc-only edit that renames or removes a scenario name merges with the scripts job skipped, and the broken assertion surfaces on the next scripts change or the next sweep. Add a rule mapping docs/architecture/tui-e2e.md to scripts before the documentation rule and a case in the new documents that code reads keep their checks test. Pre-existing, but the new test states the policy and misses one of its inputs.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still open at 5e20ef2. scripts/ci-changes.mjs:15 still maps docs/architecture/tui-e2e.md to [], with no rule before it, and scripts/ci-changes.test.mjs:41 still has no case for it. A doc-only edit that renames or removes a scenario name selects scripts false, and the docs-only merge push skips every job as well, so scripts/tui-tmux.test.mjs:22 fails only on the next scripts change or the daily sweep. Add [/^docs\/architecture\/tui-e2e\.md$/,['scripts']]/ before the documentation rule and a case in the policy test. The same policy test also misses docs/design/plugins/EventHub.md, which crates/dim-event-hub/tests/tool.rs:5-8 and entry.rs:4-7 read and compare against code strings.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in ba8b3f3.

…emove dead step

Tighten CI routing and workflow topology per ADR 026 D4/D5:

- Classify `.agents/**`, `skills/**`, `.github/ISSUE_TEMPLATE/**`, and
  `.github/pull_request_template.md` explicitly in `scripts/ci-changes.mjs`
  so non-code repository metadata runs no build/test groups (on both pull
  requests and `main` pushes).
- Trigger `dependencies` (`cargo-deny`) only when Cargo manifests
  (`Cargo.toml` / `**/Cargo.toml`), `Cargo.lock`, `deny.toml`, or `LICENSE`
  change (plus full `main` pushes, scheduled sweeps and manual runs) instead
  of every Rust edit.
- Move `scripts` tests into a dedicated `[self-hosted, linux, x64]` job, limit
  `scripts/` -> `web` routing to `scripts/stage-web.mjs`, keep `macos-native`
  running macOS script checks whenever `macos_scripts` is selected, and route
  Windows client/terminal crates (`crates/dim-client/`, `vendor/grok-build/`)
  to `windows` and Rust sources read by packaging scripts
  (`crates/dim-app-server/src/protocol.rs`, `storage/sqlite.rs`, `resources/`)
  to their owning packaging groups.
- Pin `changes` and `ci-ok` to `[self-hosted, linux, x64]`.
- Add the daily scheduled full cross-platform sweep (`0 19 * * *` UTC across
  Linux and macOS) while keeping code pushes on `main` full until the sweep is
  verified active per ADR 026 D5.
- Remove the 0-test `migration_flow node_` invocation from `Verify public Node
  bindings` and add `--no-audit --no-fund` to the runtime `npm ci`/`npm install`
  commands in `Verify actual CLI profiles and line-mode flows`.

Refs #1931
@eric8810
eric8810 force-pushed the eric/1931-tighten-ci-routing-and-dead-steps branch from 8f9a8a8 to 5e20ef2 Compare November 20, 2026 13:39
@eric8810
eric8810 requested a review from zerob13 November 20, 2026 13:39
@eric8810

Copy link
Copy Markdown
Collaborator Author

Thanks for the detailed review @zerob13! Updated and pushed with all points addressed:

  1. Windows verification for client/terminal dependencies: Routed crates/dim-client/ (and vendor/grok-build/, which also carries #[cfg(target_os = "windows")] and is a direct dependency of dim-cli) to ['rust', 'windows', 'node'] in scripts/ci-changes.mjs, and added both single-path classify assertions and a git push regression case for a push changing only crates/dim-client/src/lib.rs in scripts/ci-changes.test.mjs.
  2. Packaging checks when their Rust inputs change:
    • crates/dim-app-server/src/protocol.rs → ['rust', 'node', 'web', 'scripts'] (read by scripts/stage-web.mjs, scripts/stage-image.mjs, and scripts/release.test.mjs)
    • crates/dim-app-server/src/storage/sqlite.rs → ['rust', 'node', 'scripts', 'macos_scripts'] (read by scripts/stage-release.mjs and scripts/release.test.mjs)
    • crates/dim-app-server/resources/ → ['rust', 'node', 'scripts'] (read by scripts/update-provider-catalog.ts and scripts/provider-catalog.test.mjs)
    • Added exact single-path regression cases for each file in scripts/ci-changes.test.mjs.
  3. Staged ADR 026 D5 rollout: Kept the daily scheduled full cross-platform sweep (schedule: - cron: '0 19 * * *') in .github/workflows/ci.yml, while keeping main code pushes running the full suite (skipping only pushes whose entire range selects no check group, such as docs and non-code metadata) until the daily scheduled sweep is active and verified on main. Switched the PR footer from Fixes #1931 to Refs #1931 so narrowing main code pushes can follow once the sweep is verified, and noted merge coordination with xtask(ci): decouple pure static repository checks from workspace-coupled xtask #1950 (static-checks + scripts both in ci-ok, preserving the runtime catalog route).

Verified locally with scripts/ci-changes.test.mjs, scripts/tui-tmux.test.mjs, scripts/adr-check.test.mjs, scripts/release.test.mjs (action pins), and adr-check. Ready for re-review!

@yyhhyyyyyy yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE.

Reviewed the full origin/main...HEAD diff at 5e20ef2 (5 files, +107/-39) against main ffd3e11. The delta since 8f9a8a8 addresses the blocking review: crates/dim-client/ and vendor/grok-build/ now select windows, and windows-cli compiles both through dim-cli (crates/dim-cli/Cargo.toml:9, crates/dim-cli/Cargo.toml:23-25, .github/workflows/ci.yml:77-94); crates/dim-app-server/src/protocol.rs, crates/dim-app-server/src/storage/sqlite.rs and crates/dim-app-server/resources/ select the groups that read them (scripts/stage-web.mjs:19, scripts/stage-release.mjs:33, scripts/provider-catalog.test.mjs:10-15). main code pushes stay full while the daily sweep is established, and only ranges selecting no group skip. That matches ADR 026 D5 staging and the updated docs.

P3, the inline thread from the previous round remains: docs/architecture/tui-e2e.md still selects no group. scripts/ci-changes.mjs:15 matches it to [], and the new "documents that code reads" test at scripts/ci-changes.test.mjs:41 still omits it. scripts/tui-tmux.test.mjs:8 reads it and line 22 asserts every scenario name is present. A doc-only edit that renames or removes a scenario name merges with scripts skipped; the docs-only merge push skips every job too, so the broken assertion appears on the next scripts change or the daily sweep. Fix: add [/^docs\/architecture\/tui-e2e\.md$/,['scripts']]/ before the documentation rule and a case in the policy test.

Optional, same policy: docs/design/plugins/EventHub.md is read by crates/dim-event-hub/tests/tool.rs:5-8 and crates/dim-event-hub/tests/entry.rs:4-7, which compare code strings to its A.4 and A.6 blocks (tool.rs:23, entry.rs:17). A docs-only edit to those blocks merges with rust skipped and fails on the next Rust run or sweep. Route it to rust as well. More broadly, xtask check validates Rust-comment links into any docs/ page (xtask/src/comment_links.rs:1-3, xtask/src/main.rs:73, .github/workflows/ci.yml:216-224), so a heading rename in a docs-only PR is still unchecked; that general case fits a follow-up or #1950's static checks.

Optional, docs: docs/release/README.md:203 still says acp-registry runs only on "full main push checks and manual CI runs". It now also runs on scheduled sweeps (.github/workflows/ci.yml:353). The main-push wording is accurate again after the staged rollback, so I withdraw the main-push half of my earlier note; add "scheduled sweeps" to the sentence.

Verification: node --test scripts/ci-changes.test.mjs 10/10 pass; full node --test scripts/*.test.mjs 158 tests, 154 pass, 4 platform skips, 0 fail; node scripts/adr-check.mjs --base origin/main pass. Exact-head CI run 44746166383: changes, dependencies, scripts, web, windows-cli and macos-native pass; verify (linux) was still queued when checked; acp-registry skipped for a PR. Worktree clean, no leftover processes.

Conflicts: #1950 conflicts on .github/workflows/ci.yml, docs/release/README.md and scripts/ci-changes.mjs; keep its static group, static-checks job and ci-ok entry alongside scripts, with this PR's runner pins. #1951 conflicts on .github/workflows/ci.yml and docs/architecture/build.md; keep its renamed test targets with this PR's routing, npm flags and sweep wording. #1953 conflicts on .github/workflows/ci.yml; its branch still carries the migration_flow node_ step this PR removes, so drop that line in resolution, and its new budget table needs a scripts row. #1949, #1958, #1910, #1913, #1907 and #1908 merge cleanly.

Route docs/architecture/tui-e2e.md to scripts and
docs/design/plugins/EventHub.md to rust, and name scheduled sweeps in the
acp-registry paragraph.
@eric8810

Copy link
Copy Markdown
Collaborator Author

Merged main (includes #1958) and addressed the remaining P3 notes:

  • docs/architecture/tui-e2e.md now selects scripts and docs/design/plugins/EventHub.md selects rust; both have a case in the "documents that code reads keep their checks" test.
  • The acp-registry paragraph in docs/release/README.md now names main pushes that select rust or scripts, scheduled sweeps and manual runs.

node --test scripts/ci-changes.test.mjs passes 10/10. The full scripts suite has one environment-only failure in scripts/code-layout-darwin.test.mjs (llvm-objcopy compatibility with LLVM 23.1.5), unrelated to this diff. Re-review requested.

@yyhhyyyyyy yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE.

Reviewed the full origin/main...HEAD diff at ba8b3f3 (5 files, +114/-40) against origin/main dbbd707. The rebase preserves the approved 5e20ef2 content: .github/workflows/ci.yml is identical to the approved head, and scripts/ci-changes.mjs and scripts/ci-changes.test.mjs differ only by the new commit's rules and cases. Main's #1895 rewrites in docs/architecture/build.md and docs/release/README.md merged without overlap. #1958's cli_flow and goal wait fixes are present, and nothing in this diff touches its files.

The new commit ba8b3f3 closes the inline thread. docs/architecture/tui-e2e.md now selects scripts (scripts/ci-changes.mjs:15, case at scripts/ci-changes.test.mjs:44), and scripts/tui-tmux.test.mjs:8 reads the page while line 22 asserts every scenario name. docs/design/plugins/EventHub.md now selects rust (scripts/ci-changes.mjs:17, case at scripts/ci-changes.test.mjs:45), and crates/dim-event-hub/tests/tool.rs:5-8 and entry.rs:4-7 read its A.4 and A.6 blocks.

Verified the rest of the full diff at file:line. The schedule trigger is at .github/workflows/ci.yml:4-6. dependencies runs only for the dependency group at line 59, with every Cargo.toml adding that group at scripts/ci-changes.mjs:7,50. The isolated Linux scripts job is at ci.yml:144-167; verify no longer selects scripts at line 170; macos-native keeps packaging on PRs, main pushes, sweeps and manual runs at lines 327 and 344; acp-registry is at line 353; ci-ok includes scripts at lines 406-408. The statements in docs/release/README.md:146,181,183,203,218-224 and docs/architecture/build.md:348 match those conditions. No defect found in the diff.

CI at ba8b3f3, run 44845410370: changes, dependencies, scripts, web, windows-cli and macos-native pass; acp-registry is skipped for a PR; verify (linux) and ci-ok fail. The failure is the runner, not this diff: 30 scenario_eval tests report bwrap: Can't mount proc on /newroot/proc: Operation not permitted, and 2 transport_flow plus 4 modality/OCR tests fail with the same bwrap error. git diff origin/main HEAD contains no Rust file. At 5e20ef2, verify (linux) failed on goal::tui_goal_shows_the_state_and_marks_the_status_area, repicking_the_current_model_keeps_the_effort and tui_models_picker_edits_only_the_subagent_model_policy, which #1958 fixed and this head contains. Rerun verify on a runner where bwrap can mount proc before merge.

Verification: node --test scripts/ci-changes.test.mjs 10/10 pass; full node --test scripts/*.test.mjs 158 tests, 154 pass, 4 platform skips, 0 fail; node scripts/adr-check.mjs --base origin/main pass. Worktree clean, no leftover processes.

Previous findings: the tui-e2e P3 thread is fixed, so withdraw it, and withdraw the round 2 EventHub routing note (fixed at ci-changes.mjs:17) and the acp-registry wording note (fixed at docs/release/README.md:203). The general xtask comment-link gap remains a follow-up, but no Rust comment links to tui-e2e.md, so this page is covered by the scripts job.

Conflicts: merge-tree at this head is clean against origin/main. #1949 (948591a) merges cleanly. #1950 (d50b2be) conflicts on .github/workflows/ci.yml, docs/release/README.md and scripts/ci-changes.mjs; keep its static group, static-checks job, changes output and ci-ok entry beside this PR's scripts job and Linux pins, take this PR's narrowed scripts/ rules and the new tui-e2e/EventHub rules, and combine its static-checks sentence with this PR's sweep wording in the README paragraph. #1951 (23ab958) conflicts on .github/workflows/ci.yml and docs/architecture/build.md; keep its renamed targets (integration_flow, app_server_flow mcp_http_flow::node_ and the split cli targets) with this PR's removal of the in-verify scripts step and the migration_flow line, and combine the build.md sweep wording with its test list. #1953 (3a1696f) conflicts on .github/workflows/ci.yml; its branch still carries the migration_flow node_ line at ci.yml:319 and the in-verify scripts step, drop both, and add a scripts row to its new budget table. #1900 is a draft on an old base and merges cleanly; it does not edit these files relative to ffd3e11.

…routing-and-dead-steps

# Conflicts:
#	.github/workflows/ci.yml
#	docs/architecture/build.md
…steps

# Conflicts:
#	.github/workflows/ci.yml
#	docs/release/README.md
#	scripts/ci-changes.mjs
@eric8810

Copy link
Copy Markdown
Collaborator Author

Merged main (includes #1949, #1950 and #1923) and resolved the overlapping edits:

node --test scripts/ci-changes.test.mjs passes 10/10. Re-review requested.

@yyhhyyyyyy yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE.

The PR tightens path classification, isolates the development and release script suite in a Linux x64 scripts job, pins the runner-agnostic control jobs, removes dead steps, and stages the daily full sweep from ADR 026 D5. This round reviewed the full origin/main...HEAD diff at a652768 (5 files, +114/-39) and the delta ba8b3f3..a652768.

Merge integrity

  • git diff origin/main HEAD (two-dot) changes exactly the same 5 files, and git diff 9f7674e8 HEAD is empty for all of them, so the a652768 merge of origin/main did not alter the PR content and the earlier 9f7674e merge left no duplicate content.
  • ab9ea4c41b (#1950 branch head) and 26ab50e23 (main) are identical for .github/workflows/ci.yml, scripts/ci-changes.mjs and scripts/ci-changes.test.mjs, so merging both cannot double-apply #1950.
  • The delta outside these 5 files is exactly origin/main's new commits (#1949, #1950, #1951, #1961, #1923, #1962 and others); the two-dot diff proves none of it was hand-edited.

#1950 coherence (static-checks decoupling)

  • static is in the group list (scripts/ci-changes.mjs:4), the changes outputs (ci.yml:29) and ci-ok needs (ci.yml:424). The static-checks job is at ci.yml:78-100, and its routes are intact: catalog.md to xtask (ci-changes.mjs:12), plugin and generated pages (ci-changes.mjs:13), web sources (ci-changes.mjs:23) and xtask/check/** (ci-changes.mjs:42).
  • xtask-check still carries the moved checks: xtask/check/src/lib.rs:27-33, plugin documents through xtask/check/src/boundaries.rs:97, and the web branch-literal check at xtask/check/src/literal_main.rs:66. catalog.md keeps the runtime xtask check (xtask/src/main.rs:64-65).
  • Cross-check against the workflow: all 11 groups have a changes output (ci.yml:26-37) and map to an existing job (rust, xtask, node, eval and execution to verify; windows to windows-cli; static to static-checks; web to web; scripts to scripts; macos_scripts to macos-native; dependencies to dependencies). ci-ok needs every other job exactly once (ci.yml:424), with no stale names and no duplicate job keys. The repeated step name "Configure Windows C/C++ toolchain" is in two different jobs (ci.yml:70,113), which is fine.

Approved content preserved

  • The metadata classification, Cargo manifest scoping, scripts narrowing, packaging-script inputs, Windows crates, push staging and doc wording from ba8b3f3 are present (ci-changes.mjs:11,16,18,26-30,33,36-38,41,52,75-81; ci.yml:168-191,194,345; docs/release/README.md:146,181,183,203,218-222; docs/architecture/build.md:348).
  • The one approved removal that did not survive the merges is the zero-match migration_flow node_ line; see finding 1.
  • The workflow matches the docs: schedule 0 19 * * * (ci.yml:4-6), dependencies gated on the dependency group (ci.yml:60) which every Cargo.toml adds (ci-changes.mjs:7,52), scripts isolated (ci.yml:168-191), verify gated on rust or xtask (ci.yml:194), macos-native script checks on non-PR events (ci.yml:345,362), and acp-registry off PRs when rust or scripts is selected (ci.yml:371).

Findings

  1. P3 (non-blocking; restore it or fix the description). The post-round-3 merges reintroduced the dead migration_flow node_ step at ci.yml:308. crates/dim-migration/tests/migration_flow.rs has 18 tests (for example legacy_session_catalog_classifies_new_imports_and_keeps_children_inert at line 150) and contains no node_ substring, so the command runs zero tests and exits 0. The line is absent at 5e20ef2 and at the approved ba8b3f3 and returns in d1131a1 and every later merge. PR description point 6 still claims the removal, but the line is also on origin/main, so the PR diff itself cannot show it. Failure scenario: today only a wasted test spawn and a stale description; if the target is later renamed, scripts/run-rust-test.mjs:19 asserts exactly one compiled target named migration_flow and the Node step fails for an unrelated change. Fix: delete ci.yml:308 on the branch and keep app_server_flow mcp_http_flow::node_ in the #1951 resolution while dropping migration_flow; otherwise update the description.
  2. P3 (optional, follow-up). The new policy test at scripts/ci-changes.test.mjs:41 still misses docs/typescript-plugin-authoring.md. runtime/plugin-sdk.test.mjs:25-26 reads every fenced ts block from the guide and compiles them with tsc at runtime/plugin-sdk.test.mjs:365; that check runs only in the Node step (ci.yml:290-312). classify(['docs/typescript-plugin-authoring.md']) returns no group because it falls to the documentation rule at scripts/ci-changes.mjs:20. Failure scenario: a PR edits a guide example so it no longer compiles; the Node step is skipped for that PR, and the failure surfaces on the next runtime or node change or on the daily sweep. This is pre-existing; it is raised now because the PR makes the policy explicit and fixed the same class for tui-e2e (ci-changes.mjs:16) and EventHub (ci-changes.mjs:18). Fix: add a rule before line 20 mapping the guide to ['rust','node'] and a case at ci-changes.test.mjs:41; node alone is not enough because verify is gated on rust or xtask (ci.yml:194) and the Node step reads target/test-artifacts.jsonl from the build step (ci.yml:228-239). Alternatively record the exclusion as a known limitation.

Checks

  • node --test scripts/ci-changes.test.mjs: 10/10 pass.
  • node --test scripts/*.test.mjs: 159 tests, 155 pass, 4 platform skips, 0 fail.
  • git diff --check and git diff --check origin/main...HEAD: clean.
  • node scripts/adr-check.mjs --base origin/main: ADR freeze passed, 5 changed files.
  • cargo run --locked -p xtask -- check: exit 0; module boundaries (743 modules, 4561 edges), 26 plugin documents, 99 comment links, literal main and service catalog passed.
  • Ruby YAML parse of ci.yml: 10 jobs, schedule cron present; routing, outputs, jobs and needs cross-checked as above.
  • Direct classify checks: tui-e2e to scripts, EventHub to rust, protocol.rs to rust,node,web,scripts, sqlite.rs to rust,node,scripts,macos_scripts, resources to rust,node,scripts, dim-client and vendor/grok-build to rust,windows,node, xtask/check to static,xtask, metadata paths to none.

CI
Run 44869252736 at a652768: changes, dependencies, static-checks, windows-cli, web, scripts and macos-native pass; acp-registry is skipped for the PR; verify (linux) is still pending and ci-ok is not yet reported. I did not wait for it.

Conflicts

  • origin/main: git merge-tree --write-tree origin/main HEAD is clean; HEAD already contains origin/main.
  • #1953 (head 923aa33, open): conflicts in .github/workflows/ci.yml, docs/architecture/build.md, crates/dimcode/tests/cli_flow.rs and scripts/run-rust-test.mjs. In ci.yml, #1953 adds thread variables but still carries the pre-#1949 release-stamped step and the pre-#1951 mcp_http_flow node_ line; a later merge must take its cli_threads and node_threads variables, keep this head's removal of the release-stamped step and the split app_server_flow mcp_http_flow::node_ and integration_flow targets (and migration_flow only if finding 1 is not fixed), and combine its parallelism budget text with this PR's sweep wording in build.md.
  • #1900 (draft, head ffb71ee): ci.yml auto-merges; the only conflict is crates/dim-app-server/tests/mcp_session_flow.rs, unrelated to this PR.

Resolved and withdrawn

  • Thread 4642894893 is fixed and still fixed at a652768: scripts/ci-changes.mjs:16 plus scripts/ci-changes.test.mjs:46; no further reply is needed.
  • Withdraw the round 3 note that #1950 conflicts with this PR: it is merged and coherent. The #1951 conflict resolved correctly except for finding 1. The #1953 note above supersedes the round 3 note for its new head.

Unverified

  • A real main push through the new staging logic and a scheduled sweep cannot be exercised from this PR; they are covered by tests only (scripts/ci-changes.test.mjs:147-175).
  • verify (linux) is pending at this head; local checks cover the diff but not the full suite.
  • The local script suite ran on macOS with cargo 1.100.0 on PATH; the CI scripts job passed on Linux at this head, which covers the target platform. No leftover processes; the isolated target directory is under dim-pr1952-data.

@eric8810

Copy link
Copy Markdown
Collaborator Author

Merged main again, now including #1953. ci.yml keeps this PR's scripts job and static-checks, with ci-ok requiring both; the workspace step now takes #1953's physical-core scaling, so shared hosts run fewer workers instead of oversubscribing their cores. node --test scripts/ci-changes.test.mjs passes 10/10. Re-review requested.

@yyhhyyyyyy yyhhyyyyyy left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE.

The PR tightens path routing, isolates the development and release script suite in a Linux x64 scripts job, pins the control jobs off scarce pools, stages the daily full sweep, and claims to remove a dead step. This round reviewed the full origin/main...HEAD diff at 8744358 (5 files, +114/-39) and the delta a652768..8744358 (13 files, +328/-101, mostly main's #1953). The two round-4 P3 findings remain open; no blocking defect was found.

Merge integrity

  • git merge-base origin/main HEAD is d0e74fc, the tip of origin/main, so git diff origin/main...HEAD is exactly the PR content: .github/workflows/ci.yml, docs/architecture/build.md, docs/release/README.md, scripts/ci-changes.mjs and scripts/ci-changes.test.mjs.
  • HEAD has parents a652768 and d0e74fc. git merge-tree --write-tree a65276837 d0e74fcf5 returns tree 660a651fd73fcf6713901a1bc9636160f278ad08, identical to HEAD^{tree}, so the merge of main into the branch is mechanical and no content was hand-edited.
  • scripts/ci-changes.mjs and scripts/ci-changes.test.mjs are byte-identical to a652768, the scripts job block (ci.yml:197-220) is byte-identical, and the docs deltas from a652768 to head contain only #1953 lines. The approved routing, job isolation and wording survived.
  • #1953's physical-core scaling block is intact at ci.yml:286-312: lscpu SMT width at 290-296, DIM_TEST_JOBS=clamp(physical/3,3,8) at 301-303, --test-threads=clamp(physical/4,2,6) at 304-306, macOS 3/3 at 308-309. The cli_threads (ci.yml:334-335) and node_threads (ci.yml:366-367) variables precede their uses at 349 and 368-374, so the merged thread variables are coherent.
  • Routing and gates: all 11 groups have outputs at ci.yml:27-37 and each maps to an existing job (rust, xtask, node, eval, execution to verify; windows to windows-cli; static to static-checks; web to web; scripts to scripts; macos_scripts to macos-native; dependencies to dependencies). ci-ok (ci.yml:486) needs all nine other jobs exactly once, and every needs and needs.changes.outputs.* reference resolves. Ruby's Psych AST found no duplicate mapping keys, and the file parses. Schedule (ci.yml:4-6), dependencies (:60), scripts (:199), verify (:223), macos-native (:407) and acp-registry (:433) match docs/release/README.md:183 and docs/architecture/build.md:321.

Findings

  1. P3, open from round 4. The dead migration_flow node_ command is still at ci.yml:370, and PR description point 6 still says it was removed. crates/dim-migration/tests/migration_flow.rs has 18 #[tokio::test(...)] functions and zero node_ occurrences, so the filter matches no test and the command exits 0. The line is also on origin/main, so the PR diff cannot show it unless the branch deletes it. Failure scenario: a wasted test spawn today; if the target is ever renamed, scripts/run-rust-test.mjs:36 fails an unrelated change. Fix: delete ci.yml:370 on the branch or update description point 6.
  2. P3, open from round 4. docs/typescript-plugin-authoring.md still selects no group through the documentation rule at scripts/ci-changes.mjs:20. runtime/plugin-sdk.test.mjs:25 reads every fenced ts block from it and compiles them with tsc at 365-370, but that test runs only in the node step at ci.yml:358 (gated at :351). The new policy test at scripts/ci-changes.test.mjs:41-48 covers docs/architecture/tui-e2e.md (ci-changes.mjs:16) and docs/design/plugins/EventHub.md (:18) but not this guide. Failure scenario: a guide-only PR breaks a fenced example, the Node step is skipped, and the failure surfaces on the next node change or the daily sweep. Fix: add a rule before ci-changes.mjs:20 mapping the guide to ['rust','node'] (rust because verify is gated on rust or xtask at ci.yml:223, node because the compile runs in the Node step) plus a case in the test, or record the limitation.
  3. P3, optional, wording. docs/release/README.md:183 says "from scripts/, only scripts/stage-web.mjs triggers the web job", but scripts/ci-changes.mjs:25 maps scripts/run-rust-test.mjs to all groups, so it also selects web. The over-selection is safe; the sentence is inaccurate. Fix: name the run-rust-test.mjs exception. This was present at a652768 and missed in round 4.

Resolved and withdrawn

  • Thread 4642894893 (scripts/ci-changes.mjs:11) is fixed at ba8b3f3 and still fixed at this head (scripts/ci-changes.mjs:16, scripts/ci-changes.test.mjs:46); reply 4649542717 already covers it, so no new reply is needed.
  • Nothing is withdrawn. The merge resolved none of the round-4 findings.

Checks

  • node --test scripts/ci-changes.test.mjs: 10/10 pass.
  • node --test scripts/*.test.mjs: 159 tests, 155 pass, 4 platform skips, 0 fail (macOS, cargo 1.100.0 on PATH).
  • git diff --check origin/main...HEAD: clean.
  • node scripts/adr-check.mjs --base origin/main: passed, 5 changed files.
  • cargo run --locked -p xtask -- check: exit 0 under the isolated target; module boundaries 743 modules/4561 edges, crate and module boundaries, 26 plugin documents, service declarations, plugin locks, 99 comment links, literal main and service catalog passed.
  • Ruby Psych parse of ci.yml: parse ok, no duplicate keys, 10 jobs, ci-ok needs all nine gating jobs, all needs and output references resolve.
  • classify probes: tui-e2e to scripts, EventHub to rust, native-storage-format to rust, protocol.rs to rust/node/web/scripts, sqlite.rs to rust/node/scripts/macos_scripts, resources to rust/node/scripts, dim-client and vendor/grok-build to rust/windows/node, run-rust-test.mjs to all groups, typescript-plugin-authoring.md to none.
  • No processes were left running by these checks.

CI

  • Run 44878291869 at 8744358 (pull_request): changes, static-checks, windows-cli, web, scripts, macos-native and dependencies succeeded; acp-registry was skipped for the pull request; verify (linux) is still in progress and ci-ok has not started. I did not wait. Because the PR changes ci.yml, the router selected every group, so this run also exercises the new scripts job.

Conflicts

  • origin/main: git merge-tree --write-tree HEAD origin/main is clean; main is an ancestor of HEAD.
  • PR 1900 (draft, head ffb71ee) shares all five files. git merge-tree --write-tree HEAD ffb71eec reports no conflict in any of them; the only conflicted file is crates/dim-app-server/tests/mcp_session_flow.rs, unrelated to this PR. PR 1900's ci.yml hunk removes per-job concurrency blocks that main already removed, so that branch is stale.
  • No other open PR touches these five files.

Unverified

  • A real push to main through the staging branch of scripts/ci-changes.mjs and a scheduled sweep cannot be exercised from this PR; only scripts/ci-changes.test.mjs:125-176 covers them.
  • verify (linux) and ci-ok are pending at this head; local checks are targeted only, not the full workspace suite.

CI after publication

Head run 44878291869 completed after this review was posted: verify (linux) and ci-ok failed. The only failed test is staged_update::tui_update::update_now_refuses_a_busy_daemon_and_prints_manual_command, which panicked at crates/dimcode/tests/support/cli_harness.rs:893 on a dialog timeout; the other targets in the same job passed, including the workspace suite that ran 744 tests. The same test panicked at the same line in the run for origin/main d0e74fcf (run 44878237932, verify (macos)), so this is a pre-existing flake on main and is not caused by this PR's five-file diff. The verdict stands; the required check stays red until that flake is fixed or the run is retried.

@eric8810

Copy link
Copy Markdown
Collaborator Author

@eric8810 status and one decision:

Should #1952 wait for zerob13, or will you dismiss the stale request / approve once its check is green? If merging with a known-flake red is acceptable, say so and I will merge after the flake PR lands.

@eric8810

Copy link
Copy Markdown
Collaborator Author

@eric8810 status and one decision:

Should #1952 wait for zerob13, or will you dismiss the stale request / approve once its check is green? If merging with a known-flake red is acceptable, say so and I will merge after the flake PR lands.

直接request review,记得有两票approve才能合并。已知的flake发现了应该先单独pr修复再来推进这个。

@eric8810

Copy link
Copy Markdown
Collaborator Author

Thanks for the round-5 review and approval. The three P3s are accepted:

  1. I will delete the dead migration_flow node_ line from ci.yml and correct description point 6.
  2. I will route docs/typescript-plugin-authoring.md to ['rust','node'] before the documentation rule and add it to the documents-that-code-reads test.
  3. I will name scripts/run-rust-test.mjs as the other scripts/ path that selects web in docs/release/README.md.

I am holding those edits until the two flake fixes (#1971, #1972) land, so this PR's next check runs once on the final head rather than twice. The required check is red only on the known update-dialog flake, which #1971 addresses.

The plugin SDK test reads fenced TypeScript blocks from
docs/typescript-plugin-authoring.md, so a guide-only change must select
the Rust and Node groups. The migration_flow target has no node_ tests;
its filter matched nothing and only spawned an extra test process. The
release guide also named only stage-web.mjs as the scripts path that
selects web.
@eric8810

Copy link
Copy Markdown
Collaborator Author

Pushed 3cf23dac with the three P3s and main (now including #1971):

  1. Deleted the dead migration_flow node_ command from ci.yml; description point 6 is now true.
  2. Added the docs/typescript-plugin-authoring.md → ['rust','node'] rule before the documentation rule, with a case in the documents-that-code-reads test.
  3. docs/release/README.md now names scripts/run-rust-test.mjs as the other scripts/ path that selects web.

node --test scripts/ci-changes.test.mjs passes 10/10, adr-check passes, YAML parses. @zerob13 could you re-review? yyhhyyyyyy already approved.

@eric8810
eric8810 requested a review from yyhhyyyyyy November 21, 2026 12:55

@yyhhyyyyyy yyhhyyyyyy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: PR #1952 at 3cf23da

Verdict: APPROVE

Round 6 reviews head 3cf23da, the merge of origin/main 7b593c5 into 8c70416 (the single new branch commit, parent 8744358). All three round-5 P3s are resolved and no new P0-P2 issue was found.

Resolution of the three P3s

  1. Dead migration_flow node_ filter: resolved. .github/workflows/ci.yml no longer contains migration_flow; Verify public Node bindings runs the transport_flow, app_server_flow, hub_flow and conditional xtask filters only (ci.yml:368-373). crates/dim-migration/tests/migration_flow.rs has 18 #[tokio::test(...)] functions, no #[ignore], and zero node_ occurrences, so the removed command could only spawn the binary and select zero tests. PR description point 6 now matches the tree: "Removed the 0-test migration_flow node_ line from Verify public Node bindings."
  2. docs/typescript-plugin-authoring.md routing: resolved. scripts/ci-changes.mjs:20 maps the guide to ['rust','node'] and is placed before the documentation catch-all at scripts/ci-changes.mjs:22, so first-match wins. The new case at scripts/ci-changes.test.mjs:48 asserts exactly rust,node, and the suite passes. runtime/plugin-sdk.test.mjs:25-30 reads 11 fenced ts blocks from the guide and compiles them with tsc at runtime/plugin-sdk.test.mjs:365-374; that test runs in Verify public Node bindings (ci.yml:350-358, gated on node). rust is selected because verify is gated on rust or xtask (ci.yml:223) and because the runtime npm install the Node step needs sits in the rust-gated step (ci.yml:317-327) before it, so a guide-only PR now reaches the compile.
  3. Release guide wording: resolved. docs/release/README.md:183 now says scripts/stage-web.mjs and scripts/run-rust-test.mjs select the web job and notes that the latter selects every group. The classify probe returns all 11 groups for scripts/run-rust-test.mjs (scripts/ci-changes.mjs:27), so the sentence is accurate; no stale "only stage-web.mjs" claim remains anywhere in the tree.

Merge integrity

  • Head 3cf23da has parents 8c70416 (first) and 7b593c5 (origin/main, second). git rev-list --count 87443582..8c70416a is 1, so 8c70416 is the only new branch commit; it touches four files, +4/-2.
  • git merge-tree --write-tree 8c70416a 7b593c539 returns tree 2bc3acf0aa2e1d1c6ee6f56f6041207a618a7cb9, identical to HEAD^{tree}. The merge is mechanical, with no conflict resolution and no hand edits.
  • git diff 8c70416a 3cf23dac -- <the five PR files> is empty, so the merge preserved the approved branch content. The 20 main-side commits it brings in change 17 unrelated files, including main's #1971 bounds in crates/dimcode/tests/cli_flow/staged_update.rs and crates/dimcode/tests/support/cli_harness.rs, the test that failed round 5.
  • The PR diff against main is 5 files, +117/-40: .github/workflows/ci.yml, docs/architecture/build.md, docs/release/README.md, scripts/ci-changes.mjs, scripts/ci-changes.test.mjs.

Routing and gates

  • All 11 groups still have outputs at ci.yml:27-37; scripts is consumed by the scripts job at ci.yml:197-220; ci-ok needs every gating job including scripts at ci.yml:485. Every needs.changes.outputs.* reference resolves.
  • Ruby Psych parses ci.yml: 10 jobs (changes, dependencies, static-checks, windows-cli, web, scripts, verify, macos-native, acp-registry, ci-ok) with no syntax error.
  • classify probes: guide to rust,node; tui-e2e to scripts; EventHub to rust; native-storage-format to rust; stage-web.mjs to scripts,web; run-rust-test.mjs to all 11 groups; test-macos-native.mjs to rust,scripts; docs/release/README.md to none.
  • On this head the changes job selected every group because ci.yml is in the diff. That is why dependencies, scripts, static-checks, web and windows-cli all ran although no product code changed.

New findings

None. The new code is the routing rule, its test, the dead-line removal and the documentation wording, and each is consistent with the surrounding gates. The remaining cost is intentional over-selection: a guide-only PR selects rust, which also runs the Linux workspace suite and macos-native, and editing run-rust-test.mjs selects every group.

Checks

  • node --test scripts/ci-changes.test.mjs: 10/10 pass.
  • node --test scripts/*.test.mjs: 159 tests, 154 pass, 4 platform skips, 1 environment-only failure because the Mach-O layout test could not find rustc under the scrubbed PATH. Rerunning scripts/code-layout-darwin.test.mjs with rustc available: 2/2 pass.
  • node --check scripts/check-acp-registry.mjs and node --check scripts/ci-changes.mjs: pass.
  • node scripts/adr-check.mjs --base 7b593c539: "ADR freeze passed: 5 changed files".
  • git diff --check 7b593c539..3cf23dac: clean. git show --check 8c70416a: clean.
  • No processes were left running by these checks.

CI

  • Run 44906284366 at 3cf23da (pull_request) completed as a failure. changes, dependencies, scripts, static-checks, macos-native, web and windows-cli passed. In verify (linux), build and lint, crate boundaries and plugin pages, compiled workspace tests and the wall-clock handoff passed; Verify actual CLI profiles and line-mode flows failed on hooks::project_hooks_start_disabled_and_the_user_enables_them at crates/dimcode/tests/cli_flow/hooks.rs:497 with an empty marker instead of user-one (11 passed, 1 failed). The later Node, Python and downloaded Node runtime steps were skipped, and ci-ok failed because verify failed.
  • The failure is a known main-side flake, not this diff. The same flow failed on the #1971 run, and open PR #1972 rewrites exactly this test to wait for the SessionStart hook at activation instead of racing the first turn. Neither crates/dimcode/tests/cli_flow/hooks.rs nor any other cli_flow file is touched by this PR's five-file diff. The red check needs a retry or #1972 and does not reflect the routing changes under review.
  • GitHub still reports reviewDecision: CHANGES_REQUESTED because zerob13's round-1 review at 8f9a8a8 remains undismissed. The latest submitted review is an APPROVE at 8744358; the stale decision is not a content finding.

Conflicts

  • origin/main: 7b593c5 is an ancestor of HEAD, and git merge-tree --write-tree HEAD origin/main is clean.
  • Only open PR #1900 lists the same five files. Its base is the stacked branch eric/1292-domain-exec and the overlap is inherited from old-main content, not a direct edit. git merge-tree --write-tree 3cf23dac ffb71eece conflicts only in crates/dim-app-server/tests/mcp_session_flow.rs, unrelated to these five files. No other open PR touches them.

Unverified

  • The full workspace suite was not run locally; the CI run exercised it and passed that step.
  • The real main-push staged rollout and the scheduled sweep are still covered only by unit cases in scripts/ci-changes.test.mjs.
  • The guide compile in runtime/plugin-sdk.test.mjs was not exercised locally because it needs the packed npm workspace and the rutis host, and at this head the Node step was skipped after the earlier CLI-profiles failure. The routing rule itself is verified by the passing scripts job and the classify unit test.

@eric8810

Copy link
Copy Markdown
Collaborator Author

#1972 is merged, so this head now includes the hooks SessionStart fix that failed the last CLI-profile run. Merged main and pushed 776dca42; re-review requested.

@eric8810

Copy link
Copy Markdown
Collaborator Author

verify (linux) is green at 776dca42 (run 44909656292), and the diff is only the five routing/doc/script files. yyhhyyyyyy approved; zerob13's earlier change request is the remaining review gate. @eric8810 merge directly as with #1971, or wait for zerob13?

@zerob13 zerob13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed 776dca42059f702e721d90b06965bcaf62346e92 against main at d497a60c21196fed6999038f01951bf1c955379a. My earlier routing and workflow concerns are addressed. The PR still has only the five CI, script and documentation changes: it routes the TypeScript authoring guide to Rust and Node validation, removes the zero-match migration command, and preserves the independent script/static gates and daily full sweep. The update from the prior evaluated head only brings in the merged SessionStart fix. The exact Linux check passed workspace tests, wall-clock handoff, the previously failing production CLI Hook case, and Node bindings; ci-ok passed.

@eric8810
eric8810 merged commit 9d1d2e3 into main Nov 21, 2026
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.

3 participants