CLIO icon indicating copy to clipboard operation
CLIO copied to clipboard

FILE OPERATIONS -> read_file: Eror: File not found: ./clia/memory/session_progress.md

Open clort81 opened this issue 3 months ago • 2 comments

From my cwd the path appears to be .clio/memory/session_progress.md

CLIO persistently tries to access "clia"

If I can be assistance providing more info let me know.

clort81 avatar Aug 16 '26 05:08 clort81

Automated Triage Summary

Field Value
Classification bug
Priority low
Completeness 70%

Analysis: Confirmed: the CLIO codebase uses '.clio/memory/session_progress.md' everywhere (no 'clia' occurrences found in any source, docs, config, or git history). The error path in the issue is LLM-constructed, not codebase-constructed. Likely root cause: the model is hallucinating 'clia' (typo for 'clio', possibly missing leading dot) and persisting because the wrong path has been written into its working context. The trim-recovery prompt in Session/State.pm already instructs the agent to use memory_operations(operation: 'retrieve', key: 'session_progress') instead of reading the file directly - the agent here ignored that, suggesting either model behavior or context corruption. A maintainer should look at whether FileOperations should normalize obvious typos like '.clia' -> '.clio', or whether this is purely an LLM-side issue worth documenting in troubleshooting. No code change can fully prevent an LLM from typing a wrong directory name - the most actionable improvement is probably a clearer recovery-prompt instruction that explicitly tells the agent NOT to construct .clio/memory/... paths and ALWAYS use memory_operations. Request: please share which model was active and whether a context trim preceded the failure.

Root Cause Analysis

Confidence: medium

Relevant files:

  • lib/CLIO/Core/WorkflowOrchestrator.pm
  • lib/CLIO/Tools/FileOperations.pm
  • lib/CLIO/Session/State.pm

Relevant functions:

  • _checkpoint_session_progress
  • _get_memory_recovery_context
  • read_file

The CLIO codebase NEVER constructs a 'clia' path - all session progress references correctly use '.clio/memory/session_progress.md' (verified at WorkflowOrchestrator.pm:2986, 3087, PromptBuilder.pm:751, MemoryOperations.pm:191/234/271/359/394). The error path './clia/memory/session_progress.md' comes from the LLM constructing a tool call argument (likely via hallucination/typo of 'clio' as 'clia', possibly losing the leading dot during a context trim). The error message format matches FileOperations.pm:614: return $self->error_result('File not found: $path') unless -f $path;. The fact that the LLM 'persistently' retries suggests the wrong path has been encoded in its working memory and it is failing to fall back to the documented memory_operations(operation: 'retrieve', key: 'session_progress') recovery route described in Session/State.pm:982-983. This is consistent with an LLM-side context corruption (model-side, not codebase-side) rather than a code path bug.

Affected Areas

  • Memory recovery flow (_get_memory_recovery_context)
  • Context trim recovery instructions (Session/State.pm)
  • FileOperations read_file error path

This is an automated analysis. A maintainer will review shortly.

CLIO-Bot avatar Aug 17 '26 00:08 CLIO-Bot

This is likely an issue with your model and not with CLIO.

fewtarius avatar Aug 17 '26 00:08 fewtarius