sam
54e21bfbde
feat: feature-based YAML config with conf.d/ (LoadDir API)
...
Implemented archie-core-abg.19 — split monolithic config.toml into
modular feature files:
config.yaml — daemon-level fields
conf.d/gateway.yaml — chat channels, platforms
conf.d/tools.yaml — MCP servers, tool policy
conf.d/memory.yaml — memory provider config
conf.d/models.yaml — LLM providers and models
conf.d/identities.yaml — identity configs
New API: LoadDir(baseDir, overlayDir string) (Config, error)
- Missing files = feature disabled (no error)
- Legacy config.toml fallback when config.yaml absent
- Overlay merges on top of base
- Validation: unknown/duplicate/malformed files rejected
- YAML tags added to all 14 config types
- New types: MemoryConfig, ToolsConfig, MCPServer, ToolPolicy
- Extra map[string]any for conf.d/ plugins
28 tests green. Build + full config suite passes.
Closes: archie-core-abg.19
2026-07-26 01:04:35 +10:00
sam
415065ac66
test: feature-based config contract (28 tests for archie-core-abg.19)
...
Defines the LoadDir(baseDir, overlayDir) (Config, error) API:
- Daemon config in config.yaml
- Feature files in conf.d/ (Linux convention): gateway, tools,
memory, models, identities
- Missing files = feature disabled (no error)
- Legacy config.toml fallback when config.yaml absent
- Overlay merges on top of base
- Validation: unknown/duplicate/malformed files rejected
- New types: MemoryConfig, ToolsConfig, MCPServer, ToolPolicy
28 red tests — awaiting implementer.
2026-07-26 00:54:26 +10:00
sam
25a45373d9
beads: add 91 adversarial verification tasks for quality gate
...
One verification bead per implementation task (91 total). Each blocks
its implementation — verification must pass before the task is done.
Verification acceptance criteria: independent adversarial review by
fresh agent, no dead code paths, no lint issues, tests pass, code
formatted, no hardcoded values in tests.
This enforces red-then-green + adversarial-verify for every
implementation across the full 78-task Hermes parity surface.
2026-07-26 00:15:33 +10:00
sam
ddd61cc12f
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.
2026-07-26 00:08:55 +10:00
sam
7c88248799
beads: sync issue state after Hermes gap analysis
...
15 new issues created under multi-agent-collaboration epic (abg.16-abg.30).
3 P0 epics: gateway model, tool registry, memory providers.
Delivery system scoped to NATS JetStream (no separate actor engine needed).
Session persistence scoped to NellDB (replaces SQLite+FTS5 with vector search).
2026-07-26 00:05:36 +10:00
sam
5396436d35
docs: Hermes feature gap analysis — 60 gaps across 11 subsystems
...
7 subagents mapped the full Hermes codebase (~200 .py files, ~500K LOC).
Master gap analysis identifies 60 missing features across:
P0 (7): adapter lifecycle, message model, sessions, platform config,
tool registry, MCP client, memory provider ABC
P1 (13): send result, streaming, dedup, media, guardrails,
progressive disclosure, session history, pairing/auth,
CLI, config subcommands, profiles, readiness
P2 (22): interactive UX, subagents, browser/search/file tools,
compression, cron, dashboard, API server, delivery
P3 (3): billing, OAuth, desktop app
15 new beads issues created under the abg epic. NellDB identified
as the persistent memory/config backend (P0 integration issue).
2026-07-26 00:03:42 +10:00
sam
ae744d1cc4
feat: /spawn gateway command for chat-initiated tasks
...
TaskCreator interface on gateway.Router allows chat users to create
tasks via /spawn <title>. Implemented as gateway-local command (no LLM
needed). StoreTaskCreator wraps the daemon's store and uses the first
configured repo as the task workspace with timestamp-based synthetic
issue numbers to avoid collisions with Gitea-issued tasks.
Wired into archied's gateway startup: when repos are configured,
router.Tasks is populated so /spawn works. When no repos are
configured, /spawn returns 'not configured'.
Closes: archie-core-abg.13
2026-07-25 23:54:06 +10:00
sam
9df02f2b60
fix: golangci-lint baseline to zero findings (39→0)
...
19 files touched. All fixes are in code — no lint configuration
weakened:
- Added unchecked error handling in defer cleanup paths
- Removed dead variables and unused functions
- Added missing imports (io in gitea.go)
- Simplified conditions (TrimSuffix, De Morgan, slices.Contains)
Also fixes JetStream TempDir teardown race (archie-core-340):
t.Cleanup(srv.Shutdown) now registers after t.TempDir() so
server shutdown (including JetStream files) completes before
temp dir removal. Added srv.WaitForShutdown() for deterministic
cleanup ordering.
Closes: archie-core-756, archie-core-340
2026-07-25 23:51:13 +10:00
sam
399ca66e32
feat: multi-identity daemon config and core
...
internal/config/ — IdentityConfig struct for [[identities]] TOML
array. Backward-compatible: empty Identities uses legacy
single-identity fields unchanged. Validation for identity name,
bot_user, repos, forge type.
internal/daemon/ — IdentityRunner bundles per-identity forge client,
worktree manager, repos, and config. NewIdentityRunner constructor.
Run() starts one goroutine per identity with independent poll loops
for failure isolation. cycleForIdentity() polls identity repos via
dedicated forge client and drains shared store.
Design decision: per-identity goroutine with shared infrastructure
(store, NATS, container pool, event bus, web UI, plugin registry).
Closes: archie-core-abg.3, archie-core-abg.4
2026-07-25 23:50:58 +10:00
sam
f36b6f2e41
feat: gateway architecture with Telegram channel
...
internal/gateway/ — Gateway interface, Router with gateway-local
command dispatch (commands handled directly, no LLM needed).
ModelManager interface for /model and /models support.
internal/channels/telegram/ — Telegram Gateway using go-telegram/bot
v1.18.0 (ported from GopherClaw). Webhook support, middleware,
allowed-chat filtering, long-message splitting.
internal/config/ — ChatConfig + TelegramConfig optional TOML block.
Cmd wiring in archied/main.go: starts Telegram gateway when
[chat.telegram] token_env is configured.
Gateway-local commands implemented: /status, /help, /model, /models.
Write actions (/spawn, /approve, /cancel) follow in abg.13.
Closes: archie-core-abg.5, archie-core-abg.14, archie-core-abg.15
2026-07-25 23:50:52 +10:00
sam
e4c008af5e
docs: multi-agent collaboration PRD from discovery interview
...
Discovery interview (archie-core-abg.1) confirmed scope: daemon-side
concurrency, cross-repo/config flexibility, agent-to-agent handoff,
chat channels with full pipeline parity, and general extensibility.
Design answer confirms per-identity goroutine with shared
infrastructure for failure isolation.
2026-07-25 23:50:45 +10:00
sam
8a6be134dc
Merge pull request 'Feat/56 duplicate workflow warning fires on normal builtin overrides' ( #76 ) from feat/56-duplicate-workflow-warning-fires-on-normal-builtin-overrides into main
...
Reviewed-on: sam/archie-core#76
2026-07-25 08:53:12 +00:00
sam
1975a3d842
Merge branch 'main' into feat/56-duplicate-workflow-warning-fires-on-normal-builtin-overrides
2026-07-25 08:53:02 +00:00
sam
d5f3b5fe3d
Merge pull request 'esc() misses single quotes, enabling attribute JS breakout in task row onclick (archie)' ( #71 ) from feat/55-esc-misses-single-quotes-enabling-attribute-js-breakout-in-t into main
...
Reviewed-on: sam/archie-core#71
2026-07-25 01:30:09 +00:00
sam
c603b3596d
Merge branch 'main' into feat/55-esc-misses-single-quotes-enabling-attribute-js-breakout-in-t
2026-07-25 01:29:59 +00:00
sam
a6c321475e
Merge pull request 'metadata.archie.plugins frontmatter list is parsed but unused (archie)' ( #72 ) from feat/50-metadataarchieplugins-frontmatter-list-is-parsed-but-unused into main
...
Reviewed-on: sam/archie-core#72
2026-07-25 01:29:52 +00:00
sam
af9203bbd4
Merge branch 'main' into feat/50-metadataarchieplugins-frontmatter-list-is-parsed-but-unused
2026-07-25 01:29:41 +00:00
sam
cec6dbcaf2
Merge pull request 'gofmt: fix misaligned TaskRef struct fields in storage.go (archie)' ( #73 ) from fix/49-gofmt-fix-misaligned-taskref-struct-fields-in-storagego into main
...
Reviewed-on: sam/archie-core#73
2026-07-25 01:29:29 +00:00
sam
9c731710b3
Merge branch 'main' into fix/49-gofmt-fix-misaligned-taskref-struct-fields-in-storagego
2026-07-25 01:29:13 +00:00
sam
fd0b60072e
Merge pull request 'clip() can truncate strings mid-rune, producing invalid UTF-8 (archie)' ( #74 ) from feat/47-clip-can-truncate-strings-mid-rune-producing-invalid-utf-8 into main
...
Reviewed-on: sam/archie-core#74
2026-07-25 01:28:47 +00:00
archie
f83380e1bf
clip() can truncate strings mid-rune, producing invalid UTF-8 (archie)
...
Implements #47
2026-07-24 18:06:37 +00:00
archie
6f72f38f5e
fix: baseline gate repair (go vet ./...)
2026-07-24 18:04:15 +00:00
archie
8e76e5c7b3
fix: gofmt: fix misaligned TaskRef struct fields in storage.go (archie)
...
Fixes #49
2026-07-24 17:52:33 +00:00
archie
af17f4cd66
test: failing repro for #49
2026-07-24 17:51:39 +00:00
archie
ca92e24008
fix: baseline gate repair (go vet ./...)
2026-07-24 17:47:19 +00:00
archie
69b317a7c2
metadata.archie.plugins frontmatter list is parsed but unused (archie)
...
Implements #50
2026-07-24 17:42:17 +00:00
archie
b4efcf84ba
fix: baseline gate repair (go vet ./...)
2026-07-24 17:36:29 +00:00
archie
7632cba8e5
esc() misses single quotes, enabling attribute JS breakout in task row onclick (archie)
...
Implements #55
2026-07-24 17:33:22 +00:00
archie
e4d1f728d7
fix: baseline gate repair (go vet ./...)
2026-07-24 17:28:19 +00:00
archie
cc98d66bf2
Duplicate-workflow warning fires on normal builtin overrides too (archie)
...
Implements #56
2026-07-24 17:25:43 +00:00
archie
c742e4243d
fix: baseline gate repair (go vet ./...)
2026-07-24 17:12:17 +00:00
sam
d4e4148b77
Merge pull request 'askpass helper rewritten on every git call despite "(once)" comment (archie)' ( #68 ) from feat/59-askpass-helper-rewritten-on-every-git-call-despite-once-comm into main
...
Reviewed-on: http://git.catlow.cloud/sam/archie-core/pulls/68
2026-07-24 13:13:30 +00:00
sam
918b198258
fix: resolve merge conflicts with main
2026-07-24 23:12:25 +10:00
sam
8c961cad55
Merge pull request 'Add tests for Prepare's idempotent fast path and git error paths (archie)' ( #69 ) from fix/58-add-tests-for-prepares-idempotent-fast-path-and-git-error-pa into main
...
Reviewed-on: http://git.catlow.cloud/sam/archie-core/pulls/69
2026-07-24 07:45:05 +00:00
sam
d8379ecf22
Merge branch 'main' into fix/58-add-tests-for-prepares-idempotent-fast-path-and-git-error-pa
2026-07-24 07:44:55 +00:00
sam
4336dcf442
chore: remove task.json
2026-07-24 17:44:30 +10:00
sam
4d9e260046
fix: update gitignore
2026-07-24 17:43:00 +10:00
sam
bb784297ae
feat: fix webui task table and add merge-to-deploy automation
...
- webui: task rows referenced Go-style field names but store.Task
JSON-marshals with lowercase tags, so every task row rendered blank
- add .gitea/workflows/deploy.yml: build+push archied and archie-agent
images to the registry on merge to main
- docker-compose.yml: add a watchtower service so carina picks up new
images and restarts the daemons without needing CI to SSH in
2026-07-24 17:22:19 +10:00
sam
f2ce58e9f6
Merge pull request 'Prepare() treats worktree as ready from .git dir existence alone (archie)' ( #70 ) from feat/57-prepare-treats-worktree-as-ready-from-git-dir-existence-alon into main
...
Reviewed-on: http://git.catlow.cloud/sam/archie-core/pulls/70
2026-07-24 07:20:55 +00:00
archie
d2d10685e7
Prepare() treats worktree as ready from .git dir existence alone (archie)
...
Implements #57
2026-07-24 05:32:41 +00:00
archie
cd2da34c39
fix: Add tests for Prepare's idempotent fast path and git error paths (archie)
...
Fixes #58
2026-07-24 05:28:19 +00:00
archie
7e723b47a0
test: failing repro for #58
2026-07-24 05:27:26 +00:00
archie
e780596bf9
askpass helper rewritten on every git call despite "(once)" comment (archie)
...
Implements #59
2026-07-24 05:16:57 +00:00
sam
17307ef96e
chore: ignore build and task directories
2026-07-24 13:51:00 +10:00
sam
6ebbd3b2cf
fix: add missing LinkBranch stubs to test doubles
...
Fix go vet/test failures by adding LinkBranch methods to stubForge, prCapturingForge, testForge, and fakeForge. Update test data from 'sam/archie' to 'acme/widget' and state label defaults from 'archie:*' to 'agent:*'. Add Taskfile.yml for project build automation. Implement container self-network detection so spawned agents join the daemon's Docker network.
2026-07-24 13:32:50 +10:00
sam
d80401d595
feat: add config overlay and shared RPC/Yaegi packages
...
- Introduce `-config-overlay` flag and `config.LoadOverlay()` to merge a base config with an overlay file, only overriding fields the overlay sets. This enables docker-compose to mount the base config from the host and apply only deployment-specific overrides.
- Create `internal/natsrpc` package with reusable NATS request/reply primitives (Envelope, Client, Call, RegisterAll, Respond). Migrate storerpc, worktreerpc, and forgerpc to use it, eliminating duplicated marshal/unmarshal and error handling.
- Create `internal/yaegiutil` package with shared interpreter construction (stdlib + extra symbols), generic export resolution (Resolve), and panic recovery (Safe). Migrate all Yaegi-based surfaces (gate scripts, daemon plugins, skill plugins, workflow stages, skill scripts) to use it, reducing boilerplate and centralizing panic safety.
- Simplify `config.docker.toml` to contain only overlay fields (paths, container config) and remove the duplicated repos list – the base config is now the single source of truth.
- Update docker-compose.yml to pass both -config and -config-overlay flags and mount the base config from the host.
- Add tests for LoadOverlay, DockerConfigOverlaysExampleConfig, Envelope, and yaegiutil utilities.
2026-07-24 12:57:10 +10:00
sam
4573ed125a
chore: update issue tracking after batch of completed tasks
2026-07-24 12:56:44 +10:00
sam
d3062cf8dd
refactor: minimize config.docker.toml to Docker-specific overrides only
2026-07-24 12:34:01 +10:00
sam
8f8d0188b8
fix: host bind mounts for worktree to fix Docker container mount paths
2026-07-24 12:31:31 +10:00
sam
c1f8760c5f
chore: add collaboration/personas epics, close volume TTL issue
2026-07-24 12:27:09 +10:00