Skip to content

feat: add local portable archive CLI - #1561

Draft
larry-zy wants to merge 1 commit into
oceanbase:masterfrom
larry-zy:feat/1421-portable-export-backup-restore
Draft

feat: add local portable archive CLI#1561
larry-zy wants to merge 1 commit into
oceanbase:masterfrom
larry-zy:feat/1421-portable-export-backup-restore

Conversation

@larry-zy

Copy link
Copy Markdown
Contributor

Related: #1421

Rationale for this change

Provide a local, operator-controlled logical archive for the default PowerContext SQLite deployment without adding remote archive storage or scope authorization.

What changes are included in this PR?

  • Adds versioned .pcb export, inspect, dry-run validation, and confirmed restore commands.
  • Preserves authoritative Source, Artifact, Memory, Candidate, and lineage records with checksums and immutable-identity conflict protection.
  • Streams export and restore work, rebuilds local search projections, and documents the local SQLite boundary.
  • Adds unit, CLI, large-fixture resource, and Runtime round-trip coverage.

Are there any user-facing changes?

Adds powercontext archive export, inspect, and restore for the SQLite database under POWERCONTEXT_HOME.

How was this change tested?

  • make docs-test
  • Focused Ruff and type checks
  • Focused archive suite: 46 passed

AI usage statement

Codex (GPT-5) was used to assist implementation, tests, and documentation; changes were validated locally.

@Teingi

Teingi commented Sep 10, 2026

Copy link
Copy Markdown
Member

resolve conflicts

@larry-zy
larry-zy force-pushed the feat/1421-portable-export-backup-restore branch from ea1688e to fc1521a Compare September 11, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants