beads: decompose Hermes gap analysis into 78 sub-tasks
4 decomposition agents created 78 scoped, implementable sub-tasks: abg.16 Gateway: 15 tasks (P0: MessageType, MessageEvent, Adapter interface, SessionSource/Context/Store. P1: SendResult, optional methods, capability flags, dedup, media. P2: EphemeralReply, interactive UX, batching, truncation) abg.17 Tools: 20 tasks (P0: ToolEntry, registry, MCP stdio. P1: availability checks, result limits, sequential/concurrent dispatch, guardrails, progressive disclosure. P2: checkpointing, multimodal, MCP HTTP/SSE/sampling) abg.18 Memory: 16 tasks (P0: Provider interface, optional methods, lifecycle hooks, config, backup, Manager, scrubber, built-in tool. P1: sync pipeline, prefetch, write mirror, frozen snapshot, threat scanning, shutdown drain) abg.22 Security: 9 tasks (P2: PairingStore crypto/hash/expiry/atomic, auth mixin layered pipeline, env var allowlists, slash access policy, rate limiting) abg.24 Cron: 6 tasks (P2: job store, ticker, blueprints, lifecycle guard, provider interface, execution) abg.25 Operations: 5 tasks (P2: readiness probes, health endpoint, drain control, shutdown watchdog, systemd notify) abg.27 Webhook: 7 tasks (P2: HMAC validation, filters, scripts, templates, deliver_only, idempotency, MS Graph) Total: 103 open beads representing the full Hermes feature surface.
This commit is contained in:
1 parent
7c88248799
commit
ddd61cc12f
1 file changed
+79
-1
+79
-1
@@ -1,15 +1,93 @@
|
||||
{"_type":"issue","id":"archie-core-abg.18.13","title":"Built-in memory tool actions: add, replace, remove","description":"Implement the three core memory tool actions: add (appends new content to a section), replace (replaces content using substring matching to find the target), remove (deletes content using substring matching). These act on the MEMORY.md/USER.md files.","acceptance_criteria":"Tool exposes three actions: add, replace, remove\nadd(target_section, content) appends to or creates a named section\nreplace(target_section, substring, replacement) finds first match of substring in section and replaces it\nremove(target_section, substring) removes the matching line/block from the section\nSubstring matching is exact, case-sensitive by default (configurable)\nActions return clear success/error messages including the affected section and character count\nTool validates section names (alphanumeric + spaces, max 64 chars)\nSize bounds are checked before any write (reject if would exceed max file size)","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:12Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:12Z","dependencies":[{"issue_id":"archie-core-abg.18.13","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:08:12Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.12","title":"Built-in memory tool: file-backed persistent memory","description":"Implement the built-in file-backed memory tool that persists to MEMORY.md and USER.md files. This replaces the current ephemeral memoryNotes system with durable on-disk storage that survives restarts and sessions.","acceptance_criteria":"Built-in provider lives in internal/memory/builtin package\nMEMORY.md stores persistent agent memory (facts, preferences, state across sessions)\nUSER.md stores user-provided context (background, instructions, preferences)\nBoth files are bounded (configurable max size, default 100KB per file)\nFiles are read at provider initialization and written on every mutation\nFile format is plain markdown with sections\nThread-safe reads and writes (sync.RWMutex)\nFiles live under the profile's memory directory (e.g., ~/.config/archie/profiles/{profile}/memory/)","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:03Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:03Z","dependencies":[{"issue_id":"archie-core-abg.18.12","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:08:03Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.16","title":"MCP client: stdio transport (subprocess management)","description":"Implement the MCP stdio transport: spawn and manage MCP server subprocesses, handle stdin/stdout JSON-RPC message framing, subprocess lifecycle (start/stop/restart), and auto-restart with exponential backoff. This is the foundational MCP transport that most local MCP servers use.","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:59Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:59Z","dependencies":[{"issue_id":"archie-core-abg.17.16","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:58Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.11","title":"Tool schema normalization for memory providers","description":"Implement tool schema normalization that handles both bare tools (just Function definition) and wrapped OpenAI-style tool schemas from memory providers. Ensures all provider-exported tools are normalized to a consistent format before being merged into the agent's tool list.","acceptance_criteria":"Normalizer package detects whether a schema is bare (map with 'name' top-level) or wrapped (map with 'type':'function', 'function':{...})\nConverts both formats to a canonical internal representation\nHandles edge cases: missing required fields, extra unknown fields\nSchema normalization happens at registration time, not per-turn\nErrors on truly invalid schemas with clear messages\nRound-trips through JSON marshal/unmarshal","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:57Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:57Z","dependencies":[{"issue_id":"archie-core-abg.18.11","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:57Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.10","title":"StreamingContextScrubber","description":"Implement a stateful StreamingContextScrubber that strips \u003cmemory-context\u003e...\u003c/memory-context\u003e fence spans from streaming text output. Must handle partial chunks that split across fence boundaries, maintain state between chunks, and only emit clean text downstream.","acceptance_criteria":"Scrubber is in internal/memory/scrubber package\nImplements an io.Writer or callback interface for processing streaming chunks\nStrips \u003cmemory-context\u003e ... \u003c/memory-context\u003e fences including the tags themselves\nHandles partial chunks where fence tags span chunk boundaries (maintains state)\nHandles missing closing tags (closes at end of stream)\nDoesn't interfere with non-memory-context content\nZero allocations in the hot path (reuses buffers)\nFully tested with edge cases: partial open/close, nested tags, empty content","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:53Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:53Z","dependencies":[{"issue_id":"archie-core-abg.18.10","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:52Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.6","title":"MemoryManager orchestrator","description":"Implement MemoryManager that orchestrates the built-in memory provider plus at most one external provider. Key responsibilities: provider registration and lifecycle, tool schema merging from all active providers, runtime dispatch of tool calls to the correct provider, enforcement of the one-external-provider limit.","acceptance_criteria":"MemoryManager is in internal/memory/manager package\nConstructor accepts the built-in provider + optional external provider\nRegistering a second external provider returns an error\nget_tool_schemas() merges schemas from all active providers\nhandle_tool_call() routes calls to the owning provider\nProvides accessor methods for the current active provider(s)\nGracefully handles all provider being nil/empty","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:33Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:33Z","dependencies":[{"issue_id":"archie-core-abg.18.6","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:33Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.5","title":"MemoryProvider backup paths support","description":"Add backup_paths() to MemoryProvider: returns a list of file paths outside HERMES_HOME that should be included in backups. External providers (e.g., SQLite, vector stores) may store data outside the main home directory, and this ensures backup completeness.","acceptance_criteria":"BackupProvider interface with backup_paths() returning []string\nReturned paths are absolute file or directory paths\nReturns empty slice for providers with no external data\nMemoryManager aggregates backup paths from all active providers\nPaths are included in any backup/restore workflow","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:28Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:28Z","dependencies":[{"issue_id":"archie-core-abg.18.5","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:28Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.2","title":"Central tool registry singleton with Register() + discovery","description":"Implement a global tool registry singleton with a Register() method. Add file-system discovery that scans tools/*.go for registry.Register calls to auto-register tools at startup. This is the core infrastructure that all tool registration and lookup depends on.","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:25Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:25Z","dependencies":[{"issue_id":"archie-core-abg.17.2","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:25Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.4","title":"MemoryProvider config helpers","description":"Add config helper interfaces to MemoryProvider: get_config_schema() returns a JSON Schema describing the provider's configuration, save_config(values, hermes_home) validates and persists configuration. These enable dynamic provider configuration through the config system.","acceptance_criteria":"ConfigSchemaProvider defines get_config_schema() returning map[string]any in JSON Schema format\nSaveConfigProvider defines save_config(values map[string]any, hermesHome string) error\nSchema is used to validate user-provided config values before saving\nsave_config writes to a provider-specific location under hermes_home\nProviders without config support simply don't implement the interfaces","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:24Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:24Z","dependencies":[{"issue_id":"archie-core-abg.18.4","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:24Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.1","title":"ToolEntry data type definition","description":"Design and implement the ToolEntry data type carrying: name, toolset (which tool group this belongs to), schema (JSON Schema for invocation), handler (function ref), check_fn (availability predicate), requires_env (env vars needed), is_async (async/sync distinction), description, emoji, max_result_size_chars (per-tool result cap), and dynamic_schema_overrides (runtime schema mutations). This is the foundational type that everything in the tools subsystem builds upon.","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:22Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:22Z","dependencies":[{"issue_id":"archie-core-abg.17.1","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:21Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.3","title":"MemoryProvider lifecycle hooks","description":"Add lifecycle hook interfaces to MemoryProvider: on_turn_start(), on_session_end(), on_session_switch(), on_pre_compress(), on_memory_write(content), on_delegation(). These allow providers to react to session lifecycle events for state management and context maintenance.","acceptance_criteria":"Each lifecycle hook is a separate optional sub-interface (e.g., TurnStartHook, SessionEndHook, SessionSwitchHook, PreCompressHook, MemoryWriteHook, DelegationHook)\nInterfaces are defined alongside MemoryProvider in the same package\nMemoryManager calls hooks at appropriate points in the agent lifecycle\nHooks have access to relevant context (session_id, content, etc.)\nAll hooks are called asynchronously to avoid blocking the main loop","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:20Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:20Z","dependencies":[{"issue_id":"archie-core-abg.18.3","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:20Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.2","title":"MemoryProvider optional methods","description":"Add optional methods to the MemoryProvider interface: system_prompt_block(), prefetch(query), queue_prefetch(query), sync_turn(user, assistant), handle_tool_call(name, args), shutdown(). These are defined as separate interface extensions that providers can opt into via type assertion.","acceptance_criteria":"Optional behavior is defined via separate sub-interfaces (e.g., PrefetchProvider, SyncTurnProvider, ShutdownProvider)\nMemoryManager checks via type assertion at runtime which optional interfaces a provider implements\nEach optional interface has clear doc comments\nDefault no-op behavior when a provider doesn't implement an optional interface","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:16Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:16Z","dependencies":[{"issue_id":"archie-core-abg.18.2","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:16Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.1","title":"MemoryProvider interface (abstract)","description":"Define the core MemoryProvider interface with required methods: name(), is_available(), initialize(session_id), get_tool_schemas(). This is the contract that all memory providers (built-in and external/plugin) must implement.","acceptance_criteria":"MemoryProvider is defined as a Go interface in a new internal/memory/provider package\nname() returns a unique human-readable string identifying the provider\nis_available() returns true when the provider is ready for use\ninitialize(session_id) prepares the provider for a given session\nget_tool_schemas() returns the tool definitions the provider exports to the agent\nClean godoc comments on all methods","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:12Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:12Z","dependencies":[{"issue_id":"archie-core-abg.18.1","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:11Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.10","title":"SessionContext struct for session metadata","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:54Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:54Z","dependencies":[{"issue_id":"archie-core-abg.16.10","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:53Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.11","title":"SessionStore interface and implementation","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:54Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:54Z","dependencies":[{"issue_id":"archie-core-abg.16.11","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:54Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.9","title":"SessionSource struct for platform identity","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:51Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:51Z","dependencies":[{"issue_id":"archie-core-abg.16.9","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:51Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.5","title":"BasePlatformAdapter interface with required methods","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:49Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:49Z","dependencies":[{"issue_id":"archie-core-abg.16.5","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:48Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.2","title":"Rich MessageEvent struct with all gateway fields","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:47Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:47Z","dependencies":[{"issue_id":"archie-core-abg.16.2","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:47Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.1","title":"MessageType enum for gateway messages","status":"open","priority":0,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:44Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:44Z","dependencies":[{"issue_id":"archie-core-abg.16.1","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:43Z","created_by":"Sam Catlow","metadata":"{}"}],"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.18.16","title":"Shutdown drain with timeout and abandoned-write tracking","description":"Implement graceful shutdown drain for MemoryManager with a bounded timeout. In-flight sync operations are given a configurable deadline to complete. Operations that don't finish within the deadline are tracked as abandoned writes for diagnostics.","acceptance_criteria":"Shutdown(ctx) method on MemoryManager with context-based deadline\nIn-flight sync pipeline operations are given N seconds (default 10) to complete\nAbandoned writes (those exceeding the deadline) are logged with: provider name, operation type, age\nshutdown() is called on all active providers in reverse registration order\nAfter shutdown, no new operations are accepted\nProvider shutdown respects the same deadline\nAbandoned-write counter is accessible for health/status reporting","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:26Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:26Z","dependencies":[{"issue_id":"archie-core-abg.18.16","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:08:25Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.15","title":"Threat scanning integration for memory content","description":"Integrate threat scanning for all memory content writes. Before persisting any memory content (add/replace/remove), scan the content for potentially dangerous patterns (injection attempts, sensitive data leakage, prompt injection in stored memory).","acceptance_criteria":"A ScanContent(content string) function or hook is called before every memory write\nScans cover: prompt injection patterns, sensitive data patterns (API keys, passwords, tokens)\nConfigurable to reject (block the write) or warn (allow with log) on suspicious content\nIntegration point at the MemoryManager level so it applies to all providers\nResults are logged for audit\nConfig flag to disable scanning for development","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:21Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:21Z","dependencies":[{"issue_id":"archie-core-abg.18.15","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:08:20Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.14","title":"Frozen snapshot pattern for memory injection","description":"Implement the frozen snapshot pattern: memory content is read at session start and injected into the system prompt as a snapshot. On write, files are updated immediately but the system prompt is NOT changed mid-session. Only the next session picks up the new snapshot.","acceptance_criteria":"At session start, MEMORY.md and USER.md are read and formatted into a system prompt block\nThis formatted block becomes part of the session's system prompt (frozen for the session duration)\nWhen a memory write occurs, the files are updated immediately on disk\nThe in-memory snapshot for the current session is NOT updated\nThe next session reads the fresh files and creates a new frozen snapshot\nConfig flag to disable frozen snapshot (always read fresh) for testing","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:16Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:16Z","dependencies":[{"issue_id":"archie-core-abg.18.14","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:08:16Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.15","title":"Context-pressure threshold gating","description":"Implement context-pressure threshold gating: when the combined size of tool schemas exceeds a configurable percentage of the LLM context window, automatically switch to progressive tool disclosure mode (bridge tools). Monitor context usage and toggle between full disclosure and bridge-tool mode dynamically.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:58Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:58Z","dependencies":[{"issue_id":"archie-core-abg.17.15","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:58Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.14","title":"Progressive tool disclosure (bridge tools)","description":"Implement the progressive tool disclosure pattern with three bridge tools: tool_search (search available tools by keyword), tool_describe (return full schema for one tool), and tool_call (invoke a tool by name after discovery). This keeps the LLM's tool schema footprint small while providing full access to the tool arsenal on demand.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:53Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:53Z","dependencies":[{"issue_id":"archie-core-abg.17.14","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:53Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.13","title":"Guardrail decision engine: warning vs hard-stop","description":"Implement the guardrail decision engine that uses ToolCallGuardrailConfig thresholds to decide between sending a warning to the LLM or issuing a hard-stop (aborting the tool loop). Considers exact_failure_warn_after, same_tool_failure_warn_after, and no_progress_warn_after. Must track per-session and per-turn counters.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:51Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:51Z","dependencies":[{"issue_id":"archie-core-abg.17.13","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:50Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.12","title":"Mutating tool classification set","description":"Define and maintain a classification set of mutating (mutation-capable) tools. These tools can modify state and require serialization, checkpointing, and stricter guardrail monitoring. The set should be extensible via registration metadata and feed into dispatch gating and checkpointing decisions.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:50Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:50Z","dependencies":[{"issue_id":"archie-core-abg.17.12","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:50Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.9","title":"MemoryManager notify_memory_tool_write","description":"Implement notify_memory_tool_write() in MemoryManager that mirrors built-in memory tool writes to external providers. When the agent uses the built-in memory tool (add/replace/remove), external providers receive a notification so they can stay in sync.","acceptance_criteria":"After any successful built-in memory tool write, MemoryManager calls external provider's on_memory_write(content) hook\nThe notification is asynchronous and goes through the background sync pipeline\nThe notification includes the full content of what was written and the action type (add/replace/remove)\nIf no external provider is active, the call is a no-op\nExternal provider can choose to ignore the notification if it doesn't implement the hook","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:47Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:47Z","dependencies":[{"issue_id":"archie-core-abg.18.9","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:47Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.10","title":"Tool guardrails: ToolCallGuardrailConfig","description":"Implement the ToolCallGuardrailConfig struct with thresholds: exact_failure_warn_after (how many exact same failures before warning), same_tool_failure_warn_after (same-tool consecutive failures), and no_progress_warn_after (total tool calls without completing the turn goal). This is the configuration layer for the guardrail decision engine.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:45Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:45Z","dependencies":[{"issue_id":"archie-core-abg.17.10","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:44Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.11","title":"Idempotent tool classification set","description":"Define and maintain a classification set of idempotent (read-only) tools. These tools can be safely retried and run in parallel. The set should be extensible via registration metadata. Classification feeds into dispatch gating, guardrail decisions, and budget enforcement.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:45Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:45Z","dependencies":[{"issue_id":"archie-core-abg.17.11","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:45Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.8","title":"MemoryManager prefetch with timeout","description":"Implement prefetch in MemoryManager with an 8-second default timeout. If a provider's prefetch is still running from the previous turn, skip it rather than queue another. This prevents memory lookups from blocking the agent loop.","acceptance_criteria":"prefetch(ctx, query) accepts a context with configurable timeout (default 8s)\nIf a provider is still prefetching from the previous turn, the new prefetch is skipped (not queued)\nA provider-level mutex or state flag tracks in-flight prefetch operations\nTimeout causes context cancellation which the provider should respect\nResults from prefetch are stored for retrieval in system_prompt_block()\nMetrics/logging track prefetch duration, timeouts, and skips","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:43Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:43Z","dependencies":[{"issue_id":"archie-core-abg.18.8","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:43Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.18.7","title":"MemoryManager background sync pipeline","description":"Implement a serialized background sync pipeline in MemoryManager using a single-worker ThreadPoolExecutor pattern. All write operations from external providers are serialized through one worker to guarantee write ordering and prevent concurrent mutations.","acceptance_criteria":"A single-worker goroutine/worker pool processes queued sync operations\nWrite operations are submitted to the pipeline and processed in FIFO order\nCaller receives a channel/future for optional completion notification\nWrite ordering is guaranteed - operations don't reorder\nPipeline has a configurable buffer size (default 100)\nPipeline drains on shutdown with configurable timeout\nErrors from sync operations are logged but don't crash the pipeline","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:39Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:39Z","dependencies":[{"issue_id":"archie-core-abg.18.7","depends_on_id":"archie-core-abg.18","type":"parent-child","created_at":"2026-07-26T00:07:38Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.6","title":"Concurrent tool dispatch with execution gating","description":"Implement concurrent tool dispatch with execution gating classes: never-parallel (e.g. state mutators), parallel-safe (e.g. read-only tools), and path-scoped (same-path tools are serialized, different paths run in parallel). Use sync primitives and a gating engine to classify and schedule tool invocations correctly.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:37Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:37Z","dependencies":[{"issue_id":"archie-core-abg.17.6","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:36Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.7","title":"Per-turn aggregate budget enforcement (200K char cap)","description":"Implement a per-turn aggregate output budget of 200,000 characters. Track cumulative tool result sizes within a turn. When the budget is exceeded, auto-spill the largest results to disk. Enforce a hard stop at the budget limit with clear reporting to the user.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:37Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:37Z","dependencies":[{"issue_id":"archie-core-abg.17.7","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:37Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.5","title":"Sequential tool dispatch with per-result previews and error handling","description":"Build the sequential tool dispatch pipeline: invoke tools one-at-a-time, capture per-result previews (truncated output for context-feed), and implement error classification with graceful fallback. Each result should produce a short preview snippet for inclusion in the conversation context.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:32Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:32Z","dependencies":[{"issue_id":"archie-core-abg.17.5","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:32Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.3","title":"Tool availability checks with TTL caching","description":"Implement the check_fn pattern for tool availability predicates (e.g. 'is Docker running'). Results should be TTL-cached (e.g. 30s check interval) with a failure grace period (e.g. 60s before re-checking on error). This prevents redundant checking on every invocation while keeping availability fresh.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:31Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:31Z","dependencies":[{"issue_id":"archie-core-abg.17.3","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:30Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.4","title":"Per-tool result size limits with spill-to-disk","description":"Implement max_result_size_chars enforcement on each ToolEntry. When a tool result exceeds its limit, auto-spill large outputs to disk and return a reference/location instead of the full content. This prevents memory blowout from oversized tool results.","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:31Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:31Z","dependencies":[{"issue_id":"archie-core-abg.17.4","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:31Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.15","title":"Media utilities: cache, validate, deliver images/audio/video/documents","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:57Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:57Z","dependencies":[{"issue_id":"archie-core-abg.16.15","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:56Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.12","title":"MessageDeduplicator with TTL-based dedup cache","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:55Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:55Z","dependencies":[{"issue_id":"archie-core-abg.16.12","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:55Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.8","title":"Platform capability flags for adapters","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:51Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:51Z","dependencies":[{"issue_id":"archie-core-abg.16.8","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:50Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.6","title":"BasePlatformAdapter optional methods (typing, edit, delete, media)","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:49Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:49Z","dependencies":[{"issue_id":"archie-core-abg.16.6","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:49Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.3","title":"SendResult struct with retry/error classification","status":"open","priority":1,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:48Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:48Z","dependencies":[{"issue_id":"archie-core-abg.16.3","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:47Z","created_by":"Sam Catlow","metadata":"{}"}],"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, backed by NellDB (replaces the original SQLite+FTS5 plan since NellDB is Sam's existing distributed store with built-in vector search).\\n\\n1. **Collections**: sessions, messages — namespaced in NellDB.\\n2. **Vector search**: NellDB's SearchSimilar for semantic memory recall (upgrades the original FTS5 text-only search).\\n3. **Replication**: Multi-primary sync via nell.Replicator — two archied instances share conversation state.\\n4. **HLC ordering**: Causal ordering for messages across nodes.\\n5. **Durable backend**: logstore.OpenLog for Zstd-compressed append-only persistence.\\n\\nNellDB replaces both SQLite+FTS5 (conversation store) and file-based MEMORY.md, using a single dependency.","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:05:27Z","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.17.20","title":"MCP client: per-server parallel tool call opt-in flag","description":"Add a per-server configuration flag to opt-in to parallel tool calls in the MCP client. When enabled, the client may dispatch multiple tool calls to the same MCP server concurrently. When disabled, all calls to that server are serialized. This respects server-side concurrency limitations.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:15Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:15Z","dependencies":[{"issue_id":"archie-core-abg.17.20","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:08:14Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.19","title":"MCP client: server-initiated sampling","description":"Implement MCP server-initiated sampling support: when the MCP server sends a sampling request, route it to the LLM and return the sampled response. This enables MCP servers to request LLM completions as part of tool execution (e.g. for sub-agent delegation within a tool).","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:14Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:14Z","dependencies":[{"issue_id":"archie-core-abg.17.19","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:08:14Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.18","title":"MCP client: SSE transport","description":"Implement MCP SSE (Server-Sent Events) transport: establish SSE connection to MCP servers, handle event stream parsing, manage reconnection with backoff, and translate SSE events to the unified MCP transport interface. This enables real-time streaming from MCP servers.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:13Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:13Z","dependencies":[{"issue_id":"archie-core-abg.17.18","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:08:13Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.27.7","title":"MS Graph webhook adapter: validationToken handshake","description":"Implement MS Graph webhook adapter with validationToken handshake for subscription verification, clientState verification, and CIDR IP allowlisting.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:12Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:12Z","dependencies":[{"issue_id":"archie-core-abg.27.7","depends_on_id":"archie-core-abg.27","type":"parent-child","created_at":"2026-07-26T00:08:11Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.27.6","title":"WebhookAdapter: idempotency cache","description":"Implement TTL-based idempotency cache to deduplicate retried webhook deliveries. Cache based on webhook event ID and route.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:11Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:11Z","dependencies":[{"issue_id":"archie-core-abg.27.6","depends_on_id":"archie-core-abg.27","type":"parent-child","created_at":"2026-07-26T00:08:10Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.27.5","title":"WebhookAdapter: deliver_only mode","description":"Implement deliver_only mode that skips agent processing and directly renders the prompt template as a deliverable (e.g. plain text, HTML, JSON response).","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:08Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:08Z","dependencies":[{"issue_id":"archie-core-abg.27.5","depends_on_id":"archie-core-abg.27","type":"parent-child","created_at":"2026-07-26T00:08:07Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.17","title":"MCP client: HTTP/StreamableHTTP transport","description":"Implement MCP HTTP/StreamableHTTP transport: make JSON-RPC requests over HTTP/HTTPS with support for streamable HTTP responses. Handle connection lifecycle, keep-alive, reconnection, and error classification for remote MCP servers accessed via HTTP.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:05Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:05Z","dependencies":[{"issue_id":"archie-core-abg.17.17","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:08:05Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.27.4","title":"WebhookAdapter: prompt templates with dot-notation","description":"Implement prompt template system with dot-notation variable interpolation ({pull_request.title}, {__raw__}) for building dynamic prompts from webhook payloads.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:02Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:02Z","dependencies":[{"issue_id":"archie-core-abg.27.4","depends_on_id":"archie-core-abg.27","type":"parent-child","created_at":"2026-07-26T00:08:01Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.27.3","title":"WebhookAdapter: script transforms","description":"Support external script transforms per route. Allow bash/python scripts to transform incoming webhook payloads before processing.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:01Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:01Z","dependencies":[{"issue_id":"archie-core-abg.27.3","depends_on_id":"archie-core-abg.27","type":"parent-child","created_at":"2026-07-26T00:08:00Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.27.2","title":"WebhookAdapter: declarative filters","description":"Implement declarative webhook filters with operators: all/any/not, field resolution, equals/contains/regex comparisons, and in_file lookups.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:08:00Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:08:00Z","dependencies":[{"issue_id":"archie-core-abg.27.2","depends_on_id":"archie-core-abg.27","type":"parent-child","created_at":"2026-07-26T00:07:59Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.27.1","title":"WebhookAdapter: HTTP server with per-route HMAC validation","description":"Implement WebhookAdapter as an HTTP server supporting per-route HMAC validation: GitHub X-Hub-Signature-256, GitLab X-Gitlab-Token, and a generic V2 timestamp-bound HMAC scheme.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:59Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:59Z","dependencies":[{"issue_id":"archie-core-abg.27.1","depends_on_id":"archie-core-abg.27","type":"parent-child","created_at":"2026-07-26T00:07:59Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.25.5","title":"systemd notify: sd_notify integration with loop-progress sampling","description":"Integrate sd_notify (systemd service notification) to signal readiness and watchdog status. Sample loop progress to periodically send WATCHDOG=1 notifications.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:55Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:55Z","dependencies":[{"issue_id":"archie-core-abg.25.5","depends_on_id":"archie-core-abg.25","type":"parent-child","created_at":"2026-07-26T00:07:55Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.25.3","title":"Drain control: marker file and instantiation epoch","description":"Implement drain control using a .drain_request.json marker file. Validate against instantiation epoch to distinguish stale drain requests from current ones.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:54Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:54Z","dependencies":[{"issue_id":"archie-core-abg.25.3","depends_on_id":"archie-core-abg.25","type":"parent-child","created_at":"2026-07-26T00:07:53Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.25.4","title":"Shutdown watchdog: out-of-loop os.Exit backstop","description":"Implement a shutdown watchdog with out-of-loop os.Exit as a backstop. After drain timeout, wait 60s grace period then force-exit to prevent hung processes.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:54Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:54Z","dependencies":[{"issue_id":"archie-core-abg.25.4","depends_on_id":"archie-core-abg.25","type":"parent-child","created_at":"2026-07-26T00:07:54Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.25.1","title":"Readiness probes: multi-check subsystem probe","description":"Implement readiness probes for: state_db (read-only probe), config (parse check), disk usage (\u003c90%), model (configured), and gateway state (connected adapters).","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:52Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:52Z","dependencies":[{"issue_id":"archie-core-abg.25.1","depends_on_id":"archie-core-abg.25","type":"parent-child","created_at":"2026-07-26T00:07:51Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.25.2","title":"Health endpoint: GET /health and GET /health/detailed","description":"Implement GET /health (simple liveness check) and GET /health/detailed (authenticated, returns per-subsystem readiness status with individual probe results).","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:52Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:52Z","dependencies":[{"issue_id":"archie-core-abg.25.2","depends_on_id":"archie-core-abg.25","type":"parent-child","created_at":"2026-07-26T00:07:52Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.24.6","title":"Job execution: claim, heartbeat, success/failure tracking","description":"Implement job execution lifecycle: claim jobs to prevent duplicate execution, send heartbeats during execution, and track success/failure outcomes via the delivery router.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:48Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:48Z","dependencies":[{"issue_id":"archie-core-abg.24.6","depends_on_id":"archie-core-abg.24","type":"parent-child","created_at":"2026-07-26T00:07:47Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.24.5","title":"CronScheduler provider interface","description":"Define the CronScheduler provider interface with methods: name(), start(stop_event, adapters, loop, interval). This is the plugin contract for scheduler implementations.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:47Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:47Z","dependencies":[{"issue_id":"archie-core-abg.24.5","depends_on_id":"archie-core-abg.24","type":"parent-child","created_at":"2026-07-26T00:07:46Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.9","title":"Multimodal result envelope handling","description":"Implement a multimodal result envelope type (is_multimodal flag, text summary, subdir hint). When tools return multimodal content (images, audio, video, documents), wrap the result in an envelope that provides a text summary for context-feed while storing the actual media at a hinted subdirectory path.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:44Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:44Z","dependencies":[{"issue_id":"archie-core-abg.17.9","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:43Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.24.4","title":"Lifecycle guard: reject dangerous commands in job specs","description":"Implement lifecycle guard to reject dangerous commands in job cron specs, including gateway restart, systemctl, launchctl, pkill and similar operations.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:43Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:43Z","dependencies":[{"issue_id":"archie-core-abg.24.4","depends_on_id":"archie-core-abg.24","type":"parent-child","created_at":"2026-07-26T00:07:42Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.24.3","title":"Blueprint catalog: parameterized templates with typed slots","description":"Implement a catalog of parameterized job templates with typed slots: time, enum, text, weekdays. Include form schema for UI generation.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:42Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:42Z","dependencies":[{"issue_id":"archie-core-abg.24.3","depends_on_id":"archie-core-abg.24","type":"parent-child","created_at":"2026-07-26T00:07:41Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.24.2","title":"Ticker engine: configurable interval, parallel/sequential pools","description":"Implement ticker engine with configurable check interval and support for both parallel and sequential thread pools for job execution.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:41Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:41Z","dependencies":[{"issue_id":"archie-core-abg.24.2","depends_on_id":"archie-core-abg.24","type":"parent-child","created_at":"2026-07-26T00:07:41Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.24.1","title":"Job store: JSON file with cross-process file locking","description":"Implement per-profile job store using JSON file at ~/.archie/cron/jobs.json with cross-process file locking via fcntl to prevent concurrent access.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:40Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:40Z","dependencies":[{"issue_id":"archie-core-abg.24.1","depends_on_id":"archie-core-abg.24","type":"parent-child","created_at":"2026-07-26T00:07:40Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.17.8","title":"File checkpointing before mutating operations","description":"Implement file checkpointing: before any tool that modifies state (file writes, config changes, etc.) executes, snapshot the relevant files or state sections so they can be rolled back on failure. This provides safety guards for mutating tool operations.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:38Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:38Z","dependencies":[{"issue_id":"archie-core-abg.17.8","depends_on_id":"archie-core-abg.17","type":"parent-child","created_at":"2026-07-26T00:07:37Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.8","title":"Rate limiting: per-user limiter with configurable window","description":"Implement a per-user rate limiter with configurable time window and max requests. Track usage per user/platform combination.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:36Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:36Z","dependencies":[{"issue_id":"archie-core-abg.22.8","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:35Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.9","title":"Rate limiting: brute-force lockout with escalating delays","description":"Implement brute-force lockout mechanism with escalating delay intervals on successive failures, integrated with the pairing system.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:36Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:36Z","dependencies":[{"issue_id":"archie-core-abg.22.9","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:36Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.7","title":"SlashAccessPolicy: admin/non-admin command gating","description":"Implement SlashAccessPolicy with allow_admin_from and user_allowed_commands settings to gate slash commands by user role.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:35Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:35Z","dependencies":[{"issue_id":"archie-core-abg.22.7","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:34Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.6","title":"Gateway auth mixin: per-platform env var patterns","description":"Support per-platform env var patterns for allowed users, e.g. TELEGRAM_ALLOWED_USERS, DISCORD_ALLOWED_USERS, SLACK_ALLOWED_USERS, etc.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:34Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:34Z","dependencies":[{"issue_id":"archie-core-abg.22.6","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:34Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.5","title":"Gateway auth mixin: layered authorization pipeline","description":"Implement GatewayAuthorizationMixin with layered auth: allowlists → role auth → relay delegation → pairing → deny, as a composable middleware for the gateway.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:33Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:33Z","dependencies":[{"issue_id":"archie-core-abg.22.5","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:32Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.4","title":"PairingStore: atomic file writes with per-platform files","description":"Implement atomic file writes (write to temp, rename) with chmod 0600. Store per-platform state in pending.json, approved.json, rate_limits.json files.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:32Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:32Z","dependencies":[{"issue_id":"archie-core-abg.22.4","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:31Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.3","title":"PairingStore: expiry, quotas, rate limits, lockout","description":"Implement 1-hour code expiry, max 3 pending codes per platform, rate limit of 1 request per 10 minutes per user, and lockout after 5 failed attempts.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:30Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:30Z","dependencies":[{"issue_id":"archie-core-abg.22.3","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:30Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.1","title":"PairingStore: cryptographic code generation","description":"Generate 8-character pairing codes from a 32-char unambiguous alphabet (excluding 0, O, 1, I) using crypto/rand.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:29Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:29Z","dependencies":[{"issue_id":"archie-core-abg.22.1","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:28Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.22.2","title":"PairingStore: salted SHA-256 hashing with constant-time comparison","description":"Hash pairing codes with salted SHA-256 and compare using crypto/subtle.ConstantTimeCompare (secrets.compare_digest equivalent in Go).","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:07:29Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:07:29Z","dependencies":[{"issue_id":"archie-core-abg.22.2","depends_on_id":"archie-core-abg.22","type":"parent-child","created_at":"2026-07-26T00:07:29Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.13","title":"TextBatchAggregator for rapid-fire text events","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:56Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:56Z","dependencies":[{"issue_id":"archie-core-abg.16.13","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:55Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.14","title":"Code-fence-aware message truncation","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:56Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:56Z","dependencies":[{"issue_id":"archie-core-abg.16.14","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:56Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.7","title":"BasePlatformAdapter interactive UX methods (clarify, approval, pickers)","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:50Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:50Z","dependencies":[{"issue_id":"archie-core-abg.16.7","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:49Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-abg.16.4","title":"EphemeralReply type with auto-delete TTL","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-07-25T14:06:48Z","created_by":"Sam Catlow","updated_at":"2026-07-25T14:06:48Z","dependencies":[{"issue_id":"archie-core-abg.16.4","depends_on_id":"archie-core-abg.16","type":"parent-child","created_at":"2026-07-26T00:06:48Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"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}
|
||||
|
||||
Reference in new issue
Block a user