shakedown
Multi-surface product validation against live Dataverse - exercise the Extension, TUI, MCP server and CLI, compare behaviour across surfaces, audit the architecture, and write a findings report. Use b
Files1
View on GitHubSKILL.md.claude/skills/shakedown/SKILL.md
GitHubShakedown
A shakedown asks "does the product work" by using it on every surface, not by reading code. A passing test suite is not a shakedown. It differs from /verify, which checks one change on one surface.
Use it before releases, after large multi-surface features or refactors, or when asked to "test everything".
Phase 0: Safety Pre-checks
Before any other work, validate the safety guardrails are configured and
active. The shakedown-safety hook (.claude/hooks/shakedown-safety.py) and
the C# IShakedownGuard consume what this phase sets up; see
docs/SAFE-SHAKEDOWN.md for the full model.
Verify env allowlist is configured — read
.claude/settings.json→safety.shakedown_safe_envs, or$PPDS_SAFE_ENVS. If neither lists at least one safe env, STOP and ask the user to configure (docs/SAFE-SHAKEDOWN.mdfor details). Do not continue without one: the hook's environment gating is opt-in, so with no allowlist nothing stopsppdscommands from reaching an unsafe environment.Verify active env is in the allowlist — run
ppds env who. It passes only when the active env is listed (it sends WhoAmI there), so a pass with the displayed env matching an allowlist entry confirms it. If the active env is not listed, theshakedown-safetyhook refuses it, and the refusal names the active env, the allowlist and the remedy: switch withppds env select <listed env>and runppds env whoagain. The hook blocks downstreamppds *calls until the active env is listed.Arm the shakedown write-block (sentinel file). Before any mutating Bash work (steps 1-2 are read-only checks and run first by design), write
.claude/state/shakedown-active.jsoncontaining at leaststarted_at(ISO-8601 UTC timestamp string, consumed by both the Pythonshakedown-safetyhook and the C#IShakedownGuard) and, when available,session_id:python -c "import json, os; from datetime import datetime, timezone; \ os.makedirs('.claude/state', exist_ok=True); \ json.dump({'started_at': datetime.now(timezone.utc).isoformat(), \ 'session_id': os.environ.get('CLAUDE_SESSION_ID', '')}, \ open('.claude/state/shakedown-active.json', 'w'))"The hook reads this sentinel on every Bash call and refuses mutation verbs (
plugins deploywithout--dry-run,<surface> create/update/delete,solutions import, etc.) for the duration of the shakedown. The sentinel auto-expires after 24h so a crashed session cannot wedge the write-block for future sessions.Why the sentinel and not just
export PPDS_SHAKEDOWN=1? Claude Code's Bash tool spawns a fresh shell per invocation, so neither an inlinePPDS_SHAKEDOWN=1 ppds ...prefix nor anexportfrom a prior call reaches the hook subprocess. The sentinel file is the reliable activation source inside a Claude Code session. The env var is still honored for shell scripts and CI (its name is configurable viasafety.readonly_env_varin settings.json; defaultPPDS_SHAKEDOWN).Acknowledge the model: plugin deploys MUST be invoked with
--dry-runduring shakedown. To run a real deploy, delete the sentinel file (rm .claude/state/shakedown-active.json) and unsetPPDS_SHAKEDOWNif it's also in the environment — deliberate action, there is no softer bypass.
What to exercise
Ask which surfaces are in scope, then use each one interactively through the /verify skill (its sections cover launching and driving the TUI, the extension, the MCP server and the CLI). Reading code does not count as verifying an interactive feature; mark it "not tested" instead.
- Extension: open each panel, run a query, sort and filter results, switch profile and environment, check the error states.
- TUI: launch, switch profile and environment, open every screen from the menus, send keystrokes, read the rendered text.
- MCP: invoke each tool against the safe environment (server launched with
--read-only) and check the responses. - CLI: run the command groups with
--output-format jsonand without; check data on stdout, status on stderr, and exit codes.
Build a feature-by-surface matrix from specs/ and src/ first, confirm it with the user, and record pass or fail with evidence (screenshots, output) for each cell.
Then:
- Parity: for features on more than one surface, note differences and say which is a bug and which is acceptable.
- Architecture audit: direct
ServiceClientuse outside the pool, empty or non-logging catch blocks, commands or handlers that are not wired up, TUI screens unreachable from menus, business logic outside Application Services (seespecs/CONSTITUTION.md).
Findings
Write docs/qa/{date}-{scope}.md: surfaces tested, bugs found and fixed, bugs found and not fixed (with severity), the matrix, the parity table, audit findings, and untested areas with reasons. Present findings and let the user decide what to defer; do not recommend deferral. Investigate failed background tasks rather than dismissing them.
Finish
Before declaring complete, list the untested features and get the user's explicit sign-off on skipping them. Then disarm the shakedown write-block — delete the sentinel file as the very last act:
rm .claude/state/shakedown-active.json
A leftover sentinel keeps the write-block armed for any subsequent session in this worktree until it expires 24h later. Delete the sentinel explicitly; do not rely on the staleness expiry.