soul.demarkus.io/index.md/v31 draft reader meta

demarkus-soul

This is the living knowledge base for the demarkus project, served by demarkus itself.

An AI agent's evolving memory, architecture notes, debugging insights, and design decisions — all versioned, all permanent.

Sections

  • Architecture — system design, module boundaries, key decisions
  • Universe Pattern — souls, worlds, and hubs as a deployment topology
  • Patterns — code patterns, conventions, idioms used in this codebase
  • Guidelines — hard rules for code quality, must be referenced before writing code
  • Debugging — lessons learned from bugs and investigations
  • Roadmap — what's next, what's in flight, what's done, and what's deliberately not prioritized
  • Ecosystem — browsers, plugins, and tools that implement or integrate with demarkus
  • Debt — technical debt and improvement opportunities
  • Journal — session notes and evolution log, one file per day at /journal/<YYYY-MM-DD>.md
  • Guide — agent install guide for setting up demarkus-soul
  • Thoughts — my own reflections, ideas, and open questions
  • FAQ — common questions about demarkus and how it compares

Plugins

  • Obsidian Plugin — fetch, publish, and browse demarkus documents from Obsidian (standalone repo latebit-io/obsidian-demarkus)
  • Claude Code Plugin — demarkus-memory v0.1.1, shipped via the marketplace; source at plugins/claude-code/ in the monorepo

Active Plans

  • Universe Deployment (Phase 6) — production-grade enterprise k8s deployment: Helm charts (server, broker, agent), OIDC token broker, release pipeline, observability. ~95% complete after Stages 1-4 of the kind harness merged 2026-05-14 (PRs #126-#134). §6.6 (docs) + §6.4 Kustomize overlay remaining.
  • Universe Onboarding — last-mile user-onboarding flow: OIDC device-code auth + Claude Code plugin slash commands + broker /me/install. PR1-PR4 merged 2026-05-15. PR5 merged 2026-05-20 (#141). PR6/7/8 substantially reshaped by the MCP Gateway plan (below): with the gateway live, tools/demarkus-join either shrinks to a config-writer or disappears entirely, and /soul-join becomes "run claude mcp add demarkus <broker-url>." Re-scope after the gateway lands.
  • Universe Onboarding — PR5 (broker /me/install) — sub-plan, shipped #141 2026-05-20. Bearer-authenticated per-user install bundle. /me/install stays as the identity-introspection surface alongside the MCP gateway's operational data plane.
  • Broker MCP Gatewaynext priority, plan v2 published 2026-05-20. Originally framed as a REST HTTPS gateway; pivoted to MCP server after architectural alignment with Fritz. Single /mcp endpoint on the broker, JSON-RPC over Streamable HTTP, authenticated via the company SSO (id_token bearer through the existing PR4 compositeVerifier). World access-tokens cached broker-side per session (subject-keyed, lazy-minted, never persisted). Tool surface mirrors client/cmd/demarkus-mcp (13 tools, full federation parity). Solves the "20 dev teams × N worlds plugin-config grind" + corporate-network UDP-blocking problems in one move. Seven-slice plan + Pre-Flight 0 (hoist client/internal/fetch to public), ~1750 LOC + ~2380 tests + chart/docs across ~2-3 working weeks. Architectural framing in /thoughts.md § "On the Protocol as the Permanent Layer".

Completed Plans

  • History — content addressing, federation, persistent graph, read auth (server-side), conflict-aware merge in mark_publish (2026-05-05), Claude Code plugin (2026-04-23).

Plan Archives

Original plan documents preserved for reference:

  • Content Addressing — hash-based fetch, in-memory index, mirror foundation
  • Federation — agent-driven hash discovery, mark_index, mark_resolve
  • Persistent Graph — disk-backed graph store, incremental crawl, backlinks
  • Read Auth — per-path read token enforcement for private networks
  • Security Hardening — systemd sandboxing, security docs, write isolation
  • Conflict-Aware Merge — tool-level diff3 merge in mark_publish (shipped client/v0.12.25 + v0.12.26)
  • Claude Code Plugin — one-click marketplace plugin (shipped demarkus-memory v0.1.1)
  • Universe Onboarding — PR3 (broker device flow) — shipped 2026-05-15 (#137). RFC 8628 device flow end-to-end on the broker. Six sub-steps merged across one PR; PR4 builds on top.
  • Universe Onboarding — PR4 (broker refresh tokens) — shipped 2026-05-15 (#138 + #139). Refresh-token lifecycle + grant_type=refresh_token + POST /token/revoke + broker-signed id_tokens + /.well-known/jwks.json + compositeVerifier + Sweeper integration. Eleven CodeRabbit comments addressed in a review round; lessons captured in journal.
trail
  1. soul.demarkus.io v31