Skip to content

Commit 2f33053

Browse files
author
John Williams
committed
v0.2.0: The Cognition Update
New layers: - Cognition Layer (6 cognitive primitives) - Retrieval Router (churn-aware routing) - Index Lifecycle Manager (self-healing indexes) The industry builds: retrieve -> generate ContextOS builds: retrieve -> THINK -> generate
1 parent 9521560 commit 2f33053

14 files changed

Lines changed: 2877 additions & 400 deletions

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Changelog
2+
3+
## v0.2.0 -- The Cognition Update (2026-03-14)
4+
5+
**The industry builds: retrieve then generate. ContextOS builds: retrieve, THINK, then generate.**
6+
7+
### New Layers
8+
9+
**Cognition Layer** (`contextOS/cognition.py`)
10+
Six cognitive primitives that model how expert reasoning works between retrieval and output:
11+
- Active Forgetting -- drops retrieved context that degrades output quality
12+
- Reasoning Depth Calibration -- estimates how much thinking a problem deserves
13+
- Synthesis Detection -- determines whether to think or retrieve
14+
- Unknown Unknown Sensing -- detects missing categories of information
15+
- Productive Contradiction -- holds conflicting data as signal, not noise
16+
- Context-Dependent Gravity -- re-weights memory by current question
17+
18+
**Retrieval Router** (`contextOS/router.py`)
19+
Churn-aware routing that selects retrieval strategy per data source:
20+
- Data Source Registry with per-source churn profiles
21+
- Live/warm/cold classification with automatic fallback
22+
- Feedback-driven churn reclassification
23+
- Index freshness checking on every request
24+
25+
**Index Lifecycle Manager** (`contextOS/indexer.py`)
26+
Self-healing index infrastructure:
27+
- Event-driven re-indexing (MCP data events trigger rebuilds)
28+
- Embedding model drift detection and auto-rebuild
29+
- Schema change quarantine
30+
- Circuit breakers (3 failures -> degrade to live pull)
31+
- Heartbeat health checks
32+
33+
### Updated
34+
35+
- `contextOS/core.py` -- expanded from 5 to 8 layers, version bumped to 0.2.0
36+
- `contextOS/__init__.py` -- exports CognitionLayer, RetrievalRouter, IndexLifecycleManager
37+
- `pyproject.toml` -- version 0.2.0, new keywords, optional sentence-transformers/tantivy deps
38+
- `README.md` -- complete rewrite with cognition update documentation, examples, updated architecture
39+
- `docs/wiki/` -- new pages for Cognition Layer, Retrieval Router, Index Lifecycle Manager; updated Architecture, Home, Roadmap
40+
41+
### Architecture
42+
43+
```
44+
v0.1.0: 5 layers, 55 tools
45+
v0.2.0: 8 layers, 67 tools
46+
47+
New tools: cognition_think, cognition_forget, cognition_depth,
48+
cognition_contradictions, cognition_unknowns, cognition_gravity,
49+
router_register, router_route, router_health, router_feedback,
50+
router_reclassify, indexer_status, indexer_rebuild, indexer_heartbeat,
51+
indexer_circuit_reset, indexer_model_update
52+
```
53+
54+
### Origin
55+
56+
The six cognitive primitives were identified by tracing how reasoning actually works in a live conversation analyzing the "Is RAG Dead?" debate. The conversation itself became the spec -- each primitive was practiced before it was named.
57+
58+
---
59+
60+
## v0.1.0 (2025)
61+
62+
Initial release. Five layers: Orchestration, Memory, Retrieval, Tools, Planning. 55 MCP tools. Pre-Response Sparring Hook. MIT license.

README.md

Lines changed: 411 additions & 299 deletions
Large diffs are not rendered by default.

contextOS/__init__.py

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,29 @@
33
44
One pip install. Every capability. Nothing missing.
55
6+
v0.2.0 — The Cognition Update:
7+
The industry builds: retrieve → generate
8+
ContextOS builds: retrieve → THINK → generate
9+
10+
New layers:
11+
- CognitionLayer: six cognitive primitives for reasoning between
12+
retrieval and output (active forgetting, depth calibration,
13+
synthesis detection, unknown-unknown sensing, productive
14+
contradiction, context-dependent gravity)
15+
- RetrievalRouter: churn-aware routing per data source
16+
- IndexLifecycleManager: self-healing, event-driven re-indexing
17+
618
Built with respect for:
7-
- modelcontextprotocol/servers (80.5k )
8-
- infiniflow/ragflow (74.4k )
9-
- dair-ai/Prompt-Engineering-Guide (71.3k )
10-
- upstash/context7 (48.2k )
11-
- thedotmack/claude-mem (33.5k )
12-
- ComposioHQ/composio (27.3k )
13-
- gsd-build/get-shit-done (26.5k )
19+
- modelcontextprotocol/servers (80.5k stars)
20+
- infiniflow/ragflow (74.4k stars)
21+
- dair-ai/Prompt-Engineering-Guide (71.3k stars)
22+
- upstash/context7 (48.2k stars)
23+
- thedotmack/claude-mem (33.5k stars)
24+
- ComposioHQ/composio (27.3k stars)
25+
- gsd-build/get-shit-done (26.5k stars)
1426
"""
1527

16-
__version__ = "0.1.0"
28+
__version__ = "0.2.0"
1729
__author__ = "John Williams / IASAWI"
1830
__license__ = "MIT"
1931

@@ -23,6 +35,9 @@
2335
from .tools import ToolLayer
2436
from .planning import PlanningLayer
2537
from .orchestration import OrchestrationCore
38+
from .cognition import CognitionLayer
39+
from .router import RetrievalRouter
40+
from .indexer import IndexLifecycleManager
2641

2742
__all__ = [
2843
"ContextOS",
@@ -31,4 +46,7 @@
3146
"ToolLayer",
3247
"PlanningLayer",
3348
"OrchestrationCore",
49+
"CognitionLayer",
50+
"RetrievalRouter",
51+
"IndexLifecycleManager",
3452
]

0 commit comments

Comments
 (0)