memory-dag-compactor
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses a Python script (
compact.py) to process memory entries. The script performs standard file I/O operations (readingMEMORY.mdand writing to a YAML state file) and uses local command-line arguments for control flow. These operations are restricted to the skill's defined workspace and state directories. - [DATA_EXPOSURE]: The skill reads from
~/.openclaw/workspace/MEMORY.mdto generate summaries. While this involves sensitive agent memory, the data is processed locally, and the resulting summaries are stored within the skill's own protected state directory (~/.openclaw/skill-state/). There is no evidence of external transmission. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data (content from
MEMORY.md) to generate summaries. - Ingestion points: Reads
MEMORY.mdincompact.pyviaparse_memory(). - Boundary markers: None identified for the summary output, though the DAG structure acts as a logical delimiter.
- Capability inventory: File read/write to state and workspace, local execution of
compact.py. - Sanitization: Simple keyword extraction and length-based truncation are used for summary generation. While an attacker could theoretically embed instructions in
MEMORY.mdto bias the summaries, the impact is limited to the agent's internal memory representation and does not grant further system access.
Audit Metadata