{"record":{"id":"352a83d924df76fa","repo":"coleam00/Archon","slug":"failed-to-update-isolation-environment-status-no","errorCode":null,"errorMessage":"Failed to update isolation environment status: no environment found with id '${id}'","messagePattern":"Failed to update isolation environment status: no environment found with id '(.+?)'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/db/isolation-environments.ts","lineNumber":192,"sourceCode":"\n  getLog().debug(\n    { envId: result.rows[0].id, codebaseId: env.codebase_id, branch: env.branch_name },\n    'db.isolation_env_create_completed'\n  );\n  return normalizeEnvironmentRow(result.rows[0]);\n}\n\n/**\n * Update environment status\n */\nexport async function updateStatus(id: string, status: 'active' | 'destroyed'): Promise<void> {\n  const result = await pool.query(\n    'UPDATE remote_agent_isolation_environments SET status = $1 WHERE id = $2',\n    [status, id]\n  );\n\n  if (result.rowCount === 0) {\n    throw new Error(\n      `Failed to update isolation environment status: no environment found with id '${id}'`\n    );\n  }\n  getLog().debug({ envId: id, status }, 'db.isolation_env_status_update_completed');\n}\n\n/**\n * Update environment metadata (merge with existing)\n */\nexport async function updateMetadata(id: string, metadata: Record<string, unknown>): Promise<void> {\n  const dialect = getDialect();\n  const result = await pool.query(\n    `UPDATE remote_agent_isolation_environments\n     SET metadata = ${dialect.jsonMerge('metadata', 1)}\n     WHERE id = $2`,\n    [JSON.stringify(metadata), id]\n  );\n","sourceCodeStart":174,"sourceCodeEnd":210,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/core/src/db/isolation-environments.ts#L174-L210","documentation":"Error \"Failed to update isolation environment status: no environment found with id '${id}'\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/core/src/db/isolation-environments.ts:192 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0773b9745896ef0612e709c80845a0f7db315b19","analyzedAt":"2026-09-01T02:28:07.064Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}