{"record":{"id":"9fdca61bacc036ce","repo":"deepseek-ai/deepseek-harness","slug":"fs-not-observed-9fdca6","errorCode":"FS_NOT_OBSERVED","errorMessage":"edit requires reading \"${target.displayPath}\" first","messagePattern":"edit requires reading \"(.+?)\" first","errorType":"exception","errorClass":"FsError","httpStatus":null,"severity":"error","filePath":"packages/fs/fs-observation-policy/src/index.ts","lineNumber":82,"sourceCode":"   */\n  writeIntent(target: FsTarget, actor: object | undefined): FsWriteIntent {\n    const owner = this.owner(actor)\n    const prior = owner ? this.get(owner, target.targetKey) : undefined\n    return prior?.kind === 'present'\n      ? { kind: 'replaceIfVersion', version: prior.version }\n      : { kind: 'createIfAbsent' }\n  }\n\n  /**\n   * Decide the edit version guard: unseen rejects with `FS_NOT_OBSERVED`,\n   * confirmed absence rejects with `FS_NOT_FOUND`, and presence supplies the\n   * observed version as the CAS basis.\n   */\n  editIntent(target: FsTarget, actor: object | undefined): { version: FsVersion } {\n    const owner = this.owner(actor)\n    const prior = owner ? this.get(owner, target.targetKey) : undefined\n    if (!owner || prior === undefined) {\n      throw new FsError(`edit requires reading \"${target.displayPath}\" first`, 'FS_NOT_OBSERVED')\n    }\n    if (prior.kind === 'absent') {\n      throw new FsError(`cannot edit \"${target.displayPath}\": not found`, 'FS_NOT_FOUND')\n    }\n    return { version: prior.version }\n  }\n\n  /** Record an authoritative present or absent observation for this owner and target. */\n  observe(target: FsTarget, observation: FsObservation, actor: object | undefined): void {\n    const owner = this.owner(actor)\n    if (owner) this.set(owner, target.targetKey, observation)\n  }\n}\n\n/** Cordis plugin name used by loader diagnostics. */\nexport const name = 'fs-observation-policy'\n\n/**","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/fs/fs-observation-policy/src/index.ts#L64-L100","documentation":"Error \"edit requires reading \"${target.displayPath}\" first\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/fs/fs-observation-policy/src/index.ts:82 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":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}