diff --git a/docs/archie-core-v2-architecture.html b/docs/archie-core-v2-architecture.html new file mode 100644 index 000000000..1db893176 --- /dev/null +++ b/docs/archie-core-v2-architecture.html @@ -0,0 +1,358 @@ + + + + + + archie-core v2 Architecture + + + + +
+
+
+
+

archie-core v2 Architecture

+
+

Daemon/agent split • NATS JetStream • Ephemeral Docker sandboxes • Yaegi core plugins • Skills-driven workflows

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GitHub + Issues • PRs • Labels + + + + Gitea + Core Plugin + + + + Linear / Jira + Core Plugin + + + + + ~/.config/archie/plugins/ + + + + + + + + + + + archied (Daemon) + Discover → Publish → Spawn → Review → Deliver + Container lifecycle · Volume mgmt · Core plugin host · Message gatekeeper + + + + + + NATS JetStream + archie.task.* subjects + archie.agent.* channels + + + + pub + + + sub + + + + + .agents/skills/ + + + + archie-wf-implement + + + + archie-wf-tdd + + + + loaded by + agent + + + + + Docker Sandbox Pool (max_concurrency = 4) + + + + JetStream + pull + + + + + archie-agent (task-42) + Workflow: implement + Gate: gated agent loop + Bundled plugins loaded + Response → system → request channels + + + + + archie-agent (task-43) + Workflow: tdd + Gate: inverted (repro) + Bundled plugins loaded + Response → system → request channels + + + + + archie-agent (task-44) + Workflow: feasibility + Gate: read-only assess + Bundled plugins loaded + Response → system → request channels + + + + + + /data/ (docker volume) + task.json · session.jsonl · plugins/ · worktree/ + + + + /data/ (bind mount) + task.json · session.jsonl · MEMORY.md + + + + /data/ (docker volume) + task.json · session.jsonl · plugins/ · worktree/ + + + + + + + + + + + LLM Providers + OpenAI · Claude · Ollama + + + + Human Channels + Telegram · Email · Web + + + + ai-sdk/agentloop + + + + + + + reviewed responses → human channels + + + + + agent response channel + daemon reviews before human delivery + + + + + + + ~/.config/archie/plugins/ (Core Plugins — Yaegi .go) + + + + forge-gitea.go + + + + ticketing-jira.go + + + + storage-s3.go + + + + Legend + + + Daemon + + + Agent / Skills + + + Volumes / Storage + + + Core Plugins + + + Message Bus + + + Security / Gatekeep + + + External + + + Security Boundary + + + NATS Channel + + +
+ +
+
+
+
+

Daemon (archied)

+
+
    +
  • • Poll forges for assigned/labelled issues
  • +
  • • Publish tasks to NATS JetStream
  • +
  • • Spawn ephemeral Docker containers per task
  • +
  • • Review agent responses before human delivery
  • +
  • • Manage persistent volumes with TTL
  • +
  • • Load core plugins at startup via Yaegi
  • +
+
+ +
+
+
+

Agent (archie-agent)

+
+
    +
  • • Ephemeral Docker container, spawned per task
  • +
  • • Reads task.json from /data/ volume
  • +
  • • Runs routed workflow (implement / tdd / feasibility)
  • +
  • • Writes to response + system NATS channels
  • +
  • • Stays alive for grace period after completion
  • +
  • • Killed by daemon on terminal outcome or TTL
  • +
+
+ +
+
+
+

Extensibility Layers

+
+
    +
  • • Skills: archie-wf-* SKILL.md (agentskills.io spec)
  • +
  • • Bundled plugins: Yaegi .go inside skill plugins/
  • +
  • • Core plugins: Yaegi .go in ~/.config/archie/plugins/
  • +
  • • Forges, ticketing, storage, vault, notify — all plugins
  • +
  • • File extension determines interpreter (.go = Yaegi)
  • +
  • • Volume plugins override worktree plugins on conflict
  • +
+
+
+ + +
+ +