{
  "schema_version": "legipro.c4_readiness_matrix.v1",
  "task_id": "SAAS-0043",
  "generated_utc": "2026-06-29T06:35:22Z",
  "purpose": "Public diligence matrix for the LegiPro C4 architecture surface. It separates current active capabilities, bounded current proof assets, planned current-monolith work, and target SaaS substrate items without widening readiness claims.",
  "categories": {
    "current_active": [
      "REST API lane for search, retrieve, assistant context, manifest, health and export smoke paths.",
      "GraphQL API lane for structured corpus, artifact, search and workspace queries.",
      "MCP tool lane for bounded AI-agent access through scoped tool contracts.",
      "LegiPro CLI for docs, smoke, warehouse, GraphQL, MCP and rotor operations.",
      "Meilisearch service index as the live lexical/fuzzy derived cache.",
      "Postgres corpus warehouse on mtl-02 as the durable source of truth for corpus provenance and chunks.",
      "Rotor control plane with Postgres leases, heartbeats, idempotent closeouts, stale reaper and lane registry.",
      "Fourteen active corpus worker lanes across mtl-01 and mtl-03, focused on e-invoicing corpus work.",
      "Docs/status publisher for API guide, status, roadmap, architecture map and receipts.",
      "Warehouse parity check: warehouse chunks equal local codified rows."
    ],
    "current_bounded": [
      "E-invoicing/VAT credential-free proof fixture for partner screening.",
      "Cegid Loop / Expert dry-run adapter stub with no live Cegid credential or network call.",
      "First-wave dry-run adapter stubs for Cegid, Sage, Pennylane, Odoo, Abby and Inqom.",
      "Shared adapter fixture harness for vendor-shaped handoff payloads.",
      "TypeScript/Node and Python SDK beta evidence in repository; not claimed as public npm/PyPI packages.",
      "Review Runtime preview contracts and fixtures; not a live /v1/review production route.",
      "Static OpenAPI snapshot for review/codegen; no claim that a live /openapi.json endpoint is enabled.",
      "Partner screening memo and comparison pack for e-invoicing-first outreach."
    ],
    "planned_current_monolith": [
      "Snapshot-pinned review requests where corpus_snapshot_id and index_snapshot_id are inputs and outputs.",
      "Applicability and temporal-validity checks for jurisdiction, dates, source hierarchy, supersession and missing facts.",
      "Refusal taxonomy with required remedies for insufficient evidence and source conflicts.",
      "Runtime audit/eval sink for answerability, citation coverage, source freshness and cost units.",
      "Golden eval set covering answerable, insufficient-evidence and conflicting-source cases.",
      "Dedicated buyer-integration and corpus-factory architecture views.",
      "Partner sandbox promotion gate after fixture-only proof review.",
      "Risk register and current/planned/target legend carried beside public architecture surfaces."
    ],
    "target_saas": [
      "CDN/WAF/API gateway with OIDC/SAML, partner keys, OpenAPI and rate limits.",
      "Stateless serving plane for REST, GraphQL, MCP, UI and workspace flows.",
      "Hybrid search service with lexical/fuzzy continuity and gated vector retrieval.",
      "Managed EU Postgres + pgvector with HA, PITR and replicas.",
      "Object store for artifacts, backups, exports and source snapshots.",
      "Versioned MCP tool gateway and registry with scoped tools and audit.",
      "Autoscaled worker pool replacing host-bound worker lanes.",
      "Observability/SLO layer for metrics, logs, traces, audit and cost telemetry.",
      "KMS/Vault for scoped token storage, rotation and no host-resident secrets.",
      "Compliance/data-governance layer for source rights, residency, retention and GDPR.",
      "CI/CD and infrastructure-as-code gates for migrations, deploys and docs publishing."
    ]
  },
  "source_of_truth_boundary": {
    "warehouse": {
      "role": "durable_source_of_truth",
      "host": "mtl-02",
      "technology": "PostgreSQL 17 + pgvector",
      "corpus_chunks": 59627,
      "description": "Authoritative corpus metadata, source provenance, artifacts, chunks, graph/RAG structures, rotor state and candidate semantic structures."
    },
    "meilisearch": {
      "role": "derived_serving_cache",
      "host": "mtl-01",
      "technology": "Meilisearch lexical/fuzzy index",
      "live_documents": 59660,
      "description": "Rebuildable serving index derived from warehouse/local full-index state; not the corpus source of truth."
    },
    "parity": {
      "live_meili_documents": 59660,
      "local_codified_rows": 59627,
      "warehouse_chunks": 59627,
      "delta_warehouse_minus_local": 0,
      "warehouse_matches_local_full_index": true,
      "semantic_search_active": false
    }
  },
  "false_boundaries": {
    "scenario_ready": false,
    "answer_ready": false,
    "promotion_allowed": false,
    "human_review_complete": false,
    "client_reliance": false,
    "semantic_search_active": false,
    "professional_certification": false
  },
  "public_assets": {
    "architecture_map_svg": "https://legipro.fr/assets/legipro-c4-architecture-map-2026-06-29.svg",
    "readiness_matrix_json": "https://legipro.fr/assets/legipro-c4-readiness-matrix-2026-06-29.json",
    "api_guide": "https://legipro.fr/bureau-api.html#architecture-map",
    "roadmap": "https://legipro.fr/bureau-roadmap.html#saas-0043"
  }
}
