All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- PersonaArchitect SEP Integration: Persona and Lesson entities with full CRUD CLI
- Persona entity: name, role, domain, expertise, CoV/FAP/OV structured sections
- Lesson entity: title, domain, category, content, difficulty, source_persona
- CLI:
engram persona create|list|show|update|delete,engram lesson create|list|show|update|delete - Two-tier storage: embedded defaults + filesystem overrides
- Migrated 172 persona YAMLs with domain-adapted CoV/FAP/OV sections
- Health CLI: Git-based workspace diagnostics
engram health check— consistency validation and orphan detection- Health skill for structured project health assessment
- Doc Subcommand:
engram docwith entity documentation, CLI reference, mdBook build, NLQ integration - Task Archiving: Archive completed tasks to reduce noise in active queries
- NLQ Deep Graph Walk: Extended natural language queries to traverse entity relationships
- Workflow Command Guards: Enforce task-workflow binding before state transitions
- Escalation CLI:
engram escalation create|list|approve|deny|cancelfor permission management - Analytics & DORA Metrics: Deployment frequency, lead time, change failure rate, MTTR reporting
engram analyticsCLI with DORA dashboard
- StructuredFeedback Trait: Unified feedback interface across validation, testing, and review
- Transition Side-Effects: Automatic actions on workflow state changes
- Quality Gates Consolidation: Single quality gate pipeline replacing scattered checks
- Session Enhancements: Session summaries, zombie session detection, stale task identification, session filters,
--scopeflags onengram next - Locus TUI Screens: Contexts, ADRs, and Theories views with auto-refresh
- Workflow Engine: Commit policy enforcement, auto-transition fixes
- Knowledge Types: Typed knowledge entities for better categorization
- Skills: engram-commit-convention, ask-first refinement, engram-first research protocols
- Renamed GitStorage → GitRefsStorage throughout codebase
- Dead code cleanup, compliance fixes, sysinfo ResourceMonitor
--alland--offsetpagination flags on all list commands
- UTF-8 safe string truncation in
truncate()and skills preview
- TUI Sync View: Remote listing, sync status table, pull/push actions in Locus TUI
- Session Skills: session-start and session-end protocols with sync integration
- PATH-first binary resolution in commit-msg hook template
- Sync System (8 phases): Multi-agent coordination via git refs
- Phase 1: Project ID derivation from SHA-512 of root commit
- Phase 2: Versioned sidecar refs written on every entity write
- Phase 3: RemoteConfig with project_id and
import-git-remotessubcommand - Phase 4+5: Version-aware pull/push with
refs/engram/*refspec - Phase 6:
engram sync both(pull-then-push) - Phase 7: Conflict resolution CLI with stateless re-derivation
- Phase 8:
engram sync statuswith per-type table and--jsonoutput
- Locus TUI: Terminal UI for browsing entities, views, events with full test suite
- Auto-discover Skills: Runtime skill loading from
./skills/instead of compile-time embedding - test-harness-review Skill: Audit test coverage across behavioral, integration, property, scenario, and unit tests
- mdBook build output with theme assets
- Skill path references updated from opencode to engram
- Prompts stripped of OpenCode-specific content
- Screenplay Skills (11): session-start, beat-sheet-builder, outliner, logline-writer, theme-developer, world-builder, character-developer, scene-writer, dialogue-refiner, plot-hole-finder, rewriter
- Extended
engram ask queryto search across all entity types
- Go-to-Market Skills (3): market-validation, gtm-strategy, launch-execution
- Corresponding pipelines: 101-market-validation, 102-gtm-strategy, 103-launch-execution
- Tmux Skill: Named session management for parallel agent isolation
- NLQ Fulltext Search: Natural language query intent mapping to fulltext search
- Meta Skills: Extended setup with
--force,--dir,--toolflags - mdBook branding with logo, favicon, and Engram color theme
- Install script (
install.sh) as release artifact
- Corrected all 14 skill CLI commands
- Enforced
--task-idon reasoning create
-
Theory Building Entity: Formal mental model capture based on Peter Naur's "Programming as Theory Building" (1985)
domain_name: High-level domain identifierconceptual_model: HashMap of concept → definitionsystem_mapping: HashMap of concept → code locationdesign_rationale: HashMap of decision → reasoninvariants: Vec of must-be-true statementsiteration_count: Tracks theory evolutionapply_reflection_updates(): Evolve theory from reflections
-
StateReflection Entity: Cognitive dissonance detection for AI agents
theory_id: Theory being evaluatedobserved_state: Raw error/observationcognitive_dissonance: Vec of conflicts detectedproposed_theory_updates: How to resolve conflictsdissonance_score: 0.0-1.0 (≥0.7 requires theory mutation)trigger_type: test_failure, runtime_error, unexpected_output, etc.severity: none, low, medium, high, critical
-
Session Enhancements
- New
Reflectingstatus - blocks code execution until theory updated bind_theory()- injects theory invariants into session metadataactive_theory_id,theory_ids,reflection_idsfields
- New
-
CLI Commands
engram theory create|list|show|update|deleteengram reflect create|list|show|record-dissonance|propose-update|resolve|requires-mutationengram session bind-theory|trigger-reflection|resolve-reflection
-
mdBook Documentation: Full documentation with Theory Building and State Reflection guides
-
Pipeline:
prompts/ai/pipelines/00-theory-building.yamlfor theory extraction workflows -
Agent Persona:
prompts/agents/168-the-theorist.yamlfor reverse-engineering mental models
- Various clippy and formatting issues
- Syntax errors in theory.rs and session.rs
- Agent Sandboxing System: Complete permission escalation workflow
- EscalationHandler with create/approve/deny/cancel operations
- Risk assessment and alternative suggestions for blocked operations
- Integration with SandboxEngine validation pipeline
- Automatic escalation creation on permission violations
- Priority inference based on sandbox level and operation type
- engram next command: AI prompt generation for task-driven development
- Automatic task prioritization and selection
- Workflow state-aware prompt interpolation
- Dynamic prompt templates in workflow states
- Task relationship and dependency analysis
- Workflow Validator: State transition validation logic
- Workflow state progression validation
- Transition rule enforcement
- State-based commit policy validation
- Perkeep Integration: Backup and restore for all entity types
- Content-addressable blob storage using Perkeep server
- Backup/restore commands:
engram perkeep backup,restore,list,health - Configuration via PERKEEP_SERVER and PERKEEP_AUTH_TOKEN environment variables
- engram info command: Workspace and storage visibility
- Shows storage backend path and type
- Displays entity counts by type
- Shows current agent and workspace path
- Analytics System: Task duration and workflow reporting
- TaskDurationReport: Tracks time to complete tasks
- WorkflowStageReport: Analyzes workflow state progression
- BottleneckReport: Identifies workflow inefficiencies
- Vector Search: Optional semantic similarity search
- SQLite-based vector storage with sqlite-vec
- FastEmbed provider for embeddings
- SearchQuery and SearchResult types for similarity search
- Build warnings and compilation errors
- Feature-gated sandbox module to prevent unused code warnings
- Test compilation errors in BDD framework
- Agent sandbox entity serialization in generic conversion
- Workflow instance persistence to storage (fixed in previous commit)
- Improved workflow engine with prompt template support
- Enhanced workflow state machine with validation rules
- Initial engram implementation with core entities
- Git-backed storage system
- Basic CLI commands for task, context, and relationship management
- Workflow engine foundation
- Commit validation system
- Various stability and reliability improvements
- Initial release
- Core entity types (Task, Context, Reasoning, Relationship)
- Basic CLI interface
- Git storage backend