Skip to content

feat: Phase 5 — Autonomous Knowledge Architecture (7 features)#129

Open
salishforge wants to merge 2 commits into
mainfrom
claude/codebase-cleanup-ycBzu
Open

feat: Phase 5 — Autonomous Knowledge Architecture (7 features)#129
salishforge wants to merge 2 commits into
mainfrom
claude/codebase-cleanup-ycBzu

Conversation

@salishforge
Copy link
Copy Markdown
Owner

Phase 5: Autonomous Knowledge Architecture

7 features that push MemForge beyond any competitor — from remembering to understanding.

New capabilities

# Feature Innovation New tools
1 Epistemic Confidence Model Calibrated uncertainty (established/provisional/contested/inferred) memforge_certainty
2 Explainable Memory Ops Every retrieval returns WHY via ExplanationFactor[] memforge_explain
3 Causal Memory Graph Inferred cause→effect chains, predictive queries memforge_causal_chain, memforge_predict
4 Hierarchical Abstraction Auto-extract principles from meta-reflections memforge_principles, memforge_mental_models
5 Adaptive Sleep Intelligence Per-phase analytics, auto-skip zero-change phases
6 Sentiment Tagging Urgency/sentiment/session_type on all memories
7 Transfer Learning Bootstrap new agents from experienced ones memforge_bootstrap

New sleep cycle phases

  • Phase 5.11: Principle Extraction (LLM extracts cross-cutting principles from meta-reflections)
  • Phase 5.12: Epistemic Promotion (auto-promote provisional→established with corroboration)
  • Phase 6.1: Causal Inference (mine temporal sequences for cause→effect patterns)

New REST endpoints

  • GET /memory/:id/epistemic — epistemic profile
  • GET /memory/:id/causal — causal chain traversal
  • POST /memory/:id/predict — predictive query
  • GET /memory/:id/principles — learned principles
  • GET /memory/:id/abstractions — all abstraction levels
  • POST /memory/:id/bootstrap — transfer learning

Stats

  • 1,268 lines added across 7 files
  • 7 new MCP tools (total: 54)
  • 6 new REST endpoints
  • 3 new sleep cycle phases
  • Schema migration: migration-v3.8.sql

Test plan

  • tsc --noEmit — 0 errors
  • Integration tests (need DB with v3.8 migration applied)
  • New feature-specific tests

https://claude.ai/code/session_0116EhmLb79eeBTN8P4wwFC1

claude added 2 commits May 8, 2026 08:47
1. Epistemic Confidence Model — calibrated uncertainty (established/
   provisional/contested/inferred) with evidence counting, auto-promotion
   via sleep Phase 5.12, and query-time epistemic filtering

2. Explainable Memory Operations — every retrieval returns WHY via
   ExplanationFactor[] (rank score, epistemic status, search mode,
   temporal decay). New memforge_explain tool for per-memory state audit

3. Causal Memory Graph — inferred cause→effect chains from temporal
   patterns via sleep Phase 6.1, recursive CTE traversal, and
   memforge_predict tool for "what typically follows X?"

4. Hierarchical Abstraction Engine — auto-extract principles from
   meta-reflections via sleep Phase 5.11, memforge_principles and
   memforge_mental_models tools

5. Adaptive Sleep Intelligence — per-phase analytics tracking,
   auto-skip phases with 3 consecutive zero-change cycles

6. Memory Sentiment Tagging — keyword-inferred urgency/sentiment/
   session_type context signals on hot and warm tiers

7. Cross-Agent Transfer Learning — memforge_bootstrap copies
   established knowledge between agents with confidence discounting
   and provenance tracking

Schema: migration-v3.8.sql (epistemic columns, causal_edges,
abstractions, sleep_phase_analytics, context_signals)

New MCP tools: memforge_certainty, memforge_explain, memforge_causal_chain,
memforge_predict, memforge_principles, memforge_mental_models,
memforge_bootstrap

New REST endpoints: /epistemic, /causal, /predict, /principles,
/abstractions, /bootstrap

https://claude.ai/code/session_0116EhmLb79eeBTN8P4wwFC1
…orts

- Add epistemic_status, evidence_count, context_signals columns to
  canonical hot_tier and warm_tier definitions
- Add causal_edges, abstractions, sleep_phase_analytics tables
- Add RLS policies for new tables
- Remove unused EpistemicStatus, EpistemicFilter, PhaseAnalytics imports

Fixes CI lint errors and integration test failures from missing columns.

https://claude.ai/code/session_0116EhmLb79eeBTN8P4wwFC1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants