| name | pkm-upgrade-rehearsal |
| description | Use when proving zero-loss PKM upgrades with historical fixtures, reviewer rehearsals, rollback, scopes, and exact encrypted/decrypted artifacts. |
Hussh PKM Upgrade Rehearsal Skill
Purpose and Trigger
- Primary scope:
pkm-upgrade-rehearsal
- Trigger on PKM version/projection upgrades, preservation proof, reviewer payload rehearsal, quarantine, rollback, or scope-origin acceptance.
- Avoid overlap with
vault-pkm-governance, reviewer-app-testing, and data-model-audit.
Coverage and Ownership
- Role:
spoke
- Owner family:
security-audit
Owned repo surfaces:
.codex/skills/pkm-upgrade-rehearsal
.codex/skills/pkm-upgrade-rehearsal/scripts/reviewer-pkm-app-rehearsal.mjs
consent-protocol/scripts/audit_active_pkm_shape_readonly.py
consent-protocol/scripts/eval_pkm_structure_agent.py
scripts/ci/pkm-upgrade-gate.sh
Non-owned surfaces:
consent-protocol/hushh_mcp/vault
hushh-webapp/scripts/testing/reviewer-test-identity.mjs
consent-protocol/db/migrations
Do Use
- Historical decrypt-transform-prove-encrypt-decrypt-rollback corpora.
- Occurrence-level preservation, equal-value deduplication, quarantine, rollback, and idempotency acceptance.
- Reviewer brokerage plus natural confirmed-memory rehearsal and exact payload artifacts.
- Canonical-scope stability and additive reserved/dynamic scope-origin metadata proof.
Do Not Use
- Generic reviewer login, BYOK, or navigation helpers; use
reviewer-app-testing.
- Vault encryption or ordinary PKM storage implementation; use
vault-pkm-governance.
- Apply migrations, deploy, reset an account, or mutate shared fixtures without separate authority.
- Treat structure-agent output as authorization to drop or overwrite information.
Read First
.codex/skills/reviewer-app-testing/references/byok-reviewer-browser-contract.md
.codex/skills/pkm-upgrade-rehearsal/references/reviewer-pkm-upgrade-contract.md
docs/reference/architecture/pkm-cutover-runbook.md
docs/reference/architecture/pkm-storage-adr.md
consent-protocol/docs/reference/personal-knowledge-model.md
scripts/ci/pkm-upgrade-gate.sh
Workflow
- Classify the target contract/version and inventory every supported stored shape and active consumer.
- Run deterministic historical fixtures before intelligence, browser, or environment-backed checks.
- Require occurrence lineage, type/value preservation, quarantine restoration, rollback equality, and idempotency.
- Run the read-only active-shape audit and gated structure-agent chain without plaintext PKM in prompts.
- Verify target-environment schema and route parity before requesting reviewer mutation authority.
- When authorized, import the shared reviewer harness and run the app sequence without persisting keys or tokens.
- Accept only zero preservation, scope, authorization, coherence, export, and rollback failures.
Handoff Rules
- BYOK and browser-session mechanics route to
reviewer-app-testing.
- Vault/storage implementation routes to
vault-pkm-governance.
- Migration governance routes to
data-model-audit; deploy parity routes to uat-scoped-deploy.
- Broad security work returns to
security-audit.
Required Checks
./scripts/ci/pkm-upgrade-gate.sh
./bin/hushh codex data-model-audit
./scripts/ci/reviewer-app-testing-check.sh