Epic: Ouroboros-inspired agent infrastructure patterns
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start with the existing agent areas named in the issue—supervisor, registry, messaging, evolution, goal_alignment, task_decomposition, kg_agents, and kg_orchestration—and read plans/terraphim-ouroboros-rebuild-assessment.md plus the referenced knowledge files. Work through subissues #596–#602 in dependency order; completion is the set of exit criteria covering guardrails, event logging, budgets, learning capture, verdicts, EIDOS tracking, and KG promotion.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Absorb operational patterns from joi-lab/ouroboros and vibeship-spark-intelligence into terraphim's existing Rust architecture. Not a rebuild -- selective pattern adoption to close gaps in the agent layer and complete terraphim_agent_evolution.
Context
Ouroboros and Spark Intelligence demonstrate infrastructure patterns that terraphim's agent system (supervisor, registry, messaging, evolution, goal_alignment, task_decomposition, kg_agents, kg_orchestration) currently lacks. The foundation layer (types, automata, rolegraph, persistence, middleware, hooks, MCP) is solid; the agent layer is incomplete.
Ouroboros Patterns
- #596 Constitutional Guardrails (CONSTITUTION.md) -- ~2 hours
- #597 Event Sourcing for Agent Decisions -- ~1 day
- #598 Budget-Aware Multi-Model Routing -- ~4 hours
Spark Intelligence Patterns
- #599 Enhanced Learning Capture (multi-hook pipeline + importance scoring) -- ~1 day
- #600 Dimensional Verdict Scoring / Meta-Ralph (6-dimension judge scores) -- ~4 hours
- #601 EIDOS Episodic Reasoning (prediction-outcome tracking) -- ~1 day
- #602 Confidence-Driven KG Promotion (EIDOS threshold gates KG entry creation) -- ~1 day
Execution Order
#596 Constitutional Guardrails ─────────────────────────────────┐
│
#597 Event Sourcing ────┬──── #598 Budget-Aware Routing │
│ │
├──── #599 Enhanced Learning Capture │
│ | │
│ v │
├──── #600 Dimensional Verdict Scoring │
│ | │
│ v │
└──── #601 EIDOS Episodic Reasoning │
| │
v │
#602 Confidence-Driven KG Promotion│
#596 and #597 have no prerequisites and can start in parallel.
#602 is the capstone: Event Capture -> Event Store -> EIDOS -> Promotion -> KG Entry -> Aho-Corasick Automata.
Patterns NOT Adopted (and why)
| Pattern | Reason |
|---|---|
| Self-modifying source code | Rust compilation latency makes rapid evolution cycles impractical. Compound engineering (knowledge mutation via AGENTS.md/MEMORY.md) achieves continuous improvement without code mutation. |
| Background consciousness loop | Premature -- agent system needs to work before adding always-on thinking. v2.0 pattern. |
| LLM-first philosophy | Contradicts terraphim's deterministic-first philosophy. Aho-Corasick for deterministic matching, LLM only for reasoning. |
| Task deduplication via LLM | Use Aho-Corasick automata for semantic dedup. Faster, deterministic, cheaper. |
Design Principle
Terraphim's identity is Aho-Corasick + local-first data sovereignty. Agent evolution is not about self-modifying code (Ouroboros) -- it's about self-improving knowledge quality (Spark). The evolution happens in confidence-gated KG promotion, not in source code mutation. The Aho-Corasick engine stays constant; the knowledge graph grows autonomously when confidence thresholds are met.
Reference
- Analysis:
plans/terraphim-ouroboros-rebuild-assessment.md(in cto-executive-system) - KB entries:
knowledge/ouroboros-self-modifying-agent.md,knowledge/spark-intelligence-self-evolving-companion.md
Exit Criteria
- Constitutional guardrails enforced by agent_supervisor before execution
- Agent decisions logged as immutable event stream with drift detection
- LLM calls tracked per-task with budget limits and fallback chains
- Learning capture covers all three hook types with importance scoring
- Judge verdicts use 6-dimensional scoring with feedback loops
- EIDOS prediction-outcome loop tracks advisory accuracy
- High-confidence insights auto-promote to KG entries via Aho-Corasick indexing
- Ngôn ngữ chính
- Rust
- Star
- 62
- Fork
- 5
- Merge trung bình
- 2 giờ 27 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của terraphim/terraphim-ai
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
terraphim/terraphim-ai#885 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
terraphim/terraphim-ai#871 ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
terraphim/terraphim-ai#810 · 2 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
terraphim/terraphim-ai#729 ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
terraphim/terraphim-ai#728 ·
Tất cả issue của terraphim/terraphim-ai
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100