diff --git a/.beads/interactions.jsonl b/.beads/interactions.jsonl index 310c094c1..e79630ccb 100644 --- a/.beads/interactions.jsonl +++ b/.beads/interactions.jsonl @@ -7,3 +7,7 @@ {"id":"int-e941581f53a51660e0f0a5ffceb7c826","kind":"field_change","created_at":"2026-08-17T14:33:52.146335715Z","actor":"Sam Catlow","issue_id":"archie-core-q5w4","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Shipped age engine plugin in examples/secret-engines/age.go (commit 24faf53): CLI-based, AGE_FILE/AGE_IDENTITY, key=value lines."}} {"id":"int-919adde47b5f87215812a10a78993f09","kind":"field_change","created_at":"2026-08-17T14:34:47.896559702Z","actor":"Sam Catlow","issue_id":"archie-core-1786637499872-384-7952eb47","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Confirmed fixed by Sam; no longer reproducible"}} {"id":"int-7850f0a34c140822fcc3881f5175c0a3","kind":"field_change","created_at":"2026-08-17T14:37:45.280994322Z","actor":"Sam Catlow","issue_id":"archie-core-1786749700580-5-e3878224","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Already fixed by e7d3925 (2026-07-29, predates this bead). Release() force-kills the container via context.WithoutCancel + ContainerStop/ContainerRemove(Force:true) regardless of cancellation; in-process path checks ctx.Err() between workflow stages. The stage_loop.go path the bead's writeup blames is dead code -- nothing publishes to archie.agent.* subjects in the current architecture. Verified via fresh read-only investigation, file:line citations on both passes."}} +{"id":"int-7ba0339215268f38be520cb017075b23","kind":"field_change","created_at":"2026-08-17T22:38:44.985412822Z","actor":"Sam Catlow","issue_id":"archie-core-1786637490248-18-17079a75","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Already fixed by 170fe02 (2026-08-05), predating this bead's 2026-08-08 runtime inspection -- the inspected deployment was serving a stale build. el() in ui/src/base/dom.js was treating a falsy scalar first child (0, '', false) as a missing attrs object and dropping it, so any stat tile whose value was 0 (Working now, Needs you, Tokens used before any usage) rendered a blank headline. Fixed with dedicated regression coverage in ui/test/dom.test.js (el renders a falsy numeric value instead of dropping it, statTile renders a zero headline value, etc.) -- all 9 tests pass. Verified ui/dist rebuilds byte-identical to the committed tree, so the fix ships in the current binary. The token-outlook-specific root cause (missing agent_finish event rows) is tracked separately in archie-core-1786748942590-20-c21c728b per this bead's own notes and is out of scope here."}} +{"id":"int-3d9bd8b487035a359ea21d03b1e2d160","kind":"field_change","created_at":"2026-08-17T22:38:57.071131764Z","actor":"Sam Catlow","issue_id":"archie-core-1786749700580-5-e3878224","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Root cause found after Sam confirmed live testing still showed the task's in-flight tool calls/generation continuing tens of seconds to ~2 minutes after /stop reported success. internal/container/pool.go Release() always slept the configured GracePeriod and always used Docker's default ~10s graceful SIGTERM-then-SIGKILL timeout, even when the release was happening because the task's context had just been cancelled by /stop -- so a cancelled task's container (and the in-flight work inside it) could sit doing nothing for up to GracePeriod+~10s before actually dying. Fixed with a new releaseDecision(ctx, grace) helper: a cancelled ctx now skips the grace sleep entirely and requests an immediate SIGKILL (ContainerStopOptions.Timeout=0) instead of a graceful wait; a live ctx (normal completion) keeps the original behaviour byte-for-byte. Red-then-green with 3 new unit tests (internal/container/pool_test.go), task check clean, adversarially reviewed by a fresh subagent with zero blocking findings -- context-chain trace, Docker Timeout=0 semantics, and struct-equivalence for the unchanged path were all independently verified against the moby client source."}} +{"id":"int-c4d48841525c9702ecbb52e8c01af769","kind":"field_change","created_at":"2026-08-17T22:40:01.727639644Z","actor":"Sam Catlow","issue_id":"archie-core-1786749700606-6-bf6aa32d","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Confirmed root cause: agent containers run as root (no USER in Dockerfile, no userns-remap anywhere in docker-compose.yml/internal/container/pool.go), so a commit the agent writes to the bind-mounted worktree lands owned by UID 0 on the host. The daemon later reads those same loose objects to push, running as its own non-root host user -- 'openat objects/../..: permission denied'. Fixed: containerEnv() now passes the daemon's own os.Getuid()/os.Getgid() as WORKTREE_UID/WORKTREE_GID; hybridTrees.Push (the single choke point before the push RPC) chowns the worktree back to that owner first. Adversarial review (fresh subagent) found one real bug in the first pass -- chownTree used os.Chown, which follows symlinks and fails on a legitimately-tracked-but-dangling symlink, which would have aborted a push that would otherwise have succeeded (worse than the original bug). Fixed with os.Lchown plus a regression test proving it against a dangling symlink. Full task check clean; all other review findings (full-tree walk cost, minor test-hygiene notes) were judged non-blocking by the reviewer."}} +{"id":"int-798164dc314631bdfc1d20b4684b59f8","kind":"field_change","created_at":"2026-08-17T22:42:58.869292319Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942495-16-0d6ea565","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}