kiro-spec-engine 1.22.0 â 1.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +191 -0
- package/README.md +31 -0
- package/bin/kiro-spec-engine.js +8 -0
- package/docs/autonomous-control-guide.md +478 -0
- package/docs/images/wechat-qr.png +0 -0
- package/docs/knowledge-management-guide.md +263 -0
- package/lib/auto/autonomous-engine.js +485 -0
- package/lib/auto/checkpoint-manager.js +300 -0
- package/lib/auto/config-schema.js +176 -0
- package/lib/auto/decision-engine.js +344 -0
- package/lib/auto/error-recovery-manager.js +580 -0
- package/lib/auto/progress-tracker.js +502 -0
- package/lib/auto/safety-manager.js +186 -0
- package/lib/auto/state-manager.js +126 -0
- package/lib/auto/task-queue-manager.js +340 -0
- package/lib/commands/auto.js +229 -0
- package/lib/commands/knowledge.js +309 -0
- package/lib/knowledge/entry-manager.js +208 -0
- package/lib/knowledge/index-manager.js +261 -0
- package/lib/knowledge/knowledge-manager.js +273 -0
- package/lib/knowledge/template-manager.js +191 -0
- package/lib/workspace/multi/workspace-state-manager.js +1 -10
- package/package.json +1 -1
- package/template/.kiro/steering/CORE_PRINCIPLES.md +90 -97
- package/template/.kiro/steering/CURRENT_CONTEXT.md +12 -67
- package/template/.kiro/steering/ENVIRONMENT.md +18 -98
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,197 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.24.2] - 2026-02-05
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- **Steering Optimization**: Reduced token consumption by 70-80% across all steering files
|
|
14
|
+
- ENVIRONMENT.md: Simplified from detailed sections to core information (75% reduction)
|
|
15
|
+
- CURRENT_CONTEXT.md: Condensed to essential status summary (80% reduction)
|
|
16
|
+
- RULES_GUIDE.md: Streamlined to key rules only (70% reduction)
|
|
17
|
+
- Total reduction: ~1500 tokens saved per session
|
|
18
|
+
- Improved AI response speed and available context space
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **Frontend-Backend Alignment Principle**: New core principle for field consistency
|
|
22
|
+
- Backend data model as authoritative source
|
|
23
|
+
- Frontend fields must align with backend definitions
|
|
24
|
+
- Prevents legacy field accumulation in frontend code
|
|
25
|
+
|
|
26
|
+
## [1.24.1] - 2026-02-03
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
- **Knowledge Management - EntryManager**: Core file operations for knowledge entries
|
|
30
|
+
- Entry creation with YAML frontmatter and metadata
|
|
31
|
+
- Entry reading and parsing with frontmatter support
|
|
32
|
+
- Entry updating with automatic timestamp management
|
|
33
|
+
- Entry deletion with optional backup system
|
|
34
|
+
- Entry validation with comprehensive error checking
|
|
35
|
+
- Unique ID generation (kb-{timestamp}-{random} format)
|
|
36
|
+
- Kebab-case filename generation from titles
|
|
37
|
+
- Full CRUD operations for knowledge base entries
|
|
38
|
+
|
|
39
|
+
### Technical Details
|
|
40
|
+
- Implements all methods from design specification
|
|
41
|
+
- Uses fs-extra for atomic file operations
|
|
42
|
+
- Uses js-yaml for frontmatter parsing/serialization
|
|
43
|
+
- Backup system stores deleted entries in .backups/ directory
|
|
44
|
+
- Comprehensive error handling with descriptive messages
|
|
45
|
+
- Foundation for Phase 1 of Spec 34-00-user-knowledge-management
|
|
46
|
+
|
|
47
|
+
## [1.24.0] - 2026-02-03
|
|
48
|
+
|
|
49
|
+
### Added
|
|
50
|
+
- **User Knowledge Management System (MVP)**: Personal knowledge base for capturing project experiences
|
|
51
|
+
- **Knowledge Base**: Organize patterns, lessons, workflows, checklists, and references
|
|
52
|
+
- **CLI Commands**: Complete command set for knowledge management
|
|
53
|
+
- `kse knowledge init` - Initialize knowledge base
|
|
54
|
+
- `kse knowledge add <type> <title>` - Add new entry (pattern/lesson/workflow/checklist/reference)
|
|
55
|
+
- `kse knowledge list` - List all entries with filtering and sorting
|
|
56
|
+
- `kse knowledge search <keyword>` - Search entries (title, tags, content)
|
|
57
|
+
- `kse knowledge show <id>` - Display entry details
|
|
58
|
+
- `kse knowledge delete <id>` - Delete entry with backup
|
|
59
|
+
- `kse knowledge stats` - Show statistics
|
|
60
|
+
- **Entry Types**: Five built-in types with customizable templates
|
|
61
|
+
- Pattern: Design patterns and architectural solutions
|
|
62
|
+
- Lesson: Lessons learned from experience
|
|
63
|
+
- Workflow: Custom workflows and processes
|
|
64
|
+
- Checklist: Task checklists
|
|
65
|
+
- Reference: Reference materials and links
|
|
66
|
+
- **Features**:
|
|
67
|
+
- YAML frontmatter + Markdown content
|
|
68
|
+
- Tag-based organization
|
|
69
|
+
- Fast metadata indexing (index.json)
|
|
70
|
+
- Automatic backup on deletion
|
|
71
|
+
- Full-text search support
|
|
72
|
+
- Customizable templates
|
|
73
|
+
- **Documentation**: Complete user guide at `docs/knowledge-management-guide.md`
|
|
74
|
+
|
|
75
|
+
### Technical Details
|
|
76
|
+
- Knowledge stored in `.kiro/knowledge/` directory
|
|
77
|
+
- Lightweight index for fast lookups (not auto-loaded into AI context)
|
|
78
|
+
- Modular architecture: EntryManager, IndexManager, TemplateManager, KnowledgeManager
|
|
79
|
+
- Cross-platform support (Windows/Linux/macOS)
|
|
80
|
+
|
|
81
|
+
### Future Enhancements
|
|
82
|
+
- AI-powered knowledge analysis and suggestions
|
|
83
|
+
- Knowledge integration into project documentation
|
|
84
|
+
- Import/export functionality
|
|
85
|
+
- Advanced search with semantic understanding
|
|
86
|
+
|
|
87
|
+
## [1.23.2] - 2026-02-02
|
|
88
|
+
|
|
89
|
+
### Added
|
|
90
|
+
- **AI Autonomous Control System (Complete Version)**: Full autonomous execution framework
|
|
91
|
+
- **Safety Manager**: Safety boundary enforcement with operation validation
|
|
92
|
+
- Production environment access control
|
|
93
|
+
- Workspace boundary validation
|
|
94
|
+
- External system access confirmation
|
|
95
|
+
- Destructive operation protection
|
|
96
|
+
- Audit logging for all operations
|
|
97
|
+
- **Learning System Persistence**: Error recovery learning with historical data
|
|
98
|
+
- Success/failure history tracking across sessions
|
|
99
|
+
- Strategy prioritization based on historical performance
|
|
100
|
+
- Automatic learning data persistence to `.kiro/auto/learning-data.json`
|
|
101
|
+
- **Estimation Improvement**: Task duration tracking and prediction
|
|
102
|
+
- Historical task duration tracking by task type
|
|
103
|
+
- Weighted average estimation (more weight to recent data)
|
|
104
|
+
- Improved completion time estimates over multiple executions
|
|
105
|
+
- Historical data persistence to `.kiro/auto/historical-data.json`
|
|
106
|
+
- **CORE_PRINCIPLES Compliance**: Automatic verification of kse project structure
|
|
107
|
+
- Checks for `.kiro` directory (adoption marker)
|
|
108
|
+
- Validates `version.json`, `specs/`, `steering/` directories
|
|
109
|
+
- Ensures Spec-driven development workflow compliance
|
|
110
|
+
- **Comprehensive Documentation**:
|
|
111
|
+
- Complete user guide: `docs/autonomous-control-guide.md`
|
|
112
|
+
- Quick start examples and best practices
|
|
113
|
+
- Troubleshooting guide with common issues
|
|
114
|
+
- Configuration reference with all options
|
|
115
|
+
- FAQ section
|
|
116
|
+
- **README Updates**: Added Autonomous Control feature to main README
|
|
117
|
+
- Feature overview with quick start examples
|
|
118
|
+
- Links to detailed documentation
|
|
119
|
+
|
|
120
|
+
### Improved
|
|
121
|
+
- **Error Recovery**: Enhanced with persistent learning across sessions
|
|
122
|
+
- **Progress Tracking**: Improved time estimates using historical data
|
|
123
|
+
- **Safety**: Integrated safety checks into all file operations and task execution
|
|
124
|
+
|
|
125
|
+
## [1.23.1] - 2026-02-02
|
|
126
|
+
|
|
127
|
+
### Fixed
|
|
128
|
+
- **CI Test Stability**: Fixed timing issue in docs-stats-report test
|
|
129
|
+
- Increased delay from 10ms to 100ms to ensure file write completion in CI environment
|
|
130
|
+
- Aligns with other similar tests that use 100ms delay for filesystem operations
|
|
131
|
+
- All 1689 tests now pass reliably
|
|
132
|
+
|
|
133
|
+
## [1.23.0] - 2026-02-02 [YANKED]
|
|
134
|
+
|
|
135
|
+
### Note
|
|
136
|
+
- This version was yanked due to CI test failure
|
|
137
|
+
- All features moved to v1.23.1
|
|
138
|
+
|
|
139
|
+
### Added
|
|
140
|
+
- **AI Autonomous Control System (MVP)**: Complete autonomous execution framework for Spec-driven development
|
|
141
|
+
- **Core Managers**: 7 specialized managers for autonomous operation
|
|
142
|
+
- `StateManager`: Persistent state management with automatic save/load
|
|
143
|
+
- `TaskQueueManager`: Task queue with dependency analysis and priority-based execution
|
|
144
|
+
- `ErrorRecoveryManager`: Automatic error recovery with 3-attempt retry and learning system
|
|
145
|
+
- `ProgressTracker`: Real-time progress tracking with comprehensive audit logging
|
|
146
|
+
- `DecisionEngine`: Design decision documentation and pattern detection
|
|
147
|
+
- `CheckpointManager`: Checkpoint creation and rollback with user approval workflow
|
|
148
|
+
- `AutonomousEngine`: Central orchestrator integrating all managers
|
|
149
|
+
- **CLI Commands**: Complete command set for autonomous execution
|
|
150
|
+
- `kse auto create <description>`: Create and run Spec autonomously from feature description
|
|
151
|
+
- `kse auto run <spec>`: Execute existing Spec tasks autonomously
|
|
152
|
+
- `kse auto status`: Display current execution state and progress
|
|
153
|
+
- `kse auto resume`: Resume from last checkpoint after pause
|
|
154
|
+
- `kse auto stop`: Gracefully stop execution and save state
|
|
155
|
+
- `kse auto config`: View and update autonomous execution configuration
|
|
156
|
+
- **Key Features**:
|
|
157
|
+
- Continuous task execution without interruption
|
|
158
|
+
- Automatic error recovery with strategy learning
|
|
159
|
+
- Progress tracking with detailed execution logs
|
|
160
|
+
- Checkpoint system with rollback capability (keeps last 5 checkpoints)
|
|
161
|
+
- User approval workflow at critical phase boundaries
|
|
162
|
+
- Configuration-based safety boundaries
|
|
163
|
+
- State persistence for resume after interruption
|
|
164
|
+
- **Configuration Schema**: Comprehensive configuration with validation
|
|
165
|
+
- Execution modes: conservative, balanced, aggressive
|
|
166
|
+
- Safety boundaries: production protection, workspace limits
|
|
167
|
+
- Error recovery settings: max attempts, timeout, strategies
|
|
168
|
+
- Checkpoint settings: auto-create, user approval requirements
|
|
169
|
+
- **State Management**: Complete state tracking
|
|
170
|
+
- Execution status (running, paused, stopped)
|
|
171
|
+
- Current phase and task
|
|
172
|
+
- Progress percentages by phase
|
|
173
|
+
- Checkpoint history
|
|
174
|
+
- Error recovery attempts
|
|
175
|
+
- Decision records
|
|
176
|
+
|
|
177
|
+
### Technical Details
|
|
178
|
+
- State stored in `.kiro/auto/state.json` with atomic updates
|
|
179
|
+
- Checkpoints stored in `.kiro/auto/checkpoints/` with metadata
|
|
180
|
+
- Configuration hierarchy: global defaults < project config < runtime options
|
|
181
|
+
- Error recovery strategies: syntax fixes, import resolution, null checks, retry
|
|
182
|
+
- Learning system tracks successful/failed strategies for future optimization
|
|
183
|
+
- Progress tracking with action logging, decision recording, error tracking
|
|
184
|
+
- Checkpoint types: phase boundary, user approval, fatal error, external resource
|
|
185
|
+
- Task dependency graph with circular dependency detection
|
|
186
|
+
- Priority-based task ordering with blocked task detection
|
|
187
|
+
|
|
188
|
+
### Documentation
|
|
189
|
+
- Comprehensive inline documentation in all manager classes
|
|
190
|
+
- CLI help text for all commands
|
|
191
|
+
- Configuration schema with validation rules
|
|
192
|
+
- State structure documentation
|
|
193
|
+
|
|
194
|
+
### Notes
|
|
195
|
+
- MVP implementation complete (80% of planned features)
|
|
196
|
+
- All 1689 existing tests pass
|
|
197
|
+
- Optional property-based tests deferred for faster delivery
|
|
198
|
+
- Detailed documentation and integration tests to follow in subsequent iterations
|
|
199
|
+
- Implements Spec 33-00-ai-autonomous-control
|
|
200
|
+
|
|
10
201
|
## [1.22.0] - 2026-02-02
|
|
11
202
|
|
|
12
203
|
### Added
|
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
**A context provider for AI coding tools** - Structure your project requirements, design, and tasks so AI assistants can help you build better software.
|
|
10
10
|
|
|
11
|
+
**đ NEW: Autonomous Control** - Let AI independently manage entire development workflows from requirements to delivery.
|
|
12
|
+
|
|
11
13
|
English | [įŽäŊ䏿](README.zh.md)
|
|
12
14
|
|
|
13
15
|
---
|
|
@@ -249,6 +251,35 @@ sequenceDiagram
|
|
|
249
251
|
|
|
250
252
|
## Key Features
|
|
251
253
|
|
|
254
|
+
### Autonomous Control đ NEW in v1.23.0
|
|
255
|
+
- **Fully Autonomous Execution**: AI independently manages entire development workflows from requirements to delivery
|
|
256
|
+
- **Intelligent Error Recovery**: Automatically diagnose and fix errors with 3 retry attempts and learning system
|
|
257
|
+
- **Strategic Checkpoints**: Pause only at meaningful milestones (phase boundaries, fatal errors, external resources)
|
|
258
|
+
- **Continuous Task Execution**: Execute multiple tasks without interruption between individual tasks
|
|
259
|
+
- **Learning System**: Improve over time by learning from successful and failed recovery strategies
|
|
260
|
+
- **Safety Boundaries**: Respect workspace boundaries, require confirmation for production/external operations
|
|
261
|
+
- **Three Execution Modes**: Conservative (safe), Balanced (default), Aggressive (fast)
|
|
262
|
+
- **Progress Tracking**: Real-time status, estimated completion time, detailed execution reports
|
|
263
|
+
- **Rollback Support**: Create checkpoints and rollback to previous states if needed
|
|
264
|
+
- **CORE_PRINCIPLES Compliance**: Follows Spec-driven development, file management, and quality standards
|
|
265
|
+
|
|
266
|
+
**Quick Start**:
|
|
267
|
+
```bash
|
|
268
|
+
# Create and execute a feature autonomously
|
|
269
|
+
kse auto create "user authentication with JWT tokens"
|
|
270
|
+
|
|
271
|
+
# Run existing Spec autonomously
|
|
272
|
+
kse auto run 33-00-ai-autonomous-control
|
|
273
|
+
|
|
274
|
+
# Check status
|
|
275
|
+
kse auto status
|
|
276
|
+
|
|
277
|
+
# Resume after pause
|
|
278
|
+
kse auto resume
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
[Learn more about Autonomous Control â](docs/autonomous-control-guide.md)
|
|
282
|
+
|
|
252
283
|
### Spec-Driven Development
|
|
253
284
|
Structure your work with Requirements â Design â Tasks workflow
|
|
254
285
|
|
package/bin/kiro-spec-engine.js
CHANGED
|
@@ -555,6 +555,14 @@ repoCmd
|
|
|
555
555
|
// Spec-level collaboration commands
|
|
556
556
|
registerCollabCommands(program);
|
|
557
557
|
|
|
558
|
+
// Autonomous control commands
|
|
559
|
+
const { registerAutoCommands } = require('../lib/commands/auto');
|
|
560
|
+
registerAutoCommands(program);
|
|
561
|
+
|
|
562
|
+
// Knowledge management commands
|
|
563
|
+
const { registerKnowledgeCommands } = require('../lib/commands/knowledge');
|
|
564
|
+
registerKnowledgeCommands(program);
|
|
565
|
+
|
|
558
566
|
// Template management commands
|
|
559
567
|
const templatesCommand = require('../lib/commands/templates');
|
|
560
568
|
|