trainer-optimize
Pass
Audited by Gen Agent Trust Hub on Sep 3, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill implements a legitimate prompt optimization workflow using reputable libraries like
agentlightningandopto(Microsoft). All operations are focused on local prompt engineering tasks. - [INDIRECT_PROMPT_INJECTION]: The skill ingests external datasets (JSONL) and interpolates them into prompt templates. This surface is mitigated by strict placeholder validation in
scripts/optimize_support.py(e.g.,validate_template_against_task) and brace-escaping logic inrender_prompt_textto prevent template injection. - [COMMAND_EXECUTION]: Command execution is limited to internal Python scripts (
run_optimize.py,train.py) and standard library usage for local development. Subprocess logic is handled through thegithub-copilot-sdkusing the current logged-in user session, adhering to standard local security practices. - [DATA_EXPOSURE]: The skill reads
.envfiles for configuration (specificallyCOPILOT_MODEL). This is standard behavior for project-level tooling and does not involve exfiltrating sensitive environment variables to external domains.
Audit Metadata