Red in a full run at 63be47717 under load avg ~280 (8.46s):
skill_how_test.go:163: problems: [{Agent:claude What:skill:pdf
Error:open .../src/skills/pdf/blocked.txt: permission denied}]
It passed alone 3 of 3. The cause is the hash memo (treememo.go,
3a80ce7fa, #541): a folder whose newest file is older than settleFor
(3s) has its hash kept against a stamp of place, type, size and time,
not mode, by design (TestPageReadDoesntReadUnchangedSkillsAgain relies on
a chmod not re-reading). On a loaded run more than 3s passed between
writing src/skills/pdf and SetSkillHow, so relink's
hashDir(realDir(skillDir)) under /private/var hit the remembered hash,
while the test's own "unreadable file prevents hashing" check hashed
the /var spelling, never memoised, and read "".
Injected: age(src) and a hash of realDir(skillDir("pdf")) before the
chmod reproduces the exact red on every run. The test now ages and
hashes the library skill first (the loaded case, always), rewrites
blocked.txt's time as it makes it unreadable, and checks hashing fails
at realDir, the path relink reads. Without the time rewrite it goes red
at the precondition ("the unreadable file didn't prevent hashing"); with
it, -count=3 passes. No product code changes.
Run: go test ./internal/library -count=3 -run TestSkillRelinkKeepsUnreadableCopy
ok; go test -timeout 45m ./internal/library ok (1172s, load ~240);
gofmt -l clean; go vet ./internal/library darwin/linux/windows ok.
Full suite: set -o pipefail; go test -timeout 45m ./... at 63be47717
plus the min bump, sandbox HOME, load avg 240-297 from other sessions'
test binaries: 63 packages ok, internal/provider (changed) 1210s; red
were internal/library (TestSkillRelinkKeepsUnreadableCopy, fixed in
the library commit, package ok after in 1172s) and internal/agent and
internal/gateway, which hit the 45m timeout in that run and in two
reruns each, with no "--- FAIL" in any of them; each timeout's stack
shows one test a few seconds in (TestWSLTargets, TestReasonixEffortAndSync,
TestCodexSwitchOnlyKeepsCodexOffTheGateway; TestLoopGuardLeavesOrdinary-
RepliesAlone, TestReplyNamesMember), so slow under that load, not hung.
One gateway rerun didn't build: a shared GOCACHE entry was deleted
under it; the next used its own cache. Neither package imports the
changed test file; gateway imports provider for the string only. The
tag waits for CI's attempt-1 Test run.