{
  "id": "artifact:the-database-had-been-wrong-for-twelve-years",
  "slug": "the-database-had-been-wrong-for-twelve-years",
  "title": "The Database Had Been Wrong for Twelve Years. AI Made It Worth Fixing.",
  "thesis": "The breakthrough was not that AI knew the answer. It made a technically solvable but economically irrational investigation practical by turning probabilistic reasoning into a sequence of deterministic tests until one causal explanation survived.",
  "abstract": "A first-person evidence case study about using AI as a reasoning layer over SQL, hashes, historical snapshots, Plex SQLite, Docker, and disposable database clones to diagnose a decade-old Plex defect, eliminate false positives, prove three duplicated library roots as the generator of 1,509 duplicate media representations, and validate a zero-media-loss root fix.",
  "topics": [
    "ai-architecture",
    "database-forensics",
    "plex",
    "sqlite",
    "deterministic-systems",
    "tool-using-ai",
    "legacy-systems",
    "engineering-economics",
    "evidence-driven-debugging"
  ],
  "date": "2026-08-12",
  "dateLabel": "Published",
  "published": true,
  "publicationState": "PUBLISHED",
  "updated": "2026-08-12",
  "sourceDates": {
    "created": "2026-08-12",
    "updated": "2026-08-12",
    "published": "2026-08-12"
  },
  "kind": "Evidence case study and personal engineering field report",
  "sourceFamily": "SharePlane Platform",
  "href": "artifacts/the-database-had-been-wrong-for-twelve-years/index.html",
  "contextHref": "records/the-database-had-been-wrong-for-twelve-years/context.txt",
  "recordHref": "records/the-database-had-been-wrong-for-twelve-years/work.json",
  "receiptHref": "records/the-database-had-been-wrong-for-twelve-years/receipt.json",
  "packageHref": "downloads/works/the-database-had-been-wrong-for-twelve-years.zip",
  "canonicalUrl": "https://shareplane.malott.ai/artifacts/the-database-had-been-wrong-for-twelve-years/",
  "sources": [
    {
      "id": "source:shareplane-platform-issue-428",
      "type": "governing-publication-authority",
      "title": "Issue #428 — Publish the Plex forensic AI case study",
      "locator": "https://github.com/pinklon/shareplane-platform/issues/428",
      "role": "Governs semantics, privacy boundary, evidence facts, visual grammar, relationships, merge authority, and Production publication authority.",
      "publiclyExposed": true
    },
    {
      "id": "source:issue-428-evidence-authority",
      "type": "sanitized-primary-forensic-evidence",
      "title": "Issue #428 sanitized forensic evidence authority",
      "locator": "https://github.com/pinklon/shareplane-platform/blob/main/docs/publication/issue-428/EVIDENCE_AUTHORITY.json",
      "role": "Records the public-safe structural findings distilled from the V4-V8 hash-verified forensic receipts.",
      "publiclyExposed": true
    },
    {
      "id": "source:plex-corrupted-database",
      "type": "primary-vendor-documentation",
      "title": "Plex Support — Repair a Corrupted Database",
      "locator": "https://support.plex.tv/articles/repair-a-corrupted-database/",
      "role": "Corroborates the core Plex database path, Plex SQLite runtime, backup-before-repair guidance, and the distinction between structural integrity and other data problems.",
      "publiclyExposed": true
    },
    {
      "id": "source:plex-scheduled-tasks",
      "type": "primary-vendor-documentation",
      "title": "Plex Support — Scheduled Tasks",
      "locator": "https://support.plex.tv/articles/201553286-scheduled-tasks/",
      "role": "Corroborates Plex's scheduled core-database backup behavior.",
      "publiclyExposed": true
    },
    {
      "id": "source:sqlite-pragma",
      "type": "primary-software-documentation",
      "title": "SQLite — PRAGMA statements",
      "locator": "https://www.sqlite.org/pragma.html",
      "role": "Corroborates integrity_check, quick_check, and foreign_key_check semantics.",
      "publiclyExposed": true
    },
    {
      "id": "source:sqlite-fts4",
      "type": "primary-software-documentation",
      "title": "SQLite — FTS3 and FTS4 Extensions",
      "locator": "https://www.sqlite.org/fts3.html",
      "role": "Corroborates why full-text-search structures and tokenizer differences can look like duplication without being application-table corruption.",
      "publiclyExposed": true
    },
    {
      "id": "source:plex-pms-docker",
      "type": "primary-vendor-runtime",
      "title": "Plex Media Server Docker image",
      "locator": "https://github.com/plexinc/pms-docker",
      "role": "Corroborates the Plex runtime environment used to access Plex-specific SQLite behavior during the forensic audit.",
      "publiclyExposed": true
    }
  ],
  "posture": "Owner-originated personal engineering case study grounded in hash-verified forensic database receipts and a successfully tested offline repair.",
  "media": [],
  "schema": "shareplane.portable-work.v1",
  "author": {
    "name": "Tony Malott",
    "url": "https://malott.ai/"
  },
  "content": {
    "mediaType": "text/plain",
    "path": "records/the-database-had-been-wrong-for-twelve-years/context.txt",
    "sha256": "4d9943ca5c6741534806b5369c2492e56fef4e54a8893150631bb7543c804877",
    "complete": true,
    "extraction": "Native presentation reading order; scripts, styles, and platform chrome excluded."
  },
  "relationships": [
    {
      "source": "artifact:the-database-had-been-wrong-for-twelve-years",
      "target": "artifact:the-best-ai-system-should-need-less-ai-tomorrow",
      "type": "application",
      "group": "applications",
      "label": "A field application of the Inference Retirement Thesis",
      "explanation": "The investigation repeatedly used probabilistic reasoning to discover the next question, then converted stable knowledge into deterministic SQL, scripts, integrity gates, and a bounded repair transaction."
    },
    {
      "source": "artifact:the-database-had-been-wrong-for-twelve-years",
      "target": "artifact:inference-at-the-ambiguity-frontier",
      "type": "application",
      "group": "applications",
      "label": "Inference at the ambiguity frontier, applied to database forensics",
      "explanation": "The model operated where the diagnosis was uncertain; deterministic mechanisms collapsed uncertainty as evidence accumulated."
    },
    {
      "source": "artifact:the-database-had-been-wrong-for-twelve-years",
      "target": "artifact:the-code-is-no-longer-the-hard-part",
      "type": "companion",
      "group": "companions",
      "label": "Companion: the economics of implementation changed",
      "explanation": "Cheap code and tool construction made it practical to build one-off forensic machinery for a problem that could never justify a traditional bespoke engineering project."
    }
  ],
  "representations": {
    "html": "artifacts/the-database-had-been-wrong-for-twelve-years/index.html",
    "text": "records/the-database-had-been-wrong-for-twelve-years/context.txt",
    "json": "records/the-database-had-been-wrong-for-twelve-years/work.json",
    "package": "downloads/works/the-database-had-been-wrong-for-twelve-years.zip"
  }
}
