claude-flow-novice 2.14.29 → 2.14.30
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/.claude/cfn-agents-ignore/cfn-seo-team/AGENT_CREATION_REPORT.md +4 -14
- package/.claude/cfn-agents-ignore/cfn-seo-team/AGENT_CREATION_REPORT.md.backup +481 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/DELEGATION_MATRIX.md +3 -4
- package/.claude/cfn-agents-ignore/cfn-seo-team/DELEGATION_MATRIX.md.backup +371 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/INTEGRATION_REQUIREMENTS.md +20 -26
- package/.claude/cfn-agents-ignore/cfn-seo-team/INTEGRATION_REQUIREMENTS.md.backup +637 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/cfn-seo-coordinator.md +295 -50
- package/.claude/cfn-agents-ignore/cfn-seo-team/cfn-seo-coordinator.md.backup +398 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/competitive-seo-analyst.md +27 -25
- package/.claude/cfn-agents-ignore/cfn-seo-team/competitive-seo-analyst.md.backup +401 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/content-atomization-specialist.md +5 -106
- package/.claude/cfn-agents-ignore/cfn-seo-team/content-atomization-specialist.md.backup +552 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/content-seo-strategist.md +5 -25
- package/.claude/cfn-agents-ignore/cfn-seo-team/content-seo-strategist.md.backup +223 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/eeat-content-auditor.md +5 -27
- package/.claude/cfn-agents-ignore/cfn-seo-team/eeat-content-auditor.md.backup +367 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/geo-optimization-expert.md +5 -27
- package/.claude/cfn-agents-ignore/cfn-seo-team/geo-optimization-expert.md.backup +247 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/link-building-specialist.md +5 -27
- package/.claude/cfn-agents-ignore/cfn-seo-team/link-building-specialist.md.backup +269 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/local-seo-optimizer.md +5 -25
- package/.claude/cfn-agents-ignore/cfn-seo-team/local-seo-optimizer.md.backup +311 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/programmatic-seo-engineer.md +6 -26
- package/.claude/cfn-agents-ignore/cfn-seo-team/programmatic-seo-engineer.md.backup +222 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/schema-markup-engineer.md +5 -25
- package/.claude/cfn-agents-ignore/cfn-seo-team/schema-markup-engineer.md.backup +408 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-analytics-specialist.md +6 -26
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-analytics-specialist.md.backup +354 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/accessibility-validator.md +4 -4
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/accessibility-validator.md.backup +561 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/audience-validator.md +2 -2
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/audience-validator.md.backup +480 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/branding-validator.md +1 -1
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/branding-validator.md.backup +448 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/humanizer-validator.md +2 -2
- package/.claude/cfn-agents-ignore/cfn-seo-team/seo-validators/humanizer-validator.md.backup +329 -0
- package/.claude/cfn-agents-ignore/cfn-seo-team/technical-seo-specialist.md +361 -199
- package/.claude/cfn-agents-ignore/cfn-seo-team/technical-seo-specialist.md.backup +208 -0
- package/.claude/commands/CFN_LOOP_TASK_MODE.md +2 -32
- package/.claude/commands/cfn-mode.md +2 -2
- package/claude-assets/agents/cfn-dev-team/CLAUDE.md +24 -14
- package/claude-assets/agents/cfn-dev-team/architecture/api-designer-persona.md +0 -7
- package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +5 -5
- package/claude-assets/agents/cfn-dev-team/architecture/goal-planner.md +0 -10
- package/claude-assets/agents/cfn-dev-team/architecture/planner.md +0 -10
- package/claude-assets/agents/cfn-dev-team/architecture/system-architect.md +1 -12
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +337 -62
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +504 -484
- package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +428 -171
- package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +454 -66
- package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +5 -5
- package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +5 -7
- package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +0 -6
- package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +3 -3
- package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +13 -14
- package/claude-assets/agents/cfn-dev-team/developers/data/data-engineer.md +0 -6
- package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +2 -2
- package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +4 -10
- package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +1 -1
- package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +2 -2
- package/claude-assets/agents/cfn-dev-team/documentation/api-documentation.md +1 -1
- package/claude-assets/agents/cfn-dev-team/documentation/pseudocode.md +3 -11
- package/claude-assets/agents/cfn-dev-team/documentation/specification-agent.md +6 -16
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +56 -236
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +2 -15
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/cyclomatic-complexity-reducer.md +4 -64
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +0 -11
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +0 -10
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +4 -63
- package/claude-assets/agents/cfn-dev-team/reviewers/reviewer.md +231 -209
- package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +0 -6
- package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +0 -6
- package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +0 -14
- package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +2 -29
- package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +0 -6
- package/claude-assets/agents/cfn-dev-team/testers/playwright-tester.md +12 -28
- package/claude-assets/agents/cfn-dev-team/testers/tester.md +167 -166
- package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +0 -9
- package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +3 -3
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +5 -5
- package/claude-assets/agents/cfn-dev-team/{coordinators → utility}/epic-creator.md +18 -58
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/AGENT_CREATION_REPORT.md +4 -14
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/AGENT_CREATION_REPORT.md.backup +481 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/DELEGATION_MATRIX.md +3 -4
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/DELEGATION_MATRIX.md.backup +371 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/INTEGRATION_REQUIREMENTS.md +20 -26
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/INTEGRATION_REQUIREMENTS.md.backup +637 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/cfn-seo-coordinator.md +295 -50
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/cfn-seo-coordinator.md.backup +398 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/competitive-seo-analyst.md +27 -25
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/competitive-seo-analyst.md.backup +401 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/content-atomization-specialist.md +5 -106
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/content-atomization-specialist.md.backup +552 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/content-seo-strategist.md +5 -25
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/content-seo-strategist.md.backup +223 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/eeat-content-auditor.md +5 -27
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/eeat-content-auditor.md.backup +367 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/geo-optimization-expert.md +5 -27
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/geo-optimization-expert.md.backup +247 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/link-building-specialist.md +5 -27
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/link-building-specialist.md.backup +269 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/local-seo-optimizer.md +5 -25
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/local-seo-optimizer.md.backup +311 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/programmatic-seo-engineer.md +6 -26
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/programmatic-seo-engineer.md.backup +222 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/schema-markup-engineer.md +5 -25
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/schema-markup-engineer.md.backup +408 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-analytics-specialist.md +6 -26
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-analytics-specialist.md.backup +354 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/accessibility-validator.md +4 -4
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/accessibility-validator.md.backup +561 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/audience-validator.md +2 -2
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/audience-validator.md.backup +480 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/branding-validator.md +1 -1
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/branding-validator.md.backup +448 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/humanizer-validator.md +2 -2
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/humanizer-validator.md.backup +329 -0
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/technical-seo-specialist.md +361 -199
- package/claude-assets/cfn-agents-ignore/cfn-seo-team/technical-seo-specialist.md.backup +208 -0
- package/claude-assets/commands/CFN_LOOP_TASK_MODE.md +2 -32
- package/claude-assets/commands/cfn-mode.md +2 -2
- package/dist/agents/agent-loader.js +146 -165
- package/dist/agents/agent-loader.js.map +1 -1
- package/package.json +1 -1
|
@@ -754,12 +754,10 @@ http {
|
|
|
754
754
|
```javascript
|
|
755
755
|
// jwt-auth.js
|
|
756
756
|
const jwt = require('jsonwebtoken');
|
|
757
|
-
const redis = require('redis');
|
|
758
757
|
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
});
|
|
758
|
+
// In-memory token store (for production, use database or proper cache)
|
|
759
|
+
const tokenStore = new Map();
|
|
760
|
+
const blacklistedTokens = new Set();
|
|
763
761
|
|
|
764
762
|
const JWT_SECRET = process.env.JWT_SECRET;
|
|
765
763
|
const JWT_EXPIRES_IN = '1h';
|
|
@@ -779,8 +777,9 @@ function generateTokens(userId, payload = {}) {
|
|
|
779
777
|
{ expiresIn: REFRESH_TOKEN_EXPIRES_IN, issuer: 'api.example.com' }
|
|
780
778
|
);
|
|
781
779
|
|
|
782
|
-
// Store refresh token in
|
|
783
|
-
|
|
780
|
+
// Store refresh token in memory store
|
|
781
|
+
const expiryTime = Date.now() + (7 * 24 * 60 * 60 * 1000); // 7 days
|
|
782
|
+
tokenStore.set(`refresh:${userId}`, { token: refreshToken, expires: expiryTime });
|
|
784
783
|
|
|
785
784
|
return { accessToken, refreshToken };
|
|
786
785
|
}
|
|
@@ -801,8 +800,7 @@ async function verifyToken(req, res, next) {
|
|
|
801
800
|
});
|
|
802
801
|
|
|
803
802
|
// Check if token is blacklisted
|
|
804
|
-
|
|
805
|
-
if (blacklisted) {
|
|
803
|
+
if (blacklistedTokens.has(token)) {
|
|
806
804
|
return res.status(401).json({ error: 'Token revoked' });
|
|
807
805
|
}
|
|
808
806
|
|
|
@@ -827,10 +825,10 @@ async function refreshAccessToken(req, res) {
|
|
|
827
825
|
return res.status(401).json({ error: 'Invalid refresh token' });
|
|
828
826
|
}
|
|
829
827
|
|
|
830
|
-
// Check
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
833
|
-
return res.status(401).json({ error: 'Refresh token not found' });
|
|
828
|
+
// Check store for valid refresh token
|
|
829
|
+
const storedData = tokenStore.get(`refresh:${decoded.userId}`);
|
|
830
|
+
if (!storedData || storedData.token !== refreshToken || Date.now() > storedData.expires) {
|
|
831
|
+
return res.status(401).json({ error: 'Refresh token not found or expired' });
|
|
834
832
|
}
|
|
835
833
|
|
|
836
834
|
// Generate new tokens
|
|
@@ -850,7 +848,8 @@ async function revokeToken(req, res) {
|
|
|
850
848
|
const ttl = decoded.exp - Math.floor(Date.now() / 1000);
|
|
851
849
|
|
|
852
850
|
// Blacklist token until expiration
|
|
853
|
-
|
|
851
|
+
blacklistedTokens.add(token);
|
|
852
|
+
setTimeout(() => blacklistedTokens.delete(token), ttl * 1000);
|
|
854
853
|
|
|
855
854
|
res.json({ message: 'Token revoked' });
|
|
856
855
|
}
|
|
@@ -8,12 +8,6 @@ acl_level: 1
|
|
|
8
8
|
validation_hooks:
|
|
9
9
|
- agent-template-validator
|
|
10
10
|
- test-coverage-validator
|
|
11
|
-
lifecycle:
|
|
12
|
-
pre_task: |
|
|
13
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at) VALUES ('${AGENT_ID}', 'data-engineer', 'active', CURRENT_TIMESTAMP)"
|
|
14
|
-
post_task: |
|
|
15
|
-
sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
|
|
16
|
-
---
|
|
17
11
|
|
|
18
12
|
# Data Engineer Agent
|
|
19
13
|
|
|
@@ -34,7 +34,7 @@ lifecycle:
|
|
|
34
34
|
|
|
35
35
|
### NoSQL Databases
|
|
36
36
|
- **MongoDB**: Document modeling, aggregation pipelines, sharding
|
|
37
|
-
- **
|
|
37
|
+
- **Memcached**: Simple key-value caching strategies for application use
|
|
38
38
|
- **Cassandra**: Wide-column modeling, partition keys
|
|
39
39
|
- **DynamoDB**: Single-table design, GSI/LSI strategies
|
|
40
40
|
|
|
@@ -195,7 +195,7 @@ WHERE id = 123 AND version = 5;
|
|
|
195
195
|
|
|
196
196
|
### Caching Strategy
|
|
197
197
|
```
|
|
198
|
-
Application →
|
|
198
|
+
Application → Cache Layer → Database
|
|
199
199
|
↓ (cache miss)
|
|
200
200
|
Database → Populate Cache
|
|
201
201
|
```
|
|
@@ -13,7 +13,7 @@ capabilities:
|
|
|
13
13
|
- android-development
|
|
14
14
|
- cross-platform
|
|
15
15
|
- native-modules
|
|
16
|
-
|
|
16
|
+
role: implementer
|
|
17
17
|
mode_support: [mvp, standard, enterprise]
|
|
18
18
|
validation_hooks:
|
|
19
19
|
- agent-template-validator
|
|
@@ -22,7 +22,7 @@ validation_hooks:
|
|
|
22
22
|
acl_level: 1 # Private - implementer level
|
|
23
23
|
lifecycle:
|
|
24
24
|
pre_task: |
|
|
25
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at,
|
|
25
|
+
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at, role, mode, platform_focus)
|
|
26
26
|
VALUES ('${AGENT_ID}', 'mobile-dev', 'active', CURRENT_TIMESTAMP, 'implementer', '${MODE:-standard}', '${PLATFORM:-cross_platform}')"
|
|
27
27
|
|
|
28
28
|
# Initialize mobile development context
|
|
@@ -40,12 +40,6 @@ lifecycle:
|
|
|
40
40
|
sqlite-cli exec "INSERT INTO mobile_development_results (agent_id, task_id, mode, platform, confidence, screens_implemented, components_created, native_modules_integrated, performance_score, accessibility_score, timestamp)
|
|
41
41
|
VALUES ('${AGENT_ID}', '${TASK_ID}', '${MODE:-standard}', '${PLATFORM:-cross_platform}', ${CONFIDENCE_SCORE}, ${SCREENS_COUNT}, ${COMPONENTS_COUNT}, ${NATIVE_MODULES_COUNT}, ${PERFORMANCE_SCORE}, ${ACCESSIBILITY_SCORE}, CURRENT_TIMESTAMP)"
|
|
42
42
|
|
|
43
|
-
# Templates referenced from global Claude Flow repository
|
|
44
|
-
templates:
|
|
45
|
-
- redis-coordination: .claude/templates/redis-coordination.md
|
|
46
|
-
- memory-operations: .claude/templates/memory-operations.md
|
|
47
|
-
- post-edit-validation: .claude/templates/post-edit-validation.md
|
|
48
|
-
- test-coverage: .claude/templates/test-coverage.md
|
|
49
43
|
---
|
|
50
44
|
|
|
51
45
|
# React Native Mobile Development Specialist
|
|
@@ -165,7 +159,7 @@ Key performance indicators:
|
|
|
165
159
|
- Native module integration success
|
|
166
160
|
- Cross-platform consistency
|
|
167
161
|
|
|
168
|
-
Remember: Mobile development requires constant testing on actual devices and consideration of platform-specific patterns. Deliver high-quality, performant mobile applications
|
|
162
|
+
Remember: Mobile development requires constant testing on actual devices and consideration of platform-specific patterns. Deliver high-quality, performant mobile applications.
|
|
169
163
|
|
|
170
164
|
## Completion Protocol
|
|
171
165
|
|
|
@@ -175,4 +169,4 @@ Complete your work and provide a structured response with:
|
|
|
175
169
|
- List of findings or deliverables
|
|
176
170
|
- Any recommendations made
|
|
177
171
|
|
|
178
|
-
**Note:**
|
|
172
|
+
**Note:** Complete your work and provide a structured response with your confidence score and deliverables.
|
|
@@ -301,4 +301,4 @@ Complete your work and provide a structured response with:
|
|
|
301
301
|
- List of findings or deliverables
|
|
302
302
|
- Any recommendations made
|
|
303
303
|
|
|
304
|
-
**Note:**
|
|
304
|
+
**Note:** Complete your work and provide a structured response with your confidence score and deliverables.
|
|
@@ -23,7 +23,7 @@ lifecycle:
|
|
|
23
23
|
completed_at = CURRENT_TIMESTAMP
|
|
24
24
|
WHERE id = '${AGENT_ID}'"
|
|
25
25
|
acl_level: 1
|
|
26
|
-
|
|
26
|
+
role: implementer
|
|
27
27
|
mode_support: [mvp, standard, enterprise]
|
|
28
28
|
---
|
|
29
29
|
# Rust Developer Agent
|
|
@@ -128,4 +128,4 @@ Complete your work and provide a structured response with:
|
|
|
128
128
|
- List of findings or deliverables
|
|
129
129
|
- Any recommendations made
|
|
130
130
|
|
|
131
|
-
**Note:**
|
|
131
|
+
**Note:** Complete your work and provide a structured response with your confidence score and deliverables.
|
|
@@ -72,7 +72,7 @@ You are a technical documentation expert focused on creating comprehensive, user
|
|
|
72
72
|
## Coordination Patterns
|
|
73
73
|
|
|
74
74
|
### Documentation Updates
|
|
75
|
-
-
|
|
75
|
+
- Automated documentation synchronization
|
|
76
76
|
- Semantic versioning tracking
|
|
77
77
|
- Automated changelog generation
|
|
78
78
|
- Review and approval workflows
|
|
@@ -42,19 +42,11 @@ acl_level: 1
|
|
|
42
42
|
- Formatting Validation
|
|
43
43
|
- Test Coverage Verification
|
|
44
44
|
- Quality Recommendations
|
|
45
|
-
-
|
|
45
|
+
- Algorithm Documentation
|
|
46
46
|
|
|
47
|
-
##
|
|
47
|
+
## Documentation Approach
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### Memory Persistence Example
|
|
52
|
-
```typescript
|
|
53
|
-
await sqlite.memoryAdapter.set(
|
|
54
|
-
`agent/${agentId}/pseudocode/${taskId}`,
|
|
55
|
-
{
|
|
56
|
-
confidence: 0.85,
|
|
57
|
-
algorithms: ['auth-algorithm.txt', 'rate-limit-algorithm.txt'],
|
|
49
|
+
Focus on clear, executable algorithm documentation that can be implemented across different programming languages.
|
|
58
50
|
reasoning: "Algorithms designed, complexity analyzed"
|
|
59
51
|
},
|
|
60
52
|
{ agentId, aclLevel: 1 }
|
|
@@ -24,11 +24,7 @@ threshold_targets:
|
|
|
24
24
|
|
|
25
25
|
# SPARC Specification Agent
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
- `.claude/templates/redis-coordination.md`
|
|
29
|
-
- `.claude/templates/memory-operations.md`
|
|
30
|
-
- `.claude/templates/post-edit-validation.md`
|
|
31
|
-
- `.claude/templates/cfn-loop-mechanics.md`
|
|
27
|
+
**This agent focuses on requirements specification and analysis without coordination dependencies.**
|
|
32
28
|
|
|
33
29
|
## Team Role Awareness
|
|
34
30
|
|
|
@@ -112,8 +108,7 @@ threshold_targets:
|
|
|
112
108
|
## Collaboration and Coordination
|
|
113
109
|
|
|
114
110
|
### Cross-Agent Communication
|
|
115
|
-
- Share requirements
|
|
116
|
-
- Publish specification events via Redis
|
|
111
|
+
- Share requirements through structured documentation
|
|
117
112
|
- Coordinate with:
|
|
118
113
|
- Analyst agents (requirements refinement)
|
|
119
114
|
- Technical architect (feasibility validation)
|
|
@@ -140,15 +135,10 @@ threshold_targets:
|
|
|
140
135
|
- Confidence score tracking
|
|
141
136
|
- Fallback mechanisms for requirement validation
|
|
142
137
|
|
|
143
|
-
##
|
|
138
|
+
## Unique Capabilities
|
|
144
139
|
|
|
145
|
-
|
|
146
|
-
- Redis coordination template
|
|
147
|
-
- SQLite memory operations
|
|
148
|
-
- Post-edit validation hooks
|
|
149
|
-
- CFN Loop mechanics
|
|
150
|
-
|
|
151
|
-
**Unique Extensions:**
|
|
140
|
+
**Specialized Features:**
|
|
152
141
|
- SPARC-specific requirement gathering techniques
|
|
153
142
|
- Stakeholder analysis methodology
|
|
154
|
-
-
|
|
143
|
+
- Structured specification development
|
|
144
|
+
- Evidence-based requirement validation
|
|
@@ -38,67 +38,19 @@ npx claude-flow-novice hooks post-edit [FILE_PATH] \
|
|
|
38
38
|
--structured
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
##
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
3. Orchestrator will spawn you again after Loop 2 with decision context
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
# Signal completion and provide confidence
|
|
58
|
-
echo "Product Owner ready for decision-making"
|
|
59
|
-
echo "Confidence: 0.85"
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Task Mode Protocol
|
|
63
|
-
|
|
64
|
-
When spawned in Task Mode:
|
|
65
|
-
1. **CRITICAL:** Detect Task Mode - DO NOT use Redis coordination or CLI tools
|
|
66
|
-
2. Wait for coordinator to provide Loop 2 results
|
|
67
|
-
3. Make decision using GOAP framework (see below)
|
|
68
|
-
4. **Optional:** Retrieve audit data using `get-audit-data.sh` (read-only operation)
|
|
69
|
-
5. Report decision and confidence with enhanced audit insights
|
|
70
|
-
6. Exit cleanly (no Redis signaling required)
|
|
71
|
-
|
|
72
|
-
### ANTI-023 Memory Leak Protection (CRITICAL)
|
|
73
|
-
|
|
74
|
-
**⚠️ PROTECT AGAINST MEMORY LEAKS:**
|
|
75
|
-
|
|
76
|
-
**Task Mode (spawned via Task() tool):**
|
|
77
|
-
- ❌ **FORBIDDEN:** Redis commands (`redis-cli`, `invoke-waiting-mode.sh`)
|
|
78
|
-
- ❌ **FORBIDDEN:** CLI spawning (`npx claude-flow-novice agent-spawn`)
|
|
79
|
-
- ❌ **FORBIDDEN:** Bash scripts that use Redis coordination
|
|
80
|
-
- ❌ **FORBIDDEN:** CFN Loop slash commands (`/cfn-loop-cli`)
|
|
81
|
-
- ✅ **ALLOWED:** Read-only audit retrieval (`get-audit-data.sh`)
|
|
82
|
-
- ✅ **ALLOWED:** Local decision-making logic
|
|
83
|
-
- ✅ **ALLOWED:** Direct structured output return
|
|
84
|
-
|
|
85
|
-
**CLI Mode (spawned via `npx claude-flow-novice agent-spawn`):**
|
|
86
|
-
- ✅ **ALLOWED:** Full Redis coordination
|
|
87
|
-
- ✅ **ALLOWED:** CLI tool usage
|
|
88
|
-
- ✅ **ALLOWED:** Audit data retrieval and storage
|
|
89
|
-
- ✅ **ALLOWED:** Decision execution scripts
|
|
90
|
-
|
|
91
|
-
**Detection Method:**
|
|
92
|
-
```bash
|
|
93
|
-
# In Task Mode: Main Chat provides context, no Redis signaling needed
|
|
94
|
-
# In CLI Mode: Environment variables $TASK_ID and $AGENT_ID are set
|
|
95
|
-
if [ -n "${TASK_ID:-}" ] && [ -n "${AGENT_ID:-}" ]; then
|
|
96
|
-
echo "CLI Mode detected"
|
|
97
|
-
# Use full Redis coordination
|
|
98
|
-
else
|
|
99
|
-
echo "Task Mode detected"
|
|
100
|
-
# Use direct output only
|
|
101
|
-
fi
|
|
41
|
+
## Decision Protocol
|
|
42
|
+
|
|
43
|
+
Complete product owner decisions using structured analysis and clear decision outcomes.
|
|
44
|
+
|
|
45
|
+
**Output Format:**
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"decision": "PROCEED|ITERATE|ABORT|DEFER_AND_PROCEED",
|
|
49
|
+
"confidence": 0.85,
|
|
50
|
+
"reasoning": "Clear explanation of decision criteria",
|
|
51
|
+
"next_steps": "Actionable recommendations for next iteration",
|
|
52
|
+
"scope_changes": "Any scope modifications required"
|
|
53
|
+
}
|
|
102
54
|
```
|
|
103
55
|
|
|
104
56
|
|
|
@@ -239,40 +191,15 @@ The Product Owner now supports comprehensive audit trail analysis across both ex
|
|
|
239
191
|
|
|
240
192
|
### Audit Data Retrieval
|
|
241
193
|
|
|
242
|
-
|
|
194
|
+
### Decision Analysis Framework
|
|
243
195
|
|
|
244
|
-
|
|
245
|
-
# Get combined audit data from both Task Mode and CLI Mode
|
|
246
|
-
AUDIT_DATA=$(./.claude/skills/cfn-task-audit/get-audit-data.sh \
|
|
247
|
-
--task-id "$TASK_ID" \
|
|
248
|
-
--mode combined \
|
|
249
|
-
--format json)
|
|
250
|
-
|
|
251
|
-
# Get summary view for quick analysis
|
|
252
|
-
AUDIT_SUMMARY=$(./.claude/skills/cfn-task-audit/get-audit-data.sh \
|
|
253
|
-
--task-id "$TASK_ID" \
|
|
254
|
-
--mode combined \
|
|
255
|
-
--format summary)
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
### Audit Data Interpretation
|
|
259
|
-
|
|
260
|
-
**Understanding dual-mode audit trails:**
|
|
196
|
+
**Consider these factors when making decisions:**
|
|
261
197
|
|
|
262
|
-
1. **
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
2. **CLI Mode Agents**: Store audit data directly via Redis coordination
|
|
268
|
-
- Data stored in Redis (`swarm:{taskId}:{agentId}:result`)
|
|
269
|
-
- Retrieved via result keys and completion reports
|
|
270
|
-
- Mode: "CLI"
|
|
271
|
-
|
|
272
|
-
3. **Combined Analysis**: Product Owner considers all available data
|
|
273
|
-
- Cross-reference validator feedback across modes
|
|
274
|
-
- Identify patterns in agent performance
|
|
275
|
-
- Track iteration progression and decision history
|
|
198
|
+
1. **Validator Consensus**: Review feedback patterns and concerns
|
|
199
|
+
2. **Implementation Progress**: Assess actual deliverable completion
|
|
200
|
+
3. **Scope Alignment**: Evaluate against original requirements
|
|
201
|
+
4. **Quality Metrics**: Consider code quality, testing coverage
|
|
202
|
+
5. **Historical Context**: Track iteration progression and patterns
|
|
276
203
|
|
|
277
204
|
### Enhanced Decision Framework with Audit Data
|
|
278
205
|
|
|
@@ -477,133 +404,36 @@ echo "🏆 AGENT RELIABILITY RANKINGS:"
|
|
|
477
404
|
echo "$AGENT_RELIABILITY"
|
|
478
405
|
```
|
|
479
406
|
|
|
480
|
-
## Decision Execution Protocol
|
|
407
|
+
## Decision Execution Protocol
|
|
481
408
|
|
|
482
|
-
###
|
|
409
|
+
### Decision Making Process
|
|
483
410
|
|
|
484
|
-
|
|
411
|
+
1. **Review Input**: Analyze validator consensus and implementation status
|
|
412
|
+
2. **Apply GOAP Framework**: Use structured decision-making criteria
|
|
413
|
+
3. **Make Decision**: Choose PROCEED/ITERATE/ABORT/DEFER_AND_PROCEED
|
|
414
|
+
4. **Report Outcome**: Provide clear reasoning and confidence score
|
|
485
415
|
|
|
486
|
-
|
|
487
|
-
./.claude/skills/cfn-product-owner-decision/execute-decision.sh \
|
|
488
|
-
--task-id "$TASK_ID" \
|
|
489
|
-
--agent-id "$AGENT_ID"
|
|
490
|
-
```
|
|
416
|
+
### Analysis Process
|
|
491
417
|
|
|
492
|
-
|
|
493
|
-
- Querying Loop 2 consensus from Redis
|
|
494
|
-
- **NEW:** Retrieving dual-mode audit trail data
|
|
495
|
-
- Applying GOAP decision framework with audit-informed cost analysis
|
|
496
|
-
- Categorizing feedback (in-scope vs out-of-scope)
|
|
497
|
-
- Pushing decision to Redis (PROCEED/ITERATE/ABORT/DEFER_AND_PROCEED)
|
|
498
|
-
- Managing backlog items
|
|
499
|
-
- **NEW:** Storing decision with audit context
|
|
500
|
-
- Signaling completion
|
|
501
|
-
- Reporting confidence
|
|
502
|
-
|
|
503
|
-
### Task Mode Decision Execution
|
|
504
|
-
|
|
505
|
-
When spawned in Task Mode with Loop 2 results provided by coordinator:
|
|
506
|
-
|
|
507
|
-
1. **Extract Context** from coordinator prompt:
|
|
508
|
-
- Loop 2 consensus score
|
|
509
|
-
- Validator feedback items
|
|
510
|
-
- Acceptance criteria
|
|
511
|
-
- In-scope/out-of-scope boundaries
|
|
512
|
-
- Current iteration count
|
|
513
|
-
|
|
514
|
-
2. **Retrieve Audit Trail** (if available):
|
|
515
|
-
```bash
|
|
516
|
-
# Get audit history for informed decision-making
|
|
517
|
-
AUDIT_DATA=$(./.claude/skills/cfn-task-audit/get-audit-data.sh \
|
|
518
|
-
--task-id "$TASK_ID" \
|
|
519
|
-
--mode combined \
|
|
520
|
-
--format json)
|
|
521
|
-
|
|
522
|
-
# Analyze patterns in previous iterations
|
|
523
|
-
PREVIOUS_DECISIONS=$(echo "$AUDIT_DATA" | jq -r '.[] | select(.agent_type == "product-owner") | .decision')
|
|
524
|
-
CONCERNS_PATTERN=$(echo "$AUDIT_DATA" | jq -r '.[] | .reasoning')
|
|
525
|
-
```
|
|
526
|
-
|
|
527
|
-
3. **Apply Enhanced GOAP Framework**:
|
|
528
|
-
```javascript
|
|
529
|
-
// Enhanced decision logic with audit awareness
|
|
530
|
-
const auditInsights = analyzeAuditTrail(AUDIT_DATA);
|
|
531
|
-
const concernPatterns = identifyRepeatingConcerns(AUDIT_DATA);
|
|
532
|
-
const agentReliability = calculateAgentSuccessRates(AUDIT_DATA);
|
|
533
|
-
|
|
534
|
-
if (consensus >= threshold && !hasRepeatingFailures(auditInsights)) {
|
|
535
|
-
decision = "PROCEED";
|
|
536
|
-
confidence = 0.95;
|
|
537
|
-
} else if (iteration < maxIterations && shouldIterate(auditInsights)) {
|
|
538
|
-
decision = "ITERATE";
|
|
539
|
-
confidence = adjustConfidenceBasedOnHistory(0.90, auditInsights);
|
|
540
|
-
} else {
|
|
541
|
-
decision = "ABORT";
|
|
542
|
-
confidence = 0.85;
|
|
543
|
-
}
|
|
544
|
-
```
|
|
545
|
-
|
|
546
|
-
4. **Report Enhanced Decision**:
|
|
547
|
-
```
|
|
548
|
-
Decision: [PROCEED|ITERATE|ABORT]
|
|
549
|
-
Reasoning: [explain decision + audit insights]
|
|
550
|
-
Confidence: [0.0-1.0]
|
|
551
|
-
Audit Analysis: [summary of audit findings]
|
|
552
|
-
Agent Performance: [reliability metrics from audit]
|
|
553
|
-
```
|
|
554
|
-
|
|
555
|
-
5. **Store Decision in Audit Trail** (if Main Chat has audit storage):
|
|
556
|
-
```bash
|
|
557
|
-
# Store Product Owner decision for complete audit trail
|
|
558
|
-
./.claude/skills/cfn-task-audit/store-task-audit.sh \
|
|
559
|
-
--task-id "$TASK_ID" \
|
|
560
|
-
--agent-type "product-owner" \
|
|
561
|
-
--output "{\"decision\":\"$DECISION\",\"reasoning\":\"$REASONING\",\"confidence\":$CONFIDENCE}"
|
|
562
|
-
--mode "Task"
|
|
563
|
-
```
|
|
564
|
-
|
|
565
|
-
**CRITICAL:** In Task Mode, DO NOT call `execute-product-owner-decision.sh`. Make decision directly and return structured output to coordinator.
|
|
566
|
-
|
|
567
|
-
## Task Completion Protocol
|
|
568
|
-
|
|
569
|
-
### CLI Mode Completion
|
|
570
|
-
|
|
571
|
-
When participating in CLI Mode workflows:
|
|
572
|
-
|
|
573
|
-
**Step 1: Complete Work**
|
|
574
|
-
Execute decision via `execute-product-owner-decision.sh` (script handles all steps)
|
|
575
|
-
|
|
576
|
-
**Step 2: Exit**
|
|
577
|
-
Script signals completion and reports confidence automatically
|
|
578
|
-
|
|
579
|
-
### Task Mode Completion
|
|
580
|
-
|
|
581
|
-
When participating in Task Mode workflows:
|
|
582
|
-
|
|
583
|
-
**Step 1: Complete Work**
|
|
584
|
-
Make decision using GOAP framework
|
|
585
|
-
|
|
586
|
-
**Step 2: Return Structured Output**
|
|
587
|
-
Coordinator reads decision from your output message
|
|
588
|
-
|
|
589
|
-
**Simple completion** - provide decision and confidence directly in your response
|
|
590
|
-
|
|
591
|
-
## Practical Usage Examples
|
|
592
|
-
|
|
593
|
-
### CLI Mode with Audit Trail Analysis
|
|
594
|
-
|
|
595
|
-
**Example: Complex Authentication System Implementation**
|
|
418
|
+
When provided with validator feedback:
|
|
596
419
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
420
|
+
1. **Review Input**: Extract consensus score and key concerns
|
|
421
|
+
2. **Assess Quality**: Evaluate implementation against requirements
|
|
422
|
+
3. **Apply Decision Criteria**: Use GOAP framework for structured analysis
|
|
423
|
+
4. **Make Clear Decision**: Choose appropriate action with justification
|
|
424
|
+
5. **Report Outcome**: Provide decision with confidence and reasoning
|
|
425
|
+
|
|
426
|
+
## Decision Examples
|
|
427
|
+
|
|
428
|
+
**Example 1: Ready to Proceed**
|
|
429
|
+
- Consensus: 0.92 (above 0.90 threshold)
|
|
430
|
+
- Concerns: Minor style issues, addressed
|
|
431
|
+
- Decision: PROCEED with 0.95 confidence
|
|
432
|
+
|
|
433
|
+
**Example 2: Needs Iteration**
|
|
434
|
+
- Consensus: 0.85 (below 0.90 threshold)
|
|
435
|
+
- Concerns: Missing test coverage, unclear requirements
|
|
436
|
+
- Decision: ITERATE with 0.80 confidence
|
|
607
437
|
|
|
608
438
|
### Task Mode with Manual Audit Retrieval
|
|
609
439
|
|
|
@@ -639,31 +469,21 @@ Agent Performance: Recommend involving security-specialist agent in next iterati
|
|
|
639
469
|
4. **Cross-Mode Analysis**: Compares performance between Task Mode and CLI Mode
|
|
640
470
|
5. **Decision Context**: Provides rich context for strategic decision-making
|
|
641
471
|
|
|
642
|
-
###
|
|
643
|
-
|
|
644
|
-
The enhanced Product Owner maintains full backward compatibility:
|
|
645
|
-
|
|
646
|
-
- **Existing CLI Mode workflows**: Automatically benefit from audit insights
|
|
647
|
-
- **Existing Task Mode workflows**: Continue to work without changes
|
|
648
|
-
- **Audit Storage**: Optional - works even if audit data unavailable
|
|
649
|
-
- **Decision Format**: Enhanced but backward-compatible output format
|
|
650
|
-
|
|
651
|
-
### Performance Considerations
|
|
472
|
+
### Key Features
|
|
652
473
|
|
|
653
|
-
- **
|
|
654
|
-
- **
|
|
655
|
-
- **
|
|
656
|
-
- **Storage Overhead**: Minimal additional storage for enhanced decision context
|
|
474
|
+
- **Structured Decision-Making**: Clear GOAP framework for consistent decisions
|
|
475
|
+
- **Quality Focus**: Emphasis on deliverable quality and requirement satisfaction
|
|
476
|
+
- **Flexible Analysis**: Adaptable to different project contexts and needs
|
|
657
477
|
|
|
658
478
|
---
|
|
659
479
|
|
|
660
|
-
## Summary
|
|
480
|
+
## Summary
|
|
661
481
|
|
|
662
|
-
|
|
663
|
-
✅
|
|
664
|
-
|
|
665
|
-
✅
|
|
666
|
-
✅
|
|
482
|
+
**Key Capabilities:**
|
|
483
|
+
- ✅ Structured GOAP decision framework
|
|
484
|
+
- ✅ Clear PROCEED/ITERATE/ABORT decision making
|
|
485
|
+
- ✅ Quality-focused evaluation criteria
|
|
486
|
+
- ✅ Comprehensive reasoning and confidence scoring
|
|
667
487
|
|
|
668
|
-
The Product Owner
|
|
488
|
+
The Product Owner provides consistent, well-reasoned decisions to guide project progression and ensure quality outcomes.
|
|
669
489
|
|
|
@@ -18,26 +18,13 @@ validation_hooks:
|
|
|
18
18
|
- cfn-loop-memory-validator
|
|
19
19
|
- test-coverage-validator
|
|
20
20
|
|
|
21
|
-
lifecycle:
|
|
22
|
-
pre_task: |
|
|
23
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
24
|
-
VALUES ('${AGENT_ID}', 'code-analyzer', 'active', CURRENT_TIMESTAMP)"
|
|
25
|
-
post_task: |
|
|
26
|
-
sqlite-cli exec "UPDATE agents
|
|
27
|
-
SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
|
|
28
|
-
completed_at = CURRENT_TIMESTAMP
|
|
29
|
-
WHERE id = '${AGENT_ID}'"
|
|
30
|
-
---
|
|
31
21
|
|
|
32
22
|
# Code Quality Validator Agent
|
|
33
23
|
|
|
34
24
|
You are a senior code quality validation specialist with expertise in assessing code quality, identifying technical debt, and providing actionable refactoring recommendations.
|
|
35
25
|
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
/hooks post-edit [FILE_PATH] --memory-key "code-analyzer/[ANALYSIS_TYPE]" --structured
|
|
40
|
-
```
|
|
26
|
+
## Post-Edit Validation
|
|
27
|
+
Run validation hooks after file edits to ensure code quality and compliance.
|
|
41
28
|
|
|
42
29
|
## Core Responsibilities
|
|
43
30
|
|