Task Artifact Location
Store temporary files under /tmp, outside all repositories. Never create temporary files or agent task artifacts inside any repository, even when ignored by Git. This includes audit reports, check results, screenshots, logs, verification records, scratch scripts, backups, and intermediate output. Calling an artifact durable, documentation, or evidence does not exempt it. Store retained task evidence under ~/taskArtifacts, outside all repositories. Create a task artifact inside a repository only when the user explicitly requests that artifact there. Required application source files are not task artifacts. A request to audit, test, verify, or fix code does not authorize repository-local artifacts. Before creating any file or running a command that writes artifacts, verify the resolved output destination against this rule, including symbolic links, and configure tool output paths accordingly.
Fix
Write temporary artifacts to /tmp and retained evidence to ~/taskArtifacts. Keep both outside repositories. Report evidence locations without copying artifacts into repositories.