huginn-sources: every run takes the lock (chat-off included) #68
Loading…
Reference in a new issue
No description provided.
Delete branch "gamecult-chat/ingest-lock-always"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes follow-up
gamecult-chat:follow_up:chat-ingest-lock-less-chat-off-run.A run with no chat flags took no lock yet retires chat and refreshes the forge, writing cursors whole, so it could overwrite a tombstone from a concurrent
chat-purge. Now--lock-fileis required for every run (and forchat-purge, as before);lock_fileis a plainPathBufandlock_ifis deleted, so the lock-less path no longer exists.Breaking for callers: any unit or script that runs
huginn-sourceswithout--lock-filenow exits 2. No unit lives in this repo; the deployed unit must pass the same--lock-fileas the purge command (the cut's handoff list covers unit lines).Tests: flag-parse tests updated (chat-off with lock parses; chat-off without lock is refused);
a_held_lock_exits_3_through_execute_for_both_modesnow also asserts a chat-off run returnsStop::Locked. Mutation (take the lock only when chat is configured) makes that test fail.cargo test -p huginn-daemon --lib --bin huginn-sources: 297 lib + 6 bin passed. Docs:docs/chat-retrieval-map.mdstatus paragraph.Not covered: the Synapse
/messagesdir=f semantics live readback (separate item in the follow-up).🤖 Generated with Claude Code