diff --git a/.beads/interactions.jsonl b/.beads/interactions.jsonl index 1a5aad3ae..512d641d6 100644 --- a/.beads/interactions.jsonl +++ b/.beads/interactions.jsonl @@ -273,3 +273,4 @@ {"id":"int-deb638666436fbb5ce793c5baf8160bf","kind":"field_change","created_at":"2026-08-05T00:40:48.245647124Z","actor":"Sam Catlow","issue_id":"archie-core-3cf.12","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Web update installation now requires and revalidates the displayed snapshot before installing; shared releaseupdate.SameAvailable comparison is used by Web and Telegram. Added stale/unchanged API tests and Playwright request-body verification. Full task check passes."}} {"id":"int-0aa90a55daf825cb879d1f9e5994d1e3","kind":"field_change","created_at":"2026-08-05T00:42:41.164725606Z","actor":"Sam Catlow","issue_id":"archie-core-3cf.13","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Added a contextual Web Chat session-actions menu for retry, undo, rename, branch, and compression preview. Actions dispatch shared gateway commands and refresh the active session/history. Playwright MCP verified the menu and /undo dispatch; npm tests/build and full task check pass."}} {"id":"int-372ffda198062c9e0fbe7227f944455e","kind":"field_change","created_at":"2026-08-05T00:44:40.646054541Z","actor":"Sam Catlow","issue_id":"archie-core-3cf.14","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Aligned command discovery without weakening the intentional dangerous-command hiding rule: /start is now in the shared gateway catalog and Telegram menu; Web slash completion inherits it. Focused and full task-check suites pass."}} +{"id":"int-5f9f3d143801b3cff4f9b81e6f4183dd","kind":"field_change","created_at":"2026-08-05T00:49:48.079957662Z","actor":"Sam Catlow","issue_id":"archie-core-3cf.15","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented server-side Web turn cancellation, authenticated cancel endpoint, immediate session event, UI Stop wiring, API test; task check and UI tests/build pass."}} diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index afa9e38d2..32ac010e7 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -202,7 +202,9 @@ {"_type":"issue","id":"archie-core-s1r","title":"Test forge fakes missing LinkBranch method broke go vet/test for whole module","description":"forge.Forge gained LinkBranch(ctx, owner, repo, issueNumber, branch) error in the branch-linking feature (ff4c51e) but the hand-rolled test doubles (stubForge in cmd/archied/main_test.go, prCapturingForge in cmd/archie-agent/taskrun_test.go, testForge in internal/daemon/daemon_test.go, fakeForge in internal/forgerpc/forgerpc_test.go) never got the method added, so they stopped satisfying forge.Forge. This broke go vet ./... and go test ./... for the entire module, not just those 4 packages, since go vet type-checks all test files as part of module vet. Fixed by adding LinkBranch stubs to all four fakes.","status":"closed","priority":1,"issue_type":"bug","owner":"sam@catlow.tech","created_at":"2026-07-24T03:04:53Z","created_by":"Sam Catlow","updated_at":"2026-07-24T03:04:58Z","closed_at":"2026-07-24T03:04:58Z","close_reason":"Added LinkBranch stub methods to stubForge, prCapturingForge, testForge, and fakeForge. go build/vet/test ./... now clean across the whole module.","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-633","title":"config.docker.toml missing required fields, no overlay merge implemented","description":"config.docker.toml was rewritten to be a docs-as-overlay file (comment says base+overlay merge) but internal/config.Load has no merge logic and docker-compose.yml mounts only config.docker.toml at /etc/archie/config.toml. It is missing bot_user, [forge], [dispatch], [models], [providers], [budgets] which Load requires -\u003e daemon fails to start in docker as currently configured. Implement real base+overlay config loading (or restore a full standalone docker config) so there is one source of truth.","status":"closed","priority":1,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-24T02:42:07Z","created_by":"Sam Catlow","updated_at":"2026-07-24T02:44:53Z","started_at":"2026-07-24T02:42:11Z","closed_at":"2026-07-24T02:44:53Z","close_reason":"Implemented config.LoadOverlay (base decode + overlay decode into same struct, then shared finalize/validate), wired -config-overlay flag in cmd/archied, fixed docker-compose.yml to mount both base config.toml and config.docker.toml overlay, minimized config.docker.toml to true diff-only overlay, added tests proving overlay-omitted required fields (bot_user, repos) still come from base.","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-u64","title":"Daemon: process multiple tasks concurrently (max_concurrency enforcement)","description":"Daemon currently processes one task at a time (docs/prds/archie-core-v2-architecture.md Phase 2). This is the core blocker between current state and any multi-agent scaling mode — needed before container max_concurrency or same-repo concurrency can matter. Wire the daemon's dispatch loop to run N tasks in parallel, respecting a configurable max_concurrency.","design":"internal/container/pool.go already enforces max_concurrency for container lifecycle — reuse that limit/pattern in the daemon's task dispatch rather than inventing a second concurrency control.","acceptance_criteria":"Daemon dispatch loop runs multiple tasks concurrently up to a configured max_concurrency limit; single-task-at-a-time behavior is gone.","status":"closed","priority":1,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-23T19:36:31Z","created_by":"Sam Catlow","updated_at":"2026-07-23T21:37:42Z","started_at":"2026-07-23T21:29:41Z","closed_at":"2026-07-23T21:37:42Z","close_reason":"Implemented concurrent SQLite and NATS task dispatch using containers.max_concurrency, with default same-repo serialization and race-tested dispatcher coverage.","dependency_count":0,"dependent_count":2,"comment_count":0} -{"_type":"issue","id":"archie-core-3cf.15","title":"Web Chat: cancel server-side turns from Stop","description":"Make the Web Chat Stop action cancel the server-side gateway turn lane and discard queued turns, matching Telegram behavior. Add an authenticated cancel endpoint, wire the shared ChatService to gateway.Turns, and cover API/UI behavior.","status":"in_progress","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-05T00:46:31Z","created_by":"Sam Catlow","updated_at":"2026-08-05T00:46:35Z","started_at":"2026-08-05T00:46:35Z","dependencies":[{"issue_id":"archie-core-3cf.15","depends_on_id":"archie-core-3cf","type":"parent-child","created_at":"2026-08-05T10:46:31Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"archie-core-3cf.17","title":"Web Chat: split component markup and presentation files","description":"Refactor the Web Chat out of a large JavaScript-built markup blob. Keep HTML structure in a dedicated template, CSS in dedicated chat styles, Markdown rendering in its own module, and interaction/rendering behavior in focused modules while preserving current API behavior.","acceptance_criteria":"Chat source has dedicated HTML, CSS, Markdown, and behavior/view modules; chat.js is orchestration only; no duplicated markup blob remains; npm tests/build and task check pass; Playwright confirms chat interactions and Markdown rendering.","status":"in_progress","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-05T00:55:15Z","created_by":"Sam Catlow","updated_at":"2026-08-05T00:55:16Z","started_at":"2026-08-05T00:55:16Z","dependencies":[{"issue_id":"archie-core-3cf.17","depends_on_id":"archie-core-3cf","type":"parent-child","created_at":"2026-08-05T10:55:15Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"archie-core-3cf.16","title":"Web Chat: restore Telegram-compatible Markdown rendering","description":"Ensure assistant history and streamed replies render Markdown consistently in the split Web Chat component, matching Telegram-visible formatting. The renderer must remain a dedicated module and be covered by UI and Playwright tests.","acceptance_criteria":"History and streamed assistant bubbles use the same dedicated safe Markdown renderer; supported Markdown constructs render as semantic HTML; raw markup is not shown for supported constructs; unsafe links remain inert; tests and task check pass.","status":"in_progress","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-05T00:50:53Z","created_by":"Sam Catlow","updated_at":"2026-08-05T00:55:16Z","started_at":"2026-08-05T00:51:00Z","dependencies":[{"issue_id":"archie-core-3cf.16","depends_on_id":"archie-core-3cf","type":"parent-child","created_at":"2026-08-05T10:50:53Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"archie-core-3cf.15","title":"Web Chat: cancel server-side turns from Stop","description":"Make the Web Chat Stop action cancel the server-side gateway turn lane and discard queued turns, matching Telegram behavior. Add an authenticated cancel endpoint, wire the shared ChatService to gateway.Turns, and cover API/UI behavior.","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-05T00:46:31Z","created_by":"Sam Catlow","updated_at":"2026-08-05T00:49:48Z","started_at":"2026-08-05T00:46:35Z","closed_at":"2026-08-05T00:49:48Z","close_reason":"Implemented server-side Web turn cancellation, authenticated cancel endpoint, immediate session event, UI Stop wiring, API test; task check and UI tests/build pass.","dependencies":[{"issue_id":"archie-core-3cf.15","depends_on_id":"archie-core-3cf","type":"parent-child","created_at":"2026-08-05T10:46:31Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-3cf.14","title":"Chat parity: align shared and Telegram command catalogs","description":"Align command discovery with the commands actually handled by the shared gateway and Telegram adapter while preserving Telegram’s intentional hidden dangerous approval commands.","design":"Keep command execution unchanged. Extend the existing catalog entries with accurate descriptions and preserve the existing dangerous-command hiding rule; do not duplicate dispatch logic.","acceptance_criteria":"The shared gateway catalog includes /start and Telegram publishes /start; Telegram’s intentionally hidden /approve and /deny remain executable but undiscoverable; capability-specific dangerous commands remain correctly gated in Web; tests assert the published Telegram menu covers the non-hidden executable command surface.","status":"closed","priority":2,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-05T00:43:18Z","created_by":"Sam Catlow","updated_at":"2026-08-05T00:44:41Z","started_at":"2026-08-05T00:43:18Z","closed_at":"2026-08-05T00:44:41Z","close_reason":"Aligned command discovery without weakening the intentional dangerous-command hiding rule: /start is now in the shared gateway catalog and Telegram menu; Web slash completion inherits it. Focused and full task-check suites pass.","dependencies":[{"issue_id":"archie-core-3cf.14","depends_on_id":"archie-core-3cf","type":"parent-child","created_at":"2026-08-05T10:43:17Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-3cf.13","title":"Web Chat: add contextual session lifecycle controls","description":"Expose Telegram session lifecycle actions directly in the Web Chat workspace while continuing to route them through the shared gateway.","design":"Use a native details popover in the workspace header, prompt only for title/branch names, and keep compression destructive work behind the existing gateway preview command. Do not add Web-only session semantics or duplicate command implementations.","acceptance_criteria":"An active Web session exposes retry, undo, title, branch, and compression preview actions; actions use shared commands, refresh the selected session/history, handle missing sessions and failures visibly, and remain keyboard accessible. Browser verification covers command dispatch and session refresh.","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-05T00:41:24Z","created_by":"Sam Catlow","updated_at":"2026-08-05T00:42:41Z","started_at":"2026-08-05T00:41:25Z","closed_at":"2026-08-05T00:42:41Z","close_reason":"Added a contextual Web Chat session-actions menu for retry, undo, rename, branch, and compression preview. Actions dispatch shared gateway commands and refresh the active session/history. Playwright MCP verified the menu and /undo dispatch; npm tests/build and full task check pass.","dependencies":[{"issue_id":"archie-core-3cf.13","depends_on_id":"archie-core-3cf","type":"parent-child","created_at":"2026-08-05T10:41:24Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"archie-core-3cf.11","title":"Web Chat: render Telegram-style Markdown tables","description":"Extend the Web Chat Markdown renderer to preserve table structure and strikethrough formatting supported by Telegram rich replies.","design":"Keep the existing dependency-free renderer. Recognize a table only when a header row is immediately followed by a Markdown separator row, parse cells without innerHTML, and reuse inlineMarkdown for cell content.","acceptance_criteria":"Pipe-delimited Markdown tables render as semantic table/thead/tbody elements with inline formatting; strikethrough renders as del; malformed pipe text remains ordinary text; safe DOM construction is preserved and Playwright verifies the rendered structure.","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-05T00:34:04Z","created_by":"Sam Catlow","updated_at":"2026-08-05T00:36:18Z","started_at":"2026-08-05T00:34:07Z","closed_at":"2026-08-05T00:36:18Z","close_reason":"Extended the safe Web Markdown renderer with semantic tables and strikethrough, reusing inline formatting for cells. Playwright MCP verified table headers/body rows, bold cells, and del output; npm tests/build and full task check pass.","dependencies":[{"issue_id":"archie-core-3cf.11","depends_on_id":"archie-core-3cf","type":"parent-child","created_at":"2026-08-05T10:34:03Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}