Repository navigation
feat: admin purge --boards wipes the board inventory behind a [y/N] gate - #7
Merged
Merged
Conversation
added 6 commits
June 17, 2026 09:09
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.
Summary
Adds an opt-in
--boardsflag topaavo-cli admin purgethat, in addition to the existing jobs/logs/build-cache/artifacts reset, wipes the entire board inventory — behind a[y/N]confirmation that defaults to No and is bypassable with--yes/-y.POST /admin/purge?boards=truerunsDELETE FROM boardinside the same DB-lock scope as the existing job truncation (FK-safe:job.board_idis the only referrer and jobs are deleted first;scheduledoesn't reference boards), then refreshes the in-memory inventory cache after the lock is dropped. The pre-existing 409 in-flight gate still runs first.boards=falsepreserves boards exactly as before (backward-compatible wire — no-query callers unaffected).AdminOp::Purgegains--boardsand--yes; a declined/empty/EOF answer printspurge abortedand exits 0 without any HTTP call.Spec:
docs/superpowers/specs/2026-06-17-purge-all-boards-design.mdPlan:
docs/superpowers/plans/2026-06-17-purge-all-boards.mdTest Plan
cargo fmt --all -- --checkcleancargo clippy --workspace --all-targets -- -D warningscleancargo test --workspacegreen (1 hardware test#[ignore])?boards=truedeletes boards + clears inventory cache;?boards=falsepreserves;?boards=truestill 409s when a job is running (crates/paavod/tests/api_admin.rs)--yesbypasses the prompt;--helplists--boards/--yes(crates/paavo-cli/tests/cli_admin_purge.rs,cli_help.rs)