entitystorelisted
Install: claude install-skill VictorGjn/agent-skills
# entitystore
The EntityStore **engine** — the machinery behind a provenance-tracked company
brain. Carved out of `context-engineering` so the engine is reusable and
**schema-agnostic**: it never embeds an entity schema, it reads one by path.
## Why it exists (the split)
| Layer | Owns | Lives in |
|---|---|---|
| **entitystore** (this skill) | engine: raw/events/wiki tiers, Source ABC, consolidator, auditor, packer, MCP | here (sibling of `context-engineering`) |
| **schema + canonical entities** | `entity.schema.json` + the git source-of-truth entities | `company-brain` |
| **domain Sources / connectors** | company-knowledge→events, HubSpot / Notion / Granola adapters | `syroco-product-ops` |
Because the schema lives with the data (not the engine), **adding a new entity
kind or property is a schema + data change with ZERO engine change.** The engine
validates and packs whatever schema company-brain hands it.
## The three tiers (unchanged from CE)
```
brain/
├── raw/ verbatim source bytes, content-addressed (Sources via fetch())
├── events/ append-only JSONL, one event = one claim (Sources via emit_events())
└── wiki/ consolidated entity pages, every claim → source (wiki_init + audit)
```
- **Consolidate only on cosine drift** (`semantic_shift.py`) — the wiki doesn't
churn on every event.
- **Auditor** (`audit.py`) surfaces splits / merges / contradictions (with
per-side provenance) / dead links / freshness expiries.
- **Packer** (`pack_context*.p