aiox-core 5.0.7 → 5.0.8
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/.aiox-core/cli/commands/pro/buyer.js +379 -0
- package/.aiox-core/cli/commands/pro/index.js +191 -52
- package/.aiox-core/cli/commands/validate/index.js +2 -0
- package/.aiox-core/core/code-intel/helpers/dev-helper.js +1 -1
- package/.aiox-core/core/code-intel/helpers/devops-helper.js +0 -1
- package/.aiox-core/core/code-intel/helpers/planning-helper.js +1 -1
- package/.aiox-core/core/code-intel/helpers/qa-helper.js +2 -2
- package/.aiox-core/core/config/schemas/framework-config.schema.json +1 -0
- package/.aiox-core/core/config/template-overrides.js +1 -1
- package/.aiox-core/core/doctor/checks/ide-sync.js +81 -25
- package/.aiox-core/core/doctor/checks/rules-files.js +0 -1
- package/.aiox-core/core/doctor/checks/skills-count.js +83 -15
- package/.aiox-core/core/graph-dashboard/cli.js +1 -2
- package/.aiox-core/core/graph-dashboard/data-sources/code-intel-source.js +1 -1
- package/.aiox-core/core/ids/layer-classifier.js +1 -1
- package/.aiox-core/core/pro/pro-updater.js +578 -0
- package/.aiox-core/core/synapse/context/context-tracker.js +107 -9
- package/.aiox-core/core/synapse/layers/layer-processor.js +1 -1
- package/.aiox-core/core-config.yaml +15 -1
- package/.aiox-core/data/capability-detection.js +15 -15
- package/.aiox-core/data/entity-registry.yaml +18 -2
- package/.aiox-core/data/registry-update-log.jsonl +5 -0
- package/.aiox-core/data/tok3-token-comparison.js +0 -4
- package/.aiox-core/data/tool-search-validation.js +1 -1
- package/.aiox-core/development/agents/aiox-master.md +44 -6
- package/.aiox-core/development/agents/data-engineer.md +4 -4
- package/.aiox-core/development/agents/devops.md +52 -2
- package/.aiox-core/development/agents/po.md +1 -1
- package/.aiox-core/development/agents/qa.md +5 -11
- package/.aiox-core/development/agents/sm.md +3 -3
- package/.aiox-core/development/agents/ux-design-expert.md +1 -1
- package/.aiox-core/development/scripts/unified-activation-pipeline.js +29 -3
- package/.aiox-core/development/tasks/dev-develop-story.md +46 -7
- package/.aiox-core/development/tasks/devops-pro-access-grant.md +93 -0
- package/.aiox-core/development/tasks/devops-pro-activate.md +42 -0
- package/.aiox-core/development/tasks/devops-pro-check-access.md +34 -0
- package/.aiox-core/development/tasks/devops-pro-request-reset.md +34 -0
- package/.aiox-core/development/tasks/devops-pro-resend-verification.md +32 -0
- package/.aiox-core/development/tasks/devops-pro-reset-password.md +36 -0
- package/.aiox-core/development/tasks/devops-pro-validate-login.md +36 -0
- package/.aiox-core/development/tasks/devops-pro-verify-status.md +33 -0
- package/.aiox-core/development/tasks/qa-gate.md +54 -4
- package/.aiox-core/development/tasks/validate-next-story.md +39 -2
- package/.aiox-core/framework-config.yaml +1 -0
- package/.aiox-core/infrastructure/scripts/codex-skills-sync/README.md +69 -0
- package/.aiox-core/infrastructure/scripts/codex-skills-sync/bootstrap.js +727 -0
- package/.aiox-core/infrastructure/scripts/codex-skills-sync/index.js +10 -0
- package/.aiox-core/infrastructure/scripts/codex-skills-sync/validate.js +65 -4
- package/.aiox-core/infrastructure/scripts/generate-settings-json.js +29 -4
- package/.aiox-core/infrastructure/scripts/ide-sync/agent-parser.js +4 -0
- package/.aiox-core/infrastructure/scripts/ide-sync/index.js +67 -7
- package/.aiox-core/infrastructure/scripts/ide-sync/transformers/claude-code.js +145 -3
- package/.aiox-core/infrastructure/scripts/repair-agent-references.js +263 -0
- package/.aiox-core/infrastructure/scripts/validate-claude-integration.js +60 -8
- package/.aiox-core/infrastructure/scripts/validate-paths.js +13 -0
- package/.aiox-core/install-manifest.yaml +134 -82
- package/.aiox-core/utils/filters/index.js +2 -1
- package/.claude/commands/AIOX/agents/aiox-master.md +21 -0
- package/.claude/commands/AIOX/agents/analyst.md +21 -0
- package/.claude/commands/AIOX/agents/architect.md +21 -0
- package/.claude/commands/AIOX/agents/data-engineer.md +21 -0
- package/.claude/commands/AIOX/agents/dev.md +21 -0
- package/.claude/commands/AIOX/agents/devops.md +21 -0
- package/.claude/commands/AIOX/agents/pm.md +21 -0
- package/.claude/commands/AIOX/agents/po.md +21 -0
- package/.claude/commands/AIOX/agents/qa.md +21 -0
- package/.claude/commands/AIOX/agents/sm.md +21 -0
- package/.claude/commands/AIOX/agents/squad-creator.md +21 -0
- package/.claude/commands/AIOX/agents/ux-design-expert.md +21 -0
- package/.claude/commands/AIOX/scripts/agent-config-loader.js +624 -0
- package/.claude/commands/AIOX/scripts/generate-greeting.js +160 -0
- package/.claude/commands/AIOX/scripts/greeting-builder.js +866 -0
- package/.claude/commands/AIOX/scripts/session-context-loader.js +286 -0
- package/.claude/commands/AIOX/stories/story-6.1.4.md +1404 -0
- package/.claude/commands/cohort-squad/agents/cohort-manager.md +156 -0
- package/.claude/commands/design-system/agents/brad-frost.md +1097 -0
- package/.claude/commands/design-system/agents/dan-mall.md +857 -0
- package/.claude/commands/design-system/agents/dave-malouf.md +2272 -0
- package/.claude/commands/design-system/agents/design-chief.md +102 -0
- package/.claude/commands/design-system/agents/nano-banana-generator.md +162 -0
- package/.claude/commands/greet.md +101 -0
- package/.claude/commands/synapse/manager.md +75 -0
- package/.claude/commands/synapse/tasks/add-rule.md +94 -0
- package/.claude/commands/synapse/tasks/create-command.md +109 -0
- package/.claude/commands/synapse/tasks/create-domain.md +127 -0
- package/.claude/commands/synapse/tasks/diagnose-synapse.md +245 -0
- package/.claude/commands/synapse/tasks/edit-rule.md +109 -0
- package/.claude/commands/synapse/tasks/suggest-domain.md +116 -0
- package/.claude/commands/synapse/tasks/toggle-domain.md +83 -0
- package/.claude/commands/synapse/templates/domain-template +8 -0
- package/.claude/commands/synapse/templates/manifest-entry-template +4 -0
- package/.claude/commands/synapse/utils/manifest-parser-reference.md +134 -0
- package/.claude/hooks/precompact-session-digest.cjs +2 -2
- package/.claude/skills/AIOX/agents/aiox-master/SKILL.md +511 -0
- package/.claude/skills/AIOX/agents/analyst/SKILL.md +281 -0
- package/.claude/skills/AIOX/agents/architect/SKILL.md +482 -0
- package/.claude/skills/AIOX/agents/data-engineer/SKILL.md +503 -0
- package/.claude/skills/AIOX/agents/dev/SKILL.md +568 -0
- package/.claude/skills/AIOX/agents/devops/SKILL.md +597 -0
- package/.claude/skills/AIOX/agents/pm/SKILL.md +385 -0
- package/.claude/skills/AIOX/agents/po/SKILL.md +343 -0
- package/.claude/skills/AIOX/agents/qa/SKILL.md +451 -0
- package/.claude/skills/AIOX/agents/sm/SKILL.md +295 -0
- package/.claude/skills/AIOX/agents/squad-creator/SKILL.md +352 -0
- package/.claude/skills/AIOX/agents/ux-design-expert/SKILL.md +503 -0
- package/.claude/skills/architect-first/SKILL.md +275 -0
- package/.claude/skills/architect-first/assets/architecture-template.md +505 -0
- package/.claude/skills/architect-first/assets/config-template.yaml +351 -0
- package/.claude/skills/architect-first/references/architecture-checklist.md +216 -0
- package/.claude/skills/architect-first/references/pre-implementation-checklist.md +119 -0
- package/.claude/skills/architect-first/references/stop-rules-guide.md +291 -0
- package/.claude/skills/architect-first/references/testing-strategy-guide.md +477 -0
- package/.claude/skills/architect-first/scripts/architecture_validator.py +490 -0
- package/.claude/skills/architect-first/scripts/check_coupling.py +306 -0
- package/.claude/skills/architect-first/scripts/validate_risk_mitigation.py +382 -0
- package/.claude/skills/checklist-runner/SKILL.md +113 -0
- package/.claude/skills/clone-mind.md +329 -0
- package/.claude/skills/coderabbit-review/SKILL.md +106 -0
- package/.claude/skills/course-generation-workflow.md +76 -0
- package/.claude/skills/enhance-workflow.md +466 -0
- package/.claude/skills/mcp-builder/LICENSE.txt +202 -0
- package/.claude/skills/mcp-builder/SKILL.md +328 -0
- package/.claude/skills/mcp-builder/reference/evaluation.md +602 -0
- package/.claude/skills/mcp-builder/reference/mcp_best_practices.md +915 -0
- package/.claude/skills/mcp-builder/reference/node_mcp_server.md +916 -0
- package/.claude/skills/mcp-builder/reference/python_mcp_server.md +752 -0
- package/.claude/skills/mcp-builder/scripts/connections.py +151 -0
- package/.claude/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/.claude/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/.claude/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/.claude/skills/ralph.md +181 -0
- package/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/.claude/skills/skill-creator/SKILL.md +209 -0
- package/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/.claude/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/.claude/skills/squad.md +301 -0
- package/.claude/skills/synapse/SKILL.md +132 -0
- package/.claude/skills/synapse/assets/README.md +50 -0
- package/.claude/skills/synapse/references/brackets.md +100 -0
- package/.claude/skills/synapse/references/commands.md +118 -0
- package/.claude/skills/synapse/references/domains.md +126 -0
- package/.claude/skills/synapse/references/layers.md +186 -0
- package/.claude/skills/synapse/references/manifest.md +142 -0
- package/.claude/skills/tech-search/SKILL.md +431 -0
- package/.claude/skills/tech-search/prompts/page-extract.md +133 -0
- package/README.en.md +2 -2
- package/README.md +8 -2
- package/bin/aiox.js +55 -4
- package/bin/utils/framework-guard.js +4 -2
- package/bin/utils/pro-detector.js +119 -28
- package/bin/utils/validate-publish.js +6 -6
- package/docs/aiox-agent-flows/devops-system.md +18 -0
- package/docs/aiox-workflows/README.md +1 -0
- package/docs/aiox-workflows/pro-access-grant-workflow.md +218 -0
- package/docs/guides/pro/access-grant-ops-playbook.md +370 -0
- package/docs/guides/pro/install-gate-setup.md +12 -6
- package/docs/guides/pro/squad-creator-handoff-pro-access-ops.md +134 -0
- package/docs/guides/supabase-ops-handoff.md +768 -0
- package/package.json +12 -1
- package/packages/aiox-pro-cli/bin/aiox-pro.js +33 -12
- package/packages/installer/src/config/configure-environment.js +118 -50
- package/packages/installer/src/installer/aiox-core-installer.js +124 -27
- package/packages/installer/src/installer/brownfield-upgrader.js +66 -9
- package/packages/installer/src/installer/dependency-installer.js +4 -0
- package/packages/installer/src/pro/pro-scaffolder.js +5 -5
- package/packages/installer/src/updater/index.js +151 -10
- package/packages/installer/src/wizard/ide-config-generator.js +73 -7
- package/packages/installer/src/wizard/index.js +119 -31
- package/packages/installer/src/wizard/pro-setup.js +118 -47
- package/packages/installer/src/wizard/validation/validators/dependency-validator.js +32 -25
- package/packages/installer/src/wizard/validation/validators/file-structure-validator.js +26 -0
- package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +84 -1
- package/packages/installer/tests/unit/claude-md-template-v5/claude-md-template-v5.test.js +1 -1
- package/packages/installer/tests/unit/doctor/doctor-checks.test.js +85 -19
- package/packages/installer/tests/unit/entity-registry-bootstrap.test.js +4 -4
- package/packages/installer/tests/unit/generate-settings-json/generate-settings-json.test.js +5 -5
- package/packages/installer/tests/unit/ide-sync-integration/ide-sync-integration.test.js +4 -4
- package/packages/installer/tests/unit/merger/yaml-merger.test.js +11 -11
- package/pro/README.md +12 -1
- package/pro/license/index.js +3 -11
- package/pro/license/license-api.js +25 -0
- package/pro/license/license-cache.js +135 -31
- package/pro/license/license-crypto.js +59 -3
- package/pro/package.json +5 -4
- package/pro/squads/README.md +16 -16
- package/pro/squads/index.js +1 -1
- package/scripts/e2e/installed-skills-smoke.js +264 -0
- package/scripts/package-synapse.js +3 -3
- package/scripts/validate-package-completeness.js +8 -11
- package/.aiox-core/lib/build.json +0 -1
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# Stop Rules Remediation Guide
|
|
2
|
+
|
|
3
|
+
When a stop rule is triggered, HALT immediately and follow the remediation steps below.
|
|
4
|
+
|
|
5
|
+
## Stop Rule 1: Capability Loss Detected
|
|
6
|
+
|
|
7
|
+
**Trigger**: New design/implementation loses functionality vs baseline.
|
|
8
|
+
|
|
9
|
+
### Symptoms
|
|
10
|
+
- Feature count decreased
|
|
11
|
+
- User workflow no longer supported
|
|
12
|
+
- Data/output granularity reduced
|
|
13
|
+
- Integration capability removed
|
|
14
|
+
|
|
15
|
+
### Remediation Steps
|
|
16
|
+
|
|
17
|
+
1. **Document the loss**
|
|
18
|
+
- List specific capabilities lost
|
|
19
|
+
- Compare with baseline (Gold Standard)
|
|
20
|
+
- Quantify impact (users affected, use cases broken)
|
|
21
|
+
|
|
22
|
+
2. **Analyze root cause**
|
|
23
|
+
- Why was capability lost?
|
|
24
|
+
- Was it intentional or accidental?
|
|
25
|
+
- What design decision caused the loss?
|
|
26
|
+
|
|
27
|
+
3. **Choose remediation path**
|
|
28
|
+
|
|
29
|
+
**Option A: Restore capability**
|
|
30
|
+
- Redesign to include lost functionality
|
|
31
|
+
- Extend architecture to support both old and new
|
|
32
|
+
- Maintain backward compatibility
|
|
33
|
+
|
|
34
|
+
**Option B: Justify and migrate**
|
|
35
|
+
- Document explicit justification for removal
|
|
36
|
+
- Get multi-stakeholder approval
|
|
37
|
+
- Create migration path for affected users
|
|
38
|
+
- Communicate change clearly
|
|
39
|
+
|
|
40
|
+
**Option C: Revert design**
|
|
41
|
+
- Roll back to previous architecture
|
|
42
|
+
- Restart design process with capability preservation in mind
|
|
43
|
+
|
|
44
|
+
4. **Validate restoration**
|
|
45
|
+
- Feature comparison table shows parity
|
|
46
|
+
- All baseline capabilities present
|
|
47
|
+
- No user workflows broken
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Stop Rule 2: Structural Decision Without Multi-Agent Validation
|
|
52
|
+
|
|
53
|
+
**Trigger**: Architectural change proposed/implemented without PO/Architect/User validation.
|
|
54
|
+
|
|
55
|
+
### Symptoms
|
|
56
|
+
- Design document created unilaterally
|
|
57
|
+
- Code implementation started before approval
|
|
58
|
+
- Major refactoring without stakeholder review
|
|
59
|
+
- Module boundaries changed without validation
|
|
60
|
+
|
|
61
|
+
### Remediation Steps
|
|
62
|
+
|
|
63
|
+
1. **HALT implementation**
|
|
64
|
+
- Stop all coding immediately
|
|
65
|
+
- Preserve current work in feature branch
|
|
66
|
+
- Document current state
|
|
67
|
+
|
|
68
|
+
2. **Prepare validation package**
|
|
69
|
+
- Create architecture document
|
|
70
|
+
- Present A/B/C options with trade-offs
|
|
71
|
+
- Document decision rationale
|
|
72
|
+
- Include impact analysis
|
|
73
|
+
|
|
74
|
+
3. **Multi-agent validation sequence**
|
|
75
|
+
- **Product Owner**: Business alignment, user value, priority
|
|
76
|
+
- **Architect**: Technical soundness, scalability, security
|
|
77
|
+
- **User/Stakeholder**: Final decision and approval
|
|
78
|
+
|
|
79
|
+
4. **Document decision**
|
|
80
|
+
- Create Architecture Decision Record (ADR)
|
|
81
|
+
- Use template: `assets/adr-template.md`
|
|
82
|
+
- Record context, decision, consequences
|
|
83
|
+
- File in project documentation
|
|
84
|
+
|
|
85
|
+
5. **Proceed only after approval**
|
|
86
|
+
- All stakeholders signed off
|
|
87
|
+
- Decision documented
|
|
88
|
+
- Team aligned on approach
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Stop Rule 3: Coupling Between Modules
|
|
93
|
+
|
|
94
|
+
**Trigger**: Dependencies detected between modules that should be independent.
|
|
95
|
+
|
|
96
|
+
### Symptoms
|
|
97
|
+
- Hardcoded import paths to other modules
|
|
98
|
+
- Direct file system references across modules
|
|
99
|
+
- Shared state between expansion packs
|
|
100
|
+
- Module A cannot run without Module B
|
|
101
|
+
|
|
102
|
+
### Remediation Steps
|
|
103
|
+
|
|
104
|
+
1. **Run coupling check**
|
|
105
|
+
```bash
|
|
106
|
+
python scripts/check_coupling.py
|
|
107
|
+
```
|
|
108
|
+
- Identify all coupling violations
|
|
109
|
+
- Document dependency graph
|
|
110
|
+
- Classify coupling type (tight/loose)
|
|
111
|
+
|
|
112
|
+
2. **Design decoupling strategy**
|
|
113
|
+
- Define clean interfaces
|
|
114
|
+
- Externalize cross-module references to YAML
|
|
115
|
+
- Implement dependency injection
|
|
116
|
+
- Create adapter/bridge patterns if needed
|
|
117
|
+
|
|
118
|
+
3. **Implement zero-coupling**
|
|
119
|
+
- Remove hardcoded dependencies
|
|
120
|
+
- Use configuration-based discovery
|
|
121
|
+
- Implement plugin architecture if appropriate
|
|
122
|
+
- Each module must be independently executable
|
|
123
|
+
|
|
124
|
+
4. **Validate independence**
|
|
125
|
+
- Test each module in isolation
|
|
126
|
+
- Verify configuration-based integration
|
|
127
|
+
- Re-run coupling check script
|
|
128
|
+
- Document integration points
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Stop Rule 4: Missing Architectural Documentation
|
|
133
|
+
|
|
134
|
+
**Trigger**: Implementation started without complete architectural documentation.
|
|
135
|
+
|
|
136
|
+
### Symptoms
|
|
137
|
+
- No architecture diagrams
|
|
138
|
+
- Component interactions unclear
|
|
139
|
+
- Data flows undocumented
|
|
140
|
+
- Integration points not specified
|
|
141
|
+
|
|
142
|
+
### Remediation Steps
|
|
143
|
+
|
|
144
|
+
1. **HALT implementation**
|
|
145
|
+
- Stop all coding
|
|
146
|
+
- Preserve work in progress
|
|
147
|
+
- Switch to documentation mode
|
|
148
|
+
|
|
149
|
+
2. **Complete architecture documentation**
|
|
150
|
+
- Use template: `assets/architecture-template.md`
|
|
151
|
+
- Create required diagrams:
|
|
152
|
+
- System architecture diagram
|
|
153
|
+
- Component interaction diagram
|
|
154
|
+
- Data flow diagram
|
|
155
|
+
- Deployment diagram (if applicable)
|
|
156
|
+
|
|
157
|
+
3. **Document details**
|
|
158
|
+
- Component responsibilities
|
|
159
|
+
- API contracts
|
|
160
|
+
- Data schemas
|
|
161
|
+
- Configuration requirements
|
|
162
|
+
- Integration points
|
|
163
|
+
|
|
164
|
+
4. **Review and validate**
|
|
165
|
+
- Multi-agent validation of architecture
|
|
166
|
+
- Documentation completeness check
|
|
167
|
+
- Team understanding verified
|
|
168
|
+
|
|
169
|
+
5. **Resume implementation**
|
|
170
|
+
- Only after documentation complete
|
|
171
|
+
- Only after validation approved
|
|
172
|
+
- With clear architectural guidance
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## Stop Rule 5: Quick & Dirty Code Without Test Plan
|
|
177
|
+
|
|
178
|
+
**Trigger**: "Ugly" or rushed code written without test coverage or logging.
|
|
179
|
+
|
|
180
|
+
### Symptoms
|
|
181
|
+
- Code written quickly without tests
|
|
182
|
+
- No logging or observation points
|
|
183
|
+
- No debugging hooks
|
|
184
|
+
- Quality escape hatch abused
|
|
185
|
+
|
|
186
|
+
### Remediation Steps
|
|
187
|
+
|
|
188
|
+
1. **Acknowledge the escape hatch rules**
|
|
189
|
+
- Quick code is ONLY acceptable WITH tests
|
|
190
|
+
- "Ugly" code requires comprehensive test coverage
|
|
191
|
+
- Temporary imperfection needs safety net
|
|
192
|
+
|
|
193
|
+
2. **Define test plan**
|
|
194
|
+
- Identify test cases for current code
|
|
195
|
+
- Write unit tests for critical paths
|
|
196
|
+
- Add integration tests for workflows
|
|
197
|
+
- Set coverage targets
|
|
198
|
+
|
|
199
|
+
3. **Add logging/observation**
|
|
200
|
+
- Identify key decision points
|
|
201
|
+
- Add strategic log statements
|
|
202
|
+
- Include error context in logs
|
|
203
|
+
- Add debugging hooks
|
|
204
|
+
|
|
205
|
+
4. **Implement tests BEFORE continuing**
|
|
206
|
+
- Write tests for existing code first
|
|
207
|
+
- Verify tests pass
|
|
208
|
+
- Achieve minimum coverage
|
|
209
|
+
- Only then continue implementation
|
|
210
|
+
|
|
211
|
+
5. **Optional: Refactor**
|
|
212
|
+
- If tests provide safety net, can refactor
|
|
213
|
+
- Improve code quality incrementally
|
|
214
|
+
- Maintain test coverage during refactoring
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Stop Rule 6: Hardcoded Mutable Configuration
|
|
219
|
+
|
|
220
|
+
**Trigger**: Configuration values hardcoded in source instead of externalized to YAML.
|
|
221
|
+
|
|
222
|
+
### Symptoms
|
|
223
|
+
- Paths hardcoded in source files
|
|
224
|
+
- Thresholds as magic numbers
|
|
225
|
+
- API endpoints as string literals
|
|
226
|
+
- Module names hardcoded in imports
|
|
227
|
+
|
|
228
|
+
### Remediation Steps
|
|
229
|
+
|
|
230
|
+
1. **Identify all hardcoded values**
|
|
231
|
+
- Scan code for literals
|
|
232
|
+
- List all configuration points
|
|
233
|
+
- Classify by mutability (will this change?)
|
|
234
|
+
|
|
235
|
+
2. **Create YAML configuration schema**
|
|
236
|
+
- Use template: `assets/config-template.yaml`
|
|
237
|
+
- Define structure for all config values
|
|
238
|
+
- Specify defaults
|
|
239
|
+
- Document each configuration option
|
|
240
|
+
|
|
241
|
+
3. **Refactor to use configuration**
|
|
242
|
+
- Replace hardcoded values with config lookups
|
|
243
|
+
- Implement configuration loader
|
|
244
|
+
- Add configuration validation
|
|
245
|
+
- Test with different configurations
|
|
246
|
+
|
|
247
|
+
4. **Document configuration**
|
|
248
|
+
- Create configuration guide
|
|
249
|
+
- Provide example configurations
|
|
250
|
+
- Document override mechanisms
|
|
251
|
+
- Include validation rules
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## General Remediation Process
|
|
256
|
+
|
|
257
|
+
For any stop rule violation:
|
|
258
|
+
|
|
259
|
+
1. **HALT**: Stop all implementation immediately
|
|
260
|
+
2. **ASSESS**: Understand the violation and its scope
|
|
261
|
+
3. **PLAN**: Choose remediation strategy
|
|
262
|
+
4. **VALIDATE**: Get approval for remediation approach
|
|
263
|
+
5. **EXECUTE**: Implement remediation
|
|
264
|
+
6. **VERIFY**: Confirm stop rule no longer triggered
|
|
265
|
+
7. **DOCUMENT**: Record what happened and how it was fixed
|
|
266
|
+
8. **RESUME**: Continue with validated approach
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Prevention
|
|
271
|
+
|
|
272
|
+
To avoid stop rule triggers:
|
|
273
|
+
|
|
274
|
+
- **Use checklists**: `pre-implementation-checklist.md` and `architecture-checklist.md`
|
|
275
|
+
- **Validate early**: Multi-agent review before coding
|
|
276
|
+
- **Run scripts**: `check_coupling.py`, `validate_risk_mitigation.py`
|
|
277
|
+
- **Document first**: Architecture before implementation
|
|
278
|
+
- **Test always**: Define test plan before coding
|
|
279
|
+
- **Config everything**: YAML for all mutable values
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Escalation
|
|
284
|
+
|
|
285
|
+
If remediation is unclear or complex:
|
|
286
|
+
|
|
287
|
+
1. Document the situation completely
|
|
288
|
+
2. Present to team/stakeholders
|
|
289
|
+
3. Request guidance on remediation path
|
|
290
|
+
4. Do NOT proceed without clear resolution
|
|
291
|
+
5. Update this guide with new remediation patterns
|