Repository navigation
refactor(desktop-backend): delete dormant data plane - #9542
Conversation
49e86ab to
2f63011
Compare
|
Monitor run — rebased onto current The single commit was 54 behind Verification on rebased tree:
Note: the force-push needed |
|
@cursor resolve merge conflicts |
|
Merge conflicts are resolved. The branch is rebased onto current Conflict:
Resolution: Kept the PR’s slimmed-down, rate-limit-only service ( Verification:
Branch |
Keep the Rust process focused on its live control/provider responsibilities, preserve legacy data endpoints as a state-free 410 facade, and enforce narrow persistence boundaries. Verified with cargo fmt --check; cargo clippy --locked -- -D warnings; cargo test --locked (319 passed); cargo build --locked --release; local /health 200 and legacy action-item DELETE 410.
2f63011 to
95d36d2
Compare


Summary
dead_code/unreachable_pubenforcementRoot cause and durable guard
After data CRUD moved to the Python backend, its Rust repositories and models stayed public and compiled even though only 410 routes remained. Public visibility prevented the compiler's dead-code lint from exposing the drift, so each side could keep evolving independently.
This change deletes the duplicate plane, narrows retained APIs to crate visibility, builds the 410 router without
AppState, and denies dead or unreachable public persistence code.ARCHITECTURE.mdnow records the ownership boundary so future product-data endpoints go to Python instead of recreating parity.Behavior and risk
Verification
cargo fmt --checkcargo clippy --locked -- -D warningscargo test --locked— 319 passedcargo build --locked --releasemake preflightGET /healthreturned 200;DELETE /v1/action-items/item-1returned the structured 410 contract without Redis or service-account credentialsProduct invariants
None affected (
scripts/pr-preflight --suggest).