Skip to main content

Finalize-and-purge runbook: the 24-hour recording lifecycle

When an account deactivates or a retention policy is retired, the recordings under it do not vanish in one stroke. They enter a bounded finalize-and-purge lifecycle: each row moves from pending through a finalize step to a terminal state, and the rows that finalize to complete sit inside a 24-hour cage before the purge sweep claims them. This runbook is the operating layer for that cage — the state diagram, the six-step sequence an operator runs per lockdown, the console counters that tell you where the batch stands, the audit-log primitives a compliance sign-off reads, and the edge cases that catch a finalize that arrives after the sweep already passed. Everything here is a tenant-owned control you operate and own: Orbit provides the finalize API, the purge sweep, and the audit log; whether you review before finalize, how you pace sign-off against your legal-hold posture, and how you evidence the purge to counsel are your organization’s calls. This page is not legal advice — confirm your retention and preservation obligations with qualified counsel. All endpoints below are rooted at https://api.orbit.devotel.io/api/v1/recordings.

1. The lifecycle at a glance

A recording row that enters the deactivation purge flows through one state chain:
The 24-hour cage is the window between complete and purged. It exists so a finalize that lands against a row a legal hold should have caught has one last chance to be cancelled before the artifact is gone. Inside the cage the row is readable and the recipient_hash prefix is visible in the console — past the cage the media is gone and only the audit-log entry remains, so the cage is where you evidence a decision, not where you discover one. The recipient_hash shown in the console is a prefix (the first characters of the full hash), not the full digest — the full hash lives on the row’s audit trail. Spot-check the prefix against the hash on file in step 5 of the operator sequence below; a mismatch means the row under review is not the row the sweep staged.

2. The six-step operator sequence

Run this per lockdown batch — a deactivation event, a retired policy, or a daily sweep slice. The steps are ordered: skip one and the audit-log row your compliance sign-off needs will not exist.
  1. Read the daily lockdown count. Start at the console’s lockdown counter for the deactivated scope. The count is the batch size the sweep will claim today; it is your worklist, not a quota.
  2. Bulk-finalize one row for review. Pick the row at the head of the batch and run the finalize confirmation against it. This is the one row you review end-to-end before committing the rest:
    A successful finalize returns the row’s state (complete), the recipient_hash prefix, and the purge_after timestamp — the moment the 24-hour cage closes.
  3. Confirm documents_marked_final is set. Before you trust the finalize, read the row back and confirm documents_marked_final is true. A finalize that returned 200 without setting that flag wrote no audit entry and leaves the row in pending — re-run it, do not advance.
  4. Record purge_after on your own ops calendar. The purge_after timestamp is the moment the cage closes and the sweep becomes eligible to claim the row. Write it to the calendar your compliance team reads, not to a dashboard you alone watch — the purge is irreversible, and the timestamp is your evidence-of-window for counsel.
  5. Spot-check the recipient_hash. Confirm the prefix the console shows matches the hash on file for the recipient under review. A mismatch means the row staged for purge is not the recipient the deactivation named — cancel the finalize (step below) before the cage closes and re-derive the batch.
  6. Note the audit-log row id for compliance sign-off. Every finalized row gets an audit-log entry keyed by the recording id; capture that id against the lockdown in your sign-off sheet. The compliance reviewer walks the audit chain by that id, not by the console view — see §4 for the primitives to query.
If a legal hold lands on a row inside the cage, cancel the finalize before the cage closes. A cancel sets the row to cancelled and the sweep skips it; a hold that arrives after purged cannot resurrect the media — the row is gone and only the audit entry remains. See Legal hold on recordings for the hold surface, and place holds early.

3. Reading the console counters

The console surfaces three counters that tell you where a lockdown batch stands. Read them in order before you finalize any row: The counters are a read of the cage, not a control on it. Treat Auto-deleting-soon as the deadline: every row in it has a purge_after you can read on the row, and once that timestamp passes the sweep claims it subject to the per-day cap below.

4. The audit-log primitives to query

A compliance sign-off walks the audit log, not the console. Three primitives cover the finalize-and-purge lifecycle; query each by the recording id you captured in step 6.

recording.finalized

Fires when the finalize confirmation lands and documents_marked_final is set — the moment the cage clock starts.
The entry carries the recording id, the lockdown_id, the recipient_hash prefix, the actor, and the purge_after timestamp. This is the row your compliance sign-off anchors on — without it, the finalize did not happen as far as the audit chain is concerned.

recording.purged

Fires when the sweep claims the row after the cage closes. The entry carries the reason (the deactivation or policy that drove it) and the egress_destination if the artifact was mirrored before purge.
A recording.purged entry without a paired recording.finalized is a purge the sweep drove directly — a row that never went through your finalize step. Treat that as an exception to investigate, not a success: it usually means a policy change bypassed the cage and you should confirm the deactivation was intended.

recording.retention_policy_updated

Fires when a retention policy attached to the row changes — a window widened, a policy retired, a policy re-pointed. This is the primitive that tells you whether a purge_after you are reading was set by the policy in force at finalize or by a later change.
For the full audit export surface and the webhook that streams audit.entry into your SIEM, see Audit log export and the Webhook event catalog.

5. Edge cases

Policy changes do not retro-shift purge_after. A purge_after timestamp is fixed at finalize. If you widen a retention window after a row is already in the cage, the row’s purge_after does not move — the new window applies to rows finalized after the change, not to rows already complete. To keep a caged row past its cage, place a legal hold; do not retcon the policy. An aborted upload leaves no purge row. A capture that failed before the uploader hand-off (see the SIPREC uploader flow) never reached finalized, so it never staged for purge. The console’s Pending finalize counter does not include it, and there is no recording.purged entry to expect. An aborted upload is reported on recording.failed, not on the purge surface — do not wait for a purge that will not come. The per-day deletion cap is 500. The purge sweep claims at most 500 rows per day per tenant. A cage that closes with more rows than the cap allows rolls the overflow into the next day’s sweep; those rows stay complete and readable past their purge_after, and the Auto-deleting-soon counter carries them forward. Plan a lockdown batch larger than 500 across two days — do not finalize 800 rows into a single cage and expect them gone at one midnight.
  • HIPAA PHI audiences — which recordings carry protected health information, and the audience-scoping that keeps PHI out of a deactivation purge batch.
  • HIPAA onboarding — the BAA-gated retention floor that prevents a purge window shorter than the HIPAA minimum from taking a row.
  • Legal hold on messaging conversations — the hold surface a finalize inside the cage must defer to; a hold that lands during the cage cancels the finalize, a hold that lands after purged cannot.

See also: