a3b9eded5a5f164a04a5e480c19568314cc9559c
handleTopic "off" copied the thread's active session onto the flat key via setActive(getActive(...)). With nothing cached for that thread it copied the empty string, and resolve treats map presence as authoritative -- so it returned "" from then on, permanently, since cacheActive also returned the empty existing value. Every later message in that chat persisted under session "", history was shared with any other poisoned chat, and the turn-lane key became "" so /stop in one chat cancelled a turn in another. Reachable as a first message on the webhook and email channels, which call Route directly without resolving a session first. setActive now rejects an empty session ID, so no caller can poison the map whatever it computes, and resolve and cacheActive treat an empty cached value as a miss so an existing entry repairs itself. The get-then-set was also two critical sections, silently clobbering a concurrent /resume or /branch with the value read before the switch. flattenTopic does it in one. Refs archie-core-jex
Description
Archie connects events from your systems to agents that can investigate, reason, and act.
Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
132 MiB
0 Stars
1 Watchers
0 Forks
Releases
11
Archie v1.62.0
Latest
Languages
Go
76.7%
Vue
13.1%
TypeScript
7.8%
JavaScript
1.2%
Shell
0.6%
Other
0.4%