{
  "generatedAt": "2026-07-31T20:30:32.593Z",
  "cluster": {
    "id": "rdb-registry",
    "engine": "aurora-postgresql 17.7",
    "status": "available",
    "serverlessV2": {
      "minAcu": 0,
      "maxAcu": 1,
      "autoPauseSeconds": 300
    },
    "scalesToZero": true,
    "dataApiEnabled": true,
    "storageEncrypted": true,
    "iamAuth": true,
    "backupRetentionDays": 7,
    "noIngressSecurityGroup": true
  },
  "wake": {
    "observed": false,
    "ms": 0
  },
  "data": {
    "counts": {
      "parcels": 20000,
      "contractors": 150,
      "permits": 6000,
      "inspections": 12000
    },
    "throughputSample": [
      {
        "month": "2026-07-01",
        "permit_type": "building",
        "submitted": 1,
        "issued": 1,
        "avg_days_to_issue": "57.0"
      },
      {
        "month": "2026-07-01",
        "permit_type": "demolition",
        "submitted": 5,
        "issued": 2,
        "avg_days_to_issue": "20.5"
      },
      {
        "month": "2026-07-01",
        "permit_type": "electrical",
        "submitted": 2,
        "issued": 2,
        "avg_days_to_issue": "45.0"
      },
      {
        "month": "2026-07-01",
        "permit_type": "mechanical",
        "submitted": 4,
        "issued": 4,
        "avg_days_to_issue": "27.0"
      },
      {
        "month": "2026-07-01",
        "permit_type": "plumbing",
        "submitted": 1,
        "issued": 0,
        "avg_days_to_issue": null
      },
      {
        "month": "2026-07-01",
        "permit_type": "solar",
        "submitted": 2,
        "issued": 1,
        "avg_days_to_issue": "43.0"
      }
    ]
  },
  "migrations": [
    {
      "id": "001-schema",
      "checksum": "44030ab6ee8f",
      "applied_at": "2026-07-31 16:42:59.082084"
    },
    {
      "id": "002-indexes-views",
      "checksum": "1b5ecf30a62f",
      "applied_at": "2026-07-31 16:42:59.480029"
    },
    {
      "id": "004-seed-data",
      "checksum": "bfd065e6e005",
      "applied_at": "2026-07-31 16:43:01.619687"
    },
    {
      "id": "005-chain-of-title",
      "checksum": "ccf4827be2a0",
      "applied_at": "2026-07-31 16:43:02.092138"
    },
    {
      "id": "006-history-backfill",
      "checksum": "114c8d1cc5ce",
      "applied_at": "2026-07-31 16:43:02.712208"
    },
    {
      "id": "007-district-desks",
      "checksum": "9b10994b0579",
      "applied_at": "2026-07-31 16:43:03.144900"
    },
    {
      "id": "R-analyze",
      "checksum": "c60cfb6be37b",
      "applied_at": "2026-07-31 20:27:45.218370"
    },
    {
      "id": "R-app-role",
      "checksum": "25f8a8f965f9",
      "applied_at": "2026-07-31 20:27:44.467581"
    }
  ],
  "integrity": {
    "fkViolation": {
      "ok": true,
      "error": "ERROR: insert or update on table \"permits\" violates foreign key constraint \"permits_parcel_id_fkey\"; SQLState: 23503"
    },
    "checkViolation": {
      "ok": true,
      "error": "ERROR: new row for relation \"inspections\" violates check constraint \"inspections_result_check\"; SQLState: 23514"
    },
    "txnRollback": {
      "ok": true,
      "step1Failed": false,
      "step2Failed": true,
      "step2Error": "ERROR: new row for relation \"ledger\" violates check constraint \"ledger_balance_check\"; SQLState: 23514",
      "balancesUnchanged": true,
      "balances": [
        {
          "account": "general-fund",
          "balance": "10000.00"
        },
        {
          "account": "permit-escrow",
          "balance": "2500.00"
        }
      ]
    },
    "leastPrivilege": {
      "ok": true,
      "attempts": [
        {
          "statement": "DELETE FROM registry.permits WHERE id = 1",
          "error": "ERROR: permission denied for table permits; SQLState: 42501"
        },
        {
          "statement": "DROP TABLE registry.inspections",
          "error": "ERROR: must be owner of table inspections; SQLState: 42501"
        }
      ]
    }
  },
  "plans": {
    "indexed": {
      "usesIndexScan": true,
      "executionMs": 0.026,
      "plan": "Index Scan using parcels_parcel_number_key on parcels  (cost=0.29..8.30 rows=1 width=72) (actual time=0.013..0.013 rows=1 loops=1)\n  Index Cond: (parcel_number = 'AP-01207'::text)\nPlanning Time: 0.049 ms\nExecution Time: 0.026 ms"
    },
    "seqScan": {
      "usesSeqScan": true,
      "executionMs": 1.023,
      "plan": "Seq Scan on parcels  (cost=0.00..511.00 rows=1 width=72) (actual time=1.009..1.009 rows=0 loops=1)\n  Filter: (address = '1 Nowhere Ln'::text)\n  Rows Removed by Filter: 20000\nPlanning Time: 0.049 ms\nExecution Time: 1.023 ms"
    }
  },
  "history": {
    "ok": true,
    "totalEntries": 1310,
    "fullestChain": 3,
    "asOf": {
      "thenStatus": "submitted",
      "nowStatus": "closed",
      "differs": true
    },
    "triggerFiredAsAppUser": true
  },
  "concurrency": {
    "lockTimeout": {
      "ok": true,
      "error": "ERROR: canceling statement due to lock timeout; SQLState: 55P03"
    },
    "deadlock": {
      "ok": true,
      "error": "ERROR: deadlock detected; Hint: See server log for query details.; SQLState: 40P01"
    }
  },
  "rls": {
    "ok": true,
    "north": 5,
    "south": 3,
    "unassigned": 0,
    "crossDistrictError": "ERROR: new row violates row-level security policy for table \"case_files\"; SQLState: 42501"
  },
  "search": {
    "ok": true,
    "nameMatches": 12,
    "injectionPayload": "' OR '1'='1",
    "injectionMatches": 0,
    "trgmIndexUsed": true
  }
}