From 59bdc2be4175f5261474a39676612507e36f7b6c Mon Sep 17 00:00:00 2001 From: bong-water-water-bong Date: Sun, 8 Nov 2026 18:44:20 -0400 Subject: [PATCH] gitignore: .hrx123/logs/ is run output, not source (Fixes #1564) tools/copyright.py checks tracked AND untracked-but-not-ignored files on purpose (it wants to see a file before it is ever git added), so a probe log dropped into .hrx123/logs/ reds the licence gate in a developer clone while main is clean - the shape that teaches people to skip the gate that caught #1560's duplicated licence block. Ignoring the directory is the reporter's option 2 and it is the one that works for this gate, because the tool enumerates through git: the file is still on disk, it is simply no longer a fact about the repository. Option 1 (an EXEMPT entry) would also silence a real source file dropped in the same directory; the ignore rule only covers run output. Measured in a working clone of main: before fake .hrx123/logs/probe-demo.jsonl present, no ignore rule rc=1, 1 'no comment style known' after same file present, rule added rc=0, 0 red arm a new source file with no notice (tools/_i1564_probe.py) rc=1, 'missing copyright notice' The red arm is there so the green one means something: the gate still fails on a real violation. --- .gitignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 08fc0ad18..ad81cf9f2 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,9 @@ third_party/toolchain/ # the model-pin sweep writes these where it runs (tools/pin_watch.py --check --json) pin-report.md pin-report.json + +# engine#1564: run output, not source. tools/copyright.py walks tracked AND untracked-but-not-ignored files (it +# checks a file before it is ever `git add`ed), so a log a probe drops here reds the licence gate in a developer +# clone while main is clean - the shape that teaches people to skip the gate. Ignoring the directory fixes it for +# this gate without an EXEMPT entry that would also hide a real source file dropped there by mistake. +.hrx123/logs/