fix: align Release A migration semantics

This commit is contained in:
AgentRun Codex
2026-07-12 23:35:21 +00:00
parent c101b2543e
commit 1a3e95e8d9
7 changed files with 44 additions and 17 deletions
@@ -214,6 +214,7 @@ function runSentinelMigration(spec: HwlabRuntimeLaneSpec, options: Extract<WebPr
const verification = verifyMonitorSqliteSnapshot(snapshot);
if (verification.ok !== true) throw new Error("migration snapshot verification failed");
if (options.action === "import") {
if (!options.confirm) throw new Error("web-probe sentinel migration import requires --confirm");
if (!process.env.DATABASE_URL) throw new Error("monitor migration DATABASE_URL must be injected by the controlled Secret consumer");
const pool = releaseAMonitorMigrationPool(spec, source);
const result = runCommand(["bun", "scripts/monitor-sqlite-migration-import.ts", options.snapshotPath], repoRoot, { timeoutMs: 120_000, env: { ...process.env, MONITOR_CENTRAL_PG_POOL_MAX: String(pool.poolMax), MONITOR_CENTRAL_PG_IDLE_TIMEOUT_SECONDS: String(pool.idleTimeoutSeconds) } });