Repository navigation
ci(desktop): allow tole-client as the desktop's one tole dependency - #1083
Merged
Merged
Conversation
The desktop guardrail refused every tole crate. tole-desktop may now depend on tole-client (#1040); tole-core is allowed in its closure only through tole-client (its wire types), tole-tui and tole-cli stay refused everywhere, and tole-desktop still cannot list tole-core, tole-tui or tole-cli among its own dependencies in any kind or target. The model crate stays free of every tole crate. The per-crate size cap rises from 2,000 to 4,000 lines (owner rule D1); the per-file cap is unchanged. Part of #1029.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The desktop guardrail accepts
tole-clientas the one tole cratetole-desktopmay depend on, andtole-corein its closure only throughtole-client. The per-crate size cap rises from 2,000 to 4,000 lines.Why
tole-desktophas to use the typed client (#1040) to be a thin client oftole serve(#1029).tole-clientdepends ontole-core(default-features = false) for the wire types, so the old rule, which had an empty allowlist, refused the dependency. The rule is changed rather than bypassed. The 4,000 cap follows the owner rule D1 of 2026-11-20 (ideal 1,500 to 2,500, hard ceiling 4,000); the 500-line per-file cap is unchanged.Changes
scripts/desktop-lint.py:ALLOWED_FOR_DESKTOP = {tole-client}.tole-desktopmay not listtole-core,tole-tuiortole-cliamong its own dependencies, in any kind or target.tole-tuiandtole-cliare refused everywhere in its closure.tole-coreis refused unless it is reached throughtole-client(the closure withtole-client's subtree pruned must have none).tole-clientmust be the workspace crate, not a registry package.tole-*crate.scripts/test-desktop-check.sh: new cases. A directtole-core, including renamed, dev- and target-specific, is refused;tole-corethroughtole-clientpasses;tole-corethrough another crate next totole-clientis refused;tole-cliandtole-tuithroughtole-clientare refused;tole-clientin the model is refused; the 4,000-line cap is tested on both sides.scripts/desktop-check.sh,AGENTS.md,docs/design/desktop/README.mdandCHANGELOG.mdsay the same.tole-desktopitself; the supervisor PRs do.Testing
bash scripts/test-desktop-check.sh: all cases pass, including the unreadable-directory case undersetpriv.bash scripts/desktop-check.sh allon the real tree:ok (enforced rules; literals are advisory).cargo fmt --all --check: pass.cora review --no-llm --base origin/developaftercora index: no issues.cargo test -p tole-desktop -p tole-desktop-model,face_parity,cargo check -p tole-desktop --features gpui).scripts/review-local.sh(no LLM key); the CI Cora Review is the gate. The docs-only files in the change are excluded from the Cora review.Part of #1029.