Expand description
config, export-snapshot (FR10), backup-key — administrative commands. Config surfaces the TP8
(c)/(b) treatment + the pre-2025 lot method; export/backup arrive in Task 15.
Functions§
- backup_
key - §8: export the passphrase-protected key (escape hatch; HIGH-security write).
- export_
pseudo_ active - Probe: would an export be gated?
truewhen the projection is pseudo-active (a synthetic default contributes). Used by theexport-snapshotCLI arm to decide whether to PROMPT for the attestation phrase; the authoritative gate lives insideexport_snapshotitself. Kept in the library so main.rs stays a thin dispatch (no session-open / projection business logic in the binary). - export_
snapshot - FR10 / NFR2 exception: decrypted SQLite image (via the store) + the projected ledger as CSV.
When
tax_yearisSome(y), the per-tax-year Form 8949 + Schedule D CSVs are also written, year-scoped toy(P2-B); whenNone, only the all-years CSVs are written. - set_
config - Persist a new TP8 fee treatment (None = leave unchanged), then return the resulting config.
- set_
pre2025_ method - Persist the pre-2025 lot identification method and attestation flag, then return the resulting config.
- show_
config