Development record
guard wrapper-probe tests write flock lock files into the tracked package source tree and four zero-byte artefacts are committed
guard wrapper-probe tests write flock lock files into the tracked package source tree and four zero-byte artefacts are committed
Evidence
internal/core/guard/wrappers_test.go:258-260 — runsCommand does exec.Command(name,args...) with no cmd.Dir, so cwd is the package source dir. The flock probe (:108-109, :223 genericProbeValues={"1","0","/tmp","root","PATH"}) probes boolean flags; real flock reads the value token as its lockfile operand and O_CREATs it. Result: internal/core/guard/{0,1,PATH,root} are tracked zero-byte files (git ls-files confirms; added in 0f2d6ef). The commit hides it: tracked-empty + regenerated-empty keeps git status clean.
Adversarial verdict: CONFIRMED (minor)
Reproduced: rm the four, run the test, they re-materialise and git status is clean. Platform-gated to Linux+util-linux (fires here). Fix: git rm the four files + isolate the probe cwd (a package-scoped TestMain temp dir, or thread t.TempDir() through runsCommand). Verified clean: classifications unchanged (121), package tests pass, zero artefacts, tree clean, build/vet/gofmt clean. Self-masking committed junk in a core source package, contrary to the repo tier discipline — above nitpick.
Frontmatter
| id | iss-312 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-312-guard-wrapper-probe-tests-write-flock.md
open on GitHub ↗ · commit history ↗
mentions1
- dcn-26082000000000032026-08-20 — Bug-hunt round 1 (hunt A), landed late: the round ran 2026-08-19 on a branch that