Skip to content

refactor(xtask): check that piqueld-client stays free of daemon and server crates - #619

Draft
PiquelChips wants to merge 2 commits into
mainfrom
refactor/client-boundary-check
Draft

PiquelChips wants to merge 2 commits into
mainfrom
refactor/client-boundary-check

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What and why

just boundary checked the core and the daemon's crates, but not piqueld-client, the published client the CLI and dashboard share. It builds for wasm32, so a dependency on the daemon, its store, or a Docker, database or server framework would break the dashboard or leak server code into the published crate, and nothing caught it.

The check now has a rule for the client: no workspace crate but piqueld-core and piqueld-probe (so neither the daemon's crates nor the CLI, dashboard or tooling) and no bollard, sqlx or leptos, through any dependency kind, and no axum outside its native tests, which serve their requests with it. It also reads every target (cargo tree --target all), since by default cargo tree only sees the host's and would miss a wasm32-only dependency. The existing rules still pass with that. The module-boundaries and Rust-conventions pages describe the new rule.

Part of PQD-162

Proved with just boundary: it passes, and fails when piqueld-generated is added as a dev-dependency, axum as a normal dependency, or piqueld-config as a wasm32-only dev-dependency (each reverted).

Checklist

  • The feature reaches each surface in AGENTS.md it applies to,
    documentation included, with its reverse states. (Developer tooling only: the docs page is updated.)

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

piqueld-client is the published client the CLI and dashboard share, and
builds for wasm32, so it must not depend on the daemon's crates or on
Docker, database or browser frameworks, through any dependency kind, nor
on a server framework outside its native tests. The check now reads every
target, so wasm32-only dependencies count too.

Part of PQD-162
Its rule named only the daemon's crates, so a development dependency on
the CLI, the dashboard or the tooling would have passed. It now forbids
every workspace crate but piqueld-core and piqueld-probe, and the docs
say plainly that only its tests may use a server framework.

Part of PQD-162
@PiquelChips
PiquelChips force-pushed the refactor/client-boundary-check branch from d7ce558 to ce11060 Compare November 22, 2026 22:12
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.

1 participant