slicing-code-context
Pass
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests source code from a repository, which is considered untrusted data. It implements robust mitigations by including a mandatory
noticefield in its JSON output and a preamble in Markdown output that explicitly warns the agent to ignore any instructions found within the source code slices. The coordinator agent is further instructed to validate all worker subagent claims against the original packet.\n- [COMMAND_EXECUTION]: The skill usesuv runto execute a bundled Python script (scripts/build_slice_packet.py) for deterministic context selection. The script includes asafe_source_pathfunction that resolves and validates file paths, preventing directory traversal attacks by ensuring the tool only reads files within the intended target root directory.
Audit Metadata