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.py uses the subprocess.run module to execute system commands.
  • It performs Git operations (merge, add, commit, worktree) and executes baseline tests.
  • The run_dynamic_baseline function executes arbitrary commands defined as argv in the project's configuration file (project.yaml). While these are executed without a shell (shell=True is 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 via static_inventory in scripts/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_path to prevent directory traversal and uses validate_work_id for input validation.
  • [DYNAMIC_EXECUTION]: The install-cohort command in scripts/core_harness.py enables the skill to update its own core components by copying files from a source directory to an installation path. While this requires an explicit approved_install_root, it represents a mechanism for modifying executable logic at runtime.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 9, 2026, 12:11 PM