Development record
abcd guard's wrapper-probe test (wrappers_test.go runsCommand) runs wrapper binaries with no cmd.Dir, inheriting the package source directory as cwd; flock opens its probe values (0 1 PATH root) as lock files, so go test writes four zero-byte files into the tracked tree — and they are already committed under internal/core/guard/
issueresolvedminoriss-292
abcd guard's wrapper-probe test (wrappers_test.go runsCommand) runs wrapper binaries with no cmd.Dir, inheriting the package source directory as cwd; flock opens its probe values (0 1 PATH root) as lock files, so go test writes four zero-byte files into the tracked tree — and they are already committed under internal/core/guard/
Evidence
internal/core/guard/wrappers_test.go—runsCommandcallsexec.Command(name, args...)with nocmd.Dir, so the child inheritsgo test's cwd (the package source dir).consumesNextTokenfeedsgenericProbeValues(1 0 /tmp root PATH) into flag positions; forflockthe value lands in the lock-file operand, whichflockopensO_CREAT.git ls-files internal/core/guard/tracks four committed zero-byte artefacts:0,1,PATH,root;go test ./...recreates them in place.
Adversarial review
CONFIRMED (self-verified: the four files are tracked and regenerate). Fix: set
cmd.Dir = t.TempDir() in runsCommand (and/or use temp-path probe values), then git rm
the four artefacts.
Frontmatter
| id | iss-292 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-292-abcd-guard-s-wrapper-probe-test-wrappers.md
open on GitHub ↗ · commit history ↗
mentions1
- dcn-26081900000000032026-08-19 — bughunt round 1 (branch bughunt-b/round-1): captured iss-291..iss-304 and fixed