chore(beads): persist interactions log

This commit is contained in:
sam committed 2026-08-19 02:08:26 +10:00
1 parent d0d06e0632
commit fac8a0f3f2
1 file changed
+9
+9
View File
@@ -11,3 +11,12 @@
{"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"}}
{"id":"int-c19649ae61fe5c71fa1a64258dbc98c9","kind":"field_change","created_at":"2026-08-18T15:51:15.311055291Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942495-16-0d6ea565","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Shipped in archied v1.9.10 (commit 95290d1, feat(update): stream live progress and roll back failed updates automatically) -- live progress reporting, version summary, and automatic rollback on failed updates all landed and released."}}
{"id":"int-410272072a4bf54ef8e44517f197a133","kind":"field_change","created_at":"2026-08-18T15:51:15.930052316Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942345-10-50a04c62","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Orphaned children of epic archie-core-1786748942324-9-509793a0, which was closed as pivoted-away: 'value-entry web form duplicates the Bitwarden app for bws and adds a secret-accepting web surface for no gain... Replaced by fresh-resolving sops/vault/age engines... value-entry UX deferred until a writable engine without a mobile path exists.' The replacement work already shipped (secret engine plugins for sops/vault/age). These 6 tasks were never closed alongside their parent epic."}}
{"id":"int-ded36d77c1a5f4fd478271753fad1271","kind":"field_change","created_at":"2026-08-18T15:51:15.934011477Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942364-11-47ec9e60","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Orphaned children of epic archie-core-1786748942324-9-509793a0, which was closed as pivoted-away: 'value-entry web form duplicates the Bitwarden app for bws and adds a secret-accepting web surface for no gain... Replaced by fresh-resolving sops/vault/age engines... value-entry UX deferred until a writable engine without a mobile path exists.' The replacement work already shipped (secret engine plugins for sops/vault/age). These 6 tasks were never closed alongside their parent epic."}}
{"id":"int-d139f0f1a14ab44a6bd0e87bb8e60865","kind":"field_change","created_at":"2026-08-18T15:51:15.937866765Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942391-12-7988cdca","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Orphaned children of epic archie-core-1786748942324-9-509793a0, which was closed as pivoted-away: 'value-entry web form duplicates the Bitwarden app for bws and adds a secret-accepting web surface for no gain... Replaced by fresh-resolving sops/vault/age engines... value-entry UX deferred until a writable engine without a mobile path exists.' The replacement work already shipped (secret engine plugins for sops/vault/age). These 6 tasks were never closed alongside their parent epic."}}
{"id":"int-61dd3ff4049e450b1f52f68a8fe1b27e","kind":"field_change","created_at":"2026-08-18T15:51:15.941687801Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942414-13-14bd990e","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Orphaned children of epic archie-core-1786748942324-9-509793a0, which was closed as pivoted-away: 'value-entry web form duplicates the Bitwarden app for bws and adds a secret-accepting web surface for no gain... Replaced by fresh-resolving sops/vault/age engines... value-entry UX deferred until a writable engine without a mobile path exists.' The replacement work already shipped (secret engine plugins for sops/vault/age). These 6 tasks were never closed alongside their parent epic."}}
{"id":"int-fc6126a227bf87610456c9bc282d4634","kind":"field_change","created_at":"2026-08-18T15:51:15.945433325Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942438-14-abe5ddd0","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Orphaned children of epic archie-core-1786748942324-9-509793a0, which was closed as pivoted-away: 'value-entry web form duplicates the Bitwarden app for bws and adds a secret-accepting web surface for no gain... Replaced by fresh-resolving sops/vault/age engines... value-entry UX deferred until a writable engine without a mobile path exists.' The replacement work already shipped (secret engine plugins for sops/vault/age). These 6 tasks were never closed alongside their parent epic."}}
{"id":"int-b6e06d7e49ee35af64ad21b7b99a7f67","kind":"field_change","created_at":"2026-08-18T15:51:15.949055267Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942463-15-78823975","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Orphaned children of epic archie-core-1786748942324-9-509793a0, which was closed as pivoted-away: 'value-entry web form duplicates the Bitwarden app for bws and adds a secret-accepting web surface for no gain... Replaced by fresh-resolving sops/vault/age engines... value-entry UX deferred until a writable engine without a mobile path exists.' The replacement work already shipped (secret engine plugins for sops/vault/age). These 6 tasks were never closed alongside their parent epic."}}
{"id":"int-726497f741b07352a4f67d3ba8be8c5b","kind":"field_change","created_at":"2026-08-18T15:53:29.554375007Z","actor":"Sam Catlow","issue_id":"archie-core-1786637490011-9-d5e4f9a4","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Superseded: confirmed by Sam that there is no longer a separate /provider command -- grepped the codebase and no '/provider' command exists in internal/gateway or internal/channels/telegram. /model now handles provider scoping directly."}}
{"id":"int-7096095a0791399004afa1648103b4d4","kind":"field_change","created_at":"2026-08-18T16:05:12.750527752Z","actor":"Sam Catlow","issue_id":"archie-core-1786637490923-43-d4bb914b","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Fixed: configuredMCPProvider (cmd/archied/main.go) now sets NPM_CONFIG_CACHE under the daemon's persistent work_dir and NPM_CONFIG_PREFER_OFFLINE=true for any npx-launched MCP server (matched by base name so an absolute-path npx still qualifies), so a daemon restart reuses a warm npm cache instead of re-resolving/re-downloading from the registry every time -- the amplifier behind the 2026-07-30 crash loop. Guards an empty workDir explicitly (unreachable in production since config defaulting runs first, but matches memoryProvider's existing precedent for the same defense). Adversarially reviewed by a fresh subagent; findings addressed: narrowed an overclaim that this also covers a package's own separate downloads (e.g. Playwright/Puppeteer fetching browser binaries via CDN, which NPM_CONFIG_CACHE does not touch), and closed the absolute-path-command gap. Full task check clean. The identical, arguably-worse instance in internal/app/agentworker/mcp_providers.go (every per-task ephemeral container, not just daemon restarts) needs real new infra -- a persistent Docker volume bind-mounted into task containers, which doesn't exist yet -- so it's filed separately as archie-core-qk8m rather than folded into this scoped fix."}}