base-schema.ts now holds the full schema at version 22, taken from the
production database (column order, indexes, provenance triggers), so a
fresh database is identical to the live one. Previously a fresh DB
differed: it had an extra idx_messages_chat_timestamp index and a
different column order in paired_tasks and paired_turn_outputs.
The migration runner keeps schema_migrations:
- empty DB: apply the baseline and record version 22 ('baseline')
- existing DB: must already be at version >= 22 (the live DB records
1-22), otherwise startup refuses it without touching it
- later migrations (23+) run once each inside a transaction
Removed the 22 historical migrations, the legacy schema bundle, the
paired-turn provenance rebuild/backfill helpers that migration 10 replayed
on every start (all no-ops on the live DB), legacy session migration
helpers, the unused service handoff metadata helpers, and the tests that
only exercised legacy-schema upgrades. New schema tests check a fresh DB
against a snapshot dumped from production and that reopening a DB at the
baseline changes neither schema nor data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
160 lines
4.5 KiB
JSON
160 lines
4.5 KiB
JSON
{
|
|
"defaults": {
|
|
"maxLines": 900,
|
|
"maxFunctionLines": 180,
|
|
"maxComplexity": 40,
|
|
"maxNesting": 6
|
|
},
|
|
"testDefaults": {
|
|
"maxLines": 1600,
|
|
"maxFunctionLines": 260,
|
|
"maxComplexity": 55,
|
|
"maxNesting": 7
|
|
},
|
|
"overrides": {
|
|
"runners/agent-runner/test/reviewer-runtime.test.ts": {
|
|
"maxFunctionLines": 271,
|
|
"owner": "agent runner test hotspot"
|
|
},
|
|
"runners/shared/test/agent-protocol.test.ts": {
|
|
"maxFunctionLines": 279,
|
|
"owner": "runner shared test hotspot"
|
|
},
|
|
"setup/migrate-room-registrations.test.ts": {
|
|
"maxFunctionLines": 393,
|
|
"owner": "setup test hotspot"
|
|
},
|
|
"setup/room-registration-state.test.ts": {
|
|
"maxFunctionLines": 292,
|
|
"owner": "setup test hotspot"
|
|
},
|
|
"setup/verify-state.test.ts": {
|
|
"maxFunctionLines": 297,
|
|
"owner": "setup test hotspot"
|
|
},
|
|
"src/agent-runner-environment.test.ts": {
|
|
"maxFunctionLines": 261,
|
|
"owner": "agent runner test hotspot"
|
|
},
|
|
"src/agent-runner-process.ts": {
|
|
"maxFunctionLines": 387,
|
|
"owner": "agent runner process hotspot"
|
|
},
|
|
"src/agent-runner.test.ts": {
|
|
"maxFunctionLines": 548,
|
|
"owner": "agent runner test hotspot"
|
|
},
|
|
"src/codex-warmup.test.ts": {
|
|
"maxFunctionLines": 277,
|
|
"owner": "codex warmup test hotspot"
|
|
},
|
|
"src/db/paired-state.ts": {
|
|
"maxLines": 951,
|
|
"maxFunctionLines": 217,
|
|
"owner": "paired db state hotspot"
|
|
},
|
|
"src/db.test.ts": {
|
|
"maxLines": 9380,
|
|
"maxFunctionLines": 4990,
|
|
"maxComplexity": 29,
|
|
"maxNesting": 2,
|
|
"owner": "db test hotspot"
|
|
},
|
|
"src/duplicate-suppression.test.ts": {
|
|
"maxFunctionLines": 310,
|
|
"owner": "duplicate suppression test hotspot"
|
|
},
|
|
"src/group-queue.test.ts": {
|
|
"maxFunctionLines": 720,
|
|
"owner": "group queue test hotspot"
|
|
},
|
|
"src/group-queue.ts": {
|
|
"maxLines": 929,
|
|
"owner": "group queue hotspot"
|
|
},
|
|
"src/index.ts": {
|
|
"maxFunctionLines": 314,
|
|
"owner": "main service entrypoint hotspot"
|
|
},
|
|
"src/message-agent-executor.test.ts": {
|
|
"maxLines": 3847,
|
|
"maxFunctionLines": 2500,
|
|
"owner": "message executor test hotspot"
|
|
},
|
|
"src/message-agent-executor.ts": {
|
|
"maxFunctionLines": 239,
|
|
"owner": "message executor hotspot"
|
|
},
|
|
"src/message-runtime-queue.test.ts": {
|
|
"maxFunctionLines": 366,
|
|
"owner": "message runtime queue test hotspot"
|
|
},
|
|
"src/message-runtime-queue.ts": {
|
|
"maxFunctionLines": 228,
|
|
"owner": "message runtime queue hotspot"
|
|
},
|
|
"src/message-runtime-rules.test.ts": {
|
|
"maxFunctionLines": 447,
|
|
"owner": "message runtime rules test hotspot"
|
|
},
|
|
"src/message-runtime.test.ts": {
|
|
"maxLines": 5840,
|
|
"maxFunctionLines": 5506,
|
|
"maxComplexity": 7,
|
|
"maxNesting": 1,
|
|
"owner": "message runtime test hotspot"
|
|
},
|
|
"src/message-turn-controller.test.ts": {
|
|
"maxFunctionLines": 730,
|
|
"owner": "message turn controller test hotspot"
|
|
},
|
|
"src/message-turn-controller.ts": {
|
|
"maxLines": 948,
|
|
"maxFunctionLines": 204,
|
|
"owner": "message turn controller hotspot"
|
|
},
|
|
"src/paired-execution-context.test.ts": {
|
|
"maxFunctionLines": 1269,
|
|
"owner": "paired execution context test hotspot"
|
|
},
|
|
"src/paired-execution-context.ts": {
|
|
"maxFunctionLines": 206,
|
|
"maxComplexity": 43,
|
|
"owner": "paired execution context hotspot"
|
|
},
|
|
"src/paired-follow-up-scheduler.test.ts": {
|
|
"maxFunctionLines": 830,
|
|
"owner": "paired follow-up scheduler test hotspot"
|
|
},
|
|
"src/paired-workspace-manager.test.ts": {
|
|
"maxFunctionLines": 1199,
|
|
"owner": "paired workspace manager test hotspot"
|
|
},
|
|
"src/paired-workspace-manager.ts": {
|
|
"maxLines": 1056,
|
|
"owner": "paired workspace manager hotspot"
|
|
},
|
|
"src/service-routing.test.ts": {
|
|
"maxFunctionLines": 272,
|
|
"owner": "service routing test hotspot"
|
|
},
|
|
"src/streamed-output-evaluator.test.ts": {
|
|
"maxFunctionLines": 465,
|
|
"owner": "streamed output evaluator test hotspot"
|
|
},
|
|
"src/task-scheduler.test.ts": {
|
|
"maxLines": 1968,
|
|
"maxFunctionLines": 1790,
|
|
"owner": "task scheduler test hotspot"
|
|
},
|
|
"src/task-scheduler.ts": {
|
|
"maxFunctionLines": 367,
|
|
"owner": "task scheduler hotspot"
|
|
},
|
|
"src/verification.test.ts": {
|
|
"maxFunctionLines": 534,
|
|
"owner": "verification test hotspot"
|
|
}
|
|
}
|
|
}
|