bc-code-intelligence-mcp 1.5.6 → 1.5.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/LICENSE +20 -20
- package/README.md +165 -419
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/layers/embedded-layer.js +29 -29
- package/dist/layers/project-layer.js +33 -33
- package/dist/sdk/bc-code-intel-client.d.ts.map +1 -1
- package/dist/sdk/bc-code-intel-client.js +1 -1
- package/dist/sdk/bc-code-intel-client.js.map +1 -1
- package/dist/services/knowledge-service.d.ts +1 -1
- package/dist/services/knowledge-service.d.ts.map +1 -1
- package/dist/services/knowledge-service.js +71 -3
- package/dist/services/knowledge-service.js.map +1 -1
- package/dist/services/methodology-service.js +14 -14
- package/dist/services/multi-content-layer-service.d.ts +15 -0
- package/dist/services/multi-content-layer-service.d.ts.map +1 -1
- package/dist/services/multi-content-layer-service.js +62 -0
- package/dist/services/multi-content-layer-service.js.map +1 -1
- package/dist/streamlined-handlers.d.ts +0 -7
- package/dist/streamlined-handlers.d.ts.map +1 -1
- package/dist/streamlined-handlers.js +80 -60
- package/dist/streamlined-handlers.js.map +1 -1
- package/dist/tools/core-tools.d.ts.map +1 -1
- package/dist/tools/core-tools.js +4 -0
- package/dist/tools/core-tools.js.map +1 -1
- package/dist/tools/onboarding-tools.d.ts +8 -0
- package/dist/tools/onboarding-tools.d.ts.map +1 -1
- package/dist/tools/onboarding-tools.js +111 -1
- package/dist/tools/onboarding-tools.js.map +1 -1
- package/dist/types/bc-knowledge.d.ts +4 -4
- package/embedded-knowledge/.github/ISSUE_TEMPLATE/bug-report.md +23 -23
- package/embedded-knowledge/.github/ISSUE_TEMPLATE/content-improvement.md +23 -23
- package/embedded-knowledge/.github/ISSUE_TEMPLATE/knowledge-request.md +29 -29
- package/embedded-knowledge/AGENTS.md +177 -177
- package/embedded-knowledge/CONTRIBUTING.md +57 -57
- package/embedded-knowledge/LICENSE +20 -20
- package/embedded-knowledge/README.md +31 -31
- package/embedded-knowledge/domains/alex-architect/samples/testability-design-patterns.md +223 -0
- package/embedded-knowledge/domains/alex-architect/testability-design-patterns.md +77 -0
- package/embedded-knowledge/domains/casey-copilot/long-running-session-instructions.md +263 -0
- package/embedded-knowledge/domains/casey-copilot/samples/long-running-session-instructions.md +323 -0
- package/embedded-knowledge/domains/eva-errors/codeunit-run-pattern.md +159 -0
- package/embedded-knowledge/domains/eva-errors/samples/codeunit-run-pattern.md +239 -0
- package/embedded-knowledge/domains/eva-errors/samples/try-function-usage.md +195 -0
- package/embedded-knowledge/domains/eva-errors/try-function-usage.md +129 -0
- package/embedded-knowledge/domains/morgan-market/partner-readiness-analysis.md +201 -0
- package/embedded-knowledge/domains/morgan-market/samples/partner-readiness-checklist.md +288 -0
- package/embedded-knowledge/domains/quinn-tester/isolation-testing-patterns.md +82 -0
- package/embedded-knowledge/domains/quinn-tester/samples/isolation-testing-patterns.md +424 -0
- package/embedded-knowledge/domains/roger-reviewer/samples/testability-code-smells.md +256 -0
- package/embedded-knowledge/domains/roger-reviewer/testability-code-smells.md +67 -0
- package/embedded-knowledge/domains/shared/al-file-naming-conventions.md +145 -145
- package/embedded-knowledge/methodologies/index.json +80 -80
- package/embedded-knowledge/methodologies/phases/analysis-full.md +207 -207
- package/embedded-knowledge/methodologies/phases/analysis-quick.md +43 -43
- package/embedded-knowledge/methodologies/phases/analysis.md +181 -181
- package/embedded-knowledge/methodologies/phases/execution-validation-full.md +173 -173
- package/embedded-knowledge/methodologies/phases/execution-validation-quick.md +30 -30
- package/embedded-knowledge/methodologies/phases/execution-validation.md +173 -173
- package/embedded-knowledge/methodologies/phases/performance-full.md +210 -210
- package/embedded-knowledge/methodologies/phases/performance-quick.md +31 -31
- package/embedded-knowledge/methodologies/phases/performance.md +210 -210
- package/embedded-knowledge/methodologies/phases/verification-full.md +161 -161
- package/embedded-knowledge/methodologies/phases/verification-quick.md +47 -47
- package/embedded-knowledge/methodologies/phases/verification.md +145 -145
- package/embedded-knowledge/methodologies/workflow-enforcement.md +141 -141
- package/embedded-knowledge/methodologies/workflows/code-review-workflow.md +98 -98
- package/package.json +81 -81
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
# Verification Phase - Coverage Validation & Gap Resolution
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
**Objective**: Ensure systematic completeness by validating that all planned analysis was completed and no critical optimizations were missed.
|
|
5
|
-
|
|
6
|
-
**Key Principle**: No critical performance improvements should fall through coverage gaps. This phase serves as the final safety net to catch any missed files or patterns.
|
|
7
|
-
|
|
8
|
-
## 🚨 MANDATORY PHASE - CANNOT BE SKIPPED
|
|
9
|
-
**CRITICAL ENFORCEMENT**: This phase is REQUIRED for all optimization sessions. NO SESSION can be marked complete without successful verification phase completion.
|
|
10
|
-
|
|
11
|
-
### Verification Phase Triggers Automatically When:
|
|
12
|
-
- Performance phase claims completion
|
|
13
|
-
- Optimization log contains completion markers
|
|
14
|
-
- Session attempts to conclude without verification
|
|
15
|
-
|
|
16
|
-
### Verification Phase BLOCKS Session Completion Until:
|
|
17
|
-
- ✅ ALL files in scope verified as analyzed
|
|
18
|
-
- ✅ ALL claimed optimizations validated against actual files
|
|
19
|
-
- ✅ ALL coverage gaps identified and resolved
|
|
20
|
-
- ✅ NO phantom optimizations in documentation
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Phase Execution Process
|
|
25
|
-
|
|
26
|
-
### Step 1: Coverage Checklist Validation
|
|
27
|
-
**CRITICAL**: Cross-reference planned vs actual analysis coverage to identify gaps.
|
|
28
|
-
|
|
29
|
-
#### 📋 File Coverage Validation
|
|
30
|
-
- [ ] **Review File Inventory Checklist**
|
|
31
|
-
- [ ] Generate ACTUAL project file list using `find` or `glob` commands
|
|
32
|
-
- [ ] Compare ACTUAL files against optimization log entries
|
|
33
|
-
- [ ] Identify any files marked for analysis but not appearing in results
|
|
34
|
-
- [ ] **Red Flag**: Missing files from critical business domains (Analytics, Finance, Data Processing)
|
|
35
|
-
|
|
36
|
-
#### 🔒 MANDATORY FILE VALIDATION GATES
|
|
37
|
-
**CRITICAL**: These checks CANNOT be bypassed.
|
|
38
|
-
|
|
39
|
-
- [ ] **Gate 1: Phantom File Detection**
|
|
40
|
-
- [ ] Cross-reference optimization log claims against actual project files
|
|
41
|
-
- [ ] **BLOCKING CONDITION**: Any claimed optimizations for non-existent files = INVALID SESSION
|
|
42
|
-
|
|
43
|
-
- [ ] **Gate 2: Missing File Detection**
|
|
44
|
-
- [ ] Generate complete project file inventory using automated tools
|
|
45
|
-
- [ ] **BLOCKING CONDITION**: ANY files in scope missing from optimization log = INCOMPLETE SESSION
|
|
46
|
-
|
|
47
|
-
- [ ] **Gate 3: Coverage Accuracy Validation**
|
|
48
|
-
- [ ] Verify optimization claims match actual file contents
|
|
49
|
-
- [ ] **BLOCKING CONDITION**: False optimization claims = VERIFICATION RESTART REQUIRED
|
|
50
|
-
|
|
51
|
-
#### 🔍 Pattern Coverage Validation
|
|
52
|
-
- [ ] **Review Pattern Detection Checklist**
|
|
53
|
-
- [ ] Verify each planned pattern was checked for each analyzed file
|
|
54
|
-
- [ ] Identify incomplete pattern coverage across file set
|
|
55
|
-
- [ ] **Red Flag**: Core patterns (Manual Summation, N+1 Queries) not checked consistently
|
|
56
|
-
|
|
57
|
-
#### 📊 Coverage Reporting
|
|
58
|
-
- [ ] **Generate Coverage Report**:
|
|
59
|
-
```
|
|
60
|
-
PLANNED: 23 files across 4 modules for 17 patterns
|
|
61
|
-
ACTUAL: 22 files analyzed, 396 pattern checks completed
|
|
62
|
-
GAPS: 1 file missing (T4_BusinessIntelligence.Codeunit.al)
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Step 2: Gap Analysis & Risk Assessment
|
|
66
|
-
**CRITICAL**: Assess impact of any identified coverage gaps.
|
|
67
|
-
|
|
68
|
-
#### 🚨 Missing File Analysis
|
|
69
|
-
For each identified missing file:
|
|
70
|
-
- [ ] **Determine Business Criticality**
|
|
71
|
-
- High Risk: Analytics, Finance, Core Data Processing
|
|
72
|
-
- Medium Risk: Reporting, User Interface, Utilities
|
|
73
|
-
- Low Risk: Configuration, Setup, Administrative functions
|
|
74
|
-
|
|
75
|
-
- [ ] **Quick Pattern Scan** (for High/Medium risk files)
|
|
76
|
-
- [ ] Scan for manual summation loops (`repeat...until` with `+=`)
|
|
77
|
-
- [ ] Check for missing SetLoadFields optimizations
|
|
78
|
-
- [ ] Identify N+1 query anti-patterns (nested record loops)
|
|
79
|
-
- [ ] Look for FlowField vs CalcSums optimization opportunities
|
|
80
|
-
|
|
81
|
-
#### ⚠️ Risk Classification
|
|
82
|
-
- [ ] **CRITICAL**: High-risk files with confirmed performance anti-patterns
|
|
83
|
-
- [ ] **MODERATE**: Medium-risk files with potential optimizations
|
|
84
|
-
- [ ] **MINOR**: Low-risk files or optimization patterns with minimal impact
|
|
85
|
-
|
|
86
|
-
### Step 3: Automated Gap Resolution
|
|
87
|
-
**CRITICAL**: Apply immediate fixes for critical gaps to prevent performance regressions.
|
|
88
|
-
|
|
89
|
-
#### 🔥 Critical Gap Resolution
|
|
90
|
-
For files classified as CRITICAL:
|
|
91
|
-
- [ ] **Apply Standard Optimization Patterns**
|
|
92
|
-
- [ ] Replace manual summation with CalcSums operations
|
|
93
|
-
- [ ] Add SetLoadFields for selective field loading
|
|
94
|
-
- [ ] Eliminate N+1 query patterns with proper aggregation
|
|
95
|
-
- [ ] Apply database-first performance hierarchy principles
|
|
96
|
-
|
|
97
|
-
- [ ] **Update Documentation**
|
|
98
|
-
- [ ] Add "VERIFICATION_PHASE" entries to optimization log
|
|
99
|
-
- [ ] Document pattern fixes and expected performance impact
|
|
100
|
-
- [ ] Update overall performance predictions
|
|
101
|
-
|
|
102
|
-
#### 📋 Moderate Gap Documentation
|
|
103
|
-
For files classified as MODERATE:
|
|
104
|
-
- [ ] **Document for Future Analysis**
|
|
105
|
-
- [ ] Add to "Future Optimization Opportunities" section
|
|
106
|
-
- [ ] Note potential improvement areas for subsequent sessions
|
|
107
|
-
- [ ] Estimate impact and implementation effort
|
|
108
|
-
|
|
109
|
-
### Step 4: Final Validation
|
|
110
|
-
**CRITICAL**: Confirm systematic completeness before concluding optimization session.
|
|
111
|
-
|
|
112
|
-
#### ✅ Completeness Checklist
|
|
113
|
-
- [ ] **Coverage Validation Complete**: All planned files verified
|
|
114
|
-
- [ ] **Critical Gaps Resolved**: High-risk missed optimizations applied
|
|
115
|
-
- [ ] **Documentation Updated**: Optimization log reflects all changes
|
|
116
|
-
- [ ] **Performance Predictions Revised**: Impact estimates include verification fixes
|
|
117
|
-
|
|
118
|
-
#### 📊 Final Coverage Report
|
|
119
|
-
- [ ] **Generate Final Summary**:
|
|
120
|
-
```
|
|
121
|
-
VERIFICATION PHASE RESULTS:
|
|
122
|
-
- Files Analyzed: 23/23 (100% coverage achieved)
|
|
123
|
-
- Critical Gaps Found: 1 (T4_BusinessIntelligence.Codeunit.al)
|
|
124
|
-
- Critical Gaps Resolved: 1 (Manual summation → CalcSums conversion)
|
|
125
|
-
- Additional Optimizations Applied: 3 procedures optimized
|
|
126
|
-
- Updated Performance Prediction: +15% improvement from gap resolution
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## Success Criteria
|
|
132
|
-
✅ **Complete Coverage Achieved**: All files in scope verified as analyzed
|
|
133
|
-
✅ **Critical Gaps Resolved**: No high-risk performance anti-patterns remaining
|
|
134
|
-
✅ **Documentation Complete**: All optimization work properly documented
|
|
135
|
-
✅ **Risk Assessment**: Any remaining gaps classified and documented for future work
|
|
136
|
-
|
|
137
|
-
## Quality Validation
|
|
138
|
-
- **Coverage Completeness**: Did you verify every file in the analysis scope?
|
|
139
|
-
- **Gap Resolution**: Were critical missed optimizations properly addressed?
|
|
140
|
-
- **Documentation Accuracy**: Does the optimization log reflect all work completed?
|
|
141
|
-
- **Risk Management**: Are any remaining gaps properly classified and documented?
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## Next Phase
|
|
1
|
+
# Verification Phase - Coverage Validation & Gap Resolution
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
**Objective**: Ensure systematic completeness by validating that all planned analysis was completed and no critical optimizations were missed.
|
|
5
|
+
|
|
6
|
+
**Key Principle**: No critical performance improvements should fall through coverage gaps. This phase serves as the final safety net to catch any missed files or patterns.
|
|
7
|
+
|
|
8
|
+
## 🚨 MANDATORY PHASE - CANNOT BE SKIPPED
|
|
9
|
+
**CRITICAL ENFORCEMENT**: This phase is REQUIRED for all optimization sessions. NO SESSION can be marked complete without successful verification phase completion.
|
|
10
|
+
|
|
11
|
+
### Verification Phase Triggers Automatically When:
|
|
12
|
+
- Performance phase claims completion
|
|
13
|
+
- Optimization log contains completion markers
|
|
14
|
+
- Session attempts to conclude without verification
|
|
15
|
+
|
|
16
|
+
### Verification Phase BLOCKS Session Completion Until:
|
|
17
|
+
- ✅ ALL files in scope verified as analyzed
|
|
18
|
+
- ✅ ALL claimed optimizations validated against actual files
|
|
19
|
+
- ✅ ALL coverage gaps identified and resolved
|
|
20
|
+
- ✅ NO phantom optimizations in documentation
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Phase Execution Process
|
|
25
|
+
|
|
26
|
+
### Step 1: Coverage Checklist Validation
|
|
27
|
+
**CRITICAL**: Cross-reference planned vs actual analysis coverage to identify gaps.
|
|
28
|
+
|
|
29
|
+
#### 📋 File Coverage Validation
|
|
30
|
+
- [ ] **Review File Inventory Checklist**
|
|
31
|
+
- [ ] Generate ACTUAL project file list using `find` or `glob` commands
|
|
32
|
+
- [ ] Compare ACTUAL files against optimization log entries
|
|
33
|
+
- [ ] Identify any files marked for analysis but not appearing in results
|
|
34
|
+
- [ ] **Red Flag**: Missing files from critical business domains (Analytics, Finance, Data Processing)
|
|
35
|
+
|
|
36
|
+
#### 🔒 MANDATORY FILE VALIDATION GATES
|
|
37
|
+
**CRITICAL**: These checks CANNOT be bypassed.
|
|
38
|
+
|
|
39
|
+
- [ ] **Gate 1: Phantom File Detection**
|
|
40
|
+
- [ ] Cross-reference optimization log claims against actual project files
|
|
41
|
+
- [ ] **BLOCKING CONDITION**: Any claimed optimizations for non-existent files = INVALID SESSION
|
|
42
|
+
|
|
43
|
+
- [ ] **Gate 2: Missing File Detection**
|
|
44
|
+
- [ ] Generate complete project file inventory using automated tools
|
|
45
|
+
- [ ] **BLOCKING CONDITION**: ANY files in scope missing from optimization log = INCOMPLETE SESSION
|
|
46
|
+
|
|
47
|
+
- [ ] **Gate 3: Coverage Accuracy Validation**
|
|
48
|
+
- [ ] Verify optimization claims match actual file contents
|
|
49
|
+
- [ ] **BLOCKING CONDITION**: False optimization claims = VERIFICATION RESTART REQUIRED
|
|
50
|
+
|
|
51
|
+
#### 🔍 Pattern Coverage Validation
|
|
52
|
+
- [ ] **Review Pattern Detection Checklist**
|
|
53
|
+
- [ ] Verify each planned pattern was checked for each analyzed file
|
|
54
|
+
- [ ] Identify incomplete pattern coverage across file set
|
|
55
|
+
- [ ] **Red Flag**: Core patterns (Manual Summation, N+1 Queries) not checked consistently
|
|
56
|
+
|
|
57
|
+
#### 📊 Coverage Reporting
|
|
58
|
+
- [ ] **Generate Coverage Report**:
|
|
59
|
+
```
|
|
60
|
+
PLANNED: 23 files across 4 modules for 17 patterns
|
|
61
|
+
ACTUAL: 22 files analyzed, 396 pattern checks completed
|
|
62
|
+
GAPS: 1 file missing (T4_BusinessIntelligence.Codeunit.al)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Step 2: Gap Analysis & Risk Assessment
|
|
66
|
+
**CRITICAL**: Assess impact of any identified coverage gaps.
|
|
67
|
+
|
|
68
|
+
#### 🚨 Missing File Analysis
|
|
69
|
+
For each identified missing file:
|
|
70
|
+
- [ ] **Determine Business Criticality**
|
|
71
|
+
- High Risk: Analytics, Finance, Core Data Processing
|
|
72
|
+
- Medium Risk: Reporting, User Interface, Utilities
|
|
73
|
+
- Low Risk: Configuration, Setup, Administrative functions
|
|
74
|
+
|
|
75
|
+
- [ ] **Quick Pattern Scan** (for High/Medium risk files)
|
|
76
|
+
- [ ] Scan for manual summation loops (`repeat...until` with `+=`)
|
|
77
|
+
- [ ] Check for missing SetLoadFields optimizations
|
|
78
|
+
- [ ] Identify N+1 query anti-patterns (nested record loops)
|
|
79
|
+
- [ ] Look for FlowField vs CalcSums optimization opportunities
|
|
80
|
+
|
|
81
|
+
#### ⚠️ Risk Classification
|
|
82
|
+
- [ ] **CRITICAL**: High-risk files with confirmed performance anti-patterns
|
|
83
|
+
- [ ] **MODERATE**: Medium-risk files with potential optimizations
|
|
84
|
+
- [ ] **MINOR**: Low-risk files or optimization patterns with minimal impact
|
|
85
|
+
|
|
86
|
+
### Step 3: Automated Gap Resolution
|
|
87
|
+
**CRITICAL**: Apply immediate fixes for critical gaps to prevent performance regressions.
|
|
88
|
+
|
|
89
|
+
#### 🔥 Critical Gap Resolution
|
|
90
|
+
For files classified as CRITICAL:
|
|
91
|
+
- [ ] **Apply Standard Optimization Patterns**
|
|
92
|
+
- [ ] Replace manual summation with CalcSums operations
|
|
93
|
+
- [ ] Add SetLoadFields for selective field loading
|
|
94
|
+
- [ ] Eliminate N+1 query patterns with proper aggregation
|
|
95
|
+
- [ ] Apply database-first performance hierarchy principles
|
|
96
|
+
|
|
97
|
+
- [ ] **Update Documentation**
|
|
98
|
+
- [ ] Add "VERIFICATION_PHASE" entries to optimization log
|
|
99
|
+
- [ ] Document pattern fixes and expected performance impact
|
|
100
|
+
- [ ] Update overall performance predictions
|
|
101
|
+
|
|
102
|
+
#### 📋 Moderate Gap Documentation
|
|
103
|
+
For files classified as MODERATE:
|
|
104
|
+
- [ ] **Document for Future Analysis**
|
|
105
|
+
- [ ] Add to "Future Optimization Opportunities" section
|
|
106
|
+
- [ ] Note potential improvement areas for subsequent sessions
|
|
107
|
+
- [ ] Estimate impact and implementation effort
|
|
108
|
+
|
|
109
|
+
### Step 4: Final Validation
|
|
110
|
+
**CRITICAL**: Confirm systematic completeness before concluding optimization session.
|
|
111
|
+
|
|
112
|
+
#### ✅ Completeness Checklist
|
|
113
|
+
- [ ] **Coverage Validation Complete**: All planned files verified
|
|
114
|
+
- [ ] **Critical Gaps Resolved**: High-risk missed optimizations applied
|
|
115
|
+
- [ ] **Documentation Updated**: Optimization log reflects all changes
|
|
116
|
+
- [ ] **Performance Predictions Revised**: Impact estimates include verification fixes
|
|
117
|
+
|
|
118
|
+
#### 📊 Final Coverage Report
|
|
119
|
+
- [ ] **Generate Final Summary**:
|
|
120
|
+
```
|
|
121
|
+
VERIFICATION PHASE RESULTS:
|
|
122
|
+
- Files Analyzed: 23/23 (100% coverage achieved)
|
|
123
|
+
- Critical Gaps Found: 1 (T4_BusinessIntelligence.Codeunit.al)
|
|
124
|
+
- Critical Gaps Resolved: 1 (Manual summation → CalcSums conversion)
|
|
125
|
+
- Additional Optimizations Applied: 3 procedures optimized
|
|
126
|
+
- Updated Performance Prediction: +15% improvement from gap resolution
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Success Criteria
|
|
132
|
+
✅ **Complete Coverage Achieved**: All files in scope verified as analyzed
|
|
133
|
+
✅ **Critical Gaps Resolved**: No high-risk performance anti-patterns remaining
|
|
134
|
+
✅ **Documentation Complete**: All optimization work properly documented
|
|
135
|
+
✅ **Risk Assessment**: Any remaining gaps classified and documented for future work
|
|
136
|
+
|
|
137
|
+
## Quality Validation
|
|
138
|
+
- **Coverage Completeness**: Did you verify every file in the analysis scope?
|
|
139
|
+
- **Gap Resolution**: Were critical missed optimizations properly addressed?
|
|
140
|
+
- **Documentation Accuracy**: Does the optimization log reflect all work completed?
|
|
141
|
+
- **Risk Management**: Are any remaining gaps properly classified and documented?
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Next Phase
|
|
146
146
|
Upon completion, the optimization session is ready for **Testing & Validation Phase** with confidence that all critical performance improvements have been systematically applied.
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
# Methodology Workflow Enforcement - MANDATORY PHASE PROGRESSION
|
|
2
|
-
|
|
3
|
-
## 🔒 CRITICAL ENFORCEMENT RULES
|
|
4
|
-
|
|
5
|
-
**NO EXCEPTIONS**: These rules CANNOT be bypassed. Any violation INVALIDATES the entire optimization session.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Phase Progression Rules
|
|
10
|
-
|
|
11
|
-
### Rule 1: Sequential Phase Execution
|
|
12
|
-
**MANDATORY ORDER**: Analysis → Performance → Verification
|
|
13
|
-
- ❌ **FORBIDDEN**: Skipping any phase
|
|
14
|
-
- ❌ **FORBIDDEN**: Reverse phase order
|
|
15
|
-
- ❌ **FORBIDDEN**: Parallel phase execution
|
|
16
|
-
|
|
17
|
-
### Rule 2: Phase Completion Gates
|
|
18
|
-
**BLOCKING CONDITIONS**: Each phase has mandatory gates that MUST pass before progression.
|
|
19
|
-
|
|
20
|
-
#### Analysis Phase Gates
|
|
21
|
-
- [ ] **Gate A1**: Complete file inventory generated using automated tools
|
|
22
|
-
- [ ] **Gate A2**: User scope selection documented (if large codebase)
|
|
23
|
-
- [ ] **Gate A3**: File + Pattern checklists created
|
|
24
|
-
- **ENFORCEMENT**: Cannot proceed to Performance phase until ALL Analysis gates pass
|
|
25
|
-
|
|
26
|
-
#### Performance Phase Gates
|
|
27
|
-
- [ ] **Gate P1**: Every file in scope addressed in optimization log
|
|
28
|
-
- [ ] **Gate P2**: Infrastructure changes implemented where required
|
|
29
|
-
- [ ] **Gate P3**: No phantom optimizations claimed
|
|
30
|
-
- **ENFORCEMENT**: Cannot proceed to Verification phase until ALL Performance gates pass
|
|
31
|
-
|
|
32
|
-
#### Verification Phase Gates
|
|
33
|
-
- [ ] **Gate V1**: File coverage validation completed
|
|
34
|
-
- [ ] **Gate V2**: All gaps identified and resolved
|
|
35
|
-
- [ ] **Gate V3**: Final accuracy validation passed
|
|
36
|
-
- **ENFORCEMENT**: Cannot mark session complete until ALL Verification gates pass
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## Validation Commands - MANDATORY USAGE
|
|
41
|
-
|
|
42
|
-
### File Inventory Validation
|
|
43
|
-
```bash
|
|
44
|
-
# REQUIRED: Generate actual file list
|
|
45
|
-
find /project/path -name "*.al" -type f | sort
|
|
46
|
-
# OR
|
|
47
|
-
glob **/*.al
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Coverage Cross-Reference
|
|
51
|
-
```bash
|
|
52
|
-
# REQUIRED: Validate optimization claims
|
|
53
|
-
grep -r "filename.al" optimization-log.md
|
|
54
|
-
# Cross-reference against actual files
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Gap Detection
|
|
58
|
-
```bash
|
|
59
|
-
# REQUIRED: Identify missing files
|
|
60
|
-
diff planned-files.txt actual-files.txt
|
|
61
|
-
# Any differences = BLOCKING CONDITION
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## Agent Behavior Enforcement
|
|
67
|
-
|
|
68
|
-
### FORBIDDEN Agent Actions
|
|
69
|
-
- ❌ **Claiming "100% complete"** without verification phase
|
|
70
|
-
- ❌ **Skipping file inventory generation**
|
|
71
|
-
- ❌ **Making optimization claims for non-existent files**
|
|
72
|
-
- ❌ **Proceeding without gate validation**
|
|
73
|
-
- ❌ **Marking any phase complete with known gaps**
|
|
74
|
-
|
|
75
|
-
### REQUIRED Agent Actions
|
|
76
|
-
- ✅ **Generate file lists using automated tools**
|
|
77
|
-
- ✅ **Cross-reference ALL claims against actual files**
|
|
78
|
-
- ✅ **Document EVERY gate passage explicitly**
|
|
79
|
-
- ✅ **Stop and request gap resolution when validation fails**
|
|
80
|
-
- ✅ **Execute verification phase for EVERY session**
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## Session Validation Checklist
|
|
85
|
-
|
|
86
|
-
### Before Marking ANY Session Complete:
|
|
87
|
-
- [ ] **Analysis phase**: All gates documented as passed
|
|
88
|
-
- [ ] **Performance phase**: All gates documented as passed
|
|
89
|
-
- [ ] **Verification phase**: Executed and all gates passed
|
|
90
|
-
- [ ] **File inventory**: Generated using automated tools and validated
|
|
91
|
-
- [ ] **Coverage gaps**: Zero unresolved gaps remaining
|
|
92
|
-
- [ ] **Accuracy validation**: All optimization claims verified against actual files
|
|
93
|
-
|
|
94
|
-
### Session INVALID If:
|
|
95
|
-
- Any phase skipped
|
|
96
|
-
- Any gate bypassed without documentation
|
|
97
|
-
- Any phantom optimizations claimed
|
|
98
|
-
- Any files in scope left unaddressed
|
|
99
|
-
- Verification phase not executed
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
## Quality Assurance Requirements
|
|
104
|
-
|
|
105
|
-
### Documentation Standards
|
|
106
|
-
- **File references**: Must include exact file paths that exist
|
|
107
|
-
- **Line references**: Must reference actual line numbers in files
|
|
108
|
-
- **Optimization claims**: Must be verifiable by examining actual code
|
|
109
|
-
- **Coverage claims**: Must be backed by file inventory validation
|
|
110
|
-
|
|
111
|
-
### Validation Evidence Required
|
|
112
|
-
- **Actual file lists**: Generated by automated tools, not manual entry
|
|
113
|
-
- **Cross-reference results**: Showing planned vs actual analysis coverage
|
|
114
|
-
- **Gap resolution**: Documentation of how ALL identified gaps were resolved
|
|
115
|
-
- **Accuracy verification**: Evidence that claimed optimizations actually exist
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## Enforcement Violations - Session Restart Required
|
|
120
|
-
|
|
121
|
-
### Major Violations (Restart Entire Session):
|
|
122
|
-
- Phantom file optimizations claimed
|
|
123
|
-
- Verification phase completely skipped
|
|
124
|
-
- Major coverage gaps discovered in verification
|
|
125
|
-
|
|
126
|
-
### Minor Violations (Restart Current Phase):
|
|
127
|
-
- Gate bypassed without documentation
|
|
128
|
-
- File inventory not generated using automated tools
|
|
129
|
-
- Optimization claims not cross-referenced
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Success Criteria - ALL MUST BE MET
|
|
134
|
-
|
|
135
|
-
✅ **Phase Sequence**: Analysis → Performance → Verification completed in order
|
|
136
|
-
✅ **Gate Compliance**: ALL gates passed and documented
|
|
137
|
-
✅ **File Accuracy**: Zero phantom files, zero missing files in scope
|
|
138
|
-
✅ **Validation Evidence**: Automated tools used for all inventory and validation
|
|
139
|
-
✅ **Gap Resolution**: ALL coverage gaps identified and resolved
|
|
140
|
-
✅ **Quality Assurance**: All optimization claims verified against actual code
|
|
141
|
-
|
|
1
|
+
# Methodology Workflow Enforcement - MANDATORY PHASE PROGRESSION
|
|
2
|
+
|
|
3
|
+
## 🔒 CRITICAL ENFORCEMENT RULES
|
|
4
|
+
|
|
5
|
+
**NO EXCEPTIONS**: These rules CANNOT be bypassed. Any violation INVALIDATES the entire optimization session.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Phase Progression Rules
|
|
10
|
+
|
|
11
|
+
### Rule 1: Sequential Phase Execution
|
|
12
|
+
**MANDATORY ORDER**: Analysis → Performance → Verification
|
|
13
|
+
- ❌ **FORBIDDEN**: Skipping any phase
|
|
14
|
+
- ❌ **FORBIDDEN**: Reverse phase order
|
|
15
|
+
- ❌ **FORBIDDEN**: Parallel phase execution
|
|
16
|
+
|
|
17
|
+
### Rule 2: Phase Completion Gates
|
|
18
|
+
**BLOCKING CONDITIONS**: Each phase has mandatory gates that MUST pass before progression.
|
|
19
|
+
|
|
20
|
+
#### Analysis Phase Gates
|
|
21
|
+
- [ ] **Gate A1**: Complete file inventory generated using automated tools
|
|
22
|
+
- [ ] **Gate A2**: User scope selection documented (if large codebase)
|
|
23
|
+
- [ ] **Gate A3**: File + Pattern checklists created
|
|
24
|
+
- **ENFORCEMENT**: Cannot proceed to Performance phase until ALL Analysis gates pass
|
|
25
|
+
|
|
26
|
+
#### Performance Phase Gates
|
|
27
|
+
- [ ] **Gate P1**: Every file in scope addressed in optimization log
|
|
28
|
+
- [ ] **Gate P2**: Infrastructure changes implemented where required
|
|
29
|
+
- [ ] **Gate P3**: No phantom optimizations claimed
|
|
30
|
+
- **ENFORCEMENT**: Cannot proceed to Verification phase until ALL Performance gates pass
|
|
31
|
+
|
|
32
|
+
#### Verification Phase Gates
|
|
33
|
+
- [ ] **Gate V1**: File coverage validation completed
|
|
34
|
+
- [ ] **Gate V2**: All gaps identified and resolved
|
|
35
|
+
- [ ] **Gate V3**: Final accuracy validation passed
|
|
36
|
+
- **ENFORCEMENT**: Cannot mark session complete until ALL Verification gates pass
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Validation Commands - MANDATORY USAGE
|
|
41
|
+
|
|
42
|
+
### File Inventory Validation
|
|
43
|
+
```bash
|
|
44
|
+
# REQUIRED: Generate actual file list
|
|
45
|
+
find /project/path -name "*.al" -type f | sort
|
|
46
|
+
# OR
|
|
47
|
+
glob **/*.al
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Coverage Cross-Reference
|
|
51
|
+
```bash
|
|
52
|
+
# REQUIRED: Validate optimization claims
|
|
53
|
+
grep -r "filename.al" optimization-log.md
|
|
54
|
+
# Cross-reference against actual files
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Gap Detection
|
|
58
|
+
```bash
|
|
59
|
+
# REQUIRED: Identify missing files
|
|
60
|
+
diff planned-files.txt actual-files.txt
|
|
61
|
+
# Any differences = BLOCKING CONDITION
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Agent Behavior Enforcement
|
|
67
|
+
|
|
68
|
+
### FORBIDDEN Agent Actions
|
|
69
|
+
- ❌ **Claiming "100% complete"** without verification phase
|
|
70
|
+
- ❌ **Skipping file inventory generation**
|
|
71
|
+
- ❌ **Making optimization claims for non-existent files**
|
|
72
|
+
- ❌ **Proceeding without gate validation**
|
|
73
|
+
- ❌ **Marking any phase complete with known gaps**
|
|
74
|
+
|
|
75
|
+
### REQUIRED Agent Actions
|
|
76
|
+
- ✅ **Generate file lists using automated tools**
|
|
77
|
+
- ✅ **Cross-reference ALL claims against actual files**
|
|
78
|
+
- ✅ **Document EVERY gate passage explicitly**
|
|
79
|
+
- ✅ **Stop and request gap resolution when validation fails**
|
|
80
|
+
- ✅ **Execute verification phase for EVERY session**
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Session Validation Checklist
|
|
85
|
+
|
|
86
|
+
### Before Marking ANY Session Complete:
|
|
87
|
+
- [ ] **Analysis phase**: All gates documented as passed
|
|
88
|
+
- [ ] **Performance phase**: All gates documented as passed
|
|
89
|
+
- [ ] **Verification phase**: Executed and all gates passed
|
|
90
|
+
- [ ] **File inventory**: Generated using automated tools and validated
|
|
91
|
+
- [ ] **Coverage gaps**: Zero unresolved gaps remaining
|
|
92
|
+
- [ ] **Accuracy validation**: All optimization claims verified against actual files
|
|
93
|
+
|
|
94
|
+
### Session INVALID If:
|
|
95
|
+
- Any phase skipped
|
|
96
|
+
- Any gate bypassed without documentation
|
|
97
|
+
- Any phantom optimizations claimed
|
|
98
|
+
- Any files in scope left unaddressed
|
|
99
|
+
- Verification phase not executed
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Quality Assurance Requirements
|
|
104
|
+
|
|
105
|
+
### Documentation Standards
|
|
106
|
+
- **File references**: Must include exact file paths that exist
|
|
107
|
+
- **Line references**: Must reference actual line numbers in files
|
|
108
|
+
- **Optimization claims**: Must be verifiable by examining actual code
|
|
109
|
+
- **Coverage claims**: Must be backed by file inventory validation
|
|
110
|
+
|
|
111
|
+
### Validation Evidence Required
|
|
112
|
+
- **Actual file lists**: Generated by automated tools, not manual entry
|
|
113
|
+
- **Cross-reference results**: Showing planned vs actual analysis coverage
|
|
114
|
+
- **Gap resolution**: Documentation of how ALL identified gaps were resolved
|
|
115
|
+
- **Accuracy verification**: Evidence that claimed optimizations actually exist
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Enforcement Violations - Session Restart Required
|
|
120
|
+
|
|
121
|
+
### Major Violations (Restart Entire Session):
|
|
122
|
+
- Phantom file optimizations claimed
|
|
123
|
+
- Verification phase completely skipped
|
|
124
|
+
- Major coverage gaps discovered in verification
|
|
125
|
+
|
|
126
|
+
### Minor Violations (Restart Current Phase):
|
|
127
|
+
- Gate bypassed without documentation
|
|
128
|
+
- File inventory not generated using automated tools
|
|
129
|
+
- Optimization claims not cross-referenced
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Success Criteria - ALL MUST BE MET
|
|
134
|
+
|
|
135
|
+
✅ **Phase Sequence**: Analysis → Performance → Verification completed in order
|
|
136
|
+
✅ **Gate Compliance**: ALL gates passed and documented
|
|
137
|
+
✅ **File Accuracy**: Zero phantom files, zero missing files in scope
|
|
138
|
+
✅ **Validation Evidence**: Automated tools used for all inventory and validation
|
|
139
|
+
✅ **Gap Resolution**: ALL coverage gaps identified and resolved
|
|
140
|
+
✅ **Quality Assurance**: All optimization claims verified against actual code
|
|
141
|
+
|
|
142
142
|
**Only sessions meeting ALL criteria are considered valid and complete.**
|