{"record":{"id":"4d3ad3d87e5bf653","repo":"koala73/worldmonitor","slug":"company-monitoring-classification-fenced","errorCode":null,"errorMessage":"COMPANY_MONITORING_CLASSIFICATION_FENCED","messagePattern":"COMPANY_MONITORING_CLASSIFICATION_FENCED","errorType":"exception","errorClass":"ConvexError","httpStatus":null,"severity":"error","filePath":"convex/companyMonitoring/admission.ts","lineNumber":463,"sourceCode":"      q\n        .eq(\"ownerAccountId\", args.ownerAccountId)\n        .eq(\"companyId\", args.companyId)\n        .eq(\"occurrenceDedupeKey\", args.occurrenceDedupeKey),\n    )\n    .unique();\n  const now = Date.now();\n  if (\n    !candidate ||\n    candidate.state !== \"pending_classification\" ||\n    candidate.evidenceRevision !== args.expectedEvidenceRevision ||\n    candidate.classificationWorkerId !== workerId ||\n    candidate.classificationLeaseToken !== leaseToken ||\n    candidate.classificationRunId !== classificationRunId ||\n    candidate.classificationRequestedModelVersion !== requestedModelVersion ||\n    candidate.classificationLeaseExpiresAt === undefined ||\n    candidate.classificationLeaseExpiresAt <= now\n  ) {\n    throw new ConvexError(\"COMPANY_MONITORING_CLASSIFICATION_FENCED\");\n  }\n  if (!await admissionScopeIsActive(ctx, candidate)) {\n    throw new ConvexError(\"COMPANY_MONITORING_CLASSIFICATION_FENCED\");\n  }\n  if (candidate.expiresAt <= now) {\n    await terminalizeSystemDecision(\n      ctx,\n      candidate,\n      \"expire\",\n      \"candidate_expired\",\n      \"hold_expired\",\n      now,\n    );\n    return { status: \"recorded\" as const, decision: \"expire\" as const };\n  }\n  const submissionDigest = await fingerprint(canonicalValue({\n    requestedModelVersion,\n    modelVersion,","sourceCodeStart":445,"sourceCodeEnd":481,"githubUrl":"https://github.com/koala73/worldmonitor/blob/ffec79ac339946fd2d24e85845da5755dcaa534b/convex/companyMonitoring/admission.ts#L445-L481","documentation":"Error \"COMPANY_MONITORING_CLASSIFICATION_FENCED\" thrown in koala73/worldmonitor.","triggerScenarios":"Thrown at convex/companyMonitoring/admission.ts:463 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":"ffec79ac339946fd2d24e85845da5755dcaa534b","analyzedAt":"2026-08-12T11:24:56.012Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}