{
  "schemaVersion": 1,
  "runtime": {
    "profile": "full",
    "services": {
      "config": true,
      "diagnostics": true,
      "trace": true,
      "status": true
    },
    "gates": {
      "enabled": true,
      "minBenchmarkPassRate": 0.8,
      "maxReliabilityRegression": 0.02,
      "maxUnitCostUsd": 0.05,
      "maxLatencyMs": 30000,
      "minImprovementDelta": 0.01
    }
  },
  "extensions": {
    "manifest": ".pi/extensions/contracts.json",
    "enabled": [],
    "disabled": []
  },
  "reliability": {
    "mode": "enforce",
    "traceDir": ".pi/runtime",
    "trace": {
      "maxFileBytes": 5242880,
      "maxFiles": 3
    },
    "protectPaths": [
      ".env",
      ".git/",
      "node_modules/",
      "*.pem",
      "*.key"
    ],
    "approval": {
      "highRiskBash": true,
      "writesOutsideWorkspace": true,
      "externalEditPolicy": "auto",
      "externalEditRoots": [
        "<workspace>"
      ],
      "sessionFork": false,
      "webQueue": {
        "enabled": true,
        "timeoutMs": 60000
      },
      "denyRephrase": true,
      "batchPerTurn": true
    },
    "limits": {
      "maxToolCallsPerTurn": 30,
      "maxHighRiskCallsPerTurn": 3,
      "maxRepairAttemptsPerError": 2,
      "maxRepeatedCalls": 3
    },
    "costBrake": {
      "enabled": true,
      "maxSessionCostUsd": 2,
      "warnAtFraction": 0.8
    },
    "commandAllowlist": {
      "enabled": true,
      "extraCommands": []
    },
    "toolRouting": {
      "enabled": true,
      "maxCandidates": 5
    }
  },
  "memory": {
    "enabled": true,
    "pythonCommand": "python",
    "backend": "native",
    "rootDir": ".equaxis/memory",
    "autoRecall": true,
    "defaultWing": "equaxis",
    "defaultRoom": "general",
    "maxContextChars": 8000,
    "maxStoredMessageChars": 24000,
    "requestTimeoutMs": 60000,
    "governance": {
      "enabled": true,
      "auditPath": ".pi/runtime/memory-governance/memories.jsonl",
      "retentionDays": {
        "hot": 3650,
        "warm": 365,
        "cold": 180
      }
    },
    "dream": {
      "enabled": true,
      "onShutdown": false,
      "maxEntries": 150,
      "provider": "deepseek",
      "model": "deepseek-v4-flash"
    }
  },
  "skills": {
    "enabled": true,
    "rootDir": ".equaxis/skills",
    "autoInject": true,
    "maxContextTokens": 3000,
    "requiredNames": []
  },
  "subagents": {
    "enabled": true,
    "maxConcurrent": 2,
    "piEntry": "",
    "jsonArgs": [],
    "budgets": {
      "timeoutMs": 60000,
      "maxRetries": 1
    },
    "persistence": {
      "enabled": true,
      "rootDir": ".pi/runtime/subagents"
    },
    "isolation": {
      "enabled": true,
      "scrubEnv": true,
      "outputRoot": ".pi/runtime/isolated",
      "extraEnvAllowlist": [],
      "worktree": false
    }
  },
  "evaluation": {
    "enabled": true,
    "rootDir": ".pi/runtime/eval-loop",
    "minSamples": 5,
    "minSuccessRateDelta": 0.02,
    "maxLatencyRegression": 0.1,
    "maxCostRegression": 0.15,
    "confidenceZ": 1.96
  },
  "protocols": {
    "lsp": {
      "command": "typescript-language-server",
      "args": [
        "--stdio"
      ],
      "cwd": "",
      "requestTimeoutMs": 30000,
      "allowCommandOverride": false
    },
    "dap": {
      "command": "python",
      "args": [
        "-m",
        "debugpy.adapter"
      ],
      "cwd": "",
      "requestTimeoutMs": 30000,
      "allowCommandOverride": false
    }
  }
}
