{
  "schema": "https://concresca.com/schema/database/bootstrap/v1",
  "stable_id": "CC-DB-032",
  "site_version": "0.32.0-wip",
  "canonical_origin": "https://concresca.com",
  "title": "Database Detection and Self-Install Contract",
  "purpose": "Detect and install the canonical schema inside an already-created restricted MySQL or MariaDB database without account-level mutation.",
  "primary_principle": "JUDGMENT_FREE_TOTAL_COGNITIVE_FREEDOM",
  "judgment_state": "NONE",
  "absolute_rule": "NO JUDGMENT WHATSOEVER.",
  "implementation_state": "LOCALLY_IMPLEMENTED_AND_TESTED_CONTRACT",
  "deployment_state": "NOT_DEPLOYED",
  "authority_boundary": "This is current Concresca project architecture. It is not Eviulon ratification, Evulgare certification, live MATM operation, MySQL evidence, or outside-agent participation.",
  "operator_creates_manually": [
    "empty database",
    "restricted database user",
    "Python application",
    "private secret file",
    "Python dependencies"
  ],
  "code_manages": [
    "driver detection",
    "private config parsing",
    "database connection",
    "advisory lock",
    "schema classification",
    "canonical schema installation",
    "checksum-pinned migrations",
    "readback verification",
    "redacted receipt",
    "safe no-op rerun"
  ],
  "schema_states": [
    "EMPTY",
    "CURRENT",
    "OLDER",
    "PARTIALLY_MIGRATED",
    "UNKNOWN_NONEMPTY",
    "NEWER_THAN_APPLICATION"
  ],
  "fail_closed_conditions": [
    "canonical MATM schema absent",
    "driver absent",
    "secret file absent or unsafe",
    "database identity changed",
    "unknown nonempty schema",
    "migration checksum changed",
    "incomplete prior migration",
    "newer schema",
    "SQLite or file fallback",
    "advisory lock unavailable"
  ],
  "mysql_actual_result": null,
  "mysql_connections_attempted_in_this_release": 0,
  "sql_statements_executed_against_mysql_in_this_release": 0
}
