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.
Audit → Retention controls how long sealed segments stay locked and what blocks them from expiring. It has four cards: Archive policy, Archive storage, Projected archive storage by tier and Legal holds.
Archive policy
Every organisation starts with a policy: archive on, governance lock, captured content included, the longest retention its plan allows, and the deployment’s region. A plan upgrade raises the retention to the new plan’s tier automatically. A downgrade never lowers it, so history you were promised keeps its lock.
Choose Edit policy to change it. Every change needs a Reason for change, which is stored in the policy history with your user ID and written to the organisation audit log.
| Field | What it does |
|---|---|
| Enable archive sealing | Turns sealing of new ingest hours on or off. Turning it on queues sealing from the oldest event still in the hot store. |
| Retention | 30 days, 180 days, 1 year or 7 years. Tiers above your plan are disabled; the API returns 403 for them. |
| Lock mode | Governance or Compliance · irreversible. See below. |
| Pinned region | Must match the region of the archive bucket and key store. Once set it cannot change, and the field is read-only while the archive is on. |
| Include captured event content in encrypted archives | When off, new segments seal each event without its payload. Metadata, hashes and proofs are unaffected. |
Retention applies to segments sealed after the change. Existing objects keep the lock date they were written with; changing the policy never shortens them.
curl -X PUT "https://api.axonpush.xyz/audit/retention" \
-H "X-API-Key: $AXONPUSH_AUDIT_MANAGE_KEY" \
-H "Content-Type: application/json" \
-d '{
"revision": 3,
"enabled": true,
"days": 365,
"lockMode": "GOVERNANCE",
"archiveContent": true,
"region": "eu-central-1",
"reason": "Retention raised to one year per records policy RP-7"
}'revision must match the current policy from GET /audit/retention, or the
update returns 409 and you reload. days is one of 30, 180, 365, 2555.
The response also carries maximumDays for your plan and configured, which is
false when the deployment has no archive storage.
Lock modes
Governance is the default and works on every plan. Objects are locked until their retention date. Retention can be shortened later only through the separate owner request described below.
Compliance is irreversible. Once set, the policy cannot be shortened, disabled or switched back to governance, and segments are written with a compliance lock. Switching to it needs all of:
- the Team plan or above (an organisation that already has it keeps it after a downgrade, and can still extend it);
- an owner, signed in to the dashboard, ticking “I understand compliance locks
cannot be shortened or switched back to governance.” (
confirmCompliance: trueover the API; API keys and admins are refused); - a timestamp authority configured on the deployment. Without one the update
returns
503“compliance retention requires a configured timestamp authority”.
A compliance lock is designed so that nobody, including axonpush, can remove it before the date. Choose it only when you are sure of the retention you need.
Shorten governance retention
An owner can bring forward the lock date of one governance-locked segment, for example to honour a data-minimisation decision. Open the segment on Audit → Ledger and choose Shorten governance retention.
- Pick a New retain-until time: at least five minutes ahead and before the current lock date.
- Enter a Reason for shortening.
- Tick the confirmation and queue the job.
The job first writes your reason, the segment, the old and new dates and the exact object versions to a separate receipt, timestamps it with the timestamp authority, and stores the receipt under a compliance lock until the original date. Only then does a separately privileged storage role shorten the lock on the segment’s objects. Nothing is deleted by this step; the objects expire through normal lifecycle once the new date passes. When the job succeeds, Download governance receipt returns the receipt, re-checked against its timestamp.
The request is refused when:
- the caller is not an owner signed in to the dashboard (API keys are refused);
- the deployment has no separate governance authority or no timestamp authority
(
503). The dialog then says “Governance shortening is unavailable”; - the organisation uses compliance lock, or the segment was written with one;
- any legal hold is active anywhere in the organisation (
409); - another archive control operation is in progress (
409).
The owner’s role is checked again when the job runs.
# Owner session only
curl -X POST "https://api.axonpush.xyz/audit/segments/$SEGMENT_ID/governance-lift" \
-H "Authorization: Bearer $AXONPUSH_SESSION_JWT" \
-H "Content-Type: application/json" \
-d '{ "reason": "DPIA-12 minimisation decision", "retainUntil": "2027-01-31T00:00:00Z", "confirm": true }'
curl "https://api.axonpush.xyz/audit/jobs/$JOB_ID/governance-receipt" \
-H "X-API-Key: $AXONPUSH_AUDIT_KEY"Legal holds
A legal hold stops covered evidence from expiring, whatever its retention date. Under Legal holds, choose Create hold and fill in:
| Field | Notes |
|---|---|
| Hold name | Up to 200 characters. |
| Agent (optional) | A registered agent, or an agent ID already seen in your telemetry. Leave empty for all agents. |
| From (optional), To (optional) | An ingest time range. Leave both empty for all time. |
| Reason | Required, recorded with the hold. |
Holds apply to whole segments: an agent hold covers every segment that contains
at least one event from that agent, and a time-range hold covers every segment
whose hour overlaps the range. Creating a hold queues a job that places an object
legal hold on each covered segment’s objects; the hold shows applying until the
job finishes, then active.
curl -X POST "https://api.axonpush.xyz/audit/holds" \
-H "X-API-Key: $AXONPUSH_AUDIT_MANAGE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Claim 2026-114", "agentId": "support-bot", "from": "2026-10-01T00:00:00Z", "reason": "Counsel instruction, matter 2026-114" }'Placing a hold needs the Team plan or above. Listing and releasing holds work on every plan, so a downgrade never traps you. An organisation can have up to 200 active holds.
What an active hold blocks
While any hold is active, anywhere in the organisation:
- All subject erasure is refused with
409, through the API and through request fulfilment, even for subjects and agents the hold does not cover. Subject keys can be shared across agents, so axonpush does not try to work out which erasures are safe. Release holds you no longer need, or plan erasure around them. - Governance shortening is refused with
409.
This is intended behaviour, not a scoping bug.
Release a hold
Choose Release on an active hold and record why. The release job removes the object legal hold from each covered segment, except where another active hold still covers it. The original retention lock stays in place: releasing a hold never makes evidence expire earlier than its lock date.
curl -X DELETE "https://api.axonpush.xyz/audit/holds/$HOLD_ID" \
-H "X-API-Key: $AXONPUSH_AUDIT_MANAGE_KEY" \
-H "Content-Type: application/json" \
-d '{ "reason": "Matter 2026-114 closed" }'Storage cards
Archive storage shows verified segment totals: Segments, Events, Stored, Pending jobs, Restoring and Latest timestamp. These are sizes, not a bill.
Projected archive storage by tier (GET /audit/storage) projects where your
segments sit across storage classes, from sealed-segment metadata and the
configured lifecycle rules. When the deployment has storage prices configured it
also shows a rate and an estimated monthly cost per class. It is a projection,
not an inventory of the bucket or a cloud bill.
Permissions
| Action | Who |
|---|---|
| Read the policy, holds, status and storage | Any member, or an API key with audit:read |
| Edit the policy, create or release holds | Admin or owner, or an API key with audit:manage |
| Switch to compliance lock | An owner signed in to the dashboard |
| Shorten governance retention | An owner signed in to the dashboard |
API keys used here must be organisation-wide, not bound to an app or environment. Setting up storage, key authority, timestamp authority and the governance role on a self-hosted installation is covered in evidence archive setup.
API reference: audit.retention,
audit.retention.update,
audit.holds.create,
audit.holds.release,
audit.governance.lift,
audit.governance.receipt,
audit.storage.