setup-agent-harness
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/core_harness.pyuses thesubprocess.runmodule to execute system commands. - It performs Git operations (merge, add, commit, worktree) and executes baseline tests.
- The
run_dynamic_baselinefunction executes arbitrary commands defined asargvin the project's configuration file (project.yaml). While these are executed without a shell (shell=Trueis not used), the content of the commands is determined by external configuration. - [INDIRECT_PROMPT_INJECTION]: The skill has a surface for indirect prompt injection as it ingests untrusted data from the repository being managed.
- Ingestion points: The harness reads
.harness/project.yaml,.harness/environment-exceptions.json, and scans repository files viastatic_inventoryinscripts/core_harness.py. - Boundary markers: The instructions do not specify explicit boundary markers or "ignore instructions" warnings for the data being processed.
- Capability inventory: The skill can execute arbitrary commands (
subprocess.run), write to the filesystem (_durable_write_bytes), and perform Git operations. - Sanitization: The skill implements path sanitization via
_safe_repo_pathto prevent directory traversal and usesvalidate_work_idfor input validation. - [DYNAMIC_EXECUTION]: The
install-cohortcommand inscripts/core_harness.pyenables the skill to update its own core components by copying files from a source directory to an installation path. While this requires an explicitapproved_install_root, it represents a mechanism for modifying executable logic at runtime.
Audit Metadata