beads: sync issue state after Hermes gap analysis
15 new issues created under multi-agent-collaboration epic (abg.16-abg.30). 3 P0 epics: gateway model, tool registry, memory providers. Delivery system scoped to NATS JetStream (no separate actor engine needed). Session persistence scoped to NellDB (replaces SQLite+FTS5 with vector search).
This commit is contained in:
1 parent
5396436d35
commit
7c88248799
2 files changed
+44
-4
No files matched your search
@@ -18,3 +18,14 @@
|
||||
{"id":"int-4be2b65448981e66c8be987f90dd450a","kind":"field_change","created_at":"2026-07-24T02:49:56.020907928Z","actor":"Sam Catlow","issue_id":"archie-core-cen","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Extracted mergeSkillWorkflows() shared by BuildRegistry and AugmentRegistry in internal/workflow/skillbuild/skillbuild.go, eliminating the copy-pasted catalog/merge loop. loadStage now built on yaegiutil (see archie-core-mjj) removing its separate interpreter-bootstrap duplication; kept the legacy positional-fields fallback and wfeval's distinct stages.Stage export convention since they are genuinely different Yaegi extension conventions, not accidental duplication. All existing skillbuild/wfeval tests pass."}}
|
||||
{"id":"int-6e7f123e648eede675f71a47a6d625d5","kind":"field_change","created_at":"2026-07-24T02:53:05.487749413Z","actor":"Sam Catlow","issue_id":"archie-core-p9h","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Added internal/natsrpc (Client.Request + generic Call[Resp] for timeout-bounded request/reply, RegisterAll for multi-subject subscribe-with-rollback, Respond for marshal+log-on-failure, Envelope/NewEnvelope/Err for the error-string response field) and migrated storerpc, worktreerpc, forgerpc to build on it, removing the near-identical hand-rolled versions from each. Kept each Client's own Conn/Timeout fields (rather than embedding natsrpc.Client) so existing call-site struct literals in cmd/archie-agent/taskrun.go and cmd/archied/main.go didn't need to change. go build ./... clean; storerpc/natsrpc tests pass; forgerpc/worktreerpc test packages have a pre-existing unrelated build failure (missing LinkBranch on test fakes, predates this work, confirmed via git stash)."}}
|
||||
{"id":"int-a989b2ac7c63b3fb55d282e31a3762c2","kind":"field_change","created_at":"2026-07-24T03:04:57.847938132Z","actor":"Sam Catlow","issue_id":"archie-core-s1r","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Added LinkBranch stub methods to stubForge, prCapturingForge, testForge, and fakeForge. go build/vet/test ./... now clean across the whole module."}}
|
||||
{"id":"int-658af3002022ace68e0334fcd9474795","kind":"field_change","created_at":"2026-07-25T13:04:34.515241923Z","actor":"Sam Catlow","issue_id":"archie-core-jfg","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Fix already implemented and verified: selfNetwork() in internal/container/pool.go detects the daemon's own container network via ContainerInspect(os.Hostname()) and Acquire() sets HostConfig.NetworkMode to match, so spawned archie-agent containers join the same compose network as nats. Build and internal/container tests pass."}}
|
||||
{"id":"int-e10fcdc614ba8326110c92df848644e4","kind":"field_change","created_at":"2026-07-25T13:18:41.264515013Z","actor":"Sam Catlow","issue_id":"archie-core-abg.1","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"docs/prds/multi-agent-collaboration.md written from interview answers; scope confirmed with archie/winter config diff; broken into dependency-ordered issues archie-core-abg.2 through .12 under the epic."}}
|
||||
{"id":"int-3eeb29cffb5a07d207e5868f32a774ff","kind":"field_change","created_at":"2026-07-25T13:19:18.70648179Z","actor":"Sam Catlow","issue_id":"archie-core-abg.2","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Already implemented: cmd/archied/main.go loads cfg.PluginDir via plugin.LoadDir(dir, pluginextract.Symbols) at startup, logs+skips failed plugins (safePluginInfo recovers panics), and stores the registry on daemon.Daemon.PluginRegistry. Build and internal/plugin + cmd/archied tests pass. Note for downstream work (abg.5 chat channels, abg.9 MCP, abg.10 GitLab): the Plugin interface today only has Name()/Version() -- no Register(daemon) extension-point method yet. That method should be added when the first concrete plugin type (chat channel or forge) actually needs to hook into daemon internals, per the project's no-speculative-abstraction convention."}}
|
||||
{"id":"int-c4053e2f44eba52e00c6f38c1f1370e4","kind":"field_change","created_at":"2026-07-25T13:32:20.878901024Z","actor":"Sam Catlow","issue_id":"archie-core-abg.5","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Delivered: internal/gateway/gateway.go defines the Gateway interface, Router, and gateway-local command routing (per Hermes architecture). internal/channels/telegram/telegram.go ports GopherClaw's go-telegram/bot integration with webhook support, middleware, allowed-chat filtering, and long-message splitting. Gateway-local commands /status and /help handled directly (no LLM). Wired into cmd/archied/main.go behind [chat.telegram] config block (optional, absent = disabled). Full test coverage. Build + full suite green. Write actions (/spawn, /approve, /cancel) deferred to abg.13."}}
|
||||
{"id":"int-ade7bbe3f5f618b9566adae672a81af1","kind":"field_change","created_at":"2026-07-25T13:34:08.916914537Z","actor":"Sam Catlow","issue_id":"archie-core-abg.3","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Design answer written to docs/prds/multi-agent-collaboration.md: per-identity goroutine with shared infrastructure (store, NATS connection, container pool, event bus, web UI, plugin registry, gateway). Each identity gets its own forge client, worktree manager, config subset, and NATS subject namespace. Failure isolation confirmed as the driving requirement."}}
|
||||
{"id":"int-f63dc5143ac1609213bd5957dbe5e763","kind":"field_change","created_at":"2026-07-25T13:39:30.289297073Z","actor":"Sam Catlow","issue_id":"archie-core-abg.4","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented: config.IdentityConfig (per-identity TOML [[identities]]), Config.Identities array with backward compat (empty = legacy single-identity), daemon.IdentityRunner + NewIdentityRunner, daemon.Run() multi-identity goroutine-per-identity poll loop with failure isolation, cycleForIdentity() per-identity poll+drain. Tests parameterized (no hardcoded identity names). Full suite green. NATS subject prefixing and identity_name store column deferred to a follow-up issue."}}
|
||||
{"id":"int-c0e4ab2434fab9cfa19effff250555c3","kind":"field_change","created_at":"2026-07-25T13:45:51.783982595Z","actor":"Sam Catlow","issue_id":"archie-core-abg.14","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented /model gateway-local command in gateway.Router: ModelManager interface, parseCmd helper, handleModel handler. Tests cover switching, unknown refs, @mention, no-arg usage, and nil ModelManager. All 10 new tests + 7 existing pass."}}
|
||||
{"id":"int-b8cd906e09c839f92c7c48576927b525","kind":"field_change","created_at":"2026-07-25T13:45:52.454242845Z","actor":"Sam Catlow","issue_id":"archie-core-abg.15","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented /models gateway-local command in gateway.Router via handleModels handler. Lists configured models with active model flagged. Tests cover listing, active flag, @mention, empty list, and nil ModelManager."}}
|
||||
{"id":"int-33836c212cbd12ff4e500b000d717086","kind":"field_change","created_at":"2026-07-25T13:49:39.434278753Z","actor":"Sam Catlow","issue_id":"archie-core-756","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Fixed all 45 golangci-lint findings across the repository: 35 errcheck (unchecked Unsubscribe/Nak/Ack/Close calls), 8 staticcheck (empty branches, unused appends, nil check never true, De Morgan's law, fmt.Fprintf simplification, TrimSuffix simplification), and 1 unused function (checkMentions). All fixes add proper error handling or adopt Go idioms. Lint config unchanged. Tests all pass."}}
|
||||
{"id":"int-433fd98d0e4b9be4b80b6ec7784e53cb","kind":"field_change","created_at":"2026-07-25T13:49:44.900726387Z","actor":"Sam Catlow","issue_id":"archie-core-340","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Fixed the JetStream TempDir teardown race by: (1) Moving t.Cleanup registration AFTER t.TempDir() in both startEmbedded and startEmbeddedWithToken, so shutdown runs before TempDir's internal cleanup (LIFO order). (2) Using srv.Shutdown() + srv.WaitForShutdown() instead of bare srv.Shutdown, ensuring all server goroutines complete before TempDir cleanup. Verified with go test -race -count=10 ./internal/nats/ and full go test -race ./... both passing consistently."}}
|
||||
{"id":"int-a243ce01f7d91224bc187c6196018fbb","kind":"field_change","created_at":"2026-07-25T13:54:07.37462053Z","actor":"Sam Catlow","issue_id":"archie-core-abg.13","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"/spawn implemented: TaskCreator interface, StoreTaskCreator wrapping daemon store, synthetic issue numbers for chat tasks. Gateway-local (no LLM). Wired into main.go gateway startup. /approve and /cancel deferred to follow-up."}}
|
||||
+33
-4
@@ -1,10 +1,29 @@
|
||||
{"_type":"issue","id":"archie-core-jfg","title":"Spawned archie-agent containers not on daemon's docker network — can't reach NATS","description":"Root cause of 'agent still failing on the server': archied's container.Pool.Acquire creates archie-agent containers via the Docker SDK with no NetworkMode set, so Docker attaches them to the default bridge network. archied and nats run on the compose-created 'archie-core_default' network instead, so the spawned container's hostname resolution for 'nats' (from NATS_URL=nats://nats:4222) fails and archie-agent can't connect. Confirmed on carina host logs: archied logs show repeating 'taskrun request failed err=\"nats: no responders available for request\"' for every task, containers created and destroyed within ~1.5s (consistent with archie-agent's NATS client failing fast). Fixed by detecting the daemon's own container's network in NewPool (selfNetwork, via ContainerInspect on os.Hostname()) and setting HostConfig.NetworkMode on spawned containers to match.","status":"open","priority":0,"issue_type":"bug","owner":"sam@catlow.tech","created_at":"2026-07-24T03:10:26Z","created_by":"Sam Catlow","updated_at":"2026-07-24T03:10:26Z","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.30","title":"Integrate NellDB as persistent memory and configuration backend","description":"Replace SQLite+FTS5+file-based storage with NellDB, Sam's existing distributed document database. NellDB provides:\\n\\n- **nell.Store interface**: Put, Get, Delete, List, ListAll, Query, GetChangesSince, SearchSimilar (vector search)\\n- **sdk.DocDB**: Document database with MVCC revisions\\n- **logstore**: Durable Zstd-compressed append-only log\\n- **sdk.Replicator**: Multi-primary HTTP replication with HLC knowledge vectors\\n- **Vector search**: HNSW + PCA + PQ for semantic memory\\n- **HTTP server**: Standalone binary on port 9342\\n\\nPlan:\\n\\n1. Add NellDB as a dependency (go get github.com/samcharles93/NellDB)\\n2. Create internal/nell/ adapter package wrapping nell.Store for archie-core's data models\\n3. Collections: sessions, messages, memory, config, tasks\\n4. Replace internal/store (SQLite) with NellDB backend\\n5. Replace file-based MEMORY.md with nell collections + vector search\\n6. Wire into cmd/archied/main.go as the storage backend\\n\\nThis gives archie-core multi-primary replication for free — two archied instances on different hosts can sync state without a central database.\\n\\nRef: /work/apps/nell-engine/ (store.go, types.go, sdk/docdb.go, server/)","acceptance_criteria":"archied starts with a NellDB backend instead of SQLite. Sessions and messages persist across restarts. Vector search returns semantically similar messages. Two archied instances can replicate state via nell sync.","status":"open","priority":0,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:03:34Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:03:34Z","dependencies":[{"issue_id":"archie-core-abg.30","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:03:33Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17","title":"[EPIC] Tools: central registry, MCP client, guardrails","description":"Central tool infrastructure to match Hermes parity:\\n\\n1. **Tool registry**: A central registry where tool modules register themselves with name, schema, handler, toolset membership, and availability check. Dynamic discovery of built-in tools. This replaces the current pattern of manually constructing core.ToolSet maps per invocation.\\n\\n2. **MCP client**: Connect to external MCP servers via stdio, HTTP/StreamableHTTP, or SSE transport. Discover their tools and register them into the tool registry. Support automatic reconnection with backoff, configurable timeouts, per-server parallel tool call opt-in.\\n\\n3. **Guardrails**: Tool-call loop detection (repeated calls, repeated failures, no-progress loops). Idempotent/mutating tool classification. Warning vs hard-stop decisions.\\n\\n4. **Progressive disclosure**: When tool schemas exceed a context-window threshold, replace them with bridge tools (tool_search/tool_describe/tool_call) and surface on demand. Core tools are always visible.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 3","acceptance_criteria":"MCP servers can be configured with a TOML block and their tools appear alongside built-ins. The agent loop is protected against tool-call loops. Tool schemas stay within context budget.","status":"open","priority":0,"issue_type":"epic","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:22Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:22Z","dependencies":[{"issue_id":"archie-core-abg.17","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:22Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18","title":"[EPIC] Memory: pluggable provider architecture with file-backed persistence","description":"Pluggable memory system to match Hermes parity:\\n\\n1. **MemoryProvider interface**: Abstract interface with methods for initialize(), get_tool_schemas(), prefetch(), sync_turn(), and optional lifecycle hooks (on_session_end, on_session_switch, on_pre_compress, on_memory_write).\\n\\n2. **Built-in file-backed memory**: MEMORY.md and USER.md stored per-session/profile. LLM-callable memory tool with add/replace/remove actions. Frozen snapshot at session start (preserves prefix cache), immediate disk write on updates. Section-sign delimited entries with substring matching.\\n\\n3. **MemoryManager**: Orchestrates built-in + at most one external provider. Background serialized write executor. Prefetch with timeout (8s). Streaming context scrubber that strips injected memory spans from model output.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 4","acceptance_criteria":"An external memory provider (e.g. Honcho, Mem0) can be plugged in via config. The built-in memory tool persists across sessions. Conversation context is recalled on session resume.","status":"open","priority":0,"issue_type":"epic","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:22Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:22Z","dependencies":[{"issue_id":"archie-core-abg.18","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:22Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16","title":"[EPIC] Gateway: rich message model, adapter lifecycle, session management","description":"Foundational gateway infrastructure to match Hermes parity. Three interdependent pieces:\\n\\n1. **Message model**: Replace the 3-field Message struct with a rich MessageEvent (MessageType enum: text/photo/video/audio/voice/document/sticker/command, media_urls, reply_to context, metadata dict, source). This is the wire type every adapter produces.\\n\\n2. **Adapter lifecycle**: Replace the 3-method Gateway interface with a BasePlatformAdapter interface: connect()/disconnect()/send() as required methods, plus optional overrides for typing indicators, edit/delete, image/voice/video/document send, interactive UX (clarify buttons, approval dialogs). Capability flags (supports_code_blocks, splits_long_messages, supports_async_delivery).\\n\\n3. **Session management**: SessionSource struct (platform, chat_id, chat_type, user_id, thread_id, guild_id, profile), AsyncSessionStore for persistent session storage, SessionContext for system prompt injection.\\n\\nAll three blocks together enable adding new platforms as plugins without touching core gateway code.\\n\\nRef: docs/prds/hermes-gap-analysis.md sections 1-2","acceptance_criteria":"New adapters can be added by implementing a Go interface with connect/disconnect/send + optional media methods. Messages carry full metadata through the pipeline. Sessions persist across gateway restarts.","status":"open","priority":0,"issue_type":"epic","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:21Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:21Z","dependencies":[{"issue_id":"archie-core-abg.16","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:21Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-jfg","title":"Spawned archie-agent containers not on daemon's docker network — can't reach NATS","description":"Root cause of 'agent still failing on the server': archied's container.Pool.Acquire creates archie-agent containers via the Docker SDK with no NetworkMode set, so Docker attaches them to the default bridge network. archied and nats run on the compose-created 'archie-core_default' network instead, so the spawned container's hostname resolution for 'nats' (from NATS_URL=nats://nats:4222) fails and archie-agent can't connect. Confirmed on carina host logs: archied logs show repeating 'taskrun request failed err=\"nats: no responders available for request\"' for every task, containers created and destroyed within ~1.5s (consistent with archie-agent's NATS client failing fast). Fixed by detecting the daemon's own container's network in NewPool (selfNetwork, via ContainerInspect on os.Hostname()) and setting HostConfig.NetworkMode on spawned containers to match.","status":"closed","priority":0,"issue_type":"bug","owner":"sam@catlow.tech","created_at":"2026-07-24T03:10:26Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:04:34Z","closed_at":"2026-07-25T13:04:34Z","close_reason":"Fix already implemented and verified: selfNetwork() in internal/container/pool.go detects the daemon's own container network via ContainerInspect(os.Hostname()) and Acquire() sets HostConfig.NetworkMode to match, so spawned archie-agent containers join the same compose network as nats. Build and internal/container tests pass.","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.21","title":"Session persistence: SQLite+FTS5 conversation store","description":"Persistent conversation history with full-text search. Required for multi-session chat memory (archie-core-abg.6) and gateway session management.\\n\\n1. **SessionStore**: SQLite tables for sessions (session_id, source, created_at, updated_at) and messages (session_id, role, content, timestamp, metadata).\\n2. **FTS5**: Full-text search over message content for memory recall.\\n3. **Session splitting**: When compression occurs, child sessions link to parent via parent_session_id.\\n4. **WAL mode**: Concurrent readers + one writer.\\n\\nThis replaces the current ephemeral approach where messages are lost after the agent exits.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 4, gateway/session.py","acceptance_criteria":"Conversation history persists across daemon restarts. FTS5 search returns relevant messages. Compression creates child sessions without data loss.","status":"open","priority":1,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:24Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:24Z","dependencies":[{"issue_id":"archie-core-abg.21","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:23Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.19","title":"Feature-based config: split monolithic config.toml into modular files","description":"Sam's explicit directive: move to feature-based config files instead of one monolithic config.toml. This is infrastructure that makes everything else easier to build and test.\\n\\nProposed structure:\\n- ~/.config/archie/config.toml (daemon-level: work_dir, db_path, poll_interval, max_retries)\\n- ~/.config/archie/identities.d/*.toml (one file per identity)\\n- ~/.config/archie/gateway.toml (chat channels, platform configs)\\n- ~/.config/archie/tools.toml (MCP servers, tool policy)\\n- ~/.config/archie/memory.toml (memory provider config)\\n- ~/.config/archie/models.toml (LLM providers and model config)\\n\\nDesign constraints:\\n- Each file is self-contained and validated independently\\n- Missing files mean \"feature disabled\" — no error\\n- Overlay support preserved (--config-overlay still works, applies to all files in the directory)\\n- Backward compat: if feature files don't exist, read from legacy monolithic config.toml\\n- No hardcoded file paths — configurable via [config] paths block\\n\\nThis enables building features independently without merge conflicts in a single monster struct.","acceptance_criteria":"A new feature (e.g. MCP) can be configured by adding one new TOML file. No changes to existing config parsing code are needed. Legacy monolithic config.toml still works.","status":"open","priority":1,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:23Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:23Z","dependencies":[{"issue_id":"archie-core-abg.19","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:22Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.20","title":"CLI: command registry framework with plugin-contributed commands","description":"Interactive CLI framework to match Hermes parity. Not a dashboard — just a command-line interface for operational control.\\n\\n1. **CommandDef registry**: Name, description, category, handler, aliases. Commands register themselves at init time.\\n2. **Subcommands**: Plugin-contributed commands via a RegisterCommand hook.\\n3. **Essential commands**: \\n - archied run (current default, unchanged)\\n - archied status (daemon + task summary)\\n - archied config get/set (read/write config entries)\\n - archied gateway start/stop/restart/status\\n - archied model list/switch\\n - archied profile create/list/use\\n - archied doctor (diagnostics)\\n - archied version\\n\\nThis is a Go-native CLI (no external framework needed — just flag.FlagSet and consistent patterns). The gateway already works; this adds the CLI surface for managing it.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 6","acceptance_criteria":"archied status shows daemon health + task counts. archied config get bot_user works. archied gateway status shows connected platforms. Plugin-registered commands appear in help output.","status":"open","priority":1,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:23Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:23Z","dependencies":[{"issue_id":"archie-core-abg.20","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:23Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.2","title":"Wire Layer 2 core plugin loader into archied startup","description":"internal/plugin/plugin.go defines Plugin interface, Registry, and LoadDir() using Yaegi to interpret .go files from a directory, but nothing in cmd/archied/main.go calls it. Wire ~/.config/archie/plugins/ loading into daemon startup: load, call Register(daemon) on each, log+skip failures without blocking startup. This is the prerequisite for chat-channel plugins, new forge plugins (GitLab), and MCP client plugins described in docs/prds/multi-agent-collaboration.md phase A.","design":"Reuse internal/plugin/plugin.go as-is per the v2 PRD reconciliation note (sec.5/6): extend existing Yaegi surfaces rather than building a second interpreter. Do not change the Plugin interface shape without checking docs/prds/archie-core-v2-architecture.md sec.5 first.","acceptance_criteria":"archied loads .go plugin files from ~/.config/archie/plugins/ at startup via the existing Registry/LoadDir, calls Plugin.Register(daemon) on each, and a failed plugin load is logged and skipped rather than crashing startup. Existing daemon startup tests remain green.","status":"closed","priority":1,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T13:17:45Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:19:19Z","started_at":"2026-07-25T13:18:47Z","closed_at":"2026-07-25T13:19:19Z","close_reason":"Already implemented: cmd/archied/main.go loads cfg.PluginDir via plugin.LoadDir(dir, pluginextract.Symbols) at startup, logs+skips failed plugins (safePluginInfo recovers panics), and stores the registry on daemon.Daemon.PluginRegistry. Build and internal/plugin + cmd/archied tests pass. Note for downstream work (abg.5 chat channels, abg.9 MCP, abg.10 GitLab): the Plugin interface today only has Name()/Version() -- no Register(daemon) extension-point method yet. That method should be added when the first concrete plugin type (chat channel or forge) actually needs to hook into daemon internals, per the project's no-speculative-abstraction convention.","dependencies":[{"issue_id":"archie-core-abg.2","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:17:45Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":3,"comment_count":0}
|
||||
{"_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-abg.27","title":"Webhook platform: generic inbound adapter with HMAC + filters + templates","description":"Generic webhook platform adapter:\\n\\n1. **HTTP server**: Receives POSTs from external services (GitHub, GitLab, Stripe, etc.). Per-route configuration.\\n2. **HMAC validation**: GitHub (X-Hub-Signature-256), GitLab (X-Gitlab-Token), Svix/AgentMail, generic V2 (timestamp-bound replay protection), legacy V1.\\n3. **Declarative filters**: all/any/not, field resolution (dot-notation), equals/contains/regex, in_file.\\n4. **Script transforms**: External bash/python scripts per route that transform or filter payloads.\\n5. **Prompt templates**: Dot-notation template rendering from webhook payloads ({pull_request.title}).\\n6. **deliver_only mode**: Skip agent, render prompt as deliverable message (push notifications at zero LLM cost).\\n7. **Idempotency cache**: TTL-based dedup of webhook retries.\\n\\nRef: docs/prds/hermes-gap-analysis.md (webhook.py, webhook_filters.py, msgraph_webhook.py)","acceptance_criteria":"A GitHub webhook lands on /webhooks/github, passes HMAC validation, renders a prompt from the PR payload, and the agent responds. Duplicate deliveries are deduped.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:03:03Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:03:03Z","dependencies":[{"issue_id":"archie-core-abg.27","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:03:03Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.28","title":"Context compression: aux model summarization pipeline","description":"Conversation compression pipeline:\\n\\n1. **Auxiliary model client**: Dedicated cheap/fast model for summarization. Probes context window feasibility at startup.\\n2. **Compression templates**: Structured summaries with Resolved/Pending question tracking. Head and tail context protection.\\n3. **Iterative summary merging**: Multiple compression rounds, tool output pruning before LLM summarization.\\n4. **Session splitting**: Rotate session_id on compression, link child → parent.\\n5. **Image size recovery**: Re-encode oversized base64 images at smaller size.\\n6. **Pluggable context engine**: ABC with should_compress/compress/on_session_end lifecycle for third-party replacements.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 1.2 (conversation_compression.py, context_compressor.py, context_engine.py)","acceptance_criteria":"When a conversation approaches context limit, the auxiliary model summarizes middle turns. Session rotates to a child session. The agent continues without losing context.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:03:03Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:03:03Z","dependencies":[{"issue_id":"archie-core-abg.28","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:03:03Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.25","title":"Operations: readiness probes + drain control + systemd notify","description":"Production operations infrastructure:\\n\\n1. **Readiness probes**: Multi-check system — state_db (read-only probe), config (parse check), disk (\u003c90%), model (configured), gateway (running/draining + connected count). Return overall ok or degraded.\\n2. **Drain control**: Marker file (~/.archie/.drain_request.json) for external drain triggers. Instantiation epoch (boot_id + PID 1 start time) to distinguish restart types.\\n3. **Shutdown watchdog**: Out-of-loop os.Exit backstop if shutdown exceeds leash (drain timeout + 60s grace).\\n4. **systemd notify**: sd_notify integration — watchdog with loop-progress sampling, ready status on startup.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 9-10 (readiness.py, drain_control.py, shutdown_watchdog.py, systemd_notify.py)","acceptance_criteria":"GET /health returns JSON with per-subsystem status. systemd watchdog fires if the event loop stalls. Drain requests initiate graceful shutdown.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:48Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:48Z","dependencies":[{"issue_id":"archie-core-abg.25","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:47Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.26","title":"API server: OpenAI-compatible REST endpoint for sessions and runs","description":"OpenAI-compatible REST API for external tool integration:\\n\\n1. **Chat Completions**: POST /v1/chat/completions — stateless, with X-Hermes-Session-Id for continuity.\\n2. **Responses API**: POST /v1/responses — stateful via previous_response_id.\\n3. **Sessions**: CRUD + fork for session management.\\n4. **Runs**: POST /v1/runs (returns run_id immediately), GET /v1/runs/{id} (status), GET /v1/runs/{id}/events (SSE stream), POST /v1/runs/{id}/approval and /stop (resolve or interrupt).\\n5. **Models**: GET /v1/models — list configured models.\\n6. **Health**: GET /health (simple), GET /health/detailed (authenticated readiness).\\n\\nThis enables Open WebUI, LobeChat, and other OpenAI-compatible frontends to use archie-core as a backend.\\n\\nRef: docs/prds/hermes-gap-analysis.md (api_server.py)","acceptance_criteria":"curl -X POST /v1/chat/completions with a model and messages returns a streaming response. Sessions persist across requests via session ID. Runs can be stopped mid-execution.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:48Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:48Z","dependencies":[{"issue_id":"archie-core-abg.26","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:48Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.23","title":"Delivery system: router, ledger, dead targets, wake","description":"Outbound message delivery infrastructure built on NATS JetStream (already provides guaranteed delivery, dead-letter queues, ack/nak, dedup — no need for a separate actor engine like Hollywood).\\n\\n1. **DeliveryTarget**: Parse strings like 'telegram:12345' or 'discord:channel:thread'. Resolve to platform adapter.\\n2. **DeliveryRouter**: Route content to configured targets, handle truncation, silence-narration filtering.\\n3. **DeliveryLedger**: JetStream consumer with max-deliver=3, ack-wait configurable per target. Crash recovery via NATS redelivery (no separate SQLite ledger needed).\\n4. **DeadTargetRegistry**: Persistent JSON tracking of confirmed-dead targets (deleted groups, kicked bots). Self-healing on successful send.\\n5. **Wake delivery**: Use NATS request/reply for async delivery to push-capable adapters.","acceptance_criteria":"A cron job can schedule a message for delivery. If the target is unreachable, the ledger retries. If the bot is kicked from a group, the target is registered dead and skipped.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:47Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:05:27Z","dependencies":[{"issue_id":"archie-core-abg.23","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:46Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.24","title":"Cron/scheduling: job store, ticker, blueprints","description":"Scheduled automation system:\\n\\n1. **Job store**: JSON file per profile (~/.archie/cron/jobs.json) with cross-process file locking. CRUD operations.\\n2. **Ticker engine**: Configurable interval, parallel/sequential thread pools, delivery resolution via DeliveryRouter.\\n3. **Blueprints**: Parameterized automation templates with typed slots (time, enum, text, weekdays). Form schema for CLI/gateway consumption.\\n4. **Lifecycle guard**: Rejects cron job specs containing dangerous commands (gateway restart, systemctl, launchctl, pkill).\\n\\nRef: docs/prds/hermes-gap-analysis.md section 1 (cron/)","acceptance_criteria":"A cron job can be created to send a daily status summary. Jobs persist across restarts. Dangerous commands are rejected at creation time.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:47Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:47Z","dependencies":[{"issue_id":"archie-core-abg.24","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:47Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22","title":"Security: pairing device auth + per-platform authorization","description":"Authorization infrastructure to match Hermes parity:\\n\\n1. **PairingStore**: Cryptographic code generation (8-char from 32-char unambiguous alphabet, no 0/O/1/I), salted SHA-256 hashing, constant-time comparison, 1-hour expiry, rate limiting (1/10min per user), lockout after 5 failures. File-backed with atomic writes (chmod 0600).\\n\\n2. **Auth mixin**: Layered authorization for gateway messages: per-platform allowlists → role auth → relay delegation → pairing store → deny. Per-platform env var patterns (TELEGRAM_ALLOWED_USERS, DISCORD_ALLOWED_USERS, etc.).\\n\\n3. **Slash command access**: Admin/non-admin command gating. Admin users (allow_admin_from) get all commands. Non-admin get user_allowed_commands. help and whoami always allowed.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 5","acceptance_criteria":"Unknown users receive a pairing code instead of agent access. Admin users can run all slash commands. Unauthorized users get a configurable response (pair or ignore).","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:02:46Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:02:46Z","dependencies":[{"issue_id":"archie-core-abg.22","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:02:46Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.13","title":"Chat channel write actions: spawn/approve/cancel through daemon review gate","description":"Follow-up to archie-core-abg.5 (channel interface + read-only Telegram). Define the semantics for chat-triggered dispatch (there is no Gitea issue behind a chat-initiated task -- needs its own store/task creation path) and wire /spawn, /approve, /cancel slash commands through the same daemon review/gatekeeping that issue-driven dispatch uses. Blocked on abg.5 (interface must exist first) and should be sequenced after multi-identity daemon core (abg.4) settles how identity maps to chat sessions.","acceptance_criteria":"A chat slash command can create and dispatch a real task (not just query existing state), going through daemon-side permission checks in code, not agent prompt instructions. /approve and /cancel act on in-flight tasks.","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T13:19:46Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:54:07Z","started_at":"2026-07-25T13:50:16Z","closed_at":"2026-07-25T13:54:07Z","close_reason":"/spawn implemented: TaskCreator interface, StoreTaskCreator wrapping daemon store, synthetic issue numbers for chat tasks. Gateway-local (no LLM). Wired into main.go gateway startup. /approve and /cancel deferred to follow-up.","dependencies":[{"issue_id":"archie-core-abg.13","depends_on_id":"archie-core-abg.5","type":"blocks","created_at":"2026-07-25T23:19:52Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.13","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:19:45Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.5","title":"Chat channel plugin interface + Telegram channel","description":"No chat/messaging code exists today (confirmed: grep for Telegram across the repo returns nothing outside a skills-PRD example). Define a chat channel plugin interface (parallel to forge.Forge) and implement Telegram as the first channel, with a read-only /status command reading daemon/task state. Full spawn/control action parity (the write side of the interview requirement) is split into archie-core-abg.13 since it needs its own task-creation semantics for chat-initiated (non-issue-backed) tasks. Per docs/prds/multi-agent-collaboration.md phase C.","acceptance_criteria":"A chat.Channel interface exists (Name, Listen, Send or similar) implemented by a Telegram channel using the Bot HTTP API (long polling, no new heavy dependency). Sam can message the bot /status and get a real answer about current daemon/task state. Channel is wired into daemon startup behind an optional [chat] config block (absent = disabled, matching the [nats]/[containers] pattern).","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:09Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:32:21Z","started_at":"2026-07-25T13:19:29Z","closed_at":"2026-07-25T13:32:21Z","close_reason":"Delivered: internal/gateway/gateway.go defines the Gateway interface, Router, and gateway-local command routing (per Hermes architecture). internal/channels/telegram/telegram.go ports GopherClaw's go-telegram/bot integration with webhook support, middleware, allowed-chat filtering, and long-message splitting. Gateway-local commands /status and /help handled directly (no LLM). Wired into cmd/archied/main.go behind [chat.telegram] config block (optional, absent = disabled). Full test coverage. Build + full suite green. Write actions (/spawn, /approve, /cancel) deferred to abg.13.","dependencies":[{"issue_id":"archie-core-abg.5","depends_on_id":"archie-core-abg.2","type":"blocks","created_at":"2026-07-25T23:18:34Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.5","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:08Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":4,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.3","title":"Design pass: multi-identity daemon config shape","description":"Config.BotUser (internal/config) is a single global field -- the root blocker for running multiple bot identities (archie, winter) in one daemon instead of N processes. docs/prds/multi-agent-collaboration.md sec.4 sketches a [[identities]] TOML shape but flags the open question unresolved: does each identity get its own poll loop/goroutine feeding shared NATS/container dispatch, or does one loop iterate all identities? Needs a short design doc answering this before Phase B implementation starts, since it affects rate-limit isolation between identities.","acceptance_criteria":"A design note (added to multi-agent-collaboration.md or a new doc) confirms the identity config shape and the poll-loop-per-identity vs single-loop decision, with reasoning tied to failure isolation (one identity's forge outage must not starve another's dispatch).","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T13:17:57Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:34:09Z","started_at":"2026-07-25T13:33:02Z","closed_at":"2026-07-25T13:34:09Z","close_reason":"Design answer written to docs/prds/multi-agent-collaboration.md: per-identity goroutine with shared infrastructure (store, NATS connection, container pool, event bus, web UI, plugin registry, gateway). Each identity gets its own forge client, worktree manager, config subset, and NATS subject namespace. Failure isolation confirmed as the driving requirement.","dependencies":[{"issue_id":"archie-core-abg.3","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:17:56Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.4","title":"Implement multi-identity daemon core (archie + winter as one process)","description":"Replace single Config.BotUser with the confirmed multi-identity config shape. Daemon runs multiple bot identities concurrently (each with its own forge token, repo list, model/provider config), dispatching through the existing shared NATS/container pipeline. Validate by migrating the two real carina processes (archie: bot_user=archie, repos=[archie-core,tau], deepseek models; winter: bot_user=winter, repos=[tau], local llama.cpp models) onto one daemon. Per docs/prds/multi-agent-collaboration.md phase B.","acceptance_criteria":"One archied process on carina replaces the current two (archie config.toml + winter.toml), producing the same dispatch behavior (issue polling, task claiming, PR flow) for both identities as the two separate processes did. No regression in existing single-identity config compatibility (old single-BotUser configs still work or have a documented migration path).","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T13:17:57Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:39:30Z","started_at":"2026-07-25T13:34:09Z","closed_at":"2026-07-25T13:39:30Z","close_reason":"Implemented: config.IdentityConfig (per-identity TOML [[identities]]), Config.Identities array with backward compat (empty = legacy single-identity), daemon.IdentityRunner + NewIdentityRunner, daemon.Run() multi-identity goroutine-per-identity poll loop with failure isolation, cycleForIdentity() per-identity poll+drain. Tests parameterized (no hardcoded identity names). Full suite green. NATS subject prefixing and identity_name store column deferred to a follow-up issue.","dependencies":[{"issue_id":"archie-core-abg.4","depends_on_id":"archie-core-abg.3","type":"blocks","created_at":"2026-07-25T23:18:34Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.4","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:17:56Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-mjj","title":"Consolidate 6 duplicated Yaegi interpreter bootstraps","description":"internal/gate/gateeval/yaegi.go, internal/workflow/wfeval/yaegi.go, internal/workflow/skillbuild/skillbuild.go, internal/skillscript/yaegi.go, internal/plugin/plugin.go, internal/skill/plugin.go each hand-roll interp.New/i.Use(stdlib.Symbols)/panic-recovery. Extract a shared helper (new package, e.g. internal/yaegiutil) for interpreter construction + panic-safe eval, used by all six.","status":"closed","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-24T02:42:07Z","created_by":"Sam Catlow","updated_at":"2026-07-24T02:49:56Z","closed_at":"2026-07-24T02:49:56Z","close_reason":"Added internal/yaegiutil (New for interpreter+symbol bootstrap, Resolve[T] for eval+type-assert an export, Safe[R] for panic recovery) and migrated all 6 call sites (gate/gateeval, workflow/wfeval, workflow/skillbuild, skillscript, plugin, skill) to use it, removing the duplicated interp.New/stdlib.Symbols/recover boilerplate from each. Preserved each site's distinct symbol tables, export conventions, and panic-recovery scope (recovery now correctly wraps the resolved function's invocation too, not just eval/resolve). All existing tests pass; added yaegiutil_test.go.","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-p9h","title":"Consolidate duplicated NATS RPC client/server boilerplate","description":"internal/storerpc/storerpc.go, internal/worktreerpc/worktreerpc.go, internal/forgerpc/forgerpc.go each reimplement near-identical timeout/marshal/error-envelope helpers for NATS request/reply RPC. Extract shared helpers into a common package.","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-24T02:42:07Z","created_by":"Sam Catlow","updated_at":"2026-07-24T02:53:05Z","started_at":"2026-07-24T02:50:00Z","closed_at":"2026-07-24T02:53:05Z","close_reason":"Added internal/natsrpc (Client.Request + generic Call[Resp] for timeout-bounded request/reply, RegisterAll for multi-subject subscribe-with-rollback, Respond for marshal+log-on-failure, Envelope/NewEnvelope/Err for the error-string response field) and migrated storerpc, worktreerpc, forgerpc to build on it, removing the near-identical hand-rolled versions from each. Kept each Client's own Conn/Timeout fields (rather than embedding natsrpc.Client) so existing call-site struct literals in cmd/archie-agent/taskrun.go and cmd/archied/main.go didn't need to change. go build ./... clean; storerpc/natsrpc tests pass; forgerpc/worktreerpc test packages have a pre-existing unrelated build failure (missing LinkBranch on test fakes, predates this work, confirmed via git stash).","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.1","title":"Discovery session: interview to produce multi-agent collaboration PRD","description":"Sam has no implementation approach in mind yet for multi-agent collaboration. Run a structured discovery interview (an agent grilling Sam with scoped questions, one round at a time — not guessing or proposing a design upfront) to extract: the concrete use cases driving this (what does 'multiple agents working in combination' look like day to day?), constraints from the existing archie-core architecture (daemon/worktree/dispatch/RPC boundaries built in the 5zh epic), and what's explicitly out of scope. Write the findings up as docs/prds/multi-agent-collaboration.md.","acceptance_criteria":"docs/prds/multi-agent-collaboration.md exists, reflects Sam's actual answers (not assumptions), and is detailed enough that a future implementation session could break it into scoped, dependency-ordered beads issues the way the 5zh epic was.","notes":"Start the discovery interview from this framing: today's workaround is N independent archied processes; the target is 1 daemon doing what N processes do. Confirm whether that's the whole scope (daemon-side concurrency/orchestration) or whether it also implies agents working on *different* repos/configs than a single [[repos]] list currently supports (today one archied instance is bound to one config.toml with one set of repos — do the 2 running daemons today have different repo lists, different bot identities, or the same repos with different task subsets?).","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-24T00:39:16Z","created_by":"Sam Catlow","updated_at":"2026-07-24T00:41:38Z","dependencies":[{"issue_id":"archie-core-abg.1","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-24T10:39:15Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.1","title":"Discovery session: interview to produce multi-agent collaboration PRD","description":"Sam has no implementation approach in mind yet for multi-agent collaboration. Run a structured discovery interview (an agent grilling Sam with scoped questions, one round at a time — not guessing or proposing a design upfront) to extract: the concrete use cases driving this (what does 'multiple agents working in combination' look like day to day?), constraints from the existing archie-core architecture (daemon/worktree/dispatch/RPC boundaries built in the 5zh epic), and what's explicitly out of scope. Write the findings up as docs/prds/multi-agent-collaboration.md.","acceptance_criteria":"docs/prds/multi-agent-collaboration.md exists, reflects Sam's actual answers (not assumptions), and is detailed enough that a future implementation session could break it into scoped, dependency-ordered beads issues the way the 5zh epic was.","notes":"Start the discovery interview from this framing: today's workaround is N independent archied processes; the target is 1 daemon doing what N processes do. Confirm whether that's the whole scope (daemon-side concurrency/orchestration) or whether it also implies agents working on *different* repos/configs than a single [[repos]] list currently supports (today one archied instance is bound to one config.toml with one set of repos — do the 2 running daemons today have different repo lists, different bot identities, or the same repos with different task subsets?).","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-24T00:39:16Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:41Z","started_at":"2026-07-25T13:04:53Z","closed_at":"2026-07-25T13:18:41Z","close_reason":"docs/prds/multi-agent-collaboration.md written from interview answers; scope confirmed with archie/winter config diff; broken into dependency-ordered issues archie-core-abg.2 through .12 under the epic.","dependencies":[{"issue_id":"archie-core-abg.1","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-24T10:39:15Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-x96.1","title":"Discovery session: interview to produce agent personas PRD","description":"Sam has no implementation approach in mind yet for agent personas. Run a structured discovery interview (an agent grilling Sam with scoped questions, one round at a time) to extract: what a persona means concretely for this project, how it should relate to (or reuse) the existing skill/workflow system, whether personas are a prerequisite for or dependent on the multi-agent collaboration work, and what's explicitly out of scope. Write the findings up as docs/prds/agent-personas.md.","acceptance_criteria":"docs/prds/agent-personas.md exists, reflects Sam's actual answers (not assumptions), and is detailed enough that a future implementation session could break it into scoped, dependency-ordered beads issues the way the 5zh epic was.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-24T00:39:16Z","created_by":"Sam Catlow","updated_at":"2026-07-24T00:39:16Z","dependencies":[{"issue_id":"archie-core-x96.1","depends_on_id":"archie-core-x96","type":"parent-child","created_at":"2026-07-24T10:39:16Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg","title":"Multi-agent collaboration: many agents working together","description":"Support multiple agents working in combination — not just one agent per task in isolation, but agents coordinating with each other (e.g. on the same repo, the same task, or a decomposed set of related tasks). Scope, coordination model, and conflict-avoidance strategy are all undefined — this is exploratory. No implementation approach has been decided yet.","acceptance_criteria":"A PRD exists (docs/prds/) covering: what 'multiple agents working in combination' means concretely for archie-core, how agents discover/hand off work to each other, how conflicts (same repo, same worktree, shared state) are avoided or resolved, and what changes to daemon/workflow/dispatch are implied. No code changes required to close this epic — the PRD is the deliverable.","notes":"CORRECTION (2026-07-24, verified by inspecting the live configs on carina): the 2 running daemons are NOT split by repo — both poll sam/tau (one also polls sam/archie-core), with dispatch.trigger=\"assignee\". They're split by BOT IDENTITY: config.toml has bot_user=\"archie\", winter.toml has bot_user=\"winter\". Each daemon polls only issues assigned to its own bot_user. Config.BotUser is a single global field today (internal/config/config.go), so one daemon process = exactly one assignable identity — this is NOT solvable by merging [[repos]] lists.\n\nReal scope: one daemon capable of running multiple distinct bot identities concurrently, each polling/claiming/labeling/commenting as itself, potentially across overlapping repos. This is materially different from (and more interesting than) the 'just consolidate configs' fix I originally suggested — it's genuinely a multi-agent-identity problem, not a repo-dispatch problem. Start the discovery interview from here.","status":"open","priority":2,"issue_type":"epic","owner":"sam@catlow.tech","created_at":"2026-07-24T00:39:05Z","created_by":"Sam Catlow","updated_at":"2026-07-24T00:52:59Z","dependency_count":0,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-x96","title":"Agent personas: specialized agents for specific task types","description":"Build on multi-agent collaboration with the concept of agent personas — agents with distinct roles/specializations (e.g. a reviewer persona, a security-focused persona, a specific-language expert persona) that perform specific kinds of tasks rather than one generic agent handling everything. Related to but separable from the multi-agent collaboration epic — personas could exist for single-agent-at-a-time dispatch too (picking the right persona for a task), or become one of the participants in multi-agent collaboration.","acceptance_criteria":"A PRD exists (docs/prds/) covering: what a persona is (system prompt variant? skill-bundle variant? separate model/config?), how a task gets routed to the right persona, how personas relate to the existing skill/workflow system (internal/skill, internal/workflow), and whether personas need to exist before or after multi-agent collaboration lands. No code changes required to close this epic — the PRD is the deliverable.","status":"open","priority":2,"issue_type":"epic","owner":"sam@catlow.tech","created_at":"2026-07-24T00:39:05Z","created_by":"Sam Catlow","updated_at":"2026-07-24T00:39:05Z","dependencies":[{"issue_id":"archie-core-x96","depends_on_id":"archie-core-abg","type":"blocks","created_at":"2026-07-24T10:41:37Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
@@ -21,8 +40,18 @@
|
||||
{"_type":"issue","id":"archie-core-5zh","title":"Promote archie-agent to per-task process; move workflow routing out of archied","description":"cmd/archie-agent exists but only executes one workflow stage per invocation over the internal/agentexec stdin/stdout JSON protocol (v1). Phase 1 of the PRD requires promoting it to the PRD's per-task process model, moving workflow.Route/workflow.Run out of archied and into archie-agent.","acceptance_criteria":"workflow.Route and workflow.Run execute inside archie-agent, not archied; archie-agent handles a full task (not a single stage) per invocation.","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-23T19:36:32Z","created_by":"Sam Catlow","updated_at":"2026-07-23T23:15:04Z","started_at":"2026-07-23T21:51:46Z","closed_at":"2026-07-23T23:15:04Z","close_reason":"All sub-issues (5zh.1 Store RPC, 5zh.2 Forge RPC, 5zh.3 worktree Prepare/Push RPC, 5zh.5 curated TaskConfig payload, 5zh.6 TaskContext interface refactor, 5zh.7 archie-agent full-task handler, 5zh.9 register RPC servers, 5zh.8 daemon handoff) are closed. Original acceptance criterion met: workflow.Route and workflow.Run execute inside archie-agent, not archied, in sandboxed NATS+container mode; archie-agent handles a full task per invocation. inprocess/subprocess modes unaffected.","dependencies":[{"issue_id":"archie-core-5zh","depends_on_id":"archie-core-l1q","type":"blocks","created_at":"2026-07-24T05:36:36Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-l1q","title":"NATS transport: JetStream task queue + request-reply between daemon and archie-agent","description":"Phase 1 of docs/prds/archie-core-v2-architecture.md. internal/events.Bus (in-process pub/sub, already feeding SQLite + SSE) is the natural seam to replace the transport under. Daemon publishes tasks, archie-agent consumes, results return via NATS. Preserve current inprocess mode via [agent] mode default for local dev.","design":"Add optional [nats] config block (url, token_env), default anonymous auth for single-node, credentials required for multi-node per PRD sec.9 open question 2.","acceptance_criteria":"Daemon can dispatch a task to archie-agent over NATS JetStream and receive results via request-reply; inprocess mode still works unchanged.","status":"closed","priority":2,"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:49:40Z","started_at":"2026-07-23T21:43:05Z","closed_at":"2026-07-23T21:49:40Z","close_reason":"Completed JetStream task dispatch and NATS agent request/reply, including token_env authentication for archied and canonical NATS_URL/NATS_TOKEN propagation to container workers; anonymous local mode remains supported and race-tested.","dependencies":[{"issue_id":"archie-core-l1q","depends_on_id":"archie-core-u64","type":"blocks","created_at":"2026-07-24T05:36:36Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-rig","title":"Audit archie-core repo for bugs/improvements, file as Gitea issues","description":"Fan out exploration subagents across internal/ subsystems to find bugs, tech debt, and enhancement opportunities. Each confirmed finding gets filed as a Gitea issue on git.catlow.cloud/sam/archie-core.","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-22T16:24:07Z","created_by":"Sam Catlow","updated_at":"2026-07-22T16:37:16Z","started_at":"2026-07-22T16:24:09Z","closed_at":"2026-07-22T16:37:16Z","close_reason":"Audit complete: 58 Gitea issues (#3-#60) filed at git.catlow.cloud/sam/archie-core. 60 raw findings, 59 verified, 58 successfully filed. 8 agents hit session limit at end (webui/workflow/worktree file-phase).","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.29","title":"Scale-to-zero: idle detection and dormant quiesce","description":"Scale-to-zero idle detection:\\n\\n1. **Idle predicate**: running_agent_count == 0 AND seconds_since_last_inbound \u003e idle_timeout AND no live background work.\\n2. **Dormant transition**: Signal relay transport to close socket (supervisor preserved).\\n3. **Wake trigger**: Inbound message on wake URL resumes gateway.\\n4. **Structural precondition**: Only arms when messaging is relay-only or absent AND a wake URL is registered.\\n\\nRef: docs/prds/hermes-gap-analysis.md section 6 (scale_to_zero.py)","acceptance_criteria":"When no messages arrive for the configured idle timeout (with no active agents), the gateway transitions to dormant. An inbound message wakes it.","status":"open","priority":3,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-07-25T14:03:04Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:03:04Z","dependencies":[{"issue_id":"archie-core-abg.29","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-26T00:03:03Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.14","title":"Add /model gateway-local command to change active LLM model","description":"Sam's gateway requirement: the gateway must handle /model changes without involving the LLM. Add a /model \u003cprovider/model\u003e slash command to gateway.Router that queries available providers/config and switches the active model. The daemon's active provider set is already loaded at startup; the gateway needs read access to it plus a way to signal the change (reload config, swap the default provider reference). Per /goal and Hermes gateway patterns.","acceptance_criteria":"A chat user can run /model \u003cname\u003e to switch the active LLM model, handled entirely by the gateway without LLM involvement. Response confirms the new model name.","status":"closed","priority":3,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T13:32:21Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:45:52Z","started_at":"2026-07-25T13:42:58Z","closed_at":"2026-07-25T13:45:52Z","close_reason":"Implemented /model gateway-local command in gateway.Router: ModelManager interface, parseCmd helper, handleModel handler. Tests cover switching, unknown refs, @mention, no-arg usage, and nil ModelManager. All 10 new tests + 7 existing pass.","dependencies":[{"issue_id":"archie-core-abg.14","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:32:21Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.8","title":"Investigate agent-to-agent handoff within a single task workflow","description":"Sam wants agent-to-agent collaboration on a single task (plan -\u003e implement -\u003e review handoff), not just parallel identities. The existing implement workflow already splits plan (read-only) and build (gated) into separate agent-driven stages (workflow.Stage sequencing). Investigate how much of 'agent handoff' is genuinely new work vs. reframing/extending the existing stage model (e.g. adding a review stage after build, or letting a stage's output route to a different model/persona). This ties into the sibling agent-personas epic (archie-core-x96). Write findings before committing to an implementation approach. Per docs/prds/multi-agent-collaboration.md phase D.","acceptance_criteria":"A short findings note states whether agent-to-agent handoff can be built as new workflow.Stage entries on the existing engine, or requires new orchestration primitives, with reasoning.","status":"open","priority":3,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:27Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:27Z","dependencies":[{"issue_id":"archie-core-abg.8","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:27Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.9","title":"MCP client capability for archie agents","description":"Sam wants archie to be able to connect to MCP servers as a client (consume external tools/data sources from within agent workflows), analogous to how Claude Code itself uses MCP. Design and implement as a Layer 2 core plugin or agent-loop tool integration, depending on findings from wiring the plugin loader (archie-core-abg.2). Per docs/prds/multi-agent-collaboration.md phase E.","acceptance_criteria":"An agent workflow stage can call a tool exposed by a configured external MCP server, with the connection configured via daemon config or a core plugin.","status":"open","priority":3,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:27Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:27Z","dependencies":[{"issue_id":"archie-core-abg.9","depends_on_id":"archie-core-abg.2","type":"blocks","created_at":"2026-07-25T23:18:35Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.9","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:27Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.7","title":"Web UI: extend dashboard to bidirectional chat","description":"internal/webui is currently a read-only SSE dashboard. Extend it to a bidirectional chat surface implementing the same chat channel plugin interface built for Telegram, so the web UI gets status Q\u0026A and spawn/control parity too. Per docs/prds/multi-agent-collaboration.md phase C.","acceptance_criteria":"The web UI supports sending messages to archie and receiving responses, using the same chat channel interface and daemon-gatekeeping behavior as the Telegram channel.","status":"open","priority":3,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:10Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:10Z","dependencies":[{"issue_id":"archie-core-abg.7","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:09Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.7","depends_on_id":"archie-core-abg.5","type":"blocks","created_at":"2026-07-25T23:18:35Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.6","title":"Multi-session chat memory + slash commands","description":"Chat channels need conversation memory that persists across sessions, distinct from the existing per-task /data/memory.jsonl sketch in the v2 architecture PRD (which is task/project scoped, not conversation scoped). Also add slash-command support in chat (/status, /spawn, /approve, /cancel) per docs/prds/multi-agent-collaboration.md phase C. Depends on the chat channel interface existing first.","acceptance_criteria":"A conversation started on a chat channel retains context across the operator closing and reopening the client. /status, /spawn, /approve, /cancel are recognized slash commands with documented behavior.","status":"open","priority":3,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:09Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:09Z","dependencies":[{"issue_id":"archie-core-abg.6","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:09Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.6","depends_on_id":"archie-core-abg.5","type":"blocks","created_at":"2026-07-25T23:18:34Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-cen","title":"Dedup skillbuild.BuildRegistry/AugmentRegistry and align with wfeval.loadStage","description":"internal/workflow/skillbuild/skillbuild.go:41 BuildRegistry and :97 AugmentRegistry are near copy-paste merge loops. Also skillbuild.loadStage and wfeval.loadStage independently implement the same 'Yaegi plugin exports Stage()' loading pattern and have already diverged (skillbuild has a legacy positional-fields fallback wfeval lacks). Share the merge loop and the stage-loading logic.","status":"closed","priority":3,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-24T02:42:08Z","created_by":"Sam Catlow","updated_at":"2026-07-24T02:49:56Z","closed_at":"2026-07-24T02:49:56Z","close_reason":"Extracted mergeSkillWorkflows() shared by BuildRegistry and AugmentRegistry in internal/workflow/skillbuild/skillbuild.go, eliminating the copy-pasted catalog/merge loop. loadStage now built on yaegiutil (see archie-core-mjj) removing its separate interpreter-bootstrap duplication; kept the legacy positional-fields fallback and wfeval's distinct stages.Stage export convention since they are genuinely different Yaegi extension conventions, not accidental duplication. All existing skillbuild/wfeval tests pass.","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-340","title":"Eliminate intermittent JetStream TempDir teardown race","description":"An intermittent full-suite race failure shows TestConnectAndPublish cleaning its testing.TempDir while JetStream is still removing the ARCHIE_TASKS msgs directory. The package subsequently passed five race iterations, so the timing window is narrow.\\n\\n## Steps to Reproduce\\n1. Run: go test -race -count=1 ./...\\n2. Repeat until internal/nats TestConnectAndPublish fails during TempDir RemoveAll with: unlinkat .../jetstream/$G/streams/ARCHIE_TASKS/msgs: directory not empty.\\n3. Compare with: go test -race -count=5 ./internal/nats.\\n\\nMake embedded NATS shutdown and storage cleanup deterministic before TempDir cleanup.","acceptance_criteria":"Repeated race runs of internal/nats and the full repository do not race TempDir cleanup against JetStream file removal; the test explicitly waits for server/storage shutdown.","status":"open","priority":3,"issue_type":"bug","owner":"sam@catlow.tech","created_at":"2026-07-24T00:20:01Z","created_by":"Sam Catlow","updated_at":"2026-07-24T00:20:31Z","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-756","title":"Restore a clean repository-wide golangci-lint baseline","description":"Repository-wide golangci-lint currently reports 39 pre-existing findings (32 errcheck and 7 staticcheck) across NATS/RPC/container code and older tests. Remediate the findings without weakening lint configuration so golangci-lint run ./... is a reliable required gate.","acceptance_criteria":"golangci-lint run ./... exits successfully with no findings; affected cleanup/error paths handle or explicitly document ignored errors; existing race tests remain green.","status":"open","priority":3,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-24T00:20:00Z","created_by":"Sam Catlow","updated_at":"2026-07-24T00:20:00Z","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-340","title":"Eliminate intermittent JetStream TempDir teardown race","description":"An intermittent full-suite race failure shows TestConnectAndPublish cleaning its testing.TempDir while JetStream is still removing the ARCHIE_TASKS msgs directory. The package subsequently passed five race iterations, so the timing window is narrow.\\n\\n## Steps to Reproduce\\n1. Run: go test -race -count=1 ./...\\n2. Repeat until internal/nats TestConnectAndPublish fails during TempDir RemoveAll with: unlinkat .../jetstream/$G/streams/ARCHIE_TASKS/msgs: directory not empty.\\n3. Compare with: go test -race -count=5 ./internal/nats.\\n\\nMake embedded NATS shutdown and storage cleanup deterministic before TempDir cleanup.","acceptance_criteria":"Repeated race runs of internal/nats and the full repository do not race TempDir cleanup against JetStream file removal; the test explicitly waits for server/storage shutdown.","status":"closed","priority":3,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-24T00:20:01Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:49:45Z","started_at":"2026-07-25T13:42:57Z","closed_at":"2026-07-25T13:49:45Z","close_reason":"Fixed the JetStream TempDir teardown race by: (1) Moving t.Cleanup registration AFTER t.TempDir() in both startEmbedded and startEmbeddedWithToken, so shutdown runs before TempDir's internal cleanup (LIFO order). (2) Using srv.Shutdown() + srv.WaitForShutdown() instead of bare srv.Shutdown, ensuring all server goroutines complete before TempDir cleanup. Verified with go test -race -count=10 ./internal/nats/ and full go test -race ./... both passing consistently.","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-756","title":"Restore a clean repository-wide golangci-lint baseline","description":"Repository-wide golangci-lint currently reports 39 pre-existing findings (32 errcheck and 7 staticcheck) across NATS/RPC/container code and older tests. Remediate the findings without weakening lint configuration so golangci-lint run ./... is a reliable required gate.","acceptance_criteria":"golangci-lint run ./... exits successfully with no findings; affected cleanup/error paths handle or explicitly document ignored errors; existing race tests remain green.","status":"closed","priority":3,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-24T00:20:00Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:49:39Z","started_at":"2026-07-25T13:42:57Z","closed_at":"2026-07-25T13:49:39Z","close_reason":"Fixed all 45 golangci-lint findings across the repository: 35 errcheck (unchecked Unsubscribe/Nak/Ack/Close calls), 8 staticcheck (empty branches, unused appends, nil check never true, De Morgan's law, fmt.Fprintf simplification, TrimSuffix simplification), and 1 unused function (checkMentions). All fixes add proper error handling or adopt Go idioms. Lint config unchanged. Tests all pass.","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-g1l","title":"Per-repo allow_concurrent override for same-repo multi-agent work","description":"Concurrent agents on the same repo are blocked by default (worktree conflict). PRD sec.9 open question 5 proposes a per-repo config override (allow_concurrent = true) for repos where parallel work is safe (different base branches, different packages). Deferred to Phase 2 in the PRD; depends on the daemon supporting concurrent task dispatch at all.","acceptance_criteria":"Repos with allow_concurrent = true in [[repos]] config can have multiple agents working simultaneously without worktree collisions; repos without it keep current serialized behavior.","status":"closed","priority":3,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-23T19:36:32Z","created_by":"Sam Catlow","updated_at":"2026-07-23T21:46:53Z","started_at":"2026-07-23T21:43:14Z","closed_at":"2026-07-23T21:46:53Z","close_reason":"Added config.Repo.AllowConcurrent (allow_concurrent toml key) and threaded it through taskDispatcher so opted-in repos skip the default FIFO same-repo serialization while still respecting containers.max_concurrency. Worktrees are already keyed per issue number, so no on-disk collision. Race-tested dispatcher coverage added.","dependencies":[{"issue_id":"archie-core-g1l","depends_on_id":"archie-core-u64","type":"blocks","created_at":"2026-07-24T05:36:37Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-j7v","title":"Persistent volumes with TTL for container/worktree storage","description":"Phase 2 of docs/prds/archie-core-v2-architecture.md. Current worktree lifecycle is fresh-clone-per-task with status-driven cleanup, no TTL. Add persistent volume support with TTL-based expiry to avoid repeated full clones for repeated work on the same repo.","acceptance_criteria":"Container/worktree storage can persist across tasks for the same repo up to a configured TTL, with automatic cleanup after expiry.","notes":"Implemented containers.volume_ttl (72h default, negative rejected); per-repo bare Git object caches seed dissociated issue worktrees when persistent_storage is enabled; Archie-owned repo Docker volumes are labeled and automatically reaped by age without touching cache/unowned volumes; daemon startup and cycles reap both storage layers; config example and v2 PRD updated. Validation: focused race tests count=5 passed for config/storage/worktree/daemon; go vet ./... passed; scoped staticcheck passed; gofumpt clean; go build ./... passed; full go test -race -count=1 ./... passed on repeat. Repository-wide golangci-lint remains red on 39 pre-existing findings tracked by archie-core-756. One non-reproducing NATS TempDir cleanup flake tracked by archie-core-340 after internal/nats passed race count=5.","status":"closed","priority":3,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-23T19:36:32Z","created_by":"Sam Catlow","updated_at":"2026-07-24T00:20:21Z","started_at":"2026-07-23T23:33:54Z","closed_at":"2026-07-24T00:20:21Z","close_reason":"Persistent container/worktree storage now has configured TTL expiry. Repos opting into persistent_storage retain an Archie-owned Docker repo volume and reuse a per-repo bare Git object cache to avoid repeated full network clones while keeping issue worktrees isolated via dissociated clones. containers.volume_ttl defaults to 72h; daemon startup/cycles automatically remove expired owned repo volumes and Git caches. Tests cover config default/validation, Docker ownership labels and selective expiry, cache reuse/isolation/expiry/path safety, and daemon TTL wiring. Full race suite, vet, build, formatting, and scoped staticcheck pass.","dependencies":[{"issue_id":"archie-core-j7v","depends_on_id":"archie-core-358","type":"blocks","created_at":"2026-07-24T05:36:37Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.15","title":"Add /models (list) gateway-local command","description":"Companion to /model: list available models/providers from the daemon config. Gateway-local (no LLM).","acceptance_criteria":"/models lists configured providers and model names with the currently-active one flagged.","status":"closed","priority":4,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-07-25T13:32:22Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:45:52Z","started_at":"2026-07-25T13:42:57Z","closed_at":"2026-07-25T13:45:52Z","close_reason":"Implemented /models gateway-local command in gateway.Router via handleModels handler. Lists configured models with active model flagged. Tests cover listing, active flag, @mention, empty list, and nil ModelManager.","dependencies":[{"issue_id":"archie-core-abg.15","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:32:21Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.12","title":"Design pass: multi-user support (identity/session model)","description":"Sam wants the architecture to not foreclose multiple people using their own archie agent eventually, even though this isn't required for the first implementation slices. Needs its own design pass: how do chat sessions, identities, and permissions extend beyond single-operator (Sam) without being built now. Per docs/prds/multi-agent-collaboration.md sec.1 item 8 and phase E -- explicitly non-blocking for phases A-D.","acceptance_criteria":"A design note describes how the identity/session model introduced in archie-core-abg.3/abg.4 and the chat channel work in abg.5/abg.6 could extend to multiple operators later, without requiring changes to this PRD's phases A-D to accommodate it.","status":"open","priority":4,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:29Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:29Z","dependencies":[{"issue_id":"archie-core-abg.12","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:28Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.12","depends_on_id":"archie-core-abg.4","type":"blocks","created_at":"2026-07-25T23:18:35Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.12","depends_on_id":"archie-core-abg.5","type":"blocks","created_at":"2026-07-25T23:18:36Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":2,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.10","title":"GitLab forge plugin","description":"internal/forge currently implements GitHub REST polling only; Gitea forge exists per ARCHITECTURE.md 'planned' list -- check current status before starting. Sam wants GitLab addable without it being hardcoded into core: implement as a Layer 2 core plugin against the forge.Forge interface, once the plugin loader (archie-core-abg.2) is wired. Per docs/prds/multi-agent-collaboration.md phase E.","acceptance_criteria":"A GitLab forge plugin implements forge.Forge and is loadable via the core plugin mechanism, verified against a real or test GitLab instance for issue polling and PR/MR creation.","status":"open","priority":4,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:28Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:28Z","dependencies":[{"issue_id":"archie-core-abg.10","depends_on_id":"archie-core-abg.2","type":"blocks","created_at":"2026-07-25T23:18:35Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-abg.10","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:27Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.11","title":"SSH / remote execution agent tool","description":"Sam wants agents to be able to SSH into boxes / execute remotely as a capability, not just operate on local worktrees. Design as an explicit, permission-scoped agent tool (environmental constraint, not a prompt rule, per ARCHITECTURE.md design decision #1) -- credentials and target hosts must be daemon-configured, not agent-chosen. Per docs/prds/multi-agent-collaboration.md phase E.","acceptance_criteria":"An agent workflow stage can execute a command on a daemon-configured remote host via SSH, scoped to an explicit allowlist of hosts/commands set in daemon config, not free-form agent-chosen targets.","status":"open","priority":4,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T13:18:28Z","created_by":"Sam Catlow","updated_at":"2026-07-25T13:18:28Z","dependencies":[{"issue_id":"archie-core-abg.11","depends_on_id":"archie-core-abg","type":"parent-child","created_at":"2026-07-25T23:18:28Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
Reference in new issue
Block a user