Follow-up from v0.4.1 review.
Problem
logToolCall in packages/core/src/llm/audit.js writes vault files directly. If the process crashes mid-write, the audit log could be corrupted.
Goal
Use the same atomic write pattern as vault.write: temp + rename.
Acceptance Criteria
Follow-up from v0.4.1 review.
Problem
logToolCallin packages/core/src/llm/audit.js writes vault files directly. If the process crashes mid-write, the audit log could be corrupted.Goal
Use the same atomic write pattern as vault.write: temp + rename.
Acceptance Criteria