@jaguilar87/gaia-ops 2.6.2 → 3.1.0
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 +295 -369
- package/README.en.md +29 -126
- package/README.md +45 -144
- package/agents/README.en.md +48 -254
- package/agents/README.md +50 -256
- package/agents/aws-troubleshooter.md +92 -515
- package/agents/devops-developer.md +103 -571
- package/agents/gaia.md +165 -1542
- package/agents/gcp-troubleshooter.md +99 -491
- package/agents/gitops-operator.md +99 -886
- package/agents/terraform-architect.md +82 -768
- package/bin/README.en.md +40 -114
- package/bin/README.md +47 -305
- package/commands/README.en.md +23 -124
- package/commands/README.md +79 -180
- package/commands/gaia.md +0 -2
- package/commands/speckit.specify.md +1 -1
- package/config/README.md +60 -395
- package/config/context-contracts.md +1 -1
- package/hooks/README.en.md +48 -128
- package/hooks/README.md +83 -180
- package/hooks/pre_tool_use.py +276 -13
- package/hooks/subagent_stop.py +246 -449
- package/package.json +1 -1
- package/speckit/README.md +56 -308
- package/templates/CLAUDE.template.md +52 -0
- package/templates/README.md +42 -214
- package/tests/README.en.md +54 -196
- package/tests/README.md +46 -302
- package/tests/integration/test_hooks_integration.py +13 -6
- package/tests/system/test_agent_definitions.py +27 -10
- package/tests/system/test_directory_structure.py +1 -1
- package/tests/test_agent_contract_integration.py +136 -0
- package/tests/tools/test_context_provider.py +127 -0
- package/tests/validators/test_commit_validator.py +29 -12
- package/tests/workflow/test_episodic_memory.py +81 -0
- package/tests/workflow/test_episodic_memory_new.py +294 -0
- package/tests/workflow/test_episodic_simple.py +119 -0
- package/tests/workflow/test_workflow_enforcement.py +94 -0
- package/tests/workflow/test_workflow_enforcer_integration.py +201 -0
- package/tests/workflow/test_workflow_metrics.py +183 -0
- package/tools/10-agent-intelligence/agent_writing_assistant.py +743 -0
- package/tools/10-agent-intelligence/workflow_optimizer.py +862 -0
- package/tools/2-context/context_compressor.py +5 -1
- package/tools/2-context/context_provider.py +284 -4
- package/tools/3-clarification/workflow.py +160 -2
- package/tools/4-memory/README.md +0 -0
- package/tools/4-memory/__init__.py +20 -0
- package/tools/4-memory/episodic.py +765 -0
- package/tools/5-task-management/README.md +31 -39
- package/tools/9-agent-framework/README.md +4 -4
- package/tools/9-agent-framework/agent_orchestrator.py +32 -6
- package/tools/9-agent-framework/remote_validator.py +449 -0
- package/tools/9-agent-framework/test_phase_b_discovery.py +110 -0
- package/tools/9-agent-framework/test_phase_c_classification.py +171 -0
- package/tools/9-agent-framework/test_phase_e_execution.py +101 -0
- package/tools/agent_capabilities.json +140 -0
- package/tools/conversation/agent_contract_builder.py +496 -0
- package/tools/conversation/enhanced_conversation_manager.py +565 -0
- package/tools/conversation/progressive_disclosure.py +446 -0
- package/tools/fast-queries/README.md +38 -147
- package/tools/fast-queries/appservices/quicktriage_devops_developer.sh +63 -26
- package/tools/fast-queries/cloud/aws/quicktriage_aws_troubleshooter.sh +29 -42
- package/tools/fast-queries/cloud/gcp/quicktriage_gcp_troubleshooter.sh +68 -31
- package/tools/fast-queries/gitops/quicktriage_gitops_operator.sh +35 -34
- package/tools/fast-queries/run_triage.sh +43 -109
- package/tools/fast-queries/terraform/quicktriage_terraform_architect.sh +65 -25
- package/commands/restore-session.md +0 -87
- package/commands/save-session.md +0 -88
- package/commands/session-status.md +0 -61
- package/hooks/session_start.py +0 -315
- package/tools/2-context/benchmark_results.json +0 -30
- package/tools/5-task-management/create_current_session_bundle.py +0 -531
- package/tools/5-task-management/restore_session.py +0 -331
- package/tools/5-task-management/session-manager.py +0 -531
- package/tools/fast-queries/USAGE_GUIDE.md +0 -369
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,244 @@ All notable changes to the CLAUDE.md orchestrator instructions are documented in
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.1.0] - 2025-12-06
|
|
9
|
+
|
|
10
|
+
### Added - Token Optimization & Consolidation
|
|
11
|
+
|
|
12
|
+
- **NEW:** `docs/standards/` - Shared execution standards
|
|
13
|
+
- `security-tiers.md` - T0-T3 definitions
|
|
14
|
+
- `output-format.md` - Report structure
|
|
15
|
+
- `command-execution.md` - Execution pillars
|
|
16
|
+
- `anti-patterns.md` - Common mistakes by tool
|
|
17
|
+
|
|
18
|
+
- **NEW:** Hybrid pre-loading in `context_provider.py`
|
|
19
|
+
- Always loads: security-tiers, output-format
|
|
20
|
+
- On-demand: command-execution, anti-patterns
|
|
21
|
+
- **78% token reduction** per agent invocation
|
|
22
|
+
|
|
23
|
+
- **NEW:** QuickTriage scripts
|
|
24
|
+
- `tools/fast-queries/cloud/aws/quicktriage_aws_troubleshooter.sh`
|
|
25
|
+
- `tools/fast-queries/appservices/quicktriage_devops_developer.sh`
|
|
26
|
+
|
|
27
|
+
### Changed - Agent Optimization
|
|
28
|
+
|
|
29
|
+
- **agents/*.md** - All 5 agents reduced by 78%
|
|
30
|
+
- terraform-architect: 916 → 183 lines
|
|
31
|
+
- gitops-operator: 1,238 → 217 lines
|
|
32
|
+
- gcp-troubleshooter: 600 → 156 lines
|
|
33
|
+
- aws-troubleshooter: 565 → 142 lines
|
|
34
|
+
- devops-developer: 641 → 173 lines
|
|
35
|
+
|
|
36
|
+
### Removed - Session System Consolidation
|
|
37
|
+
|
|
38
|
+
- **REMOVED:** Session management system (consolidated into Episodic Memory)
|
|
39
|
+
- `commands/save-session.md`
|
|
40
|
+
- `commands/restore-session.md`
|
|
41
|
+
- `commands/session-status.md`
|
|
42
|
+
- `hooks/session_start.py`
|
|
43
|
+
- `tools/5-task-management/session-manager.py`
|
|
44
|
+
- `tools/5-task-management/create_current_session_bundle.py`
|
|
45
|
+
- `tools/5-task-management/restore_session.py`
|
|
46
|
+
|
|
47
|
+
### Changed - Episodic Memory Enhanced
|
|
48
|
+
|
|
49
|
+
- **tools/4-memory/episodic.py** - Added `capture_git_state()` migrated from session system
|
|
50
|
+
|
|
51
|
+
### Fixed - Test Suite
|
|
52
|
+
|
|
53
|
+
- **359 tests passing (100%)**
|
|
54
|
+
- Fixed import in `test_commit_validator.py`
|
|
55
|
+
- Fixed import in `test_episodic_memory.py`
|
|
56
|
+
- Updated `test_agent_definitions.py` for meta-agents
|
|
57
|
+
- Changed `test_hook_blocks_docker_ps` to `test_hook_default_permit_for_docker_ps`
|
|
58
|
+
- Fixed 11 warnings (return → assert)
|
|
59
|
+
|
|
60
|
+
### Changed - Documentation
|
|
61
|
+
|
|
62
|
+
- **README.md & README.en.md** - Updated to v3.1.0, reduced 41%
|
|
63
|
+
- **All subdirectory READMEs** - Reduced 63% total (~2,025 lines removed)
|
|
64
|
+
- Eliminated all references to session system
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## [3.0.0] - 2025-12-05
|
|
69
|
+
|
|
70
|
+
### Added - Agent Intelligence System (MAJOR)
|
|
71
|
+
|
|
72
|
+
- **NEW:** `tools/10-agent-intelligence/` module for intelligent agent optimization
|
|
73
|
+
- `agent_writing_assistant.py` (24KB) - Assists in writing and improving agent definitions
|
|
74
|
+
- `workflow_optimizer.py` (29KB) - Applies the 7 LLM Engineering Principles to optimize workflows
|
|
75
|
+
- Binary Decision Trees
|
|
76
|
+
- Guards Over Advice
|
|
77
|
+
- Tool Contracts
|
|
78
|
+
- Failure Paths
|
|
79
|
+
- TL;DR First
|
|
80
|
+
- References Over Duplication
|
|
81
|
+
- Metrics Over Subjective Goals
|
|
82
|
+
|
|
83
|
+
- **NEW:** `tools/4-memory/` Episodic Memory System
|
|
84
|
+
- `episodic.py` (23KB) - Persistent storage and retrieval of historical context
|
|
85
|
+
- `demo.py` - Demonstration script for episodic memory
|
|
86
|
+
- Features:
|
|
87
|
+
- Automatic episode storage with keywords and classifications
|
|
88
|
+
- Smart search with time decay and relevance scoring
|
|
89
|
+
- Auto-classification of episode types (deployment, troubleshooting, etc.)
|
|
90
|
+
- Index management with automatic trimming (1000 episode limit)
|
|
91
|
+
- Audit trail with append-only JSONL file
|
|
92
|
+
|
|
93
|
+
- **NEW:** `tools/conversation/` Enhanced Conversation Management
|
|
94
|
+
- `enhanced_conversation_manager.py` (21KB) - Advanced conversation state management
|
|
95
|
+
- `agent_contract_builder.py` (19KB) - Dynamic agent contract generation
|
|
96
|
+
- `progressive_disclosure.py` (17KB) - Progressive context disclosure for token optimization
|
|
97
|
+
|
|
98
|
+
- **NEW:** `tests/workflow/` directory for workflow-specific tests
|
|
99
|
+
- **NEW:** `tests/test_agent_contract_integration.py` - Agent contract validation tests
|
|
100
|
+
- **NEW:** `tools/agent_capabilities.json` - Centralized agent capabilities definition
|
|
101
|
+
|
|
102
|
+
### Changed - Agent Enhancements
|
|
103
|
+
|
|
104
|
+
- **agents/gaia.md** - Major refactoring (1707 lines changed)
|
|
105
|
+
- Streamlined agent definition
|
|
106
|
+
- Improved protocol definitions
|
|
107
|
+
- Better integration with new intelligence modules
|
|
108
|
+
|
|
109
|
+
- **agents/gitops-operator.md** - Enhanced with 234 new lines
|
|
110
|
+
- Improved Kubernetes operation patterns
|
|
111
|
+
- Better Flux CD integration guidance
|
|
112
|
+
- Enhanced troubleshooting protocols
|
|
113
|
+
|
|
114
|
+
- **agents/terraform-architect.md** - Enhanced with 47 new lines
|
|
115
|
+
- Improved Terragrunt support
|
|
116
|
+
- Better module design guidance
|
|
117
|
+
- Enhanced security scanning protocols
|
|
118
|
+
|
|
119
|
+
- **agents/gcp-troubleshooter.md** - Enhanced with 52 new lines
|
|
120
|
+
- Improved GKE diagnostics
|
|
121
|
+
- Better IAM analysis patterns
|
|
122
|
+
- Enhanced networking troubleshooting
|
|
123
|
+
|
|
124
|
+
### Changed - Tools & Infrastructure
|
|
125
|
+
|
|
126
|
+
- **hooks/pre_tool_use.py** - Major enhancement (286+ lines)
|
|
127
|
+
- Improved security validations
|
|
128
|
+
- Better command blocking logic
|
|
129
|
+
- Enhanced credential detection
|
|
130
|
+
|
|
131
|
+
- **hooks/subagent_stop.py** - Enhanced with 193 new lines
|
|
132
|
+
- Better result packaging
|
|
133
|
+
- Improved bundle generation
|
|
134
|
+
- Enhanced session integration
|
|
135
|
+
|
|
136
|
+
- **tools/2-context/context_provider.py** - Enhanced (120+ lines changed)
|
|
137
|
+
- Better provider detection
|
|
138
|
+
- Improved contract validation
|
|
139
|
+
- Enhanced error handling
|
|
140
|
+
|
|
141
|
+
- **tools/3-clarification/workflow.py** - Major enhancement (162+ lines)
|
|
142
|
+
- Episodic memory integration
|
|
143
|
+
- Improved ambiguity detection
|
|
144
|
+
- Better context enrichment
|
|
145
|
+
|
|
146
|
+
- **tools/9-agent-framework/agent_orchestrator.py** - Enhanced (38+ lines)
|
|
147
|
+
- Better phase management
|
|
148
|
+
- Improved error recovery
|
|
149
|
+
- Enhanced logging
|
|
150
|
+
|
|
151
|
+
### Changed - Fast Queries (Simplified)
|
|
152
|
+
|
|
153
|
+
- **tools/fast-queries/README.md** - Simplified documentation (185 lines changed)
|
|
154
|
+
- **tools/fast-queries/run_triage.sh** - Streamlined (152 lines changed)
|
|
155
|
+
- **tools/fast-queries/terraform/quicktriage_terraform_architect.sh** - Enhanced (90+ lines)
|
|
156
|
+
- **tools/fast-queries/gitops/quicktriage_gitops_operator.sh** - Enhanced (69+ lines)
|
|
157
|
+
- **tools/fast-queries/cloud/gcp/quicktriage_gcp_troubleshooter.sh** - Enhanced (99+ lines)
|
|
158
|
+
|
|
159
|
+
### Removed (BREAKING)
|
|
160
|
+
|
|
161
|
+
- **REMOVED:** `tools/fast-queries/USAGE_GUIDE.md` (369 lines) - Consolidated into README
|
|
162
|
+
- **REMOVED:** `tools/fast-queries/appservices/quicktriage_devops_developer.sh` (38 lines)
|
|
163
|
+
- **REMOVED:** `tools/fast-queries/cloud/aws/quicktriage_aws_troubleshooter.sh` (45 lines)
|
|
164
|
+
|
|
165
|
+
### Improved
|
|
166
|
+
|
|
167
|
+
- **Token Efficiency:** New progressive disclosure system reduces context by up to 70%
|
|
168
|
+
- **Agent Intelligence:** Workflows now validated against 7 engineering principles
|
|
169
|
+
- **Memory System:** Historical context improves routing accuracy over time
|
|
170
|
+
- **Conversation Management:** Multi-turn conversations with intelligent context carry-over
|
|
171
|
+
- **Test Coverage:** New workflow and integration tests
|
|
172
|
+
|
|
173
|
+
### Migration Guide for v3.0.0
|
|
174
|
+
|
|
175
|
+
**Breaking Changes:**
|
|
176
|
+
1. Removed `quicktriage_devops_developer.sh` - Use agent directly
|
|
177
|
+
2. Removed `quicktriage_aws_troubleshooter.sh` - Use agent directly
|
|
178
|
+
3. Removed `USAGE_GUIDE.md` - See README.md instead
|
|
179
|
+
|
|
180
|
+
**New Features to Adopt:**
|
|
181
|
+
```python
|
|
182
|
+
# Episodic Memory
|
|
183
|
+
from tools.4_memory.episodic import EpisodicMemory
|
|
184
|
+
memory = EpisodicMemory()
|
|
185
|
+
memory.store_episode(prompt="...", context={...})
|
|
186
|
+
|
|
187
|
+
# Workflow Optimizer
|
|
188
|
+
from tools.10_agent_intelligence.workflow_optimizer import WorkflowOptimizer
|
|
189
|
+
optimizer = WorkflowOptimizer()
|
|
190
|
+
result = optimizer.analyze(workflow_content)
|
|
191
|
+
|
|
192
|
+
# Enhanced Conversation
|
|
193
|
+
from tools.conversation.enhanced_conversation_manager import EnhancedConversationManager
|
|
194
|
+
manager = EnhancedConversationManager()
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Recommended Actions:**
|
|
198
|
+
- Review new agent definitions for improved patterns
|
|
199
|
+
- Enable episodic memory for better context over time
|
|
200
|
+
- Use workflow optimizer to validate custom workflows
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## [2.6.2] - 2025-11-14
|
|
205
|
+
|
|
206
|
+
### Added - Absolute Paths Support
|
|
207
|
+
|
|
208
|
+
- **NEW:** `normalizePath()` function - Handles both absolute and relative paths transparently
|
|
209
|
+
- **NEW:** CLI option `--project-context-repo` - Specify git repository for project context in non-interactive mode
|
|
210
|
+
- **NEW:** Environment variable `CLAUDE_PROJECT_CONTEXT_REPO` - Alternative way to specify context repo
|
|
211
|
+
|
|
212
|
+
### Changed
|
|
213
|
+
|
|
214
|
+
- **`getConfiguration()`** - Now normalizes paths using `normalizePath()`
|
|
215
|
+
- **`validateAndSetupProjectPaths()`** - Enhanced to handle absolute paths correctly
|
|
216
|
+
- **CLI help and documentation** - Updated examples with absolute paths
|
|
217
|
+
|
|
218
|
+
### Improved
|
|
219
|
+
|
|
220
|
+
- Path handling is now more robust and user-friendly
|
|
221
|
+
- Better error messages for path-related issues
|
|
222
|
+
- Clearer documentation and examples
|
|
223
|
+
|
|
224
|
+
### Examples
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# Absolute paths without context repo
|
|
228
|
+
npx gaia-init --non-interactive \
|
|
229
|
+
--gitops /home/user/project/gitops \
|
|
230
|
+
--terraform /home/user/project/terraform \
|
|
231
|
+
--app-services /home/user/project/services
|
|
232
|
+
|
|
233
|
+
# Absolute paths with context repo
|
|
234
|
+
npx gaia-init --non-interactive \
|
|
235
|
+
--gitops /path/to/gitops \
|
|
236
|
+
--terraform /path/to/terraform \
|
|
237
|
+
--project-context-repo git@bitbucket.org:org/repo.git
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
8
242
|
## [2.3.0] - 2025-11-11
|
|
9
243
|
|
|
10
244
|
### Added - Phase 0 Clarification Module
|
|
245
|
+
|
|
11
246
|
- **NEW:** `tools/clarification/` module for intelligent ambiguity detection before routing
|
|
12
247
|
- `clarification/engine.py`: Core clarification engine (refactored from clarify_engine.py)
|
|
13
248
|
- `clarification/patterns.py`: Ambiguity detection patterns (ServiceAmbiguityPattern, NamespaceAmbiguityPattern, etc.)
|
|
@@ -20,6 +255,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
20
255
|
- **Clarification metrics** to Key System Metrics (target: 20-30% clarification rate)
|
|
21
256
|
|
|
22
257
|
### Changed - Module Restructuring (BREAKING)
|
|
258
|
+
|
|
23
259
|
- **BREAKING:** `clarify_engine.py` and `clarify_patterns.py` moved to `clarification/` module
|
|
24
260
|
- **Old imports:** `from clarify_engine import request_clarification`
|
|
25
261
|
- **New imports:** `from clarification import execute_workflow, request_clarification`
|
|
@@ -30,17 +266,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
30
266
|
- Service metadata now shows only static information: `tech_stack | namespace | port`
|
|
31
267
|
|
|
32
268
|
### Fixed
|
|
269
|
+
|
|
33
270
|
- Import paths in `tests/tools/test_clarify_engine.py` updated to new module structure
|
|
34
271
|
- Service metadata test updated to reflect removal of dynamic status field
|
|
35
272
|
- All 20 unit tests passing with new module structure
|
|
36
273
|
|
|
37
|
-
### Documentation
|
|
38
|
-
- Added comprehensive Phase 0 implementation guide
|
|
39
|
-
- Added troubleshooting guide for clarification system
|
|
40
|
-
- Updated speckit.specify.md with Phase 0 workflow integration
|
|
41
|
-
- Added Protocol G diagnostic steps in gaia.md
|
|
42
|
-
|
|
43
274
|
### Migration Guide for v2.3.0
|
|
275
|
+
|
|
44
276
|
```python
|
|
45
277
|
# Before (v2.2.x)
|
|
46
278
|
from clarify_engine import request_clarification, process_clarification
|
|
@@ -53,41 +285,48 @@ result = execute_workflow(user_prompt)
|
|
|
53
285
|
enriched_prompt = result["enriched_prompt"]
|
|
54
286
|
```
|
|
55
287
|
|
|
288
|
+
---
|
|
289
|
+
|
|
56
290
|
## [2.2.3] - 2025-11-11
|
|
57
291
|
|
|
58
292
|
### Fixed - Deterministic Project Context Location
|
|
293
|
+
|
|
59
294
|
- **context_provider.py**
|
|
60
295
|
- Always reads `.claude/project-context/project-context.json` (no fallback to legacy paths)
|
|
61
296
|
- Removed legacy auto-detection logic and unused imports
|
|
62
|
-
- Prevents
|
|
297
|
+
- Prevents "Context file not found" errors when projects only use the new structure
|
|
63
298
|
- **templates/CLAUDE.template.md**
|
|
64
299
|
- Rule 1 clarifies when to delegate vs. self-execute
|
|
65
300
|
- Rule 2 explicitly documents the `context_provider.py --context-file .claude/project-context/project-context.json …` invocation
|
|
66
301
|
- Workflow summary now references orchestration docs after the table (cleaner render)
|
|
67
302
|
|
|
68
303
|
### Changed - CLI Documentation & Version Alignment
|
|
304
|
+
|
|
69
305
|
- **README.md / README.en.md**
|
|
70
306
|
- Documented the exact `npx` commands (`npx gaia-init` / `npx @jaguilar87/gaia-ops`) and clarified installation steps
|
|
71
|
-
- Updated
|
|
307
|
+
- Updated "Current version" badges to **2.2.3**
|
|
72
308
|
- **package.json**
|
|
73
309
|
- Bumped package version to `2.2.3`
|
|
74
310
|
|
|
75
311
|
### Benefits
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
312
|
+
|
|
313
|
+
- No manual tweaks needed to point `context_provider.py` at the correct project context
|
|
314
|
+
- CLAUDE template now tells the orchestrator exactly how to invoke the context provider
|
|
315
|
+
- README instructions reflect the real CLI entry points, reducing confusion for new installs
|
|
79
316
|
|
|
80
317
|
---
|
|
81
318
|
|
|
82
319
|
## [2.2.2] - 2025-11-11
|
|
83
320
|
|
|
84
321
|
### Added - Pre-generated Semantic Embeddings
|
|
322
|
+
|
|
85
323
|
- **NEW:** Included pre-generated intent embeddings in package (74KB total)
|
|
86
324
|
- `config/intent_embeddings.json` (55KB) - Semantic vectors for intent matching
|
|
87
325
|
- `config/intent_embeddings.npy` (19KB) - Binary embeddings for fast loading
|
|
88
326
|
- `config/embeddings_info.json` (371B) - Metadata about embeddings
|
|
89
327
|
|
|
90
328
|
### Changed - Semantic Routing Now Works Out-of-the-Box
|
|
329
|
+
|
|
91
330
|
- **Semantic matching enabled by default:** No manual setup required
|
|
92
331
|
- **Routing accuracy improved:** Ambiguous queries now route correctly using semantic similarity
|
|
93
332
|
- **Example improvement:**
|
|
@@ -98,6 +337,7 @@ enriched_prompt = result["enriched_prompt"]
|
|
|
98
337
|
```
|
|
99
338
|
|
|
100
339
|
### Fixed - Directory Structure Consistency
|
|
340
|
+
|
|
101
341
|
- **Consolidated `configs/` into `config/`:** All configuration and data files now in single directory
|
|
102
342
|
- **Updated tool references:**
|
|
103
343
|
- `tools/semantic_matcher.py`: Updated embeddings path (configs/ → config/)
|
|
@@ -105,6 +345,7 @@ enriched_prompt = result["enriched_prompt"]
|
|
|
105
345
|
- All documentation updated to reference correct paths
|
|
106
346
|
|
|
107
347
|
### Fixed - Test Suite (254 tests, 100% passing)
|
|
348
|
+
|
|
108
349
|
- **tests/system/test_configuration_files.py:**
|
|
109
350
|
- Updated to validate `templates/settings.template.json` (package contains template, not installed settings.json)
|
|
110
351
|
- Tests now reflect npm package structure instead of installed project structure
|
|
@@ -129,33 +370,20 @@ enriched_prompt = result["enriched_prompt"]
|
|
|
129
370
|
- Better error messages: "ERROR: Invalid agent" instead of "Warning: No contract found"
|
|
130
371
|
|
|
131
372
|
### Benefits
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
### Technical Details
|
|
140
|
-
```
|
|
141
|
-
config/ directory now contains:
|
|
142
|
-
├── Documentation (markdown)
|
|
143
|
-
│ ├── AGENTS.md, agent-catalog.md, context-contracts.md
|
|
144
|
-
│ ├── git-standards.md, orchestration-workflow.md
|
|
145
|
-
├── Provider Contracts (JSON)
|
|
146
|
-
│ ├── context-contracts.gcp.json, context-contracts.aws.json
|
|
147
|
-
│ └── git_standards.json
|
|
148
|
-
└── Semantic Embeddings (JSON + binary) ← NEW
|
|
149
|
-
├── intent_embeddings.json
|
|
150
|
-
├── intent_embeddings.npy
|
|
151
|
-
└── embeddings_info.json
|
|
152
|
-
```
|
|
373
|
+
|
|
374
|
+
- Zero configuration: Semantic routing works immediately after installation
|
|
375
|
+
- Better routing: Handles ambiguous queries with 6x higher confidence
|
|
376
|
+
- Consistent structure: All config files in one place (`config/`)
|
|
377
|
+
- Smaller package: Embeddings optimized for size (74KB vs 5MB unoptimized)
|
|
378
|
+
- Regeneration optional: Users can regenerate with `python3 .claude/tools/generate_embeddings.py` if needed
|
|
379
|
+
- Test coverage: 254 tests passing (0 failures)
|
|
153
380
|
|
|
154
381
|
---
|
|
155
382
|
|
|
156
383
|
## [2.2.1] - 2025-11-10
|
|
157
384
|
|
|
158
385
|
### Fixed - Documentation Consistency
|
|
386
|
+
|
|
159
387
|
- **README.md & README.en.md:**
|
|
160
388
|
- Updated version numbers from 2.1.0 → 2.2.0
|
|
161
389
|
- Corrected package structure (hooks/, templates/, commands/)
|
|
@@ -207,17 +435,19 @@ config/ directory now contains:
|
|
|
207
435
|
- Complete branding consistency: package name, agent name, and command name all use "gaia"
|
|
208
436
|
|
|
209
437
|
### Benefits
|
|
210
|
-
|
|
211
|
-
-
|
|
212
|
-
-
|
|
213
|
-
-
|
|
214
|
-
-
|
|
438
|
+
|
|
439
|
+
- Accurate documentation: All paths and structures match actual package contents
|
|
440
|
+
- No broken links: References point to existing files
|
|
441
|
+
- Clear API: Deprecated functions clearly marked
|
|
442
|
+
- User trust: Documentation matches reality
|
|
443
|
+
- npm test passes: No false failures
|
|
215
444
|
|
|
216
445
|
---
|
|
217
446
|
|
|
218
447
|
## [2.2.0] - 2025-11-10
|
|
219
448
|
|
|
220
449
|
### Added - Unified Settings Template & Auto-Installation
|
|
450
|
+
|
|
221
451
|
- **NEW:** Created unified `templates/settings.template.json` (214 lines)
|
|
222
452
|
- Merged functionality from `settings.json` + `settings.local.json`
|
|
223
453
|
- Includes all hooks (PreToolUse, PostToolUse, SubagentStop)
|
|
@@ -231,6 +461,7 @@ config/ directory now contains:
|
|
|
231
461
|
- Projects get complete settings from day 1
|
|
232
462
|
|
|
233
463
|
### Removed - Dead Code Elimination
|
|
464
|
+
|
|
234
465
|
- **CLAUDE.md** from package root (only template exists now)
|
|
235
466
|
- **templates/code-examples/** (321 lines - never imported or executed)
|
|
236
467
|
- `commit_validation.py`
|
|
@@ -241,6 +472,7 @@ config/ directory now contains:
|
|
|
241
472
|
- **package.json:** Removed `CLAUDE.md` from files array
|
|
242
473
|
|
|
243
474
|
### Changed - Package Consistency
|
|
475
|
+
|
|
244
476
|
- **templates/CLAUDE.template.md:**
|
|
245
477
|
- Updated all references: `.claude/docs/` → `.claude/config/`
|
|
246
478
|
- Updated package name: `@aaxis/claude-agents` → `@jaguilar87/gaia-ops`
|
|
@@ -259,30 +491,26 @@ config/ directory now contains:
|
|
|
259
491
|
- Clarified symlink architecture and layout
|
|
260
492
|
|
|
261
493
|
### Improved - Package Quality
|
|
494
|
+
|
|
262
495
|
- **Reduced template bloat by 57%:** 882 lines → 378 lines (504 lines removed)
|
|
263
496
|
- **Single source of truth:** One settings template instead of scattered config
|
|
264
497
|
- **Cleaner architecture:** Only actual templates remain in `templates/`
|
|
265
498
|
- **Better defaults:** Projects start with complete, production-ready settings
|
|
266
499
|
|
|
267
500
|
### Benefits
|
|
268
|
-
- ✅ **Unified configuration:** Everything in one settings.json file
|
|
269
|
-
- ✅ **Automatic setup:** No manual settings configuration needed
|
|
270
|
-
- ✅ **Smaller package:** 57% reduction in template code
|
|
271
|
-
- ✅ **Flexibility maintained:** Users can still create `settings.local.json` for overrides
|
|
272
|
-
- ✅ **Package consistency:** All references use correct package name
|
|
273
501
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
```
|
|
502
|
+
- Unified configuration: Everything in one settings.json file
|
|
503
|
+
- Automatic setup: No manual settings configuration needed
|
|
504
|
+
- Smaller package: 57% reduction in template code
|
|
505
|
+
- Flexibility maintained: Users can still create `settings.local.json` for overrides
|
|
506
|
+
- Package consistency: All references use correct package name
|
|
280
507
|
|
|
281
508
|
---
|
|
282
509
|
|
|
283
510
|
## [2.1.0] - 2025-11-10
|
|
284
511
|
|
|
285
512
|
### Added - Provider-Specific Context Contracts
|
|
513
|
+
|
|
286
514
|
- **NEW:** Created separate contract files per cloud provider
|
|
287
515
|
- `config/context-contracts.gcp.json` - GCP-specific contracts
|
|
288
516
|
- `config/context-contracts.aws.json` - AWS-specific contracts
|
|
@@ -299,6 +527,7 @@ templates/
|
|
|
299
527
|
- `tests/fixtures/project-context.aws.json`
|
|
300
528
|
|
|
301
529
|
### Changed
|
|
530
|
+
|
|
302
531
|
- **Context Provider:** Updated `tools/context_provider.py`
|
|
303
532
|
- Added `detect_cloud_provider()` function
|
|
304
533
|
- Added `load_provider_contracts()` function
|
|
@@ -321,33 +550,25 @@ templates/
|
|
|
321
550
|
- Version bumped to 2.1.0
|
|
322
551
|
|
|
323
552
|
### Benefits
|
|
324
|
-
- ✅ **Clarity:** Field names match cloud provider terminology
|
|
325
|
-
- ✅ **Simplicity:** No complex conditional validation logic in agents
|
|
326
|
-
- ✅ **Extensibility:** Adding Azure = create one JSON file (15 minutes)
|
|
327
|
-
- ✅ **Agents Stay Agnostic:** Agents use pattern discovery, don't need provider logic
|
|
328
|
-
- ✅ **Single Source of Truth:** Orchestrator selects the right contract
|
|
329
553
|
|
|
330
|
-
|
|
331
|
-
-
|
|
332
|
-
-
|
|
333
|
-
-
|
|
554
|
+
- Clarity: Field names match cloud provider terminology
|
|
555
|
+
- Simplicity: No complex conditional validation logic in agents
|
|
556
|
+
- Extensibility: Adding Azure = create one JSON file (15 minutes)
|
|
557
|
+
- Agents Stay Agnostic: Agents use pattern discovery, don't need provider logic
|
|
558
|
+
- Single Source of Truth: Orchestrator selects the right contract
|
|
334
559
|
|
|
335
|
-
###
|
|
336
|
-
```python
|
|
337
|
-
# Before (v2.0.0):
|
|
338
|
-
contract_keys = AGENT_CONTRACTS[agent_name] # Hardcoded
|
|
560
|
+
### Backward Compatibility
|
|
339
561
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
344
|
-
```
|
|
562
|
+
- Legacy support maintained: If provider-specific contracts don't exist, falls back to hardcoded contracts
|
|
563
|
+
- Existing projects: Continue to work without changes
|
|
564
|
+
- Migration: Optional, but recommended for clarity
|
|
345
565
|
|
|
346
566
|
---
|
|
347
567
|
|
|
348
568
|
## [1.4.0] - 2025-11-10
|
|
349
569
|
|
|
350
570
|
### Changed - BREAKING: Complete Installer Redesign
|
|
571
|
+
|
|
351
572
|
- **NEW FLOW:** Directories first, context second (much more logical!)
|
|
352
573
|
1. Ask for directories (gitops, terraform, app-services) - ALWAYS
|
|
353
574
|
2. Ask for project context repo - OPTIONAL
|
|
@@ -355,75 +576,66 @@ contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
|
355
576
|
4. If YES context: Use that configuration and done!
|
|
356
577
|
|
|
357
578
|
### Improved
|
|
579
|
+
|
|
358
580
|
- **Clearer Purpose:** Context repo is now clearly optional
|
|
359
581
|
- **Better Fallback:** If no context exists, creates a basic one with minimal info
|
|
360
582
|
- **All Fields Optional:** Can leave everything empty if you don't know yet
|
|
361
583
|
- **Logical Order:** Ask for what you always need first (paths), then optional context
|
|
362
584
|
|
|
363
|
-
### Benefits
|
|
364
|
-
- Makes sense for new projects (no context yet)
|
|
365
|
-
- Makes sense for existing projects (have context)
|
|
366
|
-
- Directories are always the starting point (local to project)
|
|
367
|
-
- Context comes second (can be shared across projects)
|
|
368
|
-
|
|
369
585
|
---
|
|
370
586
|
|
|
371
587
|
## [1.3.6] - 2025-11-10
|
|
372
588
|
|
|
373
589
|
### Fixed
|
|
590
|
+
|
|
374
591
|
- **Installer:** Skip questions when project context already has the answers
|
|
375
592
|
- **Smart Detection:** Only ask what's missing or needs confirmation (paths)
|
|
376
593
|
- **User Experience:** Show config summary when context is loaded
|
|
377
594
|
- **Directory Creation:** Auto-create missing directories without prompting
|
|
378
595
|
|
|
379
596
|
### Changed
|
|
597
|
+
|
|
380
598
|
- When project context loads successfully, only asks to confirm/adjust paths
|
|
381
599
|
- Cloud provider, credentials, region, and cluster name auto-applied from context
|
|
382
600
|
- Clearer feedback showing what was loaded from project context
|
|
383
601
|
- Missing directories (gitops, terraform, app-services) now created automatically
|
|
384
602
|
|
|
385
|
-
### Improved
|
|
386
|
-
- Eliminates ALL redundant questions when context exists
|
|
387
|
-
- Better UX: "Here's what we loaded, just confirm the paths"
|
|
388
|
-
- Faster setup for teams with complete project contexts
|
|
389
|
-
- No interruptions for directory creation confirmations
|
|
390
|
-
|
|
391
603
|
---
|
|
392
604
|
|
|
393
605
|
## [1.3.5] - 2025-11-10
|
|
394
606
|
|
|
395
607
|
### Added
|
|
608
|
+
|
|
396
609
|
- **Smart Installer Flow:** Project context repo now asked FIRST, with auto-population of all config
|
|
397
610
|
- **Input Sanitization:** Handles "git clone <url>" pastes automatically (extracts just URL)
|
|
398
611
|
- **Auto-Configuration:** Parses project-context.json and pre-fills all wizard questions
|
|
399
612
|
- **Better Error Messages:** Clear troubleshooting tips for git clone failures (SSH keys, access, URL)
|
|
400
613
|
|
|
401
614
|
### Changed
|
|
615
|
+
|
|
402
616
|
- **Wizard Question Order:** Project context moved from last to first question
|
|
403
617
|
- **User Experience:** Reduced manual input when project context exists
|
|
404
618
|
- **Clone Strategy:** Validates project context early, then sets up in final location
|
|
405
619
|
- **Error Handling:** Installation continues even if project context clone fails
|
|
406
620
|
|
|
407
|
-
### Improved
|
|
408
|
-
- Eliminates typos and configuration errors by pre-filling from existing context
|
|
409
|
-
- Saves time for users with existing project-context repos
|
|
410
|
-
- Better guidance when git operations fail
|
|
411
|
-
|
|
412
621
|
---
|
|
413
622
|
|
|
414
623
|
## [1.3.4] - 2025-11-10
|
|
415
624
|
|
|
416
625
|
### Fixed
|
|
626
|
+
|
|
417
627
|
- **Installer:** Removed incorrect AGENTS.md symlink creation in project root during installation
|
|
418
628
|
- **Documentation:** AGENTS.md now only accessible via `.claude/config/AGENTS.md` as intended
|
|
419
629
|
- **Package Quality:** Excluded Python cache files (`__pycache__/`) from published package
|
|
420
630
|
|
|
421
631
|
### Changed
|
|
632
|
+
|
|
422
633
|
- **README.md:** Updated project structure documentation to reflect correct AGENTS.md location
|
|
423
634
|
- **README.en.md:** Updated project structure and corrected package references
|
|
424
635
|
- **Package Size:** Reduced from 911.7 kB (93 files) to 660.7 kB (77 files) - 27% reduction
|
|
425
636
|
|
|
426
637
|
### Added
|
|
638
|
+
|
|
427
639
|
- **Package Metadata:** Added `homepage` and `bugs` fields to package.json for better npm discovery
|
|
428
640
|
- **Badges:** Added npm version, license, and Node.js version badges to README files
|
|
429
641
|
- **CI/CD:** Created GitHub Actions workflow for automated npm publishing
|
|
@@ -431,242 +643,6 @@ contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
|
431
643
|
- **Cleanup Script:** Added `npm run clean` to remove Python cache files automatically
|
|
432
644
|
- **Pre-publish Hook:** Added `prepublishOnly` script for automatic cleanup before publishing
|
|
433
645
|
|
|
434
|
-
### Package Quality Improvements
|
|
435
|
-
- Better npm package metadata for discoverability
|
|
436
|
-
- Professional badges in documentation
|
|
437
|
-
- Automated publishing workflow
|
|
438
|
-
- Cleaner package distribution (no cache files)
|
|
439
|
-
- Improved documentation consistency
|
|
440
|
-
|
|
441
|
-
---
|
|
442
|
-
|
|
443
|
-
## [2.1.0] - 2025-11-07
|
|
444
|
-
|
|
445
|
-
### Changed
|
|
446
|
-
|
|
447
|
-
- **Optimized CLAUDE.md verbosity:** Further reduced from 195 lines to 154 lines (21% additional reduction)
|
|
448
|
-
- **Converted narrative to rules format:** All sections now use Rule X.Y [Priority] format for clarity
|
|
449
|
-
- **Implemented numeric priority system:** `[P0]` (critical), `[P1]` (important) for better emphasis
|
|
450
|
-
- **Reduced Python code blocks:** Removed verbose code examples, replaced with concise function references
|
|
451
|
-
- **Optimized sections:**
|
|
452
|
-
- Core Operating Principles: Narrative → Rules 1.0-4.0
|
|
453
|
-
- Orchestrator Workflow: Narrative → Rule 5.0-5.1 with table format
|
|
454
|
-
- Git Operations: Narrative → Rules 6.0-6.1 with table format
|
|
455
|
-
- Common Anti-Patterns: Lists → Rule 7.0 with comparison table
|
|
456
|
-
|
|
457
|
-
### Added
|
|
458
|
-
|
|
459
|
-
- **Code examples in templates:** Created `.claude/templates/code-examples/` with:
|
|
460
|
-
- `commit_validation.py` (86 lines) - Complete commit validation patterns
|
|
461
|
-
- `clarification_workflow.py` (94 lines) - Phase 0 clarification examples
|
|
462
|
-
- `approval_gate_workflow.py` (141 lines) - Phase 4 approval gate examples
|
|
463
|
-
- **Rule numbering system:** Rules 1.0-7.0 for easy reference and navigation
|
|
464
|
-
- **Priority indicators:** `[P0]` for critical rules, `[P1]` for important rules
|
|
465
|
-
|
|
466
|
-
### Improved
|
|
467
|
-
|
|
468
|
-
- **Token efficiency:** Additional 25% reduction (1,900 → ~1,450 tokens)
|
|
469
|
-
- **Scannability:** Table format for workflows, commit rules, anti-patterns
|
|
470
|
-
- **Conciseness:** Removed redundant explanations, kept essential info
|
|
471
|
-
- **Maintainability:** Code examples separate from core instructions
|
|
472
|
-
|
|
473
|
-
---
|
|
474
|
-
|
|
475
|
-
## [2.0.0] - 2025-11-07
|
|
476
|
-
|
|
477
|
-
### Changed (BREAKING)
|
|
478
|
-
|
|
479
|
-
- **Refactored to modular structure:** Split 380-line monolith into:
|
|
480
|
-
- `CLAUDE.md` (core instructions, 196 lines)
|
|
481
|
-
- `.claude/docs/orchestration-workflow.md` (phases 0-6, ~550 lines)
|
|
482
|
-
- `.claude/docs/git-standards.md` (complete git specification, ~450 lines)
|
|
483
|
-
- `.claude/docs/context-contracts.md` (agent contracts, ~400 lines)
|
|
484
|
-
- `.claude/docs/agent-catalog.md` (agent capabilities, ~550 lines)
|
|
485
|
-
|
|
486
|
-
- **Updated Core Operating Principles:**
|
|
487
|
-
- Changed Principle #1 from "ZERO Direct Execution" to "Selective Delegation (Context-Aware)"
|
|
488
|
-
- Clarified that orchestrator CAN execute SIMPLE operations (commits, file edits, queries)
|
|
489
|
-
- Clarified that orchestrator MUST delegate COMPLEX workflows (infrastructure, deployments)
|
|
490
|
-
|
|
491
|
-
### Added
|
|
492
|
-
|
|
493
|
-
- **Frontmatter with metadata:**
|
|
494
|
-
- Version: 2.0.0
|
|
495
|
-
- Last updated date
|
|
496
|
-
- Maintainer info
|
|
497
|
-
- Changelog reference
|
|
498
|
-
|
|
499
|
-
- **Git Operations section:**
|
|
500
|
-
- Clear distinction between orchestrator-level commits (simple, ad-hoc) and agent-level commits (complex workflows)
|
|
501
|
-
- Table of "Distinction Rules" showing which handler (orchestrator or agent) for each scenario
|
|
502
|
-
- Universal validation requirement (`commit_validator.py`) for both orchestrator and agents
|
|
503
|
-
|
|
504
|
-
- **References section:**
|
|
505
|
-
- Links to all modular docs (`.claude/docs/*.md`)
|
|
506
|
-
- Links to code examples (`.claude/templates/code-examples/`)
|
|
507
|
-
|
|
508
|
-
- **System Paths section:**
|
|
509
|
-
- Centralized list of all system paths (agent system, tools, logs, tests, project SSOT)
|
|
510
|
-
|
|
511
|
-
- **Common Anti-Patterns section:**
|
|
512
|
-
- DON'T list (skip approval gate, use context_provider for meta-agents, etc.)
|
|
513
|
-
- DO list (route tasks, use AskUserQuestion, update SSOT, etc.)
|
|
514
|
-
|
|
515
|
-
### Improved
|
|
516
|
-
|
|
517
|
-
- **Token efficiency:** Reduced from ~3,800 tokens to ~1,500 tokens (60% reduction)
|
|
518
|
-
- **Navigability:** Clear section structure with references to detailed docs
|
|
519
|
-
- **Mantenibility:** Changes to git standards, workflows, or contracts don't require editing CLAUDE.md
|
|
520
|
-
- **Clarity:** Explicit distinction between project agents and meta-agents
|
|
521
|
-
|
|
522
|
-
### Removed
|
|
523
|
-
|
|
524
|
-
- **Detailed Phase 0-6 workflows:** Moved to `.claude/docs/orchestration-workflow.md`
|
|
525
|
-
- **Complete git standards:** Moved to `.claude/docs/git-standards.md`
|
|
526
|
-
- **Full context contracts:** Moved to `.claude/docs/context-contracts.md`
|
|
527
|
-
- **Detailed agent capabilities:** Moved to `.claude/docs/agent-catalog.md`
|
|
528
|
-
- **Code examples:** Moved to `.claude/templates/code-examples/`
|
|
529
|
-
|
|
530
|
-
---
|
|
531
|
-
|
|
532
|
-
## [1.4.x] - 2025-11-01 to 2025-11-06
|
|
533
|
-
|
|
534
|
-
### Added
|
|
535
|
-
|
|
536
|
-
- **Phase 0: Intelligent Clarification** (NEW)
|
|
537
|
-
- `clarify_engine.py` integration for ambiguity detection
|
|
538
|
-
- Dynamic questions with options from `project-context.json`
|
|
539
|
-
- Enriched prompt generation for better routing accuracy
|
|
540
|
-
|
|
541
|
-
- **Phase 6: System State Update**
|
|
542
|
-
- Mandatory SSOT updates after realization
|
|
543
|
-
- `TaskManager` integration for `tasks.md` updates (handles >25K tokens)
|
|
544
|
-
- Infrastructure state updates (`project-context.json`)
|
|
545
|
-
|
|
546
|
-
### Changed
|
|
547
|
-
|
|
548
|
-
- **Phase 4: Approval Gate** made MANDATORY (enforced with validation logic)
|
|
549
|
-
- **Phase 5: Realization** requires `validation["approved"] == True` (cannot skip)
|
|
550
|
-
|
|
551
|
-
---
|
|
552
|
-
|
|
553
|
-
## [1.3.x] - 2025-10-15 to 2025-10-31
|
|
554
|
-
|
|
555
|
-
### Added
|
|
556
|
-
|
|
557
|
-
- **Git Commit Standards:**
|
|
558
|
-
- `commit_validator.py` integration (mandatory validation)
|
|
559
|
-
- Conventional Commits format enforcement
|
|
560
|
-
- Forbidden footers (Claude Code attribution)
|
|
561
|
-
- Violations logging to `.claude/logs/commit-violations.jsonl`
|
|
562
|
-
|
|
563
|
-
- **Context Contracts:**
|
|
564
|
-
- Defined minimum context payload for each agent
|
|
565
|
-
- `context_provider.py` as SSOT for context generation
|
|
566
|
-
|
|
567
|
-
### Changed
|
|
568
|
-
|
|
569
|
-
- **Core Principle #4:** Clarified two-phase workflow (Planning → Approval → Realization)
|
|
570
|
-
|
|
571
|
-
---
|
|
572
|
-
|
|
573
|
-
## [1.2.x] - 2025-09-20 to 2025-10-14
|
|
574
|
-
|
|
575
|
-
### Added
|
|
576
|
-
|
|
577
|
-
- **Agent System Overview:**
|
|
578
|
-
- Distinction between Project Agents (use `context_provider.py`) and Meta-Agents (manual context)
|
|
579
|
-
- Security tiers (T0-T3) for operations
|
|
580
|
-
- Agent capabilities and tools
|
|
581
|
-
|
|
582
|
-
### Changed
|
|
583
|
-
|
|
584
|
-
- **Orchestrator Workflow:** Simplified to 5 phases (before Phase 0 was added later)
|
|
585
|
-
|
|
586
|
-
---
|
|
587
|
-
|
|
588
|
-
## [1.1.x] - 2025-08-15 to 2025-09-19
|
|
589
|
-
|
|
590
|
-
### Added
|
|
591
|
-
|
|
592
|
-
- **Execution Standards:**
|
|
593
|
-
- Use native tools over bash redirections
|
|
594
|
-
- Execute simple commands (not chained with `&&`)
|
|
595
|
-
- Permission priority rules
|
|
596
|
-
|
|
597
|
-
### Changed
|
|
598
|
-
|
|
599
|
-
- **Language Policy:** Separated technical docs (English) from chat interactions (Spanish)
|
|
600
|
-
|
|
601
|
-
---
|
|
602
|
-
|
|
603
|
-
## [1.0.0] - 2025-08-01
|
|
604
|
-
|
|
605
|
-
### Added
|
|
606
|
-
|
|
607
|
-
- **Initial CLAUDE.md structure:**
|
|
608
|
-
- Language Policy
|
|
609
|
-
- Core Operating Principles (ZERO Direct Execution, Delegate to Specialists, Master of Context)
|
|
610
|
-
- Basic workflow (Analysis → Context → Invocation → Verification)
|
|
611
|
-
- Agent list with roles
|
|
612
|
-
|
|
613
|
-
---
|
|
614
|
-
|
|
615
|
-
## Future (Planned)
|
|
616
|
-
|
|
617
|
-
### Version 2.1.0 (Planned Q1 2026)
|
|
618
|
-
|
|
619
|
-
- **Improved routing:** Machine learning-based agent selection
|
|
620
|
-
- **Enhanced clarification:** Proactive clarification based on user history
|
|
621
|
-
- **Performance metrics:** Track token usage, latency, success rates per agent
|
|
622
|
-
|
|
623
|
-
### Version 2.2.0 (Planned Q2 2026)
|
|
624
|
-
|
|
625
|
-
- **Multi-agent coordination:** Support for workflows requiring multiple agents (e.g., terraform + gitops)
|
|
626
|
-
- **Rollback automation:** Automatic rollback on failed verifications
|
|
627
|
-
- **Enhanced observability:** Real-time workflow visualization
|
|
628
|
-
|
|
629
|
-
### Version 3.0.0 (Planned Q3 2026 - BREAKING)
|
|
630
|
-
|
|
631
|
-
- **Agent auto-discovery:** Agents register themselves via manifest files
|
|
632
|
-
- **Dynamic contract negotiation:** Agents specify required context dynamically
|
|
633
|
-
- **Plugin system:** Third-party agents can be added without modifying CLAUDE.md
|
|
634
|
-
|
|
635
|
-
---
|
|
636
|
-
|
|
637
|
-
## Migration Guide
|
|
638
|
-
|
|
639
|
-
### Migrating from 1.x to 2.0
|
|
640
|
-
|
|
641
|
-
**What changed:**
|
|
642
|
-
|
|
643
|
-
1. **CLAUDE.md is now modular:**
|
|
644
|
-
- The file is 196 lines instead of 380 lines
|
|
645
|
-
- Detailed docs moved to `.claude/docs/*.md`
|
|
646
|
-
|
|
647
|
-
2. **Core Principle #1 updated:**
|
|
648
|
-
- OLD: "ZERO Direct Execution" (orchestrator never executes technical work)
|
|
649
|
-
- NEW: "Selective Delegation" (orchestrator executes SIMPLE ops, delegates COMPLEX workflows)
|
|
650
|
-
|
|
651
|
-
3. **Git operations clarified:**
|
|
652
|
-
- Orchestrator CAN do ad-hoc commits ("commitea los cambios")
|
|
653
|
-
- Agents do commits as part of realization workflows
|
|
654
|
-
- Both MUST use `commit_validator.py`
|
|
655
|
-
|
|
656
|
-
**Breaking changes:**
|
|
657
|
-
|
|
658
|
-
- None (backward compatible). Orchestrator behavior remains the same, only documentation structure changed.
|
|
659
|
-
|
|
660
|
-
**Action required:**
|
|
661
|
-
|
|
662
|
-
- None. System continues to work as before.
|
|
663
|
-
|
|
664
|
-
**Recommended:**
|
|
665
|
-
|
|
666
|
-
- Read `.claude/config/orchestration-workflow.md` to understand full Phase 0-6 workflow
|
|
667
|
-
- Review `.claude/config/git-standards.md` for complete commit standards
|
|
668
|
-
- Check `.claude/config/agent-catalog.md` for detailed agent capabilities
|
|
669
|
-
|
|
670
646
|
---
|
|
671
647
|
|
|
672
648
|
## Versioning Policy
|
|
@@ -686,56 +662,6 @@ contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
|
686
662
|
|
|
687
663
|
---
|
|
688
664
|
|
|
689
|
-
## Contributing
|
|
690
|
-
|
|
691
|
-
### How to Update CLAUDE.md
|
|
692
|
-
|
|
693
|
-
1. **For small changes (typos, clarifications):**
|
|
694
|
-
- Edit `CLAUDE.md` directly
|
|
695
|
-
- Increment PATCH version in frontmatter
|
|
696
|
-
- Add entry to this CHANGELOG under "Unreleased"
|
|
697
|
-
|
|
698
|
-
2. **For new sections or features:**
|
|
699
|
-
- Decide if belongs in `CLAUDE.md` (core instructions) or `.claude/config/*.md` (details)
|
|
700
|
-
- If modular doc, create/update appropriate file in `.claude/config/`
|
|
701
|
-
- If core instruction, update `CLAUDE.md` and add reference to modular doc
|
|
702
|
-
- Increment MINOR version in frontmatter
|
|
703
|
-
- Add entry to this CHANGELOG under "Unreleased"
|
|
704
|
-
|
|
705
|
-
3. **For breaking changes:**
|
|
706
|
-
- Discuss with team first (impacts orchestrator behavior)
|
|
707
|
-
- Update `CLAUDE.md` and related docs
|
|
708
|
-
- Increment MAJOR version in frontmatter
|
|
709
|
-
- Add entry to this CHANGELOG under "Unreleased" with **BREAKING** tag
|
|
710
|
-
- Create migration guide if needed
|
|
711
|
-
|
|
712
|
-
### Testing Changes
|
|
713
|
-
|
|
714
|
-
Before committing changes to CLAUDE.md:
|
|
715
|
-
|
|
716
|
-
1. **Run validation script:**
|
|
717
|
-
```bash
|
|
718
|
-
python3 .claude/scripts/validate-claude-md.py
|
|
719
|
-
```
|
|
720
|
-
|
|
721
|
-
2. **Check line count:**
|
|
722
|
-
```bash
|
|
723
|
-
wc -l CLAUDE.md
|
|
724
|
-
# Should be < 250 lines
|
|
725
|
-
```
|
|
726
|
-
|
|
727
|
-
3. **Test with orchestrator:**
|
|
728
|
-
- Start Claude Code session
|
|
729
|
-
- Verify CLAUDE.md is loaded correctly
|
|
730
|
-
- Test sample workflows (routing, clarification, approval)
|
|
731
|
-
|
|
732
|
-
4. **Run test suite:**
|
|
733
|
-
```bash
|
|
734
|
-
pytest .claude/tests/ -v
|
|
735
|
-
```
|
|
736
|
-
|
|
737
|
-
---
|
|
738
|
-
|
|
739
665
|
## Maintainers
|
|
740
666
|
|
|
741
667
|
- **Primary:** Jorge Aguilar (jaguilar@aaxis.com)
|