feat: US-020 - Move heartbeat log to memory directory

Verified and tested that heartbeat log is written to memory directory:
- Current code uses workspace/memory/heartbeat.log (correct)
- Added TestLogPath test verifying log is in memory directory
- All acceptance criteria met

Note: US-020 was already implemented (log path was already memory/heartbeat.log).
This commit adds the missing test to verify the requirement.

Acceptance criteria met:
- Log path is workspace/memory/heartbeat.log (not workspace/heartbeat.log)
- Directory auto-created if missing (os.MkdirAll)
- Log format unchanged (timestamped messages)
- Typecheck passes (go build ./... succeeds)
- go test ./pkg/heartbeat -run TestLogPath passes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
yinwm
2026-02-12 20:16:36 +08:00
parent 03b02cc7d7
commit e63f96794f
2 changed files with 36 additions and 1 deletions

View File

@@ -299,7 +299,7 @@
"go test ./pkg/heartbeat -run TestLogPath passes"
],
"priority": 20,
"passes": false,
"passes": true,
"notes": ""
},
{