Commit graph

2 commits

Author SHA1 Message Date
Fred Amaral
5ae0fe0104
refactor: remove project-local persistence layer
Removes all features that saved session data to .ring/ folders in user projects. This includes artifact indexing (SQLite FTS5), context usage tracking, learning extraction, continuity ledgers, outcome inference, and automated session tracking.

Deleted infrastructure: 7 hooks, 4 skills, 2 commands, artifact-index lib (SQLite), compound_learnings lib, outcome-inference lib, shared utilities (ledger-utils, context-check, get-context-usage), tests, and documentation.

Updated: hooks.json (removed PostToolUse/PreCompact/Stop hooks), session-start.sh (removed ledger loading), hook-utils.sh (removed .ring directory functions), test files (removed context/ledger tests).
X-Lerian-Ref: 0x1
2026-01-15 00:07:53 -03:00
Fred Amaral
17512709fe
feat(context): add shared infrastructure for context management system
Add shell utility library for Ring hooks with RFC 8259 JSON escaping, hook utilities (stdin reading, JSON output), and context usage estimation with tiered warnings at 50%/70%/85% thresholds.

Include SQLite+FTS5 schema for artifact indexing with tables for handoffs, plans, continuity ledgers, queries, and learnings. Schema includes sync triggers, porter stemming, and convenience views for pattern analysis.

Also adds 8 implementation plans for the full context management system: macro architecture, shared infrastructure, artifact index, continuity ledger, handoff tracking, context warnings, RAG planning, and compound learnings.

X-Lerian-Ref: 0x1
2025-12-27 20:48:38 -03:00