Files
archie/.beads/interactions.jsonl
T
sam dbb6550ab3 fix(worktree): bind publication to dispatch grants
Worktree RPC used to accept repository coordinates from the sandbox. It now accepts only an opaque per-dispatch grant, and the daemon derives the repository path and branch from grant-owned state.

Repository worktree paths also move from an ambiguous flattened key to encoded owner/repo components. Origin-matched legacy clones migrate safely; mismatched legacy paths are preserved.
2026-08-22 22:06:54 +10:00

43 lines
32 KiB
JSON

{"id":"int-ca573b1f243d5e820077aadb21af8595","kind":"field_change","created_at":"2026-08-15T12:27:33.967613847Z","actor":"Sam Catlow","issue_id":"archie-core-1786637491053-48-fe78cd53","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Verified against current main: Route/RouteStream reject unrecognized slash commands before any LLM call (gateway.go:299-318, 449-462), /start is deterministic in both gateway and Telegram handlers, and full test matrix from acceptance criteria exists (gateway_test.go:106-133, gateway_stream_test.go:54-88, telegram_test.go:135-157). Confirmed by fresh code-tracing pass, not just prior user experience."}}
{"id":"int-73ca4d209481e52e20c00c128fc6a3ca","kind":"field_change","created_at":"2026-08-15T12:41:34.047451864Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942519-17-5999d55b","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Closed"}}
{"id":"int-2193ae15ea3e5922294ec78dffe4958a","kind":"field_change","created_at":"2026-08-15T13:36:38.960683238Z","actor":"Sam Catlow","issue_id":"archie-core-1786637489985-8-13b9d8a8","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Documented the memory engine contract, owning manager, lifecycle/failure isolation, and third-party trust boundary in ARCHITECTURE.md; focused memory tests pass."}}
{"id":"int-b91f90f48c3115e8d29a3f60e88408e5","kind":"field_change","created_at":"2026-08-17T14:22:09.796781498Z","actor":"Sam Catlow","issue_id":"archie-core-1786748942324-9-509793a0","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Pivoted after design review: value-entry web form duplicates the Bitwarden app for bws and adds a secret-accepting web surface for no gain. The real gap was engine refresh (bws caches once per process). Replaced by fresh-resolving sops/vault/age engines (beads #409/#411/age). Remote secret-input contract kept as design doc in #505; value-entry UX deferred until a writable engine without a mobile path exists."}}
{"id":"int-aa88000af2cd016d26841a6fa4abf2c4","kind":"field_change","created_at":"2026-08-17T14:33:51.558458038Z","actor":"Sam Catlow","issue_id":"archie-core-1786637500571-409-cdffe32a","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Shipped sops engine plugin in examples/secret-engines/sops.go (commit 24faf53): CLI-based, SOPS_FILE env, fresh resolve per call."}}
{"id":"int-6b8ec518ed64d18eb751748c5f7f5f59","kind":"field_change","created_at":"2026-08-17T14:33:52.021744933Z","actor":"Sam Catlow","issue_id":"archie-core-1786637500634-411-e265a95c","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Shipped vault/openbao engine plugin in examples/secret-engines/vault.go (commit 24faf53): CLI-based, VAULT_ADDR/VAULT_TOKEN, key 'path/field' or VAULT_SECRET_PATH prefix."}}
{"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"}}
{"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."}}
{"id":"int-0379f6f196262497f6642169c943afd6","kind":"field_change","created_at":"2026-08-20T12:55:17.903920351Z","actor":"Sam Catlow","issue_id":"archie-core-3jag","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Fixed in fix/persona-overconfidence (fba80e3): reworded core rule 1 and added rules 8/9 to the chat agent system prompt enforcing this-turn verification before labelling claims verified/confirmed."}}
{"id":"int-0e6d7b43d42215a9a41b1736f4b049d7","kind":"field_change","created_at":"2026-08-20T12:57:02.748858938Z","actor":"Sam Catlow","issue_id":"archie-core-1786637501009-424-5b8332dd","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
{"id":"int-dec9f9d1307c51147ea510842ef80d1a","kind":"field_change","created_at":"2026-08-20T13:02:18.330112565Z","actor":"Sam Catlow","issue_id":"archie-core-1786637501009-424-5b8332dd","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Fixed in fix/label-dispatch-empty-label (31efdcf): pollIssuesWithConfig/pollEitherWithConfig now refuse the label poll when cfg.Label is empty, and validateDispatch rejects the misconfiguration at load time. Adversarially reviewed; one weak test strengthened to actually verify assignee matches survive."}}
{"id":"int-c00194f10222de956f7ad8987d09a9fb","kind":"field_change","created_at":"2026-08-20T13:24:15.962276702Z","actor":"Sam Catlow","issue_id":"archie-core-1786637500602-410-7a461d4d","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Already delivered as a compiled-in engine, not a plugin. internal/secret/bws.go implements secret.Engine and shells out to the bws CLI via os/exec (commit 3ae59c9, 2026-07-31); NewRegistry/DefaultRegistry register it under the name \"bws\" alongside \"env\". It is documented in config.example.toml and ARCHITECTURE.md:208, and config.example.toml:64 uses it as the worked example. Shipping a second yaegi implementation under examples/secret-engines/ would register the same name \"bws\", and Registry.Register is last-write-wins over LoadDir, so the plugin would silently shadow the compiled-in engine -- two authoritative paths for one behaviour, which the architecture contract prohibits. Reopen only if the intent is to REPLACE the compiled-in engine with a plugin (which would also need bws removed from NewRegistry and the docs updated)."}}
{"id":"int-907fab8ee9218dfc52e1b312ccdde513","kind":"field_change","created_at":"2026-08-21T15:00:54.642569071Z","actor":"Sam Catlow","issue_id":"archie-core-7d5u.1","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Decided and documented in docs/prds/event-sources-and-reactions.md, satisfying this bead's own acceptance criterion (a one-page decision naming the packages it touches and stating whether plugins-and-extensions.md needs amending -- it does not).\n\nAnswers: (1) in-process typed families, no out-of-process dispatch -- archie has no existing extension-process boundary and neither epic's stated payoff needs one. (2) Reaction delivery reuses internal/eventbus's Publisher/Consumer contract (PublishUnique + Ack/Nak already provide at-least-once with dedup), but NOT the existing nats.Client as-is: it hardcodes Retention: jetstream.WorkQueuePolicy (client.go:65) for the competing-consumer ARCHIE_TASKS stream, which silently starves a second consumer on overlapping subjects per CLAUDE.md's documented trap -- reactions need fan-out, so retention needs to become a Config field and reactions get their own stream. (3) Reactions in these two epics are producer-only (cheap wake via curator's WakeOnPrimaryInput pattern, or produce real work via the existing pollNATS->publishTask path) -- no veto/mutate-in-flight-work capability is being built here; that belongs to archie-core-h019 if it's ever needed. (4) No single generic Source interface -- forge intake reuses workintake.TaskEnvelope unchanged (its IdempotencyKey is already keyed on owner/repo/number, not delivery source, so a webhook-sourced envelope naturally dedups against a poll-discovered one for free); chat webhook stays internal/channels/webhook, unmodified; what's genuinely new and shared is a small cross-cutting package for HMAC/rate-limit/approval/capture mechanics, owned by neither domain."}}
{"id":"int-15527c6640daf7df72a4876d8e82864c","kind":"field_change","created_at":"2026-08-21T15:26:01.152938969Z","actor":"Sam Catlow","issue_id":"archie-core-7d5u.3","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Built internal/webhookguard: VerifyHMAC (behavior-preserving extraction from internal/channels/webhook, which now calls it instead of keeping a private copy), RateLimiter (per-source token bucket, independent budgets, observable rejection), RedactPayload (key-name heuristic matching gateway/stream.go's marker list, but -- deliberately unlike that function -- redacts only values under sensitive keys and leaves ordinary strings/numbers/bools untouched, since a captured payload exists to be inspected for field mapping in t2db.3).\n\nAll four acceptance criteria met and independently confirmed by a fresh adversarial review with zero surviving findings: HMAC extraction is byte-for-byte behavior-preserving (diffed against the deleted function); rate limiter hand-traced correct on two scenarios plus race-clean under -race; redaction's divergence from gateway/stream.go verified by reading both functions side by side; zero non-stdlib imports confirmed by grep. The reviewer also mutation-tested both the redaction and rate-limit guards (disabled each in turn) and confirmed the test suite catches both, then reverted and re-verified go test -race and git status were clean.\n\ntask check exit 0, golangci-lint 0 issues (one forcetypeassert finding was caught and fixed properly during build, not suppressed), gofumpt clean. All 10 pre-existing internal/channels/webhook tests pass unmodified; the one now-redundant unit test was removed with a comment pointing to where its coverage relocated."}}
{"id":"int-ccb87c91023dbaa6718ae2f7564d38cc","kind":"field_change","created_at":"2026-08-21T18:51:09.120109805Z","actor":"Sam Catlow","issue_id":"archie-core-t2db.1","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Built capture storage + endpoint: docs/prds/event-capture-storage.md decides SQLite over NATS JetStream (NATS not unconditionally available pre-7d5u.2, capture's single-writer/single-reader access pattern doesn't need JetStream fan-out/replay). internal/store/captures.go adds captured_events table + InsertCapture (prune-on-write by retention age and row count) + ListCaptures. internal/webui/api_capture.go adds POST /webhooks/capture/{source}, unauthenticated (bypasses requireToken like /healthz), applying webhookguard redaction before persisting and a per-remote-address rate limit + hard body-size cap before that. New [capture] config section with documented defaults. Adversarial self-review (the usual fresh subagent pass hit a session API limit mid-run, so this was a manual re-read with the same checklist) caught and fixed three real bugs before landing: (1) body-size cap silently unenforced when unset -- added a hardcoded fallback floor since it's the only bound on a SINGLE payload's size; (2) rate limiter was keyed by the request's own unregistered source path segment, violating webhookguard.RateLimiter's documented bounded-key-space assumption -- an attacker could rotate the segment to bypass the limit and grow the bucket map unbounded; rekeyed to remote address; (3) retention prune used time.RFC3339Nano, whose variable-width trimmed fractional seconds break lexicographic string comparison in `WHERE received_at < ?` (an exact-second timestamp can sort after a later fractional one) -- switched to fixed-width RFC3339. All three have regression tests verified to fail against the pre-fix code. task check clean, golangci-lint zero new findings repo-wide."}}
{"id":"int-772ca35948f33ac9ada8096eceeb7144","kind":"field_change","created_at":"2026-08-21T19:17:03.32765544Z","actor":"Sam Catlow","issue_id":"archie-core-t2db.2","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"GET /api/captures (token-gated, memory/skills-style enabled:false-not-an-error when Captures is nil) plus a new /captures dashboard page: recent captures newest-first, expandable per-row to explore redacted payload/headers pretty-printed. Live updates reuse the existing operator-activity event pipeline (Server.emit -> Events.Publish -> the /events SSE stream) as an invalidation signal, refetching the list rather than merging partial event data. Every row shows an 'Unbound' pill today since no binding model exists yet (t2db.4 wires the real distinction). Frontend follows the tasks/task-row.js precedent: row rendering split into capture-row.js for unit testing without the page's fetch/SSE wiring. Adversarial review (fresh subagent, full pass) found one real severe bug before merge: the live SSE event was embedding the full (up to 256KiB) redacted body/headers into the events table, which has no retention/row-count prune anywhere in the codebase -- silently defeating t2db.1's disk-bound guarantee for an unauthenticated, only-rate-limited endpoint. Fixed: the live event now carries just {id, source} as a pure invalidation signal; the dashboard refetches the authoritative list. Two smaller findings (untested Data[\"id\"] field the frontend's dedup depended on; a received_at precision mismatch between live and REST-fetched copies) were resolved as a side effect of that fix. task check clean, golangci-lint zero new findings."}}
{"id":"int-ca26e9b428d406303510eea34c2c8d05","kind":"field_change","created_at":"2026-08-21T19:18:55.467881536Z","actor":"Sam Catlow","issue_id":"archie-core-7d5u.2","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Embedded NATS wired into production startup: mode=embedded/external/off resolves from url, daemon owns the in-process server lifecycle, Retention parameterized for a future fan-out reaction stream. task check + lint clean; adversarial review zero surviving findings. Committed 2c7db34."}}
{"id":"int-484f5673b3d49ea1731bec29e2a84074","kind":"field_change","created_at":"2026-08-22T09:01:53.455811598Z","actor":"Sam Catlow","issue_id":"archie-core-t2db.3","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Payload field mapping: domain (internal/domain/mapping), SQLite store (internal/store/mappings.go), HTTP API (internal/webui/api_mapping.go), and dashboard editor (ui/src/mappings) shipped. PRD at docs/prds/payload-field-mapping.md. task check green; adversarial review found 4 issues (stale preview after rename, duplicate field names, hardcoded capture scan window, malformed path silently reinterpreted), all fixed and re-verified."}}
{"id":"int-0606ca827b33f964b6a5de2f5f4a1966","kind":"field_change","created_at":"2026-08-22T09:21:16.136296742Z","actor":"Sam Catlow","issue_id":"archie-core-7d5u.4","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"GitHub webhook receiver shipped: [forge] intake=poll|webhook|both, shared MatchesDispatch predicate (case-insensitive assignee, case-sensitive label) consumed by poller and receiver, HMAC-verified, publishes via shared PublishTask. Adversarial self-review found and fixed 3 real defects (boot-crashing secret-resolve hard-fail under intake=both, assignee case-sensitivity mismatch vs GitHub's own filter, silent multi-identity misdispatch) before landing. task check + lint clean. Committed 41e43dc."}}
{"id":"int-fe2b5654477a99738b27c129267c3636","kind":"field_change","created_at":"2026-08-22T09:45:14.980953288Z","actor":"Sam Catlow","issue_id":"archie-core-h019.1","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"One-page decision written at docs/prds/adversarial-self-review.md: reviewer runs in a second workspace (container or in-process) pointed at a .git-stripped snapshot of the reviewed commit, never the implementer's worktree; findings contract is workflow.ReviewFinding, owned by internal/domain/workflow, reported via a structured capture tool; a surviving error-level finding sets StatusParked (not WaitingHuman -- epic wording named two different states, this resolves which); model/effort reuse the existing Models[role] map and per-stage budget override, gated by a new opt-in Repo.ReviewEnabled so h019.4 doesn't gate every repo on an uncalibrated reviewer before h019.5 lands."}}
{"id":"int-0f63389a86a8600c181ac3a924308b2d","kind":"field_change","created_at":"2026-08-22T09:45:16.096384559Z","actor":"Sam Catlow","issue_id":"archie-core-7d5u.5","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Investigated first: the dedup mechanism (TaskEnvelope.IdempotencyKey + PublishUnique + JetStream Nats-Msg-Id dedup) and the shared dispatch predicate were already fully wired by 7d5u.4 -- no double-dispatch code change was needed. Closed the two real gaps: (1) internal/infrastructure/eventbus/nats/dedup_test.go is a new regression test proving PublishUnique actually suppresses a duplicate publish on the same WorkQueuePolicy stream ARCHIE_TASKS uses in production; (2) internal/forge/webhook/receiver.go gained Status()/GET support tracking authenticated deliveries vs successful publishes separately, so a wedged or non-delivering receiver is observable rather than indistinguishable from an idle repo. AC's poll/webhook parity clause (disabling webhook still polls) is satisfied architecturally with no code change possible to violate it -- verified Cycle()/Run() never reference cfg.Forge.Intake anywhere in internal/daemon; only setupForgeWebhook in cmd/archied/bootstrap.go gates the webhook HTTP server. Adversarial review pass (fresh subagent, -race) found zero blocking issues; closed two minor coverage gaps it flagged."}}
{"id":"int-3e1f713978e40f4b6520cc291177cf75","kind":"field_change","created_at":"2026-08-22T10:27:03.528690276Z","actor":"Sam Catlow","issue_id":"archie-core-1786637492559-106-5ea2315d","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Implemented code-fence-aware Telegram message splitting with bounded continuation handling and regression coverage"}}
{"id":"int-ad830c0a3520aa4ce3b8cfa312e025b1","kind":"field_change","created_at":"2026-08-22T10:43:32.929553169Z","actor":"Sam Catlow","issue_id":"archie-core-ippu","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Fixed: TurnRecord now persists tool-call activity alongside ResponseText; the completed-duplicate replay path replays it via stream.ToolCall before the text. Prior-reply fallback documented as deliberately text-only (crash race with no persisted tool record). Commit 86a9731, task check clean, adversarial review clean (0 findings)."}}
{"id":"int-d9f51ffd469b2da49ca85951b83749f4","kind":"field_change","created_at":"2026-08-22T10:51:28.14819806Z","actor":"Sam Catlow","issue_id":"archie-core-1786637493205-131-a3dd2b53","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Closed"}}
{"id":"int-ac3e88053eb75fae03ab1f8365844175","kind":"field_change","created_at":"2026-08-22T10:56:58.663854981Z","actor":"Sam Catlow","issue_id":"archie-core-j8b4","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented persistent session transcript, cross-session memory, and staged plugin storage"}}
{"id":"int-d145e6fe5da65f8df6e433afcf8b02e8","kind":"field_change","created_at":"2026-08-22T11:13:23.297308578Z","actor":"Sam Catlow","issue_id":"archie-core-qk8m","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Fixed: MCP npm servers for per-task containers now reuse a persistent npm cache. Added mcp.NpmCacheEnv (shared with the daemon-side fix), an always-on archie-cache-mcp-npm Docker volume mounted at /data/cache/mcp-npm on every task container regardless of ecosystem, and wired it into internal/app/agentworker/mcp_providers.go's stdio transport construction. Adversarial review found zero surviving findings."}}
{"id":"int-c1baa90874e9de48952955e52a5760d2","kind":"field_change","created_at":"2026-08-22T11:47:02.381816994Z","actor":"Sam Catlow","issue_id":"archie-core-1ysw.1","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented per-dispatch publication grants, removed sandbox-selected prepare/path authority, made repository worktree keys collision-free, and added fail-closed legacy migration/cleanup coverage."}}
{"id":"int-3eca62d9ff92647ebeb091e5afe7e80a","kind":"field_change","created_at":"2026-08-22T11:47:02.632518654Z","actor":"Sam Catlow","issue_id":"archie-core-1ysw.2","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented per-dispatch publication grants, removed sandbox-selected prepare/path authority, made repository worktree keys collision-free, and added fail-closed legacy migration/cleanup coverage."}}