{"record":{"id":"cab37746e8b1b747","repo":"deepseek-ai/deepseek-harness","slug":"sandbox-local-name-must-be-a-positive-finite-n","errorCode":null,"errorMessage":"sandbox-local: ${name} must be a positive finite number","messagePattern":"sandbox-local: (.+?) must be a positive finite number","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/sandbox/sandbox-local/src/index.ts","lineNumber":196,"sourceCode":"  bwrap: 'full',\n  landlock: 'full',\n  seatbelt: 'full',\n  // WRITE_RESTRICTED needs Everyone in both restricting lists for process\n  // initialization. An external object that grants Everyone write access\n  // therefore remains writable, and NTFS hard links can alias a granted\n  // workspace file to a path outside it. The backend enforces the remaining\n  // ACL-addressable surface but must not advertise the absolute promise.\n  'windows-acl': 'partial',\n}\n\n/**\n * A probe bound must be a positive finite number: Node treats\n * `spawnSync({ timeout: 0 })` as NO timeout, so an unvalidated 0 would\n * silently mean \"unbounded\" — the opposite of what the field promises.\n */\nfunction assertPositiveFinite(name: string, value: number): void {\n  if (!Number.isFinite(value) || value <= 0) {\n    throw new Error(`sandbox-local: ${name} must be a positive finite number`)\n  }\n}\n\n/**\n * The denial dialect each runner's kernel speaks — the case-insensitive stderr substrings a\n * denied file effect produces under it, carried on every wrap (the seam's\n * `ConfinedArgv.denialSignatures`).\n */\nconst DENIAL_SIGNATURES = {\n  bwrap: ['read-only file system'],\n  landlock: ['permission denied'],\n  seatbelt: ['operation not permitted'],\n  // pwsh/.NET: \"Access to the path '...' is denied.\"; cmd: \"Access is denied.\";\n  // node EACCES: \"permission denied\".\n  'windows-acl': ['access is denied', 'access to the path', 'permission denied'],\n  runnerCommand: ['read-only file system', 'permission denied'],\n} as const satisfies Record<SelectedRunner['runner'] | 'runnerCommand', readonly string[]>\n","sourceCodeStart":178,"sourceCodeEnd":214,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/sandbox/sandbox-local/src/index.ts#L178-L214","documentation":"Error \"sandbox-local: ${name} must be a positive finite number\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/sandbox/sandbox-local/src/index.ts:196 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the value to a positive finite number."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}