{"record":{"id":"ef94463eba61cbb8","repo":"koala73/worldmonitor","slug":"resumeramp-no-ramp-configured","errorCode":null,"errorMessage":"[resumeRamp] no ramp configured","messagePattern":"\\[resumeRamp\\] no ramp configured","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"convex/broadcast/rampRunner.ts","lineNumber":233,"sourceCode":"    return { ok: true };\n  },\n});\n\nexport const pauseRamp = internalMutation({\n  args: {},\n  handler: async (ctx) => {\n    const row = await loadConfig(ctx);\n    if (!row) throw new Error(\"[pauseRamp] no ramp configured\");\n    await ctx.db.patch(row._id, { active: false });\n    return { ok: true, prevActive: row.active };\n  },\n});\n\nexport const resumeRamp = internalMutation({\n  args: {},\n  handler: async (ctx) => {\n    const row = await loadConfig(ctx);\n    if (!row) throw new Error(\"[resumeRamp] no ramp configured\");\n    if (row.killGateTripped) {\n      throw new Error(\n        \"[resumeRamp] kill-gate is tripped; clearKillGate first after investigating.\",\n      );\n    }\n    await ctx.db.patch(row._id, { active: true });\n    return { ok: true };\n  },\n});\n\nexport const clearKillGate = internalMutation({\n  args: { reason: v.string() },\n  handler: async (ctx, { reason }) => {\n    const row = await loadConfig(ctx);\n    if (!row) throw new Error(\"[clearKillGate] no ramp configured\");\n    if (!row.killGateTripped) {\n      return { ok: true, noop: true };\n    }","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/koala73/worldmonitor/blob/7d06c8633d256c18e38133030bc3613976a96ec9/convex/broadcast/rampRunner.ts#L215-L251","documentation":"Operator guard in the resumeRamp internal mutation: loadConfig returned no broadcastRampConfig row, so there is no ramp to resume. Same missing-configuration condition as pauseRamp — the deployment has no ramp configured.","triggerScenarios":"Thrown at convex/broadcast/rampRunner.ts:233 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run configureRamp first, then resume","Verify you are pointing at the intended Convex deployment — the config row exists per environment"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d06c8633d256c18e38133030bc3613976a96ec9","analyzedAt":"2026-08-21T16:51:25.751Z","contentChangedAt":"2026-08-21T16:51:25.751Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}