claude-flow-novice 2.14.28 → 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 +100 -11
- package/.claude/commands/cfn-mode.md +2 -2
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +12 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh.backup +273 -0
- package/.claude/skills/cfn-hybrid-routing/README.md +1 -1
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +95 -15
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +76 -11
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup2 +959 -0
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.clean +949 -0
- package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +82 -10
- 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 +12 -38
- package/claude-assets/agents/cfn-dev-team/architecture/goal-planner.md +0 -10
- package/claude-assets/agents/cfn-dev-team/architecture/planner.md +7 -57
- package/claude-assets/agents/cfn-dev-team/architecture/system-architect.md +8 -45
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +365 -25
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +504 -448
- package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +428 -167
- package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +472 -20
- 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 +10 -56
- package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +7 -26
- package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +8 -48
- 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/cto-agent.md +7 -19
- package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +9 -49
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +291 -86
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +9 -81
- 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 +7 -87
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +8 -12
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +11 -129
- package/claude-assets/agents/cfn-dev-team/reviewers/reviewer.md +231 -280
- 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 +7 -32
- package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +9 -47
- 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 -236
- package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +7 -27
- package/claude-assets/agents/cfn-dev-team/testers/validation/validation-production-validator.md +7 -19
- package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +10 -47
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +40 -116
- package/claude-assets/agents/cfn-dev-team/utility/analyst.md +7 -47
- package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +7 -40
- package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +7 -47
- package/claude-assets/agents/cfn-dev-team/{coordinators → utility}/epic-creator.md +29 -0
- 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 +100 -11
- package/claude-assets/commands/cfn-mode.md +2 -2
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh +12 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh.backup +273 -0
- package/claude-assets/skills/cfn-environment-sanitization/SKILL.md +200 -0
- package/claude-assets/skills/cfn-environment-sanitization/sanitize-environment.sh +244 -0
- package/claude-assets/skills/cfn-hybrid-routing/README.md +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +95 -15
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup +76 -11
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup2 +959 -0
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.clean +949 -0
- package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +326 -0
- package/claude-assets/skills/cfn-process-instrumentation/SKILL.md +279 -0
- package/claude-assets/skills/cfn-process-instrumentation/instrument-process.sh +323 -0
- package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +82 -10
- package/claude-assets/skills/cfn-task-audit/get-audit-data.sh +376 -0
- package/claude-assets/skills/cfn-task-audit/store-task-audit.sh +184 -0
- package/claude-assets/skills/cfn-task-mode-safety/cli-coordination.sh +519 -0
- package/claude-assets/skills/cfn-task-mode-safety/mode-detection.sh +326 -0
- package/claude-assets/skills/cfn-task-mode-sanitize/task-mode-env-sanitizer.sh +224 -0
- package/claude-assets/skills/cfn-telemetry/collect-metrics.sh +249 -0
- package/claude-assets/skills/cfn-telemetry/start-telemetry.sh +111 -0
- package/claude-assets/skills/cfn-validation-runner-instrumentation/wrapped-executor.sh +327 -0
- package/dist/agents/agent-loader.js +146 -165
- package/dist/agents/agent-loader.js.map +1 -1
- package/dist/cli/config-manager.js +109 -91
- package/dist/cli/config-manager.js.map +1 -1
- package/package.json +1 -1
- package/scripts/mode-detection.sh +321 -0
- package/scripts/spawn-worker.sh +8 -0
- package/scripts/track-zai-costs-simple.sh +8 -0
|
@@ -77,10 +77,49 @@ echo -e "${YELLOW}📥 Retrieving Loop 2 context...${NC}"
|
|
|
77
77
|
LOOP2_FEEDBACK=$(redis-cli HGET "swarm:${TASK_ID}:loop2:consensus" "feedback" || echo "")
|
|
78
78
|
TASK_CONTEXT=$(redis-cli HGETALL "swarm:${TASK_ID}:context" || echo "")
|
|
79
79
|
|
|
80
|
-
#
|
|
80
|
+
# Retrieve comprehensive audit trail data
|
|
81
|
+
echo -e "${YELLOW}🔍 Retrieving audit trail data for informed decision-making...${NC}"
|
|
82
|
+
set +e
|
|
83
|
+
AUDIT_DATA=$(./.claude/skills/cfn-task-audit/get-audit-data.sh \
|
|
84
|
+
--task-id "$TASK_ID" \
|
|
85
|
+
--mode combined \
|
|
86
|
+
--format json 2>/dev/null || echo "[]")
|
|
87
|
+
|
|
88
|
+
AUDIT_SUMMARY=$(./.claude/skills/cfn-task-audit/get-audit-data.sh \
|
|
89
|
+
--task-id "$TASK_ID" \
|
|
90
|
+
--mode combined \
|
|
91
|
+
--format summary 2>/dev/null || echo "No audit data available")
|
|
92
|
+
set -e
|
|
93
|
+
|
|
94
|
+
# Analyze audit data for patterns
|
|
95
|
+
AUDIT_INSIGHTS=""
|
|
96
|
+
if [ "$AUDIT_DATA" != "[]" ]; then
|
|
97
|
+
# Extract key patterns from audit data
|
|
98
|
+
PREVIOUS_DECISIONS=$(echo "$AUDIT_DATA" | jq -r '.[] | select(.agent_type == "product-owner") | .decision' 2>/dev/null | tr '\n' ', ' | sed 's/,$//' || echo "None")
|
|
99
|
+
AGENT_PERFORMANCE=$(echo "$AUDIT_DATA" | jq -r 'group_by(.agent_type) | map({agent: .[0].agent_type, avg_confidence: map(.confidence) | add / length}) | sort_by(.avg_confidence) | reverse | .[0:3] | .[] | "\(.agent): \(.avg_confidence)"' 2>/dev/null || echo "No performance data")
|
|
100
|
+
|
|
101
|
+
# Check for repeating concerns
|
|
102
|
+
REPEATING_CONCERNS=$(echo "$AUDIT_DATA" | jq -r '.[] | select(.agent_type == "reviewer" or .agent_type == "tester") | .reasoning | scan("security|performance|scope|quality|bug")' 2>/dev/null | sort | uniq -c | sort -nr | head -3 | awk '{print $2 " (" $1 "x)"}' | tr '\n' ', ' | sed 's/,$//' || echo "No repeating concerns")
|
|
103
|
+
|
|
104
|
+
AUDIT_INSIGHTS="
|
|
105
|
+
AUDIT TRAIL INSIGHTS:
|
|
106
|
+
- Previous Product Owner Decisions: $PREVIOUS_DECISIONS
|
|
107
|
+
- Top Performing Agents: $AGENT_PERFORMANCE
|
|
108
|
+
- Repeating Concerns: $REPEATING_CONCERNS
|
|
109
|
+
- Total Audit Records: $(echo "$AUDIT_DATA" | jq '. | length' 2>/dev/null || echo "0")
|
|
110
|
+
|
|
111
|
+
Audit Summary:
|
|
112
|
+
$AUDIT_SUMMARY
|
|
113
|
+
"
|
|
114
|
+
else
|
|
115
|
+
AUDIT_INSIGHTS="AUDIT TRAIL: No historical data available for this task."
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
# Build enhanced Product Owner context with audit insights
|
|
81
119
|
PO_CONTEXT="
|
|
82
120
|
You are the Product Owner making a strategic decision for CFN Loop iteration $ITERATION of $MAX_ITERATIONS.
|
|
83
121
|
|
|
122
|
+
CURRENT ITERATION DATA:
|
|
84
123
|
Loop 2 Consensus: $CONSENSUS
|
|
85
124
|
Threshold: $THRESHOLD
|
|
86
125
|
Success Criteria: ${SUCCESS_CRITERIA:-"Not specified"}
|
|
@@ -91,15 +130,26 @@ $LOOP2_FEEDBACK
|
|
|
91
130
|
Task Context:
|
|
92
131
|
$TASK_CONTEXT
|
|
93
132
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
133
|
+
$AUDIT_INSIGHTS
|
|
134
|
+
|
|
135
|
+
ENHANCED DECISION FRAMEWORK:
|
|
136
|
+
Use the audit trail insights to inform your decision. Consider:
|
|
137
|
+
- Are there repeating concerns that suggest systematic issues?
|
|
138
|
+
- Which agents have performed well on similar tasks?
|
|
139
|
+
- Do previous decisions show a pattern of success or failure?
|
|
140
|
+
- Are there cross-mode inconsistencies that need attention?
|
|
141
|
+
|
|
142
|
+
DECISION OPTIONS:
|
|
143
|
+
- PROCEED: Quality threshold met, deliverables complete, audit shows positive trajectory
|
|
144
|
+
- ITERATE: Improvements needed, iterations remaining, audit shows recoverable issues
|
|
145
|
+
- ABORT: Max iterations reached, systematic failure, or audit shows insurmountable barriers
|
|
98
146
|
|
|
99
147
|
Output format:
|
|
100
148
|
Decision: PROCEED|ITERATE|ABORT
|
|
101
|
-
Reasoning: [your explanation]
|
|
149
|
+
Reasoning: [your explanation + audit insights]
|
|
102
150
|
Confidence: [0.0-1.0]
|
|
151
|
+
Audit Analysis: [brief summary of how audit data influenced your decision]
|
|
152
|
+
Agent Performance: [any observations about agent reliability from audit trail]
|
|
103
153
|
"
|
|
104
154
|
|
|
105
155
|
# Spawn Product Owner agent
|
|
@@ -144,6 +194,12 @@ else
|
|
|
144
194
|
|
|
145
195
|
# Parse confidence
|
|
146
196
|
CONFIDENCE=$(echo "$PO_OUTPUT" | grep -oE "Confidence:\s*[0-9]+\.?[0-9]*" | grep -oE "[0-9]+\.?[0-9]*" || echo "0.85")
|
|
197
|
+
|
|
198
|
+
# Parse audit analysis (enhanced output)
|
|
199
|
+
AUDIT_ANALYSIS=$(echo "$PO_OUTPUT" | grep -oiE "Audit Analysis:\s*.*" | sed 's/Audit Analysis:\s*//' || echo "No audit analysis provided")
|
|
200
|
+
|
|
201
|
+
# Parse agent performance observations
|
|
202
|
+
AGENT_PERFORMANCE_OBSERVATIONS=$(echo "$PO_OUTPUT" | grep -oiE "Agent Performance:\s*.*" | sed 's/Agent Performance:\s*//' || echo "No agent performance observations")
|
|
147
203
|
else
|
|
148
204
|
echo -e "${RED}❌ ERROR: Product Owner output file missing or empty${NC}"
|
|
149
205
|
echo "Expected: $PO_OUTPUT_FILE"
|
|
@@ -167,6 +223,11 @@ fi
|
|
|
167
223
|
echo -e "${GREEN}✅ Product Owner Decision: $DECISION_TYPE${NC}"
|
|
168
224
|
echo "Reasoning: $REASONING"
|
|
169
225
|
echo "Confidence: $CONFIDENCE"
|
|
226
|
+
if [ "$AUDIT_DATA" != "[]" ]; then
|
|
227
|
+
echo -e "${BLUE}📊 Audit Analysis: $AUDIT_ANALYSIS${NC}"
|
|
228
|
+
echo -e "${BLUE}🏆 Agent Performance: $AGENT_PERFORMANCE_OBSERVATIONS${NC}"
|
|
229
|
+
echo -e "${BLUE}📈 Audit Records Analyzed: $(echo "$AUDIT_DATA" | jq '. | length' 2>/dev/null || echo "0")${NC}"
|
|
230
|
+
fi
|
|
170
231
|
|
|
171
232
|
# Deliverable verification for PROCEED decisions
|
|
172
233
|
if [ "$DECISION_TYPE" = "PROCEED" ]; then
|
|
@@ -254,7 +315,7 @@ else
|
|
|
254
315
|
echo -e "${GREEN}No deferred items detected in Product Owner output${NC}"
|
|
255
316
|
fi
|
|
256
317
|
|
|
257
|
-
# Build decision JSON
|
|
318
|
+
# Build enhanced decision JSON with audit insights
|
|
258
319
|
DECISION_JSON=$(cat <<EOF
|
|
259
320
|
{
|
|
260
321
|
"decision": "$DECISION_TYPE",
|
|
@@ -263,17 +324,25 @@ DECISION_JSON=$(cat <<EOF
|
|
|
263
324
|
"iteration": $ITERATION,
|
|
264
325
|
"consensus": $CONSENSUS,
|
|
265
326
|
"threshold": $THRESHOLD,
|
|
266
|
-
"timestamp": $(date +%s)
|
|
327
|
+
"timestamp": $(date +%s),
|
|
328
|
+
"audit_analysis": "$AUDIT_ANALYSIS",
|
|
329
|
+
"agent_performance_observations": "$AGENT_PERFORMANCE_OBSERVATIONS",
|
|
330
|
+
"audit_records_analyzed": $(echo "$AUDIT_DATA" | jq '. | length' 2>/dev/null || echo "0"),
|
|
331
|
+
"audit_informed": $(if [ "$AUDIT_DATA" != "[]" ]; then echo "true"; else echo "false"; fi)
|
|
267
332
|
}
|
|
268
333
|
EOF
|
|
269
334
|
)
|
|
270
335
|
|
|
271
|
-
# Store decision in Redis
|
|
272
|
-
echo -e "${YELLOW}💾 Storing decision in Redis...${NC}"
|
|
336
|
+
# Store decision in Redis with audit context
|
|
337
|
+
echo -e "${YELLOW}💾 Storing decision in Redis with audit context...${NC}"
|
|
273
338
|
redis-cli LPUSH "swarm:${TASK_ID}:decision" "$DECISION_TYPE"
|
|
274
339
|
redis-cli HSET "swarm:${TASK_ID}:${AGENT_ID}:result" "decision" "$DECISION_TYPE"
|
|
275
340
|
redis-cli HSET "swarm:${TASK_ID}:${AGENT_ID}:result" "reasoning" "$REASONING"
|
|
276
341
|
redis-cli HSET "swarm:${TASK_ID}:${AGENT_ID}:result" "confidence" "$CONFIDENCE"
|
|
342
|
+
redis-cli HSET "swarm:${TASK_ID}:${AGENT_ID}:result" "audit_analysis" "$AUDIT_ANALYSIS"
|
|
343
|
+
redis-cli HSET "swarm:${TASK_ID}:${AGENT_ID}:result" "agent_performance_observations" "$AGENT_PERFORMANCE_OBSERVATIONS"
|
|
344
|
+
redis-cli HSET "swarm:${TASK_ID}:${AGENT_ID}:result" "audit_records_analyzed" "$(echo "$AUDIT_DATA" | jq '. | length' 2>/dev/null || echo "0")"
|
|
345
|
+
redis-cli HSET "swarm:${TASK_ID}:${AGENT_ID}:result" "audit_informed" "$(if [ "$AUDIT_DATA" != "[]" ]; then echo "true"; else echo "false"; fi)"
|
|
277
346
|
|
|
278
347
|
# Store in metrics
|
|
279
348
|
redis-cli LPUSH "swarm:${TASK_ID}:metrics:product_owner_decisions" "$DECISION_JSON"
|
|
@@ -293,3 +362,6 @@ redis-cli LPUSH "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
|
293
362
|
echo "$DECISION_JSON"
|
|
294
363
|
|
|
295
364
|
echo -e "${GREEN}✅ Product Owner decision execution complete${NC}"
|
|
365
|
+
if [ "$AUDIT_DATA" != "[]" ]; then
|
|
366
|
+
echo -e "${BLUE}📊 Decision was informed by audit trail analysis${NC}"
|
|
367
|
+
fi
|
|
@@ -603,13 +603,17 @@ npx claude-flow-novice agent-spawn backend-dev --task-id "${TASK_ID}"
|
|
|
603
603
|
npx claude-flow-novice agent-spawn reviewer --task-id "${TASK_ID}"
|
|
604
604
|
```
|
|
605
605
|
|
|
606
|
-
### Signaling Pattern
|
|
606
|
+
### Signaling Pattern (CLI Mode Only)
|
|
607
607
|
```bash
|
|
608
|
-
# Signal completion
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
608
|
+
# CLI Mode: Signal completion
|
|
609
|
+
if [[ -n "${TASK_ID:-}" && -n "${AGENT_ID:-}" ]]; then
|
|
610
|
+
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
611
|
+
fi
|
|
612
|
+
|
|
613
|
+
# CLI Mode: Wait for other agent (zero-token blocking)
|
|
614
|
+
if [[ -n "${TASK_ID:-}" ]]; then
|
|
615
|
+
redis-cli blpop "swarm:${TASK_ID}:other-agent:done" 30
|
|
616
|
+
fi
|
|
613
617
|
```
|
|
614
618
|
```
|
|
615
619
|
|
|
@@ -1022,18 +1026,24 @@ Agents MUST use different completion protocols based on how they were spawned:
|
|
|
1022
1026
|
**Step 1: Complete Work**
|
|
1023
1027
|
Execute assigned task (implementation, validation, review, etc.)
|
|
1024
1028
|
|
|
1025
|
-
**Step 2: Signal Completion**
|
|
1029
|
+
**Step 2: Signal Completion (CLI Mode Only)**
|
|
1026
1030
|
```bash
|
|
1027
|
-
|
|
1031
|
+
# CLI Mode: Signal completion
|
|
1032
|
+
if [[ -n "${TASK_ID:-}" && -n "${AGENT_ID:-}" ]]; then
|
|
1033
|
+
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
1034
|
+
fi
|
|
1028
1035
|
```
|
|
1029
1036
|
|
|
1030
|
-
**Step 3: Report Confidence Score and Exit**
|
|
1037
|
+
**Step 3: Report Confidence Score and Exit (CLI Mode Only)**
|
|
1031
1038
|
```bash
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1039
|
+
# CLI Mode: Report confidence
|
|
1040
|
+
if [[ -n "${TASK_ID:-}" && -n "${AGENT_ID:-}" ]]; then
|
|
1041
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
1042
|
+
--task-id "$TASK_ID" \
|
|
1043
|
+
--agent-id "$AGENT_ID" \
|
|
1044
|
+
--confidence [0.0-1.0] \
|
|
1045
|
+
--iteration 1
|
|
1046
|
+
fi
|
|
1037
1047
|
```
|
|
1038
1048
|
|
|
1039
1049
|
### How to Tell Which Mode You're In
|
|
@@ -9,13 +9,6 @@ weight: 0.333
|
|
|
9
9
|
validation_hooks:
|
|
10
10
|
- agent-template-validator
|
|
11
11
|
- cfn-loop-memory-validator
|
|
12
|
-
lifecycle:
|
|
13
|
-
pre_task: |
|
|
14
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at, metadata) VALUES ('${AGENT_ID}', 'api-designer', 'active', CURRENT_TIMESTAMP, '{\"loop\": \"0.5\", \"phase\": \"design-consensus\", \"focus\": \"api-design\"}')"
|
|
15
|
-
post_task: |
|
|
16
|
-
sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
|
|
17
|
-
acl_level: 3
|
|
18
|
-
---
|
|
19
12
|
# API Designer Persona - Loop 0.5 Design Consensus
|
|
20
13
|
|
|
21
14
|
## Role Identity
|
|
@@ -24,13 +24,13 @@ lifecycle:
|
|
|
24
24
|
completed_at = CURRENT_TIMESTAMP
|
|
25
25
|
WHERE id = '${AGENT_ID}'"
|
|
26
26
|
---
|
|
27
|
-
## 🚀
|
|
27
|
+
## 🚀 Template Generation Focus
|
|
28
28
|
|
|
29
29
|
**Your role is optimized for:**
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
30
|
+
- Creating clean, reusable template structures
|
|
31
|
+
- Establishing consistent project foundations
|
|
32
|
+
- Following industry best practices
|
|
33
|
+
- Providing clear extension paths
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -145,38 +145,12 @@ Quality standards:
|
|
|
145
145
|
|
|
146
146
|
When generating templates, always consider the broader project context, existing patterns, and future extensibility needs. Your templates should serve as solid foundations that accelerate development while maintaining code quality and consistency.
|
|
147
147
|
|
|
148
|
-
##
|
|
148
|
+
## Completion Protocol
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
Complete your work and provide a structured response with:
|
|
151
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
152
|
+
- Summary of analysis/review completed
|
|
153
|
+
- List of findings or deliverables
|
|
154
|
+
- Any recommendations made
|
|
151
155
|
|
|
152
|
-
|
|
153
|
-
Execute assigned task (template generation, boilerplate code creation, project scaffolding)
|
|
154
|
-
|
|
155
|
-
### Step 2: Signal Completion
|
|
156
|
-
```bash
|
|
157
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Step 3: Report Confidence Score and Exit
|
|
161
|
-
```bash
|
|
162
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
163
|
-
--task-id "$TASK_ID" \
|
|
164
|
-
--agent-id "$AGENT_ID" \
|
|
165
|
-
--confidence [0.0-1.0] \
|
|
166
|
-
--iteration 1
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
170
|
-
|
|
171
|
-
**Why This Matters:**
|
|
172
|
-
- Orchestrator collects confidence/consensus scores from Redis
|
|
173
|
-
- Enables adaptive agent specialization for next iteration
|
|
174
|
-
- Prevents orchestrator blocking on wait $PID
|
|
175
|
-
- Coordinator spawns appropriate specialist based on feedback type
|
|
176
|
-
|
|
177
|
-
**Context Variables:**
|
|
178
|
-
- `TASK_ID`: Provided by orchestrator/coordinator
|
|
179
|
-
- `AGENT_ID`: Your unique agent identifier (e.g., "base-template-generator-1")
|
|
180
|
-
- Confidence: Your self-assessment score (0.0-1.0)
|
|
181
|
-
|
|
182
|
-
See: `.claude/skills/redis-coordination/SKILL.md` for full protocol details
|
|
156
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
@@ -14,16 +14,6 @@ capabilities:
|
|
|
14
14
|
validation_hooks:
|
|
15
15
|
- agent-template-validator
|
|
16
16
|
- cfn-loop-memory-validator
|
|
17
|
-
lifecycle:
|
|
18
|
-
pre_task: |
|
|
19
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
20
|
-
VALUES ('${AGENT_ID}', 'strategic', 'active', CURRENT_TIMESTAMP)"
|
|
21
|
-
post_task: |
|
|
22
|
-
sqlite-cli exec "UPDATE agents
|
|
23
|
-
SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
|
|
24
|
-
completed_at = CURRENT_TIMESTAMP
|
|
25
|
-
WHERE id = '${AGENT_ID}'"
|
|
26
|
-
---
|
|
27
17
|
|
|
28
18
|
# Goal Planner Agent: Strategic GOAP Planning
|
|
29
19
|
|
|
@@ -16,16 +16,6 @@ validation_hooks:
|
|
|
16
16
|
- agent-template-validator
|
|
17
17
|
- cfn-loop-memory-validator
|
|
18
18
|
- blocking-coordination-validator
|
|
19
|
-
lifecycle:
|
|
20
|
-
pre_task: |
|
|
21
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
22
|
-
VALUES ('${AGENT_ID}', 'planner', 'active', CURRENT_TIMESTAMP)"
|
|
23
|
-
post_task: |
|
|
24
|
-
sqlite-cli exec "UPDATE agents SET status = 'completed',
|
|
25
|
-
confidence = ${CONFIDENCE_SCORE},
|
|
26
|
-
completed_at = CURRENT_TIMESTAMP
|
|
27
|
-
WHERE id = '${AGENT_ID}'"
|
|
28
|
-
---
|
|
29
19
|
# Strategic Planning Agent
|
|
30
20
|
|
|
31
21
|
You are a Strategic Planning Agent responsible for breaking down complex tasks, coordinating cross-agent planning, and creating actionable execution plans.
|
|
@@ -127,53 +117,13 @@ plan:
|
|
|
127
117
|
|
|
128
118
|
Remember: A good plan executed now is better than a perfect plan executed never. Focus on creating actionable, practical plans that drive progress.
|
|
129
119
|
|
|
130
|
-
##
|
|
131
|
-
|
|
132
|
-
When participating in CFN Loop workflows, agents MUST follow this protocol:
|
|
133
|
-
|
|
134
|
-
### Step 1: Complete Work
|
|
135
|
-
Execute assigned task (task planning, dependency mapping, resource allocation, risk assessment)
|
|
136
|
-
|
|
137
|
-
### Step 2: Signal Completion
|
|
138
|
-
```bash
|
|
139
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Step 3: Report Confidence Score
|
|
143
|
-
```bash
|
|
144
|
-
./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
|
|
145
|
-
|
|
146
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
147
|
-
|
|
148
|
-
**Why This Matters:**
|
|
149
|
-
- Orchestrator collects confidence/consensus scores from Redis
|
|
150
|
-
- Enables adaptive agent specialization for next iteration
|
|
151
|
-
- Prevents orchestrator blocking on wait $PID
|
|
152
|
-
- Coordinator spawns appropriate specialist based on feedback type
|
|
153
|
-
|
|
154
|
-
--task-id "$TASK_ID" \
|
|
155
|
-
--agent-id "$AGENT_ID" \
|
|
156
|
-
--confidence [0.0-1.0] \
|
|
157
|
-
--iteration 1
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Step 4: Enter Waiting Mode (for potential iteration)
|
|
161
|
-
```bash
|
|
162
|
-
--task-id "$TASK_ID" \
|
|
163
|
-
--agent-id "$AGENT_ID" \
|
|
164
|
-
--context "iteration-complete"
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
**Why This Matters:**
|
|
168
|
-
- Zero-token blocking coordination (BLPOP waits without API calls)
|
|
169
|
-
- Orchestrator collects confidence/consensus scores automatically
|
|
170
|
-
- Supports autonomous iteration based on quality gates
|
|
171
|
-
- Agent woken instantly (<100ms) if iteration needed
|
|
120
|
+
## Completion Protocol
|
|
172
121
|
|
|
173
|
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
122
|
+
Complete your work and provide a structured response with:
|
|
123
|
+
- Confidence score (0.0-1.0) based on work quality
|
|
124
|
+
- Summary of analysis/review completed
|
|
125
|
+
- List of findings or deliverables
|
|
126
|
+
- Any recommendations made
|
|
177
127
|
|
|
178
|
-
|
|
128
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|
|
179
129
|
|
|
@@ -14,21 +14,10 @@ validation_hooks:
|
|
|
14
14
|
- agent-template-validator
|
|
15
15
|
- cfn-loop-memory-validator
|
|
16
16
|
- test-coverage-validator
|
|
17
|
-
lifecycle:
|
|
18
|
-
pre_task: |
|
|
19
|
-
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
20
|
-
VALUES ('${AGENT_ID}', 'system-architect', 'active', CURRENT_TIMESTAMP)"
|
|
21
|
-
post_task: |
|
|
22
|
-
sqlite-cli exec "UPDATE agents SET status = 'completed',
|
|
23
|
-
confidence = ${CONFIDENCE_SCORE},
|
|
24
|
-
completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
|
|
25
|
-
---
|
|
26
17
|
|
|
27
18
|
# System Architect Agent
|
|
28
19
|
|
|
29
|
-
|
|
30
|
-
→ See `.claude/templates/redis-coordination.md` for communication protocols
|
|
31
|
-
→ See `.claude/templates/post-edit-validation.md` for mandatory validation hooks
|
|
20
|
+
**Focus on enterprise system design, technical leadership, and architectural excellence without coordination dependencies.**
|
|
32
21
|
|
|
33
22
|
## Core Identity & Expertise
|
|
34
23
|
|
|
@@ -122,38 +111,12 @@ await sqlite.memoryAdapter.set(
|
|
|
122
111
|
```
|
|
123
112
|
|
|
124
113
|
**Core Insight:** Great architecture balances technical excellence with business needs, making informed trade-offs that enable long-term system health and adaptability.
|
|
125
|
-
##
|
|
126
|
-
|
|
127
|
-
When participating in CFN Loop workflows, agents MUST follow this protocol:
|
|
128
|
-
|
|
129
|
-
### Step 1: Complete Work
|
|
130
|
-
Execute assigned task (system architecture design, technical strategy, infrastructure planning)
|
|
131
|
-
|
|
132
|
-
### Step 2: Signal Completion
|
|
133
|
-
```bash
|
|
134
|
-
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### Step 3: Report Confidence Score and Exit
|
|
138
|
-
```bash
|
|
139
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
140
|
-
--task-id "$TASK_ID" \
|
|
141
|
-
--agent-id "$AGENT_ID" \
|
|
142
|
-
--confidence [0.0-1.0] \
|
|
143
|
-
--iteration 1
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
147
|
-
|
|
148
|
-
**Why This Matters:**
|
|
149
|
-
- Orchestrator collects confidence/consensus scores from Redis
|
|
150
|
-
- Enables adaptive agent specialization for next iteration
|
|
151
|
-
- Prevents orchestrator blocking on wait $PID
|
|
152
|
-
- Coordinator spawns appropriate specialist based on feedback type
|
|
114
|
+
## Completion Protocol
|
|
153
115
|
|
|
154
|
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
116
|
+
Complete your architectural work and provide a structured response with:
|
|
117
|
+
- Confidence score (0.0-1.0) based on architectural quality
|
|
118
|
+
- Summary of design decisions made
|
|
119
|
+
- List of deliverables created
|
|
120
|
+
- Any assumptions or constraints identified
|
|
158
121
|
|
|
159
|
-
|
|
122
|
+
**Note:** Coordination instructions are provided when spawned via CLI.
|