self-managed-context
Pass
Audited by Gen Agent Trust Hub on Nov 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill requires the agent to use shell and code tools to modify a context mirror file. Example 2 demonstrates a Python script (`python3
- <<'PY'
) performing regex-based text substitution on a file located in/tmp/.live_ctx/`. - [INDIRECT_PROMPT_INJECTION]: The skill identifies that an editable context can act as a persistence channel for self-generated instructions. It implements a safety architecture to manage this surface: (1) Ingestion happens during the mirror file read-back (
parse_back); (2) Boundary markers are enforced via[[CTX_TURN]]headers; (3) Capabilities include file editing via shell tools; (4) Sanitization is performed through role folding (converting non-assistant roles to user) and re-pinning original system messages from a protected prefix. - [EXTERNAL_DOWNLOADS]: The documentation references a reference implementation and optimization patches from the Facebook Research official GitHub repository.
- [DYNAMIC_EXECUTION]: The skill uses dynamic script generation for context manipulation and describes a 'monkeypatch' implementation for the SGLang serving stack to optimize cache reuse during context edits.
Audit Metadata