{
  "schemaVersion": "provider-compliance.minimum-repo-architecture.v1",
  "snapshotDate": "2026-08-31",
  "researchBasis": {
    "globalCompaniesAndProducts": 208,
    "regulatedCaseRepositories": 42,
    "documentAutomationRepositories": 44,
    "agentWorkflowRepositories": 40,
    "deepProfiles": 66
  },
  "decision": {
    "name": "Minimum proof build",
    "repositoryCount": 5,
    "repositories": [
      {"name":"Supabase","repo":"supabase/supabase","url":"https://github.com/supabase/supabase","role":"PostgreSQL, authentication, row-level security and object storage"},
      {"name":"python-docx","repo":"python-openxml/python-docx","url":"https://github.com/python-openxml/python-docx","role":"DOCX structure access and surgical editing"},
      {"name":"openpyxl","repo":"openpyxl/openpyxl","url":"https://github.com/openpyxl/openpyxl","role":"XLSX register inspection, census and controlled edits"},
      {"name":"pypdf","repo":"py-pdf/pypdf","url":"https://github.com/py-pdf/pypdf","role":"Local PDF and AcroForm inspection/filling"},
      {"name":"Pydantic","repo":"pydantic/pydantic","url":"https://github.com/pydantic/pydantic","role":"Typed case, manifest, job and validation contracts"}
    ],
    "customAuthority": [
      "case and backstory schema",
      "source and edition manifests",
      "claim and evidence lineage",
      "consultant and client gap ownership",
      "approval and declaration events",
      "regulatory validators",
      "append-only business audit",
      "fixture expectations and outcome proof"
    ]
  },
  "options": [
    {"name":"Case benchmark","repositoryCount":1,"repositories":["wkspower/wks-platform"],"verdict":"Spike only","reason":"Closest out-of-box case and BPMN workflow, but lacks domain evidence, document and tenancy authority."},
    {"name":"Regulated benchmark","repositoryCount":3,"repositories":["wkspower/wks-platform","C-realize/OpenQMS","open-policy-agent/opa"],"verdict":"Too broad for MVP","reason":"Case, QMS and rules coverage introduces overlapping authority and integration burden."},
    {"name":"Minimum proof build","repositoryCount":5,"repositories":["supabase/supabase","python-openxml/python-docx","openpyxl/openpyxl","py-pdf/pypdf","pydantic/pydantic"],"verdict":"Recommended","reason":"Covers authority storage and primary artifact formats with the fewest non-overlapping dependencies."},
    {"name":"Balanced AI pilot","repositoryCount":7,"repositories":["supabase/supabase","python-openxml/python-docx","openpyxl/openpyxl","py-pdf/pypdf","pydantic/pydantic","langchain-ai/langgraph","promptfoo/promptfoo"],"verdict":"After baseline","reason":"Adds resumable agent flow and regression testing after direct state transitions are proven."},
    {"name":"High-assurance scale","repositoryCount":10,"repositories":["supabase/supabase","python-openxml/python-docx","openpyxl/openpyxl","py-pdf/pypdf","pydantic/pydantic","temporalio/sdk-python","langfuse/langfuse","open-policy-agent/opa","openfga/openfga","promptfoo/promptfoo"],"verdict":"Later stage","reason":"Durability, observability, policy and relationship authorization with material operational cost."}
  ],
  "deferred": [
    {"name":"WKS Platform","trigger":"Direct case state and task handling become unwieldy after a one-case spike"},
    {"name":"OpenQMS","trigger":"Controlled document, CAPA and change-control needs justify licensing and integration"},
    {"name":"LangGraph","trigger":"Measured branching, interrupt and resume complexity exceeds direct state transitions"},
    {"name":"Temporal","trigger":"High-assurance long-running execution and failure recovery justify a workflow service"},
    {"name":"OPA","trigger":"Regulatory validator volume/versioning requires a separate tested rule catalogue"},
    {"name":"OpenFGA","trigger":"Relationship sharing exceeds tractable Postgres RLS policies"},
    {"name":"Langfuse","trigger":"Model-call volume requires dedicated prompt/trace comparison"},
    {"name":"Docling","trigger":"Mixed-format fixtures fail narrow local extraction probes"}
  ],
  "phase0Probes": [
    "Model one successful and one incomplete de-identified case with negative tenant tests",
    "Prove edition selection and token census across both master ZIP editions",
    "Probe DOCX runs, tables, headers, footers, comments and metadata",
    "Probe XLSX values, formulas, controlled vocabulary and style preservation",
    "Classify exact Commission PDFs and their form technology",
    "Build fixture assertions for missing facts, unsupported claims, category leakage, stale sources and wrong editions",
    "Compare direct state transitions against LangGraph and WKS only after the baseline works"
  ]
}
