OPERATOR-BACKUP.md markdown
48 lines 2.3 KB
Raw
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd feat(calendar): enforce agent context tiers in retrieval AP… Human minor ⚠ breaking 20 hours ago

Operator backup (two pillars)

Knowtation hosted operators use two complementary mechanisms. Both are part of the supported runbook; neither replaces the other.

Pillar 1 — ICP canister snapshots (maintenance / upgrades)

Purpose: Roll the hub or attestation canister back to a saved point after a bad upgrade or break-glass event.

How: Controller identity, dfx canister stopsnapshot createstart (brief downtime). Optional snapshot download for an off-chain copy.

Docs & tooling:

When: Planned windows before risky deploys, not as a substitute for daily data continuity.


Pillar 2 — Daily logical export (all tenants, canister stays up)

Purpose: Scheduled copy of vault notes + proposals for every user id stored in the hub canister, without stopping the canister.

How:

  1. Configure the hub canister with a shared secret (controllers only), after deploying WASM that includes operator_export_secret in stable storage:

    cd hub/icp && dfx canister call hub admin_set_operator_export_secret '("YOUR_LONG_RANDOM_SECRET")' --network ic
    

    See HUB-API.md §5.1 (operator export).

  2. Run npm run canister:operator-full-export (or GitHub Actions workflow) with KNOWTATION_OPERATOR_EXPORT_URL, KNOWTATION_OPERATOR_EXPORT_KEY, and optional encrypt/S3 env vars (see script headers and .env.example).

Scripts & CI:

Legacy (single partition): scripts/canister-export-backup.mjs remains available for smoke tests or one X-User-Id only.


  • HUB-API.md § operator export
  • hub/icp/README.md — canister deploy and stable memory
File History 2 commits
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd feat(calendar): enforce agent context tiers in retrieval AP… Human minor 20 hours ago
sha256:9103f98c89257ed2b01c237cea895dabb3e85ea337dccb1161c175e4422355b6 docs: accept Calendar Events v0 spec with Phase 0 security … Human 1 day ago