5 Commits

Author SHA1 Message Date
Hermes Agent
7d81a761f9 docs(v1.2): planes as first-class graph nodes (Setting, Plane, EXISTS_IN, REFLECTS, LAYER_OF, ADJACENT_TO, ACCESSIBLE_VIA)
Replaces the v1.1 'world_id is a string' model with a graph-of-planes. Driven by Kay's Q2 ('worlds are planes') and the v1.2 design review.

- 17-planes.md (NEW): the plane taxonomy, the four relation types, Cypher patterns, migration from world_id, open questions
- 01-ontology.md: Plane and Setting as first-class nodes; the 6 plane-relation edge types
- 02-time-model.md: plane-aware time (entity_planes_at_time as the 6th time-aware primitive)
- 08-architecture.md: data flow for plane questions (the 'can I get from X to Y' pattern)
- 11-extensibility.md: how to add custom planes and plane-relations without code
- 12-storage-strategy.md: planes are pure graph (no Postgres/Redis/Qdrant/S3 changes)
- 14-examples.md: example 5 — full Setting + planes + Roland + Asmodeus + LLM tool calls
- README.md: v1.2 entry + doc 17 in the table of contents

The POC rebuild (T10) is the next step: migrate the existing 4 world_id values to Setting/Plane nodes and update the plugin queries to use EXISTS_IN/LOCATED_IN.
2026-06-17 03:17:15 +00:00
Hermes Agent
c28dc72e00 docs: 15-related-work + 16-comparison — research + honest critique
Researched 9 systems in the KG-RAG + LLM-reasoning space, with actual
abstracts, GitHub stars, and arXiv citations:

- Microsoft GraphRAG (33,779 stars, arXiv 2404.16130) — global summarization
- Cognee (17,843 stars, arXiv 2505.24478) — agent memory, cognitive ontology
- LightRAG (36,622 stars, arXiv 2410.05779) — graph-based text indexing
- Stanford Generative Agents (arXiv 2304.03442) — memory stream + reflection
- IVIE (arXiv 2606.13348) — neuro-symbolic interactive-fiction generator
- WikiChat (arXiv 2305.14292) — Wikipedia-grounded, 97.3% factual
- TKG methods (TLogic, Chain of History, TGL-LLM) — temporal forecasting
- Chain-of-Knowledge (arXiv 2306.06427) — in-prompt structured reasoning
- Long Story Generation (arXiv 2508.03137) — KG for long-form narrative

Critical findings:
- The Lore Engine's 'closed-world fictional ontology' niche is not crowded.
  No system does time-aware, contradiction-checking, source-attributed
  reasoning over a fictional world. That's the opening.
- BUT: GraphRAG/Cognee/LightRAG are 18-37k-star production systems.
  The Lore Engine is a design. Maturity gap is the single biggest weakness.
- The right move might be: build Lore Engine on top of Cognee, not
  GraphMCP-Example. Cognee is MIT, production, has paying users, and
  closes 80% of the substrate gap in 2 weeks of integration work.
- The most leveraged next move: 1-week spike to validate the core
  idea before committing to the 43-day build.

16-comparison.md is the honest assessment. Where the Lore Engine is
Worse is a direct list of 10 weaknesses; where it's Better is a
direct list of 10 strengths. Six debatable design decisions called
out for Kay to push back on.
2026-06-16 05:40:31 +00:00
Hermes Agent
09511a78e0 docs: v1.1 — extensibility, multi-store, microservice decomposition
New docs (1623 lines):
- 11-extensibility.md: polymorphic DomainEntity + TypeTemplate model.
  Adding a new domain (thieves-guild missions, war campaigns, etc.) is
  a YAML exercise, not a Go change. ~200 lines of Cypher, stable forever.
- 12-storage-strategy.md: split into 5 stores (Neo4j, Postgres, pgvector,
  Redis, S3/MinIO). Each store holds what it's good at. Cross-store queries
  compose at the handler layer. Sagas handle multi-store write consistency.
- 13-microservice-decomposition.md: split mcp-server's 1144-line main.go
  into a small gateway + pluggable handlers. Generic tool-handler protocol
  (GET /tools, POST /invoke). Macro/micro iteration at three speeds.
- 14-examples.md: three end-to-end worked examples showing the v1.1
  architecture in action. Thieves-guild mission (DomainEntity + Postgres),
  war-campaign tracker (DomainEntity + Postgres event log), black-market
  economy (NPC-tier-gated data + Postgres trade log).

Updates to v1 docs:
- 01-ontology: adds Plane, NPC, PC, Human labels (per Kay's Q2, Q3).
  Adds DomainEntity, Relation, TypeTemplate labels for v1.1.
- 02-time-model: year-level precision is the default (Kay's Q1).
- 09-roadmap: v1.1 phases (11-14), 20-day scope, recommended build order.
- 10-critique: open questions all resolved; 4 new S1/S2 risks recorded
  (closed-world ontology, single-binary iteration, polymorphic overhead,
  cross-store consistency). Polymorphic extension added to 'good at' list.

Design now v1.1: 14 docs, 4293 lines, ~280KB.
2026-06-16 05:25:21 +00:00
Hermes Agent
7c4ed58a5b docs: initial Lore Engine design (11 docs, ~140KB)
- 00-overview: goals, what we inherit from GraphMCP-Example, naming
- 01-ontology: 14 node labels, 40+ edge types, time-bound properties
- 02-time-model: era hierarchy, {era}.{year} canonical format, time_in_window UDF
- 03-macro-micro: 3 association patterns, lookup+active context, expand_context
- 04-consistency: Contradiction/Anachronism/Orphan/OntologyViolation, 4 rule categories
- 05-mcp-tools: 30 tools (8 inherited + 22 new), 5 composition patterns, 10 starter rules
- 06-ingestion: 3 paths (prose, structured YAML, dialogue), YAML schemas for 6 source types
- 07-reasoning-harness: 5 question types, system prompt, failure modes, worked example
- 08-architecture: system diagram, services layout, UDFs, schema bootstrap
- 09-roadmap: 11 phases, MVP = 19 days end of phase 4
- 10-critique: pressure-test, S1-S4 severity, open questions
2026-06-16 04:59:12 +00:00
3c20d353d3 Initial commit 2026-06-16 04:47:28 +00:00