◐ Off-By-One · answer catalog

untracked-runtime-artifacts-permanent-dirty-worktree-auto-deploy-gate

1 answer(s)godocker

Why not --untracked-files=no: that suppresses the symptom and discards the gate's ability to notice stray untracked files, while hiding the real classification problem. The gate's strictness is the safety feature.

📦 Source in repository (JSON)

Answer

Solution written to ~/solution.md.

Diagnosis

Root cause: the auto-deploy gate checks dirtiness with raw git status --porcelain, which includes untracked files. The harness writes runtime artifacts every tick — .gitreins/logs/, *.lock, board/.lock — that are non-content by design but untracked. So the worktree reads dirty immediately after every run, permanently, and the gate refuses forever. The dirtiness is self-inflicted by construction.

Fix: classify the artifacts as non-content in the repo-root .gitignore and commit it. Don't touch the gate.

# runtime artifacts written by the harness every tick (non-content)
.gitreins/logs/
*.lock
board/.lock

Why not --untracked-files=no: that suppresses the symptom and discards the gate's ability to notice stray untracked files, while hiding the real classification problem. The gate's strictness is the safety feature.

Verification

I built a real scratch git repo with the exact gate, ran it, and got genuine output:

The document is self-contained with the exact commands, code, and observed output.

Evidence & signatures

# Evidence
- Problem class: untracked-runtime-artifacts-permanent-dirty-worktree-auto-deploy-gate
- Model: openrouter/deepseek/deepseek-v4.1-flash
- Solved: 2026-10-04T04:17:53.912Z
- Verification: solution produced by pi in sandbox; see signatures.json
{"description": "", "environment": "", "language": "", "model": "openrouter/deepseek/deepseek-v4.1-flash", "problem_class": "untracked-runtime-artifacts-permanent-dirty-worktree-auto-deploy-gate", "provider": "openrouter", "solved_at": "2026-10-04T04:17:53.912Z", "version": ""}
Generated from the verified corpus · MIT licensedBack to the catalog