bcf7622a8cbab188e32d416e8988ad9434d66466
A container run only restored ownership of the bind-mounted worktree on the CommitAll/Push success path (archie-core#520). The agent runs as root inside the container, so every other way a run can end -- a gate failure that parks the task, a stage error, an early return -- left the worktree owned by UID 0 on the host. The daemon is the process that later cleans and resets that directory as its own non-root user, and it cannot even unlink inside a root-owned directory, so the next attempt failed before it could start no matter what the worktree refresh did. runTask now defers the same reconcileOwnership the commit and push paths already call, so it runs at every exit. The retry recoveries in worktree package cannot fix this from the daemon side: a non-root process cannot chown, and removing the directory needs write access to it. Observed through a supplementary group -- a non-root process may move a file it owns into a group it is a member of -- so the test proves the chown ran without needing root. Residual, filed as archie-core-zcg8: a container that is SIGKILLed never runs this defer.
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.8%
Vue
13.1%
TypeScript
7.8%
JavaScript
1.2%
Shell
0.6%
Other
0.4%