Restore and archive jobs
Restore cold segments, read archived content, follow verification and hold jobs, and retry, recover or reconcile them.
Longer-running archive work runs as jobs: chain verification, cold restores, hold placement and release, governance shortening and erasure reconciliation. Each job has an ID, a kind, a state and a result, and survives a page reload.
Restore a cold segment
Storage lifecycle rules move older segments to cheaper storage classes. Segments in an archive class must be restored before their bytes can be read again for verification, proofs or content. Open the segment on Audit → Ledger and choose Request cold restore.
curl -X POST "https://api.axonpush.xyz/audit/segments/$SEGMENT_ID/restore" \
-H "X-API-Key: $AXONPUSH_AUDIT_MANAGE_KEY"The job asks storage for a temporary copy of the segment’s three objects (manifest,
metadata and content) at their pinned versions. A copy lasts one day. Objects that
are already readable count as ready straight away. The job checks back until all
three are ready, which for archive classes can take hours, then reads and verifies
the whole segment once. Its result reports objectsReady out of objects and
ready. A restore that has not finished within 48 hours fails.
A restore never changes the lock, the retention or the sealed hashes. It only makes the bytes readable for a while.
Read archived content
Inside the segment dialog, Event proof and archived content finds an event in that segment. Download available content decrypts and returns it.
curl "https://api.axonpush.xyz/audit/segments/$SEGMENT_ID/content/$EVENT_ID" \
-H "X-API-Key: $AXONPUSH_CONTENT_KEY"- It needs an admin or owner session, or an API key with both
audit:readandcontent:read. - The subject key is resolved fresh on every read. If the subject was erased, the
call returns
410“archived subject key permanently destroyed”. - Every successful read is recorded as a content read before any bytes are returned. If that record cannot be written, the read fails.
- Content is only there if Include captured event content in encrypted archives was on when the segment was sealed.
Recent archive jobs
Recent archive jobs, on Audit → Ledger, lists jobs newest first with Job, Kind, State, Processed and Recovery. Open one for its details.
| Kind | Started by |
|---|---|
verify | Verify seal chain |
restore | Request cold restore |
hold-apply, hold-release | Creating or releasing a legal hold |
governance-lift | Shorten governance retention |
reconcile | Erasure, or POST /audit/reconcile |
States are pending, running, succeeded and failed.
curl "https://api.axonpush.xyz/audit/jobs?state=failed&limit=50" \
-H "X-API-Key: $AXONPUSH_AUDIT_KEY"An organisation can have at most 20 jobs pending or running at once. Starting more
returns 409 “archive job limit reached”.
Retry a failed job
A job that errors is retried automatically and fails after five attempts, with
errorCode set. After fixing the cause, an admin or owner chooses Retry failed
job. Only jobs in the failed state can be retried.
curl -X POST "https://api.axonpush.xyz/audit/jobs/$JOB_ID/retry" \
-H "X-API-Key: $AXONPUSH_AUDIT_MANAGE_KEY"Recover an abandoned job
If a worker stops in the middle of a job, its execution stays claimed and the job
cannot move. After five minutes the job shows recoveryRequired: true, and the
dashboard shows “Operator recovery required” and “Owner action required”.
Hold and governance jobs change object locks, so two workers must never run the same one. Before recovering, make sure the old worker process is stopped. Then an owner chooses Recover abandoned job, enters a Recovery reason and ticks “I have stopped the previous worker and verified it cannot continue this job.”
# Owner session only
curl -X POST "https://api.axonpush.xyz/audit/jobs/$JOB_ID/recover" \
-H "Authorization: Bearer $AXONPUSH_SESSION_JWT" \
-H "Content-Type: application/json" \
-d '{ "reason": "Worker host replaced; old process terminated", "confirmWorkerStopped": true }'The reason is written to the organisation audit log and the job is requeued from where it stopped. API keys and admins are refused.
Reconcile restored copies
Erasure destroys a subject’s keys outside the database. If the database is later restored from a backup taken before the erasure, it can bring back hot rows that should be gone. Reconciliation walks hot rows against the current set of destroyed keys and removes any that belong to erased subjects.
It runs automatically after each erasure, and axonpush starts it on its own when
it notices that the database no longer matches the key authority, as after a
restore. While it is running, GET /audit/status reports restoring: true and
private operations, such as reading archived content, return 503 “evidence
restore reconciliation is pending” until it finishes. You can also start it
yourself:
curl -X POST "https://api.axonpush.xyz/audit/reconcile" \
-H "X-API-Key: $AXONPUSH_AUDIT_MANAGE_KEY"A restored database cannot revive an erased subject: keys are destroyed in the key authority, not in the database.
Permissions
| Action | Who |
|---|---|
| List and read jobs | Any member, or an API key with audit:read |
| Request a restore, retry a job, start reconciliation | Admin or owner, or an API key with audit:manage |
| Read archived content | Admin or owner, or an API key with audit:read and content:read |
| Recover an abandoned job | An owner signed in to the dashboard |
API reference: audit.restore,
audit.content,
audit.jobs,
audit.job,
audit.job.retry,
audit.job.recover,
audit.reconcile.
Retention and legal holds
Choose how long sealed evidence is locked, switch lock modes, shorten governance retention with a sealed reason, and place or release legal holds.
Erasure
Erase a data subject by destroying their encryption keys, so their content becomes unreadable while sealed hashes and proofs keep verifying.