gunk-dev/the-valley
the-valley:bd-7f8fc7bbugopen

attest's timing log follows a symlink at its path

State
free to start
Created
2026-10-22 by contributor

Body

Raised by klaus _pre-review on every the-valley change since zvqu landed (2026-10-22): attest/timing.go opens $XDG_STATE_HOME/valley/timings.jsonl with O_APPEND|O_CREATE (around line 117 to 119) and follows a symlink planted at that path. The log lives in the user's own state directory, so the exposure is small (whoever can plant the link can already write as the user), but the repeated MEDIUM costs every agent a paragraph. Open with O_NOFOLLOW (and refuse a non-regular file), add a test, and do the same for the integrator's timing log if it shares the code.

Comments

No comments.