bc-code-intelligence-mcp 1.5.7 → 1.5.9
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 -165
- package/dist/layers/embedded-layer.js +29 -29
- package/dist/layers/git-layer.d.ts +9 -0
- package/dist/layers/git-layer.d.ts.map +1 -1
- package/dist/layers/git-layer.js +18 -8
- package/dist/layers/git-layer.js.map +1 -1
- package/dist/layers/project-layer.js +33 -33
- package/dist/services/code-analysis-service.d.ts +22 -0
- package/dist/services/code-analysis-service.d.ts.map +1 -1
- package/dist/services/code-analysis-service.js +139 -3
- package/dist/services/code-analysis-service.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 +5 -1
- 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/tools/specialist-discovery-tools.d.ts.map +1 -1
- package/dist/tools/specialist-discovery-tools.js +6 -0
- package/dist/tools/specialist-discovery-tools.js.map +1 -1
- package/dist/tools/specialist-tools.d.ts.map +1 -1
- package/dist/tools/specialist-tools.js +6 -0
- package/dist/tools/specialist-tools.js.map +1 -1
- 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/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,174 +1,174 @@
|
|
|
1
|
-
# Execution Validation Phase - Real-Time Work Verification
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
**Objective**: Validate claimed optimizations actually exist in code through frequent, lightweight verification checks.
|
|
5
|
-
|
|
6
|
-
**Key Principle**: Trust but verify - every optimization claim must be immediately validated against actual file contents.
|
|
7
|
-
|
|
8
|
-
## 🚨 FREQUENT MICRO-VALIDATION - RUNS CONTINUOUSLY
|
|
9
|
-
**CRITICAL**: This phase runs multiple times per session, not once at the end. Prevents execution fraud through real-time validation.
|
|
10
|
-
|
|
11
|
-
### Execution Validation Triggers
|
|
12
|
-
**MANDATORY VALIDATION POINTS** - Agent CANNOT proceed without validation:
|
|
13
|
-
- After optimizing 2-3 files
|
|
14
|
-
- When agent asks permission to continue
|
|
15
|
-
- Before claiming any module "complete"
|
|
16
|
-
- Before moving to next business domain
|
|
17
|
-
- When agent pauses or requests guidance
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Phase Execution Process
|
|
22
|
-
|
|
23
|
-
### Step 1: Immediate Claim Validation
|
|
24
|
-
**CRITICAL**: Validate optimization claims against actual file contents within minutes of claimed work.
|
|
25
|
-
|
|
26
|
-
#### 🔍 Quick File Content Validation
|
|
27
|
-
- [ ] **Verify Claimed CalcSums Optimizations**
|
|
28
|
-
```bash
|
|
29
|
-
# REQUIRED: Validate CalcSums claims exist in files
|
|
30
|
-
grep -l "CalcSums" file1.al file2.al file3.al
|
|
31
|
-
# BLOCKING CONDITION: If claimed but grep returns empty = FRAUD
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
- [ ] **Verify Claimed SetLoadFields Optimizations**
|
|
35
|
-
```bash
|
|
36
|
-
# REQUIRED: Validate SetLoadFields claims exist in files
|
|
37
|
-
grep -l "SetLoadFields" file1.al file2.al file3.al
|
|
38
|
-
# BLOCKING CONDITION: If claimed but grep returns empty = FRAUD
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
- [ ] **Verify Claimed Loop Eliminations**
|
|
42
|
-
```bash
|
|
43
|
-
# REQUIRED: Check manual loops actually removed
|
|
44
|
-
grep -c "repeat" file1.al file2.al # Should be reduced or zero
|
|
45
|
-
grep -c "until.*Next" file1.al file2.al # Should be reduced or zero
|
|
46
|
-
# BLOCKING CONDITION: If claimed eliminated but loops still exist = FALSE CLAIM
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
#### 🕐 File Modification Time Validation
|
|
50
|
-
- [ ] **Verify Files Actually Modified**
|
|
51
|
-
```bash
|
|
52
|
-
# REQUIRED: Check file modification timestamps
|
|
53
|
-
ls -la --time-style=full-iso *.al | grep "$(date +%Y-%m-%d)"
|
|
54
|
-
# BLOCKING CONDITION: Claimed optimization but file not modified today = FRAUD
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Step 2: Optimization Pattern Verification
|
|
58
|
-
**CRITICAL**: Ensure claimed patterns actually implemented correctly.
|
|
59
|
-
|
|
60
|
-
#### 🔒 MANDATORY PATTERN CHECKS
|
|
61
|
-
- [ ] **CalcSums Implementation Validation**
|
|
62
|
-
```bash
|
|
63
|
-
# Verify proper CalcSums usage (not just presence)
|
|
64
|
-
grep -A2 -B2 "CalcSums" file.al
|
|
65
|
-
# Check: Proper field names, correct placement, no manual loops after
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
- [ ] **SetLoadFields Placement Validation**
|
|
69
|
-
```bash
|
|
70
|
-
# Verify SetLoadFields placed before FindSet (BC best practice)
|
|
71
|
-
grep -B1 -A1 "SetLoadFields" file.al
|
|
72
|
-
# Check: Appears before FindSet/FindFirst, includes correct fields
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
- [ ] **Anti-Pattern Elimination Verification**
|
|
76
|
-
```bash
|
|
77
|
-
# Ensure nested loops actually eliminated
|
|
78
|
-
grep -C3 "repeat.*repeat" file.al # Should return empty for eliminated nested loops
|
|
79
|
-
grep -C3 "FindSet.*FindSet" file.al # Should return empty for eliminated N+1 patterns
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Step 3: Real-Time Fraud Detection
|
|
83
|
-
**CRITICAL**: Immediately flag and stop execution fraud.
|
|
84
|
-
|
|
85
|
-
#### 🚨 BLOCKING CONDITIONS (Session Stops Immediately)
|
|
86
|
-
- **FALSE OPTIMIZATION CLAIMS**: Optimization claimed but not found in file
|
|
87
|
-
- **PHANTOM FILE MODIFICATIONS**: Claims about files that weren't actually modified
|
|
88
|
-
- **INCORRECT PATTERN IMPLEMENTATION**: Patterns exist but implemented incorrectly
|
|
89
|
-
- **INCOMPLETE WORK**: Claims "all procedures optimized" but evidence shows partial work
|
|
90
|
-
|
|
91
|
-
#### 🔧 FRAUD RESPONSE PROTOCOL
|
|
92
|
-
When validation fails:
|
|
93
|
-
1. **STOP ALL WORK**: No further optimization work until resolved
|
|
94
|
-
2. **FORCE CORRECTION**: Agent must actually implement claimed optimization
|
|
95
|
-
3. **RE-VALIDATE**: Run validation again after claimed correction
|
|
96
|
-
4. **DOCUMENT FRAUD**: Log validation failure and correction in optimization log
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## Validation Commands Reference
|
|
101
|
-
|
|
102
|
-
### File Content Validation
|
|
103
|
-
```bash
|
|
104
|
-
# Validate specific optimization patterns exist
|
|
105
|
-
grep -l "CalcSums" *.al
|
|
106
|
-
grep -l "SetLoadFields" *.al
|
|
107
|
-
grep -l "Count()" *.al
|
|
108
|
-
grep -c "repeat" *.al # Should be reduced in optimized files
|
|
109
|
-
|
|
110
|
-
# Validate anti-patterns eliminated
|
|
111
|
-
grep -L "repeat.*until" *.al # Files with nested loops eliminated
|
|
112
|
-
grep -c "FindSet" *.al # Should be optimized in aggregation files
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### File Modification Validation
|
|
116
|
-
```bash
|
|
117
|
-
# Check files actually modified recently
|
|
118
|
-
find . -name "*.al" -mtime -1 # Files modified in last day
|
|
119
|
-
ls -lt *.al | head -5 # Most recently modified files
|
|
120
|
-
|
|
121
|
-
# Compare modification times to optimization claims
|
|
122
|
-
stat --format="%y %n" *.al # Detailed modification timestamps
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
### Pattern Implementation Validation
|
|
126
|
-
```bash
|
|
127
|
-
# Verify CalcSums implementation quality
|
|
128
|
-
grep -A3 "CalcSums" *.al # Show context after CalcSums calls
|
|
129
|
-
grep -B2 -A1 "SetLoadFields" *.al # Show SetLoadFields placement
|
|
130
|
-
|
|
131
|
-
# Check for remaining anti-patterns
|
|
132
|
-
grep -n "repeat" *.al | grep -v "CalcSums" # Manual loops not replaced with CalcSums
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
---
|
|
136
|
-
|
|
137
|
-
## Success Criteria - ALL MUST PASS
|
|
138
|
-
✅ **File Modification Evidence**: All claimed files show recent modification timestamps
|
|
139
|
-
✅ **Pattern Presence Validation**: All claimed optimizations found in file contents
|
|
140
|
-
✅ **Implementation Quality**: Optimizations implemented according to best practices
|
|
141
|
-
✅ **Anti-Pattern Elimination**: Claimed eliminated patterns no longer present in code
|
|
142
|
-
✅ **No False Claims**: Zero discrepancies between claims and actual file contents
|
|
143
|
-
|
|
144
|
-
## Quality Validation Checklist
|
|
145
|
-
- **Optimization Existence**: Can you grep for every claimed optimization?
|
|
146
|
-
- **Implementation Correctness**: Are patterns implemented properly (SetLoadFields before FindSet, etc.)?
|
|
147
|
-
- **File Modification**: Do file timestamps confirm recent changes?
|
|
148
|
-
- **Anti-Pattern Removal**: Are claimed eliminated patterns actually gone?
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## Execution Validation Workflow
|
|
153
|
-
|
|
154
|
-
### Trigger Points (MANDATORY)
|
|
155
|
-
1. **After 2-3 files optimized**: Run micro-validation
|
|
156
|
-
2. **Agent requests to continue**: BLOCK until validation passes
|
|
157
|
-
3. **Module completion claims**: VALIDATE before allowing progression
|
|
158
|
-
4. **Performance phase transitions**: VALIDATE all claimed work
|
|
159
|
-
|
|
160
|
-
### Validation Frequency
|
|
161
|
-
- **Every 10-15 minutes** during active optimization work
|
|
162
|
-
- **Before ANY completion claims** (module, phase, session)
|
|
163
|
-
- **When agent asks permission** to proceed or continue
|
|
164
|
-
- **After ANY substantial optimization claims** (CalcSums, SetLoadFields, etc.)
|
|
165
|
-
|
|
166
|
-
### Integration with Other Phases
|
|
167
|
-
- **Performance Phase**: Execution validation runs during performance work
|
|
168
|
-
- **Verification Phase**: Comprehensive validation runs after performance phase
|
|
169
|
-
- **Analysis Phase**: Light validation can verify analysis claims were accurate
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
## Next Phase
|
|
1
|
+
# Execution Validation Phase - Real-Time Work Verification
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
**Objective**: Validate claimed optimizations actually exist in code through frequent, lightweight verification checks.
|
|
5
|
+
|
|
6
|
+
**Key Principle**: Trust but verify - every optimization claim must be immediately validated against actual file contents.
|
|
7
|
+
|
|
8
|
+
## 🚨 FREQUENT MICRO-VALIDATION - RUNS CONTINUOUSLY
|
|
9
|
+
**CRITICAL**: This phase runs multiple times per session, not once at the end. Prevents execution fraud through real-time validation.
|
|
10
|
+
|
|
11
|
+
### Execution Validation Triggers
|
|
12
|
+
**MANDATORY VALIDATION POINTS** - Agent CANNOT proceed without validation:
|
|
13
|
+
- After optimizing 2-3 files
|
|
14
|
+
- When agent asks permission to continue
|
|
15
|
+
- Before claiming any module "complete"
|
|
16
|
+
- Before moving to next business domain
|
|
17
|
+
- When agent pauses or requests guidance
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Phase Execution Process
|
|
22
|
+
|
|
23
|
+
### Step 1: Immediate Claim Validation
|
|
24
|
+
**CRITICAL**: Validate optimization claims against actual file contents within minutes of claimed work.
|
|
25
|
+
|
|
26
|
+
#### 🔍 Quick File Content Validation
|
|
27
|
+
- [ ] **Verify Claimed CalcSums Optimizations**
|
|
28
|
+
```bash
|
|
29
|
+
# REQUIRED: Validate CalcSums claims exist in files
|
|
30
|
+
grep -l "CalcSums" file1.al file2.al file3.al
|
|
31
|
+
# BLOCKING CONDITION: If claimed but grep returns empty = FRAUD
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- [ ] **Verify Claimed SetLoadFields Optimizations**
|
|
35
|
+
```bash
|
|
36
|
+
# REQUIRED: Validate SetLoadFields claims exist in files
|
|
37
|
+
grep -l "SetLoadFields" file1.al file2.al file3.al
|
|
38
|
+
# BLOCKING CONDITION: If claimed but grep returns empty = FRAUD
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- [ ] **Verify Claimed Loop Eliminations**
|
|
42
|
+
```bash
|
|
43
|
+
# REQUIRED: Check manual loops actually removed
|
|
44
|
+
grep -c "repeat" file1.al file2.al # Should be reduced or zero
|
|
45
|
+
grep -c "until.*Next" file1.al file2.al # Should be reduced or zero
|
|
46
|
+
# BLOCKING CONDITION: If claimed eliminated but loops still exist = FALSE CLAIM
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### 🕐 File Modification Time Validation
|
|
50
|
+
- [ ] **Verify Files Actually Modified**
|
|
51
|
+
```bash
|
|
52
|
+
# REQUIRED: Check file modification timestamps
|
|
53
|
+
ls -la --time-style=full-iso *.al | grep "$(date +%Y-%m-%d)"
|
|
54
|
+
# BLOCKING CONDITION: Claimed optimization but file not modified today = FRAUD
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Step 2: Optimization Pattern Verification
|
|
58
|
+
**CRITICAL**: Ensure claimed patterns actually implemented correctly.
|
|
59
|
+
|
|
60
|
+
#### 🔒 MANDATORY PATTERN CHECKS
|
|
61
|
+
- [ ] **CalcSums Implementation Validation**
|
|
62
|
+
```bash
|
|
63
|
+
# Verify proper CalcSums usage (not just presence)
|
|
64
|
+
grep -A2 -B2 "CalcSums" file.al
|
|
65
|
+
# Check: Proper field names, correct placement, no manual loops after
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
- [ ] **SetLoadFields Placement Validation**
|
|
69
|
+
```bash
|
|
70
|
+
# Verify SetLoadFields placed before FindSet (BC best practice)
|
|
71
|
+
grep -B1 -A1 "SetLoadFields" file.al
|
|
72
|
+
# Check: Appears before FindSet/FindFirst, includes correct fields
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- [ ] **Anti-Pattern Elimination Verification**
|
|
76
|
+
```bash
|
|
77
|
+
# Ensure nested loops actually eliminated
|
|
78
|
+
grep -C3 "repeat.*repeat" file.al # Should return empty for eliminated nested loops
|
|
79
|
+
grep -C3 "FindSet.*FindSet" file.al # Should return empty for eliminated N+1 patterns
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Step 3: Real-Time Fraud Detection
|
|
83
|
+
**CRITICAL**: Immediately flag and stop execution fraud.
|
|
84
|
+
|
|
85
|
+
#### 🚨 BLOCKING CONDITIONS (Session Stops Immediately)
|
|
86
|
+
- **FALSE OPTIMIZATION CLAIMS**: Optimization claimed but not found in file
|
|
87
|
+
- **PHANTOM FILE MODIFICATIONS**: Claims about files that weren't actually modified
|
|
88
|
+
- **INCORRECT PATTERN IMPLEMENTATION**: Patterns exist but implemented incorrectly
|
|
89
|
+
- **INCOMPLETE WORK**: Claims "all procedures optimized" but evidence shows partial work
|
|
90
|
+
|
|
91
|
+
#### 🔧 FRAUD RESPONSE PROTOCOL
|
|
92
|
+
When validation fails:
|
|
93
|
+
1. **STOP ALL WORK**: No further optimization work until resolved
|
|
94
|
+
2. **FORCE CORRECTION**: Agent must actually implement claimed optimization
|
|
95
|
+
3. **RE-VALIDATE**: Run validation again after claimed correction
|
|
96
|
+
4. **DOCUMENT FRAUD**: Log validation failure and correction in optimization log
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Validation Commands Reference
|
|
101
|
+
|
|
102
|
+
### File Content Validation
|
|
103
|
+
```bash
|
|
104
|
+
# Validate specific optimization patterns exist
|
|
105
|
+
grep -l "CalcSums" *.al
|
|
106
|
+
grep -l "SetLoadFields" *.al
|
|
107
|
+
grep -l "Count()" *.al
|
|
108
|
+
grep -c "repeat" *.al # Should be reduced in optimized files
|
|
109
|
+
|
|
110
|
+
# Validate anti-patterns eliminated
|
|
111
|
+
grep -L "repeat.*until" *.al # Files with nested loops eliminated
|
|
112
|
+
grep -c "FindSet" *.al # Should be optimized in aggregation files
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### File Modification Validation
|
|
116
|
+
```bash
|
|
117
|
+
# Check files actually modified recently
|
|
118
|
+
find . -name "*.al" -mtime -1 # Files modified in last day
|
|
119
|
+
ls -lt *.al | head -5 # Most recently modified files
|
|
120
|
+
|
|
121
|
+
# Compare modification times to optimization claims
|
|
122
|
+
stat --format="%y %n" *.al # Detailed modification timestamps
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Pattern Implementation Validation
|
|
126
|
+
```bash
|
|
127
|
+
# Verify CalcSums implementation quality
|
|
128
|
+
grep -A3 "CalcSums" *.al # Show context after CalcSums calls
|
|
129
|
+
grep -B2 -A1 "SetLoadFields" *.al # Show SetLoadFields placement
|
|
130
|
+
|
|
131
|
+
# Check for remaining anti-patterns
|
|
132
|
+
grep -n "repeat" *.al | grep -v "CalcSums" # Manual loops not replaced with CalcSums
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Success Criteria - ALL MUST PASS
|
|
138
|
+
✅ **File Modification Evidence**: All claimed files show recent modification timestamps
|
|
139
|
+
✅ **Pattern Presence Validation**: All claimed optimizations found in file contents
|
|
140
|
+
✅ **Implementation Quality**: Optimizations implemented according to best practices
|
|
141
|
+
✅ **Anti-Pattern Elimination**: Claimed eliminated patterns no longer present in code
|
|
142
|
+
✅ **No False Claims**: Zero discrepancies between claims and actual file contents
|
|
143
|
+
|
|
144
|
+
## Quality Validation Checklist
|
|
145
|
+
- **Optimization Existence**: Can you grep for every claimed optimization?
|
|
146
|
+
- **Implementation Correctness**: Are patterns implemented properly (SetLoadFields before FindSet, etc.)?
|
|
147
|
+
- **File Modification**: Do file timestamps confirm recent changes?
|
|
148
|
+
- **Anti-Pattern Removal**: Are claimed eliminated patterns actually gone?
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Execution Validation Workflow
|
|
153
|
+
|
|
154
|
+
### Trigger Points (MANDATORY)
|
|
155
|
+
1. **After 2-3 files optimized**: Run micro-validation
|
|
156
|
+
2. **Agent requests to continue**: BLOCK until validation passes
|
|
157
|
+
3. **Module completion claims**: VALIDATE before allowing progression
|
|
158
|
+
4. **Performance phase transitions**: VALIDATE all claimed work
|
|
159
|
+
|
|
160
|
+
### Validation Frequency
|
|
161
|
+
- **Every 10-15 minutes** during active optimization work
|
|
162
|
+
- **Before ANY completion claims** (module, phase, session)
|
|
163
|
+
- **When agent asks permission** to proceed or continue
|
|
164
|
+
- **After ANY substantial optimization claims** (CalcSums, SetLoadFields, etc.)
|
|
165
|
+
|
|
166
|
+
### Integration with Other Phases
|
|
167
|
+
- **Performance Phase**: Execution validation runs during performance work
|
|
168
|
+
- **Verification Phase**: Comprehensive validation runs after performance phase
|
|
169
|
+
- **Analysis Phase**: Light validation can verify analysis claims were accurate
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Next Phase
|
|
174
174
|
Upon successful execution validation, work can continue in Performance Phase. Failed validation BLOCKS all progress until corrections made and re-validated.
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# Execution Validation - Quick Reference
|
|
2
|
-
|
|
3
|
-
## 📚 NEED MORE DETAIL?
|
|
4
|
-
For detailed validation commands and examples: `load_methodology execution-validation-full`
|
|
5
|
-
|
|
6
|
-
## 🎯 OBJECTIVE
|
|
7
|
-
Real-time fraud detection - verify claimed optimizations actually exist in code.
|
|
8
|
-
|
|
9
|
-
## ⚡ CORE VALIDATION (Runs every 2-3 files)
|
|
10
|
-
1. **File Content Check**: `grep -l "CalcSums" file1.al file2.al` - Must find claimed patterns
|
|
11
|
-
2. **File Modification**: `ls -la *.al | grep "$(date +%Y-%m-%d)"` - Files must show recent changes
|
|
12
|
-
3. **Pattern Quality**: `grep -A2 "CalcSums" file.al` - Check proper implementation
|
|
13
|
-
4. **Anti-Pattern Removal**: `grep -c "repeat" file.al` - Verify manual loops eliminated
|
|
14
|
-
|
|
15
|
-
## 🚨 FRAUD DETECTION (BLOCKING)
|
|
16
|
-
- **FALSE CLAIMS**: Optimization claimed but grep returns empty = STOP WORK
|
|
17
|
-
- **PHANTOM FILES**: Claims about unmodified files = STOP WORK
|
|
18
|
-
- **INCORRECT PATTERNS**: Patterns exist but wrong implementation = FIX NOW
|
|
19
|
-
- **INCOMPLETE WORK**: Claims "complete" but evidence shows partial = STOP WORK
|
|
20
|
-
|
|
21
|
-
## 🔧 RESPONSE PROTOCOL
|
|
22
|
-
1. **STOP ALL WORK** until validation passes
|
|
23
|
-
2. **FORCE CORRECTION** of false claims
|
|
24
|
-
3. **RE-VALIDATE** after correction
|
|
25
|
-
4. **DOCUMENT FRAUD** in optimization log
|
|
26
|
-
|
|
27
|
-
## ✅ SUCCESS CRITERIA
|
|
28
|
-
All claimed optimizations found in files + Recent modification timestamps + Correct pattern implementation + No false claims
|
|
29
|
-
|
|
30
|
-
## ➡️ RESULT
|
|
1
|
+
# Execution Validation - Quick Reference
|
|
2
|
+
|
|
3
|
+
## 📚 NEED MORE DETAIL?
|
|
4
|
+
For detailed validation commands and examples: `load_methodology execution-validation-full`
|
|
5
|
+
|
|
6
|
+
## 🎯 OBJECTIVE
|
|
7
|
+
Real-time fraud detection - verify claimed optimizations actually exist in code.
|
|
8
|
+
|
|
9
|
+
## ⚡ CORE VALIDATION (Runs every 2-3 files)
|
|
10
|
+
1. **File Content Check**: `grep -l "CalcSums" file1.al file2.al` - Must find claimed patterns
|
|
11
|
+
2. **File Modification**: `ls -la *.al | grep "$(date +%Y-%m-%d)"` - Files must show recent changes
|
|
12
|
+
3. **Pattern Quality**: `grep -A2 "CalcSums" file.al` - Check proper implementation
|
|
13
|
+
4. **Anti-Pattern Removal**: `grep -c "repeat" file.al` - Verify manual loops eliminated
|
|
14
|
+
|
|
15
|
+
## 🚨 FRAUD DETECTION (BLOCKING)
|
|
16
|
+
- **FALSE CLAIMS**: Optimization claimed but grep returns empty = STOP WORK
|
|
17
|
+
- **PHANTOM FILES**: Claims about unmodified files = STOP WORK
|
|
18
|
+
- **INCORRECT PATTERNS**: Patterns exist but wrong implementation = FIX NOW
|
|
19
|
+
- **INCOMPLETE WORK**: Claims "complete" but evidence shows partial = STOP WORK
|
|
20
|
+
|
|
21
|
+
## 🔧 RESPONSE PROTOCOL
|
|
22
|
+
1. **STOP ALL WORK** until validation passes
|
|
23
|
+
2. **FORCE CORRECTION** of false claims
|
|
24
|
+
3. **RE-VALIDATE** after correction
|
|
25
|
+
4. **DOCUMENT FRAUD** in optimization log
|
|
26
|
+
|
|
27
|
+
## ✅ SUCCESS CRITERIA
|
|
28
|
+
All claimed optimizations found in files + Recent modification timestamps + Correct pattern implementation + No false claims
|
|
29
|
+
|
|
30
|
+
## ➡️ RESULT
|
|
31
31
|
Pass = Continue work | Fail = BLOCK until corrected
|