{
  "level": 2,
  "governance": {
    "defaultMode": "canary",
    "failurePolicy": "continue",
    "humanAuthority": "owner-wins",
    "gates": {
      "qa-signoff": "guarded",
      "ddd-invariants": "guarded",
      "technical-debt": "guarded",
      "architecture-debt": "canary",
      "privacy-lgpd": "shadow",
      "graph-first": "canary",
      "intake": "canary",
      "journey": "canary",
      "workflow-presence": "canary",
      "simulation": "canary",
      "deliberation": "canary",
      "agent-routing": "canary",
      "subagent-scope": "canary",
      "economy": "canary",
      "context-pack": "canary",
      "completion": "canary"
    }
  },
  "setup": {
    "completed": false
  },
  "practices": {
    "active": false
  },
  "analysis": {
    "excludePaths": [
      "node_modules/",
      "dist/",
      "build/",
      "out/",
      ".next/",
      ".turbo/",
      ".expo/",
      ".svelte-kit/",
      "coverage/",
      "__pycache__/",
      "target/",
      "vendor/"
    ]
  },
  "l3": {
    "mainBranch": "main"
  },
  "autoFormat": {
    "enabled": true,
    "minLevel": 4,
    "excludePaths": [
      "node_modules/",
      "dist/",
      "build/",
      ".next/",
      "target/",
      "__pycache__/",
      "vendor/"
    ]
  },
  "qualityGate": {
    "enabled": true,
    "minLevel": 3,
    "strictLevel": 4,
    "disabled": []
  },
  "bridges": {
    "enabled": []
  },
  "qa": {
    "criticalPaths": [],
    "coverageTarget": {
      "lines": 80,
      "branches": 70
    }
  },
  "architectureDebtGate": {
    "enabled": true,
    "mode": "canary",
    "enforcement": "advisory",
    "baseline": {
      "strategy": "ratchet",
      "blockUnchangedLegacyDebt": false
    },
    "ruleModes": {},
    "lineSignals": {
      "enabled": true,
      "blocking": false,
      "yellow": 240,
      "elevated": 308
    },
    "floors": {
      "security": "ADVISORY",
      "reliability": "ADVISORY",
      "testability": "ADVISORY"
    },
    "intentionalDebt": {
      "requireOwner": true,
      "requireBusinessJustification": true,
      "requireRepaymentTrigger": true,
      "requireAcceptanceAuthority": true
    },
    "scope": {
      "changedFilesOnly": true,
      "affectedModules": true
    },
    "unknownEvidence": "REVIEW_REQUIRED",
    "_floorConfigExample": {
      "_comment": "OPTIONAL — wire these to ACTIVATE F2 (boundary) + F3 (state-authority) for YOUR project. Rename this block to the real keys (layerRules / ownership / writeAuthorities) on architectureDebtGate and adapt to your layers + canonical state owners. Until wired, F2/F3 stay SKIPPED; F1 (cycles), security, reliability and testability floors remain active regardless. Do NOT invent layers you do not have.",
      "layerRules": {
        "_comment": "F2: name each layer by its path prefix(es), then forbid the wrong import directions (fromLayer -> toLayer). adapters[] / adapterLayers[] exempt legit boundary crossings; invertPairs[] recommends INVERT_DEPENDENCY instead of RESTORE_BOUNDARY.",
        "layers": {
          "domain": [
            "src/domain"
          ],
          "application": [
            "src/application",
            "src/usecases"
          ],
          "infrastructure": [
            "src/infra",
            "src/db",
            "src/http"
          ],
          "interface": [
            "src/ui",
            "src/routes",
            "src/controllers"
          ]
        },
        "forbidden": [
          {
            "from": "domain",
            "to": "infrastructure"
          },
          {
            "from": "domain",
            "to": "interface"
          },
          {
            "from": "application",
            "to": "interface"
          }
        ],
        "invertPairs": [
          {
            "from": "domain",
            "to": "infrastructure"
          }
        ],
        "adapters": [
          "src/infra/adapters"
        ]
      },
      "ownership": {
        "_comment": "F3: each canonical state key -> the ONE module allowed to write it.",
        "example.sessionState": "src/state/session-store.mjs"
      },
      "writeAuthorities": [
        {
          "state": "example.sessionState",
          "module": "src/state/session-store.mjs"
        }
      ]
    }
  },
  "l5": {
    "highRiskPaths": [],
    "contractGlobs": [],
    "distill": {
      "observeWindow": 10,
      "proposeAfterSessions": 30,
      "archiveRunsOlderThanDays": 7
    },
    "techDebtSweep": {
      "default": "full",
      "profiles": {
        "full": {
          "cadenceDays": 14,
          "scope": "all"
        },
        "quick": {
          "cadenceDays": 3,
          "scope": "red-zone-only"
        }
      }
    }
  },
  "economy": {
    "enabled": true,
    "mode": "advisory",
    "outputContract": {
      "enabled": true
    },
    "findings": {
      "enabled": true
    },
    "agentContract": {
      "enabled": true
    },
    "compaction": {
      "enabled": true
    },
    "contextProfiles": {
      "enabled": true
    },
    "bootDelta": {
      "enabled": false
    },
    "resumePack": {
      "enabled": true
    },
    "leanLoop": {
      "enabled": true
    },
    "loopBreaker": {
      "enabled": true
    },
    "patchEconomy": {
      "enabled": true
    },
    "measurement": {
      "enabled": true
    }
  },
  "projectMap": {
    "graph": {
      "enabled": true,
      "mode": "advisory",
      "humanFlip": false,
      "autoIndex": true,
      "maxAgeMinutes": 60
    }
  }
}
