dad9389530fb1bc3cc7ece4e6e2aec067092ce03
configured_task_db_path() read the top-level db_path and handed that literal file to the watchdog as ARCHIE_TASK_DB_PATH (scripts/archie-update-install). The daemon's task store is not that file: taskDBPath() in internal/app/archied/main.go derives `<db_path>-tasks.sqlite`, and the configured path is commonly a zero-byte placeholder beside it. The updater therefore backed up an empty file, and a rollback would have restored that empty file over the real database and deleted its -wal/-shm -- destroying the task store the backup exists to protect. That awk also matched db_path in any section. [indexing] owns its own database, so a config listing it before the top-level key handed the watchdog an unrelated database as ARCHIE_TASK_DB_PATH and backed that up instead. Resolve the top-level key only, append the sibling suffix the daemon uses, and refuse the update when the backup cannot be taken. The backup is the only route back from a forward schema migration, so an update that cannot take one must not start; it now runs as pre-flight, ahead of the adapter refresh, so a refusal changes nothing on the host. The tests drive the real script with a config file the harness controls; all three fail against the previous adapter.
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
133 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%