Observability Spool Quarantine
When LyftData’s internal Server observability-transport spool rejects or isolates malformed or obsolete internal telemetry rows, platform administrators can inspect a census of those rows and retire eligible groups using the shipped quarantine_* MCP tools.
Available MCP tools and risk tiers
Section titled “Available MCP tools and risk tiers”Effective authority is always the narrower of the local MCP process tier (--max-tool-tier) and Server RBAC (platform-admin). Keep the same platform-admin actor identity across local tier switches — a census report belongs to the calling actor on the running Server instance, and durable retirement operations belong to the calling actor.
| MCP tool | Local MCP tier | Exact MCP inputs | Purpose |
|---|---|---|---|
quarantine_census_start |
read_only |
{} |
Start an installation-wide read-only census of quarantined internal observability-transport spool rows. |
quarantine_census_get |
read_only |
report_id |
Read progress and grouped findings (QuarantineCensusReportV1) for the calling actor’s census report_id. |
quarantine_sample_get |
read_only |
row_id, snapshot_digest |
Run read-only validation (QuarantineSampleReportV1) on a retained representative row without returning raw payload bytes. |
quarantine_recovery_list |
read_only |
{} |
List the current actor’s recent quarantine retirement operations (capped at 20). |
quarantine_recovery_get |
read_only |
operation_id |
Inspect durable status, counts, selection_digest, and available_actions for a single operation. |
quarantine_recovery_prepare |
write |
report_id, group_ids, reason, idempotency_key |
Prepare a reviewable retirement selection for eligible census groups. |
quarantine_recovery_cancel |
write |
operation_id |
Request cancellation while an operation is preparing, prepared, or applying (previously committed retirements stay committed). |
quarantine_recovery_apply |
destructive |
operation_id, selection_digest, idempotency_key, confirm: true |
Permanently retire eligible rows matching the prepared selection_digest. |
Use a read_only MCP session for census and sample validation, a separate write session (same platform-admin actor) to prepare or cancel, and enable --max-tool-tier destructive only for the reviewed apply step. See Security and Tool Tiers.
Step 1: Run a read-only census
Section titled “Step 1: Run a read-only census”Start and inspect a census from a read_only platform-admin MCP session:
- Call
quarantine_census_startwith{}to obtain areport_id. - Poll
quarantine_census_getwithreport_iduntilstatereachescomplete(orfailedwith afailure_code).
Each QuarantineCensusReportV1 records:
- Consistency boundary (
consistency: "paged_observation"): The census scans pages up toupper_journal_id;coverage_complete: truemeans all rows up to that journal boundary were observed and classified, whileinventory_change_observedflags count or byte discrepancies seen between pages (falsealone cannot guarantee nothing changed concurrently). - Group keys: Rows are grouped by
producer,worker_id,tenant_id,environment_id,schema_version,signals,scope_families,event_families,current_validation,quarantine_reason,last_failure_code,original_cause_status(known,not_recorded,unrecognized, orunavailable),age_band,execution_evidence,lifecycle_evidence,retention_eligibility, andowner_evidence. - Advisory guidance (
recommended_next_step): Each group reportsreview_retirement,reconcile_committed, orinvestigate. A census report is read-only diagnosis and never grants retirement authority on its own.
Step 2: Validate representative samples without exposing raw payloads
Section titled “Step 2: Validate representative samples without exposing raw payloads”Before preparing retirement, call quarantine_sample_get with row_id (positive integer as string) and the lowercase SHA-256 snapshot_digest from groups[].samples[] (the optional snapshot_digest must be present on the census sample for exact sample lookup).
QuarantineSampleReportV1 returns structured validation metadata only — never raw telemetry bytes:
original_failure_code,original_cause_status, andhistorical_cause_reconstructed(historical cause is never reconstructed);canonical_validation(string validation state);compatibility_validationandstored_identity_consistency(each an object containingstatus, optionalcode, and optionalfield);validator_revisionandhistorical_authority.
If recommended_next_step is investigate, resolve the underlying producer or schema issue before retiring rows.
Step 3: Prepare, review, and apply retirement
Section titled “Step 3: Prepare, review, and apply retirement”Retirement is an explicit two-step workflow with durable operation records (QuarantineRecoveryOperationV1) owned by the calling platform-admin actor that survive a lost response or Server restart:
- Check prepare prerequisites (
read_only):quarantine_recovery_preparerefuses reports unlessstateiscomplete,coverage_completeistrue,inventory_change_observedisfalse, and every selected group is an eligible routine-expired uncommitted group with no execution or lifecycle evidence and valid retained samples. - Prepare (
writetier, same actor): Callquarantine_recovery_preparewith:report_id: the completed census UUID;group_ids: 1 to 512 unique eligible group digests;reason: trimmed non-empty audit reason (up to 512 bytes, no control characters);idempotency_key: fresh UUID. Record the returnedoperation_id.
- Review (
read_onlytier): Callquarantine_recovery_getwithoperation_iduntilphaseisprepared. Confirmselected.rows,selected.payload_bytes,held,changed,preserved_samples,available_actions(verifyingapplyis listed), and record the exactselection_digest. - Cancel or apply:
- To cancel while
preparing,prepared, orapplying, callquarantine_recovery_cancel(writetier) withoperation_id(rows already retired before cancellation remain retired). - To execute retirement, open a reviewed
--max-tool-tier destructivesession as the sameplatform-adminactor and callquarantine_recovery_applywithoperation_id, the exactselection_digest, a fresh UUIDidempotency_key, andconfirm: true.
- To cancel while
If a response is interrupted while phase is applying, inspect quarantine_recovery_get (operation_id), confirm resume appears in available_actions, and reuse the stored apply_idempotency_key to settle the operation.
Step 4: Verify recovery
Section titled “Step 4: Verify recovery”- Call
quarantine_recovery_getwithoperation_idand confirmphase: "completed"with no unexpectedblocked_reason. - Reconcile the operation’s durable count buckets —
selected,retired,samples(samples.rows,samples.payload_bytes),held,changed, andremaining— alongsidepreserved_samples[], which lists the representative sample identities and digests. Note thatquarantine_recovery_applydeliberately retains diagnostic samples and may leaveheldorchangedrows behind. - Run a fresh
quarantine_census_start/quarantine_census_getpass from aread_onlysession and compare the relevantgroups[]entries and counts against your pre-retirement census (total_rows_at_startis an installation-wide scalar, and a group can legitimately remain with retained samples or newly arrived rows). - Retain the
report_id,operation_id,selection_digest, and Server audit record with your change ticket.
Troubleshooting
Section titled “Troubleshooting”| What you see | What to check | What confirms recovery |
|---|---|---|
403 Forbidden calling quarantine_* |
Confirm the authenticated identity holds platform-admin authority on the Server (ordinary viewer/user roles are denied). |
quarantine_census_start returns a report_id. |
quarantine_recovery_prepare refuses a completed census |
Confirm the census has coverage_complete: true and inventory_change_observed: false, that you are using the same platform-admin actor on the same Server instance, and that every group_id is an eligible routine-expired uncommitted group with no execution/lifecycle evidence and valid retained samples. |
quarantine_recovery_prepare returns an operation_id reaching phase: "prepared" with apply in available_actions. |
quarantine_recovery_apply is absent from tool_inventory |
quarantine_recovery_apply requires --max-tool-tier destructive; prepare and cancel require write; census/get/list tools run at read_only. |
Tool appears in tool_inventory only in the intended scoped session. |
Operation reports changed or held rows |
Rows changed after the census or remain held by active custody; inspect blocked_reason and run a fresh census before preparing another operation. |
Reconciled operation counts and fresh census group counts match the prior group count minus retired.rows (accounting for retained samples.rows plus any held, changed, or newly arrived/reclassified rows). |