0.11.0b2

Recovery-only API

A durable commit writes a signed pending checkpoint before the database commit. Normal startup refuses a stale or missing tip. It does not promote that checkpoint by itself.

Stop other writers, then publish the staged checkpoint:

quaspar-shield recover-journal --config shield.yaml --key operator.key

A library caller uses the recovery-only object:

from quaspar_shield import Shield

shield = Shield.open_for_recovery("shield.yaml")
shield.recover_journal(operator_private_key, now=now)

open_for_recovery does not load tool handlers. The object cannot dispatch, enroll, or change policy. Recovery publishes the signature that was staged. It does not sign a new checkpoint because the hash chain is consistent, and it does not accept a checkpoint that is only one generation behind.

inspect-journal describes the same situation and does not dispatch. Do not delete witness files, including journal-tip.pending. A crash after the freshness witness records a pending generation and before the database commit stays fail-closed until that pending record and the database are reconciled. Operator confirmation is not evidence.