state-management-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 25, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides templates for persisting and loading state data via JSON files, which creates an attack surface for indirect prompt injection if the stored data is later interpreted by the agent without sufficient validation.
- Ingestion points: Files are read using
json.load()intemplates/state-manager-template.pyandexamples/user-state-example.py. - Boundary markers: None; the provided code does not include delimiters or instructions to ignore potential commands within the state values.
- Capability inventory: The skill implements file system operations (
os.replace,json.dump,fcntl.flock) but does not include network access or arbitrary command execution. - Sanitization: None; the templates focus on persistence mechanics and do not provide specific sanitization for the content of the loaded data.
- [DYNAMIC_EXECUTION]: The skill documents a pattern for dynamic library loading to ensure portability across different installation environments.
- Evidence: The "Portable Pattern" in
SKILL.mddynamically calculates the project root by searching parent directories for a.gitfolder and modifiessys.pathto includeplugins/autonomous-dev/libbefore performing an import.
Audit Metadata