sinapse-ai 9.3.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/CLAUDE.md +56 -343
- package/.claude/rules/agent-authority.md +6 -0
- package/.claude/rules/agent-handoff.md +5 -0
- package/.claude/rules/cross-squad-routing.md +5 -0
- package/.claude/rules/hook-governance.md +6 -0
- package/.claude/rules/mcp-usage.md +3 -1
- package/.claude/rules/safe-collaboration.md +10 -0
- package/.claude/rules/security-data-protection.md +9 -0
- package/.claude/rules/squad-awareness.md +3 -1
- package/.claude/rules/tool-examples.md +6 -0
- package/.claude/rules/workflow-execution.md +7 -0
- package/.codex/agents/analyst.md +253 -72
- package/.codex/agents/architect.md +455 -68
- package/.codex/agents/data-engineer.md +492 -106
- package/.codex/agents/developer.md +560 -0
- package/.codex/agents/devops.md +518 -69
- package/.codex/agents/product-lead.md +335 -0
- package/.codex/agents/project-lead.md +377 -0
- package/.codex/agents/quality-gate.md +449 -0
- package/.codex/agents/sinapse-orqx.md +9 -7
- package/.codex/agents/sprint-lead.md +287 -0
- package/.codex/agents/squad-creator.md +344 -0
- package/.codex/agents/ux-design-expert.md +495 -0
- package/.codex/delegation-matrix.json +756 -44
- package/.codex/handoff-packet.schema.json +30 -6
- package/.sinapse-ai/data/entity-registry.yaml +175 -363
- package/.sinapse-ai/data/registry-update-log.jsonl +16 -0
- package/.sinapse-ai/development/agents/analyst.md +90 -0
- package/.sinapse-ai/development/agents/architect.md +73 -0
- package/.sinapse-ai/development/agents/developer.md +69 -0
- package/.sinapse-ai/development/agents/devops.md +117 -0
- package/.sinapse-ai/development/agents/quality-gate.md +85 -0
- package/.sinapse-ai/development/checklists/agent-quality-gate.md +27 -0
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +20 -0
- package/.sinapse-ai/development/checklists/code-review-checklist.md +106 -0
- package/.sinapse-ai/development/checklists/issue-triage-checklist.md +9 -0
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +16 -0
- package/.sinapse-ai/development/checklists/pr-quality-checklist.md +72 -0
- package/.sinapse-ai/development/checklists/security-deployment-checklist.md +54 -0
- package/.sinapse-ai/development/checklists/self-critique-checklist.md +19 -1
- package/.sinapse-ai/development/skills/debug.md +57 -0
- package/.sinapse-ai/development/skills/fast-review.md +69 -0
- package/.sinapse-ai/development/skills/research-synthesis.md +77 -0
- package/.sinapse-ai/development/skills/security-scan.md +73 -0
- package/.sinapse-ai/development/skills/verify.md +53 -0
- package/.sinapse-ai/development/templates/squad/agent-template.md +17 -4
- package/.sinapse-ai/development/templates/squad/checklist-template.md +13 -5
- package/.sinapse-ai/development/templates/squad/task-template.md +7 -0
- package/.sinapse-ai/development/templates/squad/workflow-template.yaml +7 -0
- package/.sinapse-ai/development/workflows/fast-track.yaml +87 -0
- package/.sinapse-ai/infrastructure/scripts/validate-codex-delegation.js +3 -1
- package/.sinapse-ai/install-manifest.yaml +71 -35
- package/docs/codex-integration-process.md +22 -0
- package/docs/codex-parity-program.md +27 -0
- package/docs/ide-integration.md +36 -0
- package/package.json +1 -1
- package/squads/claude-code-mastery/knowledge-base/claude-code-internals-reference.md +927 -0
- package/squads/squad-brand/knowledge-base/archetype-brand-mapping.md +12 -1
- package/squads/squad-brand/knowledge-base/brand-activism-cultural-branding.md +216 -0
- package/squads/squad-brand/knowledge-base/brand-audit-criteria.md +58 -0
- package/squads/squad-brand/knowledge-base/brand-digital-strategy.md +188 -0
- package/squads/squad-brand/knowledge-base/brand-legal-ip.md +222 -0
- package/squads/squad-brand/knowledge-base/brand-naming-framework.md +163 -0
- package/squads/squad-brand/knowledge-base/branding-master-reference.md +1001 -0
- package/squads/squad-brand/knowledge-base/color-psychology.md +25 -12
- package/squads/squad-brand/knowledge-base/employer-personal-branding.md +206 -0
- package/squads/squad-brand/knowledge-base/routing-catalog.md +34 -0
- package/squads/squad-brand/knowledge-base/sonic-branding-principles.md +6 -1
- package/squads/squad-brand/knowledge-base/typography-personality.md +34 -0
- package/squads/squad-claude/knowledge-base/context-window-optimization.md +334 -0
- package/squads/squad-claude/knowledge-base/knowledge-architecture-reference.md +403 -0
- package/squads/squad-claude/knowledge-base/memory-systems-reference.md +412 -0
- package/squads/squad-claude/knowledge-base/obsidian-claude-integration.md +423 -0
- package/squads/squad-claude/knowledge-base/retrieval-augmented-generation.md +320 -0
- package/squads/squad-claude/knowledge-base/skill-creation-patterns.md +380 -0
- package/squads/squad-claude/knowledge-base/swarm-orchestration-patterns.md +411 -0
- package/squads/squad-cloning/knowledge-base/clone-quality-assurance.md +211 -0
- package/squads/squad-cloning/knowledge-base/confidence-scoring.md +51 -0
- package/squads/squad-cloning/knowledge-base/cross-squad-deployment.md +47 -0
- package/squads/squad-cloning/knowledge-base/ethical-guidelines.md +237 -0
- package/squads/squad-cloning/knowledge-base/knowledge-graph-for-clones.md +295 -0
- package/squads/squad-cloning/knowledge-base/memory-architecture-for-clones.md +229 -0
- package/squads/squad-cloning/knowledge-base/multi-agent-deployment-patterns.md +320 -0
- package/squads/squad-cloning/knowledge-base/skill-standard-for-clones.md +262 -0
- package/squads/squad-cloning/knowledge-base/sop-extraction-guide.md +243 -0
- package/squads/squad-commercial/knowledge-base/account-based-selling.md +206 -0
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +14 -0
- package/squads/squad-commercial/knowledge-base/ai-in-sales.md +199 -0
- package/squads/squad-commercial/knowledge-base/brazilian-sales-context.md +195 -0
- package/squads/squad-commercial/knowledge-base/customer-success-operations.md +83 -2
- package/squads/squad-commercial/knowledge-base/prospecting-pipeline-generation.md +69 -0
- package/squads/squad-commercial/knowledge-base/sales-enablement-playbook.md +260 -0
- package/squads/squad-commercial/knowledge-base/sales-methodology-comparison.md +185 -0
- package/squads/squad-commercial/knowledge-base/sales-revenue-master-reference.md +1123 -0
- package/squads/squad-content/knowledge-base/brazilian-content-context.md +176 -0
- package/squads/squad-content/knowledge-base/competitor-analysis-methods.md +40 -1
- package/squads/squad-content/knowledge-base/content-architecture-taxonomy.md +206 -0
- package/squads/squad-content/knowledge-base/content-formats-encyclopedia.md +58 -1
- package/squads/squad-content/knowledge-base/content-references-bibliography.md +130 -0
- package/squads/squad-content/knowledge-base/content-strategy-master-reference.md +1097 -0
- package/squads/squad-content/knowledge-base/content-tech-stack.md +150 -0
- package/squads/squad-content/knowledge-base/copywriting-formulas-library.md +188 -0
- package/squads/squad-content/knowledge-base/email-newsletter-strategy.md +161 -0
- package/squads/squad-content/knowledge-base/platform-algorithm-intelligence.md +86 -1
- package/squads/squad-content/knowledge-base/social-algorithms-master-reference.md +1007 -0
- package/squads/squad-content/knowledge-base/video-audio-content-playbook.md +218 -0
- package/squads/squad-copy/knowledge-base/ai-copy-production.md +254 -0
- package/squads/squad-copy/knowledge-base/brazilian-copywriting-context.md +242 -0
- package/squads/squad-copy/knowledge-base/email-copywriting-system.md +299 -0
- package/squads/squad-copy/knowledge-base/landing-page-copy-architecture.md +267 -0
- package/squads/squad-copy/knowledge-base/power-words-catalog.md +205 -0
- package/squads/squad-copy/knowledge-base/seo-copywriting.md +255 -0
- package/squads/squad-copy/knowledge-base/video-script-copywriting.md +239 -0
- package/squads/squad-council/knowledge-base/brand-strategy-models.md +193 -0
- package/squads/squad-council/knowledge-base/growth-strategy-models.md +267 -0
- package/squads/squad-council/knowledge-base/innovation-disruption-frameworks.md +193 -0
- package/squads/squad-council/knowledge-base/market-analysis-frameworks.md +240 -0
- package/squads/squad-council/knowledge-base/organizational-leadership-models.md +212 -0
- package/squads/squad-council/knowledge-base/sales-strategy-models.md +215 -0
- package/squads/squad-courses/knowledge-base/course-launch-strategy.md +251 -0
- package/squads/squad-courses/knowledge-base/domain-advocacia-curriculum.md +385 -0
- package/squads/squad-courses/knowledge-base/domain-contabilidade-curriculum.md +266 -0
- package/squads/squad-courses/knowledge-base/platform-comparison.md +68 -0
- package/squads/squad-courses/knowledge-base/video-production-guide.md +70 -0
- package/squads/squad-cybersecurity/knowledge-base/cloud-security-reference.md +363 -0
- package/squads/squad-cybersecurity/knowledge-base/compliance-frameworks.md +273 -0
- package/squads/squad-cybersecurity/knowledge-base/database-security.md +438 -0
- package/squads/squad-cybersecurity/knowledge-base/incident-response-playbook.md +420 -0
- package/squads/squad-cybersecurity/knowledge-base/network-security-reference.md +477 -0
- package/squads/squad-cybersecurity/knowledge-base/penetration-testing-methodology.md +350 -0
- package/squads/squad-cybersecurity/knowledge-base/vulnerability-management.md +349 -0
- package/squads/squad-design/knowledge-base/brazilian-design-context.md +223 -0
- package/squads/squad-design/knowledge-base/component-api-patterns.md +208 -4
- package/squads/squad-design/knowledge-base/design-system-master-reference.md +1302 -0
- package/squads/squad-design/knowledge-base/design-systems-frameworks.md +91 -1
- package/squads/squad-design/knowledge-base/responsive-modern-css.md +96 -4
- package/squads/squad-design/knowledge-base/wcag-aria-reference.md +117 -5
- package/squads/squad-design/knowledge-base/web-performance-reference.md +127 -4
- package/squads/squad-finance/knowledge-base/brazilian-taxation.md +263 -0
- package/squads/squad-finance/knowledge-base/contabilidade-master-reference.md +998 -0
- package/squads/squad-finance/knowledge-base/finance-master-reference.md +946 -0
- package/squads/squad-finance/knowledge-base/financial-reporting-analysis.md +316 -0
- package/squads/squad-finance/knowledge-base/fintech-brazilian-context.md +242 -0
- package/squads/squad-finance/knowledge-base/fpa-planning-frameworks.md +286 -0
- package/squads/squad-finance/knowledge-base/ma-and-transactions.md +285 -0
- package/squads/squad-finance/knowledge-base/risk-management.md +233 -0
- package/squads/squad-finance/knowledge-base/startups-venture-capital.md +337 -0
- package/squads/squad-growth/knowledge-base/ai-growth-playbook.md +216 -0
- package/squads/squad-growth/knowledge-base/attribution-models.md +78 -0
- package/squads/squad-growth/knowledge-base/brazilian-growth-context.md +208 -0
- package/squads/squad-growth/knowledge-base/community-led-growth.md +175 -0
- package/squads/squad-growth/knowledge-base/content-marketing-flywheel.md +190 -0
- package/squads/squad-growth/knowledge-base/email-lifecycle-framework.md +192 -0
- package/squads/squad-growth/knowledge-base/growth-frameworks-catalog.md +82 -0
- package/squads/squad-growth/knowledge-base/growth-master-reference.md +1168 -0
- package/squads/squad-growth/knowledge-base/routing-catalog.md +53 -11
- package/squads/squad-paidmedia/knowledge-base/audiences-segmentation-deep.md +285 -0
- package/squads/squad-paidmedia/knowledge-base/creative-strategy-deep.md +294 -0
- package/squads/squad-paidmedia/knowledge-base/google-ads-account-architecture.md +87 -0
- package/squads/squad-paidmedia/knowledge-base/meta-ads-campaign-architecture.md +76 -0
- package/squads/squad-paidmedia/knowledge-base/paid-media-metrics-reference.md +117 -0
- package/squads/squad-paidmedia/knowledge-base/paid-traffic-master-reference.md +1308 -0
- package/squads/squad-paidmedia/knowledge-base/routing-catalog.md +95 -18
- package/squads/squad-paidmedia/knowledge-base/traffic-masters-frameworks.md +71 -0
- package/squads/squad-product/knowledge-base/brazilian-product-context.md +284 -0
- package/squads/squad-product/knowledge-base/discovery-methodology-playbook.md +141 -0
- package/squads/squad-product/knowledge-base/pm-frameworks-reference.md +125 -9
- package/squads/squad-product/knowledge-base/product-analytics-formulas.md +72 -0
- package/squads/squad-product/knowledge-base/product-led-growth-reference.md +155 -13
- package/squads/squad-product/knowledge-base/product-market-fit-framework.md +222 -0
- package/squads/squad-product/knowledge-base/routing-catalog.md +32 -0
- package/squads/squad-research/knowledge-base/agentic-second-brain-reference.md +591 -0
- package/squads/squad-research/knowledge-base/ai-augmented-research.md +212 -0
- package/squads/squad-research/knowledge-base/brazilian-market-research-sources.md +197 -0
- package/squads/squad-research/knowledge-base/community-platforms-reference.md +786 -0
- package/squads/squad-research/knowledge-base/community-research-methods.md +194 -0
- package/squads/squad-research/knowledge-base/mixed-methods-research-design.md +168 -0
- package/squads/squad-research/knowledge-base/network-effects-analysis.md +192 -0
- package/squads/squad-research/knowledge-base/qualitative-research-deep-methods.md +202 -0
- package/squads/squad-research/knowledge-base/quantitative-research-methods.md +208 -0
- package/squads/squad-research/knowledge-base/research-frameworks-encyclopedia.md +40 -0
- package/squads/squad-research/knowledge-base/research-synthesis-frameworks.md +223 -0
- package/squads/squad-storytelling/knowledge-base/brand-mythology-framework.md +236 -0
- package/squads/squad-storytelling/knowledge-base/brazilian-storytelling-context.md +237 -0
- package/squads/squad-storytelling/knowledge-base/data-storytelling.md +232 -0
- package/squads/squad-storytelling/knowledge-base/improv-storytelling.md +226 -0
- package/squads/squad-storytelling/knowledge-base/persuasion-narrative-techniques.md +269 -0
- package/squads/squad-storytelling/knowledge-base/social-movement-narratives.md +191 -0
- package/squads/squad-storytelling/knowledge-base/video-storytelling.md +252 -0
- package/squads/claude-code-mastery/data/swarm-orchestration-patterns.yaml +0 -378
- package/squads/squad-animations/knowledge-base/framer-motion-complete-reference.md +0 -710
- package/squads/squad-animations/knowledge-base/web-animations-api-view-transitions.md +0 -478
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
# Knowledge Architecture Reference
|
|
2
|
+
|
|
3
|
+
> GraphRAG, temporal knowledge graphs, ontologies, taxonomies, and PKM frameworks. Based on MS-009 Agentic Second Brain research (April 2026).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Knowledge Architecture Fundamentals
|
|
8
|
+
|
|
9
|
+
Knowledge architecture is the formal design of how knowledge is structured, classified, and related within a system. It determines:
|
|
10
|
+
|
|
11
|
+
- **Findability:** How agents and humans locate relevant information
|
|
12
|
+
- **Connectivity:** How ideas relate and form meaning networks
|
|
13
|
+
- **Evolution:** How new knowledge integrates without fragmenting existing knowledge
|
|
14
|
+
- **Reasoning:** How agents make inferences over stored knowledge
|
|
15
|
+
|
|
16
|
+
**Without architecture:** A vault becomes a "knowledge cemetery" — information accumulated but inaccessible.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Knowledge Organization Frameworks
|
|
21
|
+
|
|
22
|
+
### Zettelkasten
|
|
23
|
+
|
|
24
|
+
**Origin:** Niklas Luhmann, 1960-1990. Produced 70 books from ~90,000 interlinked notes.
|
|
25
|
+
|
|
26
|
+
**Principles:**
|
|
27
|
+
- **Atomicity:** One idea = one note
|
|
28
|
+
- **Permanent notes:** Write in your own words, not copy-paste
|
|
29
|
+
- **Links:** Every note connected to related notes
|
|
30
|
+
- **Emergence:** Knowledge emerges from the network, not the hierarchy
|
|
31
|
+
|
|
32
|
+
**For agents:** A-Mem (NeurIPS 2025) formally proved Zettelkasten-inspired memory outperforms flat storage in agentic contexts.
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
note-001.md: "Context windows limit agent working memory"
|
|
36
|
+
links_to: [note-042, note-007]
|
|
37
|
+
|
|
38
|
+
note-042.md: "Compaction preserves user requests but loses reasoning"
|
|
39
|
+
links_to: [note-001, note-089]
|
|
40
|
+
|
|
41
|
+
note-007.md: "CLAUDE.md content survives compaction"
|
|
42
|
+
links_to: [note-001, note-042]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### PARA Method
|
|
46
|
+
|
|
47
|
+
**Origin:** Tiago Forte, Building a Second Brain (2022).
|
|
48
|
+
|
|
49
|
+
| Folder | Contains | Lifespan |
|
|
50
|
+
|--------|---------|---------|
|
|
51
|
+
| **P**rojects | Active work with end date | Weeks-Months |
|
|
52
|
+
| **A**reas | Ongoing responsibilities | Indefinite |
|
|
53
|
+
| **R**esources | Reference material | Long-term |
|
|
54
|
+
| **A**rchives | Completed/inactive items | Permanent |
|
|
55
|
+
|
|
56
|
+
**For vaults:**
|
|
57
|
+
```
|
|
58
|
+
vault/
|
|
59
|
+
├── Projects/ → Active sprints, current epics
|
|
60
|
+
├── Areas/ → Squad capabilities, client relationships
|
|
61
|
+
├── Resources/ → KB files, research, frameworks
|
|
62
|
+
└── Archives/ → Completed stories, old research
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Evergreen Notes
|
|
66
|
+
|
|
67
|
+
**Origin:** Andy Matuschak, 2019+.
|
|
68
|
+
|
|
69
|
+
**Core principle:** Notes are "evergreen" when they:
|
|
70
|
+
- Are written for future you (not just today)
|
|
71
|
+
- Use concepts, not just references
|
|
72
|
+
- Get updated as understanding deepens
|
|
73
|
+
- Link to related evergreen notes
|
|
74
|
+
|
|
75
|
+
**Difference from zettelkasten:** Evergreen emphasizes **continuous refinement**; zettelkasten emphasizes **density of connections**.
|
|
76
|
+
|
|
77
|
+
### Maps of Content (MOC)
|
|
78
|
+
|
|
79
|
+
Index notes that aggregate related topics. Not content themselves — navigation aids.
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
# MOC: Claude Code Architecture
|
|
83
|
+
|
|
84
|
+
## Core Systems
|
|
85
|
+
- [[agent-loop]] — The fundamental while(true) loop
|
|
86
|
+
- [[tool-system]] — 184 tools, 40 registered, ~20 enabled
|
|
87
|
+
- [[memory-architecture]] — 3-layer: MEMORY.md + topics + transcripts
|
|
88
|
+
|
|
89
|
+
## Context Management
|
|
90
|
+
- [[compaction-system]] — 5-layer pipeline
|
|
91
|
+
- [[prompt-caching]] — 14 cache-break vectors
|
|
92
|
+
- [[deferred-tools]] — 93% token reduction
|
|
93
|
+
|
|
94
|
+
## Multi-Agent
|
|
95
|
+
- [[coordinator-mode]] — 4-phase orchestration
|
|
96
|
+
- [[fork-model]] — Cache-sharing for parallelism
|
|
97
|
+
- [[worktree-isolation]] — Git-based blast radius control
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Knowledge Graph
|
|
101
|
+
|
|
102
|
+
Formal graph structure with nodes (entities) and edges (relationships).
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
Entities: Person, Concept, Project, Decision, Insight, Source
|
|
106
|
+
Relations: relates-to, depends-on, contradicts, evolved-from, authored-by
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Best for:** Agentic systems where agents need to reason over structured knowledge.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Ontology Design
|
|
114
|
+
|
|
115
|
+
### What is an Ontology?
|
|
116
|
+
|
|
117
|
+
A formal specification of concepts and relationships in a domain. The difference between a taxonomy (hierarchy) and an ontology (full semantic web of relationships).
|
|
118
|
+
|
|
119
|
+
### Base Ontology for Second Brains
|
|
120
|
+
|
|
121
|
+
```yaml
|
|
122
|
+
entity_types:
|
|
123
|
+
- Person
|
|
124
|
+
- Organization
|
|
125
|
+
- Concept
|
|
126
|
+
- Project
|
|
127
|
+
- Decision
|
|
128
|
+
- Insight
|
|
129
|
+
- Source
|
|
130
|
+
- Tool
|
|
131
|
+
- Pattern
|
|
132
|
+
|
|
133
|
+
relationship_types:
|
|
134
|
+
- relates-to # bidirectional, general
|
|
135
|
+
- depends-on # A cannot exist without B
|
|
136
|
+
- contradicts # A and B are in tension
|
|
137
|
+
- evolved-from # A is a refinement of B
|
|
138
|
+
- authored-by # A was created by B
|
|
139
|
+
- applies-to # A is applicable in context B
|
|
140
|
+
- invalidates # A makes B obsolete
|
|
141
|
+
- supports # A provides evidence for B
|
|
142
|
+
- implements # A is a concrete realization of B
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Hybrid Ontology (Prescrita + Aprendida)
|
|
146
|
+
|
|
147
|
+
**Prescrita:** Defined upfront — stable entity types, core relationships.
|
|
148
|
+
|
|
149
|
+
**Aprendida:** LLMs extract new categories and relationships from usage patterns over time.
|
|
150
|
+
|
|
151
|
+
**Graphiti implementation:**
|
|
152
|
+
- Fixed ontology: defines core entity types and relationship types
|
|
153
|
+
- Learned ontology: agent adds new relationship types as patterns emerge
|
|
154
|
+
- Version tracking: ontology changes are versioned with timestamps
|
|
155
|
+
|
|
156
|
+
### Over-Engineering Risks
|
|
157
|
+
|
|
158
|
+
- Complex ontologies that neither humans nor agents can maintain
|
|
159
|
+
- Rigid taxonomies that don't accommodate emergent knowledge
|
|
160
|
+
- Tool-specific architectures that create lock-in
|
|
161
|
+
- Inconsistency: outdated facts polluting the graph without invalidation mechanism
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## GraphRAG Architecture
|
|
166
|
+
|
|
167
|
+
### What is GraphRAG?
|
|
168
|
+
|
|
169
|
+
Evolution of standard RAG (Retrieval-Augmented Generation) that incorporates a knowledge graph in the retrieval process.
|
|
170
|
+
|
|
171
|
+
**Standard RAG:** Query → Vector similarity → Top-K chunks → Generate
|
|
172
|
+
|
|
173
|
+
**GraphRAG:**
|
|
174
|
+
```
|
|
175
|
+
Query
|
|
176
|
+
→ Vector similarity → Top-K chunks (semantic coverage)
|
|
177
|
+
→ Entity extraction from query
|
|
178
|
+
→ Graph traversal → Related entities and relations (structural precision)
|
|
179
|
+
→ RRF fusion → Merged, ranked context
|
|
180
|
+
→ Cross-encoder reranking → Final top-N
|
|
181
|
+
→ LLM Generation
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Why GraphRAG Wins
|
|
185
|
+
|
|
186
|
+
| Approach | Strength | Weakness |
|
|
187
|
+
|----------|---------|----------|
|
|
188
|
+
| Vector-only | Semantic nuance, edge cases | Misses exact matches, acronyms |
|
|
189
|
+
| BM25-only | Exact matches, terminology | Misses semantic similarity |
|
|
190
|
+
| Graph-only | Structural reasoning | Misses unstructured content |
|
|
191
|
+
| GraphRAG (hybrid) | Best of all three | More complex to maintain |
|
|
192
|
+
|
|
193
|
+
**Hybrid search reduces errors by 35-60% vs pure semantic retrieval.**
|
|
194
|
+
|
|
195
|
+
### LazyGraphRAG (Microsoft, 2026)
|
|
196
|
+
|
|
197
|
+
Index at the cost of vector RAG (0.1% of full GraphRAG cost) with comparable quality for global queries. Defers expensive graph analysis to query time.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Temporal Knowledge Graphs
|
|
202
|
+
|
|
203
|
+
### The Problem with Static Graphs
|
|
204
|
+
|
|
205
|
+
Facts change over time. Without temporal modeling:
|
|
206
|
+
- "X works at Company A" might be outdated
|
|
207
|
+
- "Framework Y is the best choice" may no longer be true
|
|
208
|
+
- Project statuses, team structures, technology choices all evolve
|
|
209
|
+
|
|
210
|
+
### Bi-Temporal Model (Graphiti/Zep)
|
|
211
|
+
|
|
212
|
+
Two time dimensions tracked per fact:
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
Fact edge:
|
|
216
|
+
content: "User prefers TypeScript over Python"
|
|
217
|
+
event_time: "2025-03-15" ← When this was true in the world
|
|
218
|
+
ingestion_time: "2025-03-16" ← When we learned about it
|
|
219
|
+
valid_from: "2025-03-15" ← Start of validity
|
|
220
|
+
valid_to: null ← Still valid (null = current)
|
|
221
|
+
source: "user_statement_session_42"
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
**When conflict arises:**
|
|
225
|
+
```
|
|
226
|
+
Old fact: valid_to = new_fact.valid_from (invalidated, not deleted)
|
|
227
|
+
New fact: created with new valid_from
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
This preserves history while ensuring current queries return current state.
|
|
231
|
+
|
|
232
|
+
### Temporal Query Patterns
|
|
233
|
+
|
|
234
|
+
```python
|
|
235
|
+
# Current facts only
|
|
236
|
+
graph.query("preferences", temporal="current")
|
|
237
|
+
|
|
238
|
+
# Historical view
|
|
239
|
+
graph.query("preferences", temporal={"at": "2025-01-01"})
|
|
240
|
+
|
|
241
|
+
# Change history
|
|
242
|
+
graph.query("preferences", temporal="all_versions")
|
|
243
|
+
|
|
244
|
+
# What changed this week
|
|
245
|
+
graph.query("*", temporal={"since": "2025-03-10"})
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Knowledge Quality Framework
|
|
251
|
+
|
|
252
|
+
### Quality Score Formula
|
|
253
|
+
|
|
254
|
+
```
|
|
255
|
+
Quality Score =
|
|
256
|
+
0.25 × accuracy + # Verifiable facts? Sources cited?
|
|
257
|
+
0.20 × completeness + # All sections filled? Links present?
|
|
258
|
+
0.20 × freshness + # Time since last review
|
|
259
|
+
0.20 × utility + # Retrieval frequency, user feedback
|
|
260
|
+
0.15 × connectivity # Number and quality of links
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
**Score thresholds:**
|
|
264
|
+
- >= 80: Evergreen (high confidence)
|
|
265
|
+
- 60-79: Healthy (periodic review)
|
|
266
|
+
- 40-59: Needs Attention
|
|
267
|
+
- < 40: At Risk (candidate for archival)
|
|
268
|
+
|
|
269
|
+
### Content Decay Types
|
|
270
|
+
|
|
271
|
+
| Type | Example | Detection |
|
|
272
|
+
|------|---------|-----------|
|
|
273
|
+
| **Factual decay** | Framework version changed | Compare with external sources |
|
|
274
|
+
| **Contextual decay** | Project was cancelled | Status field tracking |
|
|
275
|
+
| **Relevance decay** | Topic no longer a priority | Usage analytics |
|
|
276
|
+
| **Structural decay** | Broken links, obsolete tags | Graph validation |
|
|
277
|
+
| **Temporal decay** | Note has date but no review deadline | Metadata check |
|
|
278
|
+
|
|
279
|
+
### Knowledge Lifecycle
|
|
280
|
+
|
|
281
|
+
```
|
|
282
|
+
[DRAFT]
|
|
283
|
+
→ [REVIEWED] (validated by agent or human)
|
|
284
|
+
→ [PUBLISHED] (stable, referenced by others)
|
|
285
|
+
→ [EVERGREEN] (proven, highly connected)
|
|
286
|
+
|
|
|
287
|
+
↓ (decay detected)
|
|
288
|
+
[NEEDS UPDATE]
|
|
289
|
+
|
|
|
290
|
+
↓ (updated) or (abandoned)
|
|
291
|
+
[UPDATED] or [DEPRECATED]
|
|
292
|
+
| |
|
|
293
|
+
↓ ↓
|
|
294
|
+
[PUBLISHED] [ARCHIVED]
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Vector Database Decision Guide
|
|
300
|
+
|
|
301
|
+
### Selection Criteria
|
|
302
|
+
|
|
303
|
+
| Criterion | Consideration |
|
|
304
|
+
|-----------|--------------|
|
|
305
|
+
| Scale | How many vectors? (millions vs billions) |
|
|
306
|
+
| Latency | P95 acceptable? (<50ms vs <100ms) |
|
|
307
|
+
| Hybrid search | Native BM25 + vector support? |
|
|
308
|
+
| Compliance | SOC 2, HIPAA required? |
|
|
309
|
+
| Cost | Cloud managed vs self-hosted |
|
|
310
|
+
| Ecosystem | Integration with existing tools |
|
|
311
|
+
|
|
312
|
+
### Decision Matrix (2026)
|
|
313
|
+
|
|
314
|
+
| Database | Best For | Scale | P95 | SOC 2 |
|
|
315
|
+
|----------|---------|-------|-----|-------|
|
|
316
|
+
| Pinecone | Enterprise, managed | Billions | <50ms | Yes |
|
|
317
|
+
| Weaviate | Hybrid search native | 100s M | <100ms | Yes |
|
|
318
|
+
| Qdrant | Performance/cost | 100s M | <100ms | Yes |
|
|
319
|
+
| Chroma | Prototyping | Millions | Variable | No |
|
|
320
|
+
| pgvector | PostgreSQL users | 5-100M | Variable | Inherits |
|
|
321
|
+
| Milvus | Cost at scale | Billions | <50ms | No |
|
|
322
|
+
|
|
323
|
+
**Strategy:** pgvector → Qdrant → Weaviate (as scale/requirements grow).
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## Obsidian as Second Brain Infrastructure
|
|
328
|
+
|
|
329
|
+
### Why Obsidian
|
|
330
|
+
|
|
331
|
+
- **Local-first:** Files are plain markdown on your filesystem
|
|
332
|
+
- **Plugin ecosystem:** 1,000+ community plugins
|
|
333
|
+
- **Graph view:** Visual knowledge network
|
|
334
|
+
- **Claude Code integration:** Vault can be working directory for agents
|
|
335
|
+
- **No vendor lock-in:** Standard markdown, portable forever
|
|
336
|
+
|
|
337
|
+
### Optimal Vault Structure
|
|
338
|
+
|
|
339
|
+
```
|
|
340
|
+
vault/
|
|
341
|
+
├── 00-inbox/ # Quick capture, unprocessed
|
|
342
|
+
├── 01-daily/ # Daily notes, session logs
|
|
343
|
+
├── 02-projects/ # Active project notes
|
|
344
|
+
├── 03-areas/ # Ongoing responsibilities
|
|
345
|
+
├── 04-resources/ # Reference material
|
|
346
|
+
├── 05-archive/ # Completed/inactive
|
|
347
|
+
├── 06-templates/ # Note templates
|
|
348
|
+
├── 07-agents/ # Agent configurations + memory
|
|
349
|
+
├── 08-analytics/ # Vault health metrics
|
|
350
|
+
├── _attachments/ # Images, PDFs, media
|
|
351
|
+
├── _data/ # Structured data (JSON, YAML)
|
|
352
|
+
└── .obsidian/ # Config (theme, plugins, etc.)
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Claudian Integration (2026)
|
|
356
|
+
|
|
357
|
+
Plugin embedding Claude Code as collaborator inside Obsidian:
|
|
358
|
+
- Vault as agent working directory
|
|
359
|
+
- Inline edit with diff preview
|
|
360
|
+
- Slash commands/skills
|
|
361
|
+
- @mentions for subagents and MCP servers
|
|
362
|
+
- ~4K GitHub stars (April 2026)
|
|
363
|
+
|
|
364
|
+
### obsidian-skills Starter Kit
|
|
365
|
+
|
|
366
|
+
Official [obsidian-skills](https://github.com/kepano/obsidian-skills) (by Obsidian CEO Steph Ango):
|
|
367
|
+
- Teaches agents to correctly handle wikilinks, frontmatter, Bases databases, JSON Canvas
|
|
368
|
+
- Obsidian 1.12 CLI natively supports agent integration
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
## SINAPSE Knowledge Architecture
|
|
373
|
+
|
|
374
|
+
### Current State
|
|
375
|
+
|
|
376
|
+
SINAPSE uses a document-first approach:
|
|
377
|
+
- Stories in `docs/stories/`
|
|
378
|
+
- Architecture in `docs/architecture/`
|
|
379
|
+
- KB files in `squads/{squad}/knowledge-base/`
|
|
380
|
+
|
|
381
|
+
### Recommended Enhancements
|
|
382
|
+
|
|
383
|
+
1. **MOC files** — Create index notes for each major domain in KB
|
|
384
|
+
2. **Frontmatter standards** — Add `created_date`, `updated_date`, `review_by`, `status`, `links_to` to KB files
|
|
385
|
+
3. **Quality scoring** — Periodic audit of KB files using quality formula
|
|
386
|
+
4. **Decay detection** — Flag KB files not updated in 90+ days
|
|
387
|
+
5. **Graph visualization** — Use `sinapse graph` to visualize knowledge connections
|
|
388
|
+
|
|
389
|
+
### KB File Template
|
|
390
|
+
|
|
391
|
+
```yaml
|
|
392
|
+
---
|
|
393
|
+
title: {Title}
|
|
394
|
+
type: reference|guide|pattern|architecture
|
|
395
|
+
status: draft|reviewed|published|evergreen|deprecated
|
|
396
|
+
created: {date}
|
|
397
|
+
updated: {date}
|
|
398
|
+
review_by: {date}
|
|
399
|
+
quality_score: {number}
|
|
400
|
+
tags: [tag1, tag2]
|
|
401
|
+
links_to: [file1.md, file2.md]
|
|
402
|
+
---
|
|
403
|
+
```
|