Ontology
A typed vocabulary + constraint system for representing knowledge as a verifiable graph.
Core Concept
Everything is an entity with a type, properties, and relations to other entities. Every mutation is validated against type constraints before committing.
When to Use
Core Types
Storage
Default: memory/ontology/graph.jsonl
Query via scripts or direct file ops. For complex graphs, migrate to SQLite.
Workflows
Create Entity
Query
Link Entities
Validate
Constraints
Define in memory/ontology/schema.yaml:
Skill Contract
Skills that use ontology should declare:
Planning as Graph Transformation
Model multi-step plans as a sequence of graph operations:
Each step is validated before execution. Rollback on constraint violation.
Integration Patterns
With Causal Inference
Log ontology mutations as causal actions:
Cross-Skill Communication
Quick Start
References
references/schema.md— Full type definitions and constraint patternsreferences/queries.md— Query language and traversal examples


