Skip to content

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.

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.

Start and inspect a census from a read_only platform-admin MCP session:

  1. Call quarantine_census_start with {} to obtain a report_id.
  2. Poll quarantine_census_get with report_id until state reaches complete (or failed with a failure_code).

Each QuarantineCensusReportV1 records:

  • Consistency boundary (consistency: "paged_observation"): The census scans pages up to upper_journal_id; coverage_complete: true means all rows up to that journal boundary were observed and classified, while inventory_change_observed flags count or byte discrepancies seen between pages (false alone 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, or unavailable), age_band, execution_evidence, lifecycle_evidence, retention_eligibility, and owner_evidence.
  • Advisory guidance (recommended_next_step): Each group reports review_retirement, reconcile_committed, or investigate. 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, and historical_cause_reconstructed (historical cause is never reconstructed);
  • canonical_validation (string validation state);
  • compatibility_validation and stored_identity_consistency (each an object containing status, optional code, and optional field);
  • validator_revision and historical_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:

  1. Check prepare prerequisites (read_only): quarantine_recovery_prepare refuses reports unless state is complete, coverage_complete is true, inventory_change_observed is false, and every selected group is an eligible routine-expired uncommitted group with no execution or lifecycle evidence and valid retained samples.
  2. Prepare (write tier, same actor): Call quarantine_recovery_prepare with:
    • 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 returned operation_id.
  3. Review (read_only tier): Call quarantine_recovery_get with operation_id until phase is prepared. Confirm selected.rows, selected.payload_bytes, held, changed, preserved_samples, available_actions (verifying apply is listed), and record the exact selection_digest.
  4. Cancel or apply:
    • To cancel while preparing, prepared, or applying, call quarantine_recovery_cancel (write tier) with operation_id (rows already retired before cancellation remain retired).
    • To execute retirement, open a reviewed --max-tool-tier destructive session as the same platform-admin actor and call quarantine_recovery_apply with operation_id, the exact selection_digest, a fresh UUID idempotency_key, and confirm: true.

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.

  1. Call quarantine_recovery_get with operation_id and confirm phase: "completed" with no unexpected blocked_reason.
  2. Reconcile the operation’s durable count buckets — selected, retired, samples (samples.rows, samples.payload_bytes), held, changed, and remaining — alongside preserved_samples[], which lists the representative sample identities and digests. Note that quarantine_recovery_apply deliberately retains diagnostic samples and may leave held or changed rows behind.
  3. Run a fresh quarantine_census_start / quarantine_census_get pass from a read_only session and compare the relevant groups[] entries and counts against your pre-retirement census (total_rows_at_start is an installation-wide scalar, and a group can legitimately remain with retained samples or newly arrived rows).
  4. Retain the report_id, operation_id, selection_digest, and Server audit record with your change ticket.
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).