claude-flow-novice 2.15.1 → 2.15.3
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-extras/agents/google-sheets-specialist.md +614 -0
- package/.claude/commands/cfn/create-handoff.md +224 -0
- package/.claude/hooks/cfn-BACKUP_USAGE.md +243 -243
- package/.claude/hooks/cfn-invoke-security-validation.sh +69 -69
- package/.claude/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
- package/.claude/hooks/cfn-post-edit.config.json +44 -44
- package/.claude/skills/agent-lifecycle/SKILL.md +60 -0
- package/.claude/skills/agent-lifecycle/execute-lifecycle-hook.sh +573 -0
- package/.claude/skills/agent-lifecycle/simple-audit.sh +31 -0
- package/.claude/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
- package/.claude/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
- package/.claude/skills/cfn-redis-coordination/get-context.sh +112 -112
- package/.claude/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
- package/.claude/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
- package/.claude/skills/cfn-transparency-middleware/test-integration.sh +161 -161
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
- package/.claude/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
- package/.claude/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
- package/claude-assets/agents/cfn-dev-team/coordinators/handoff-coordinator.md +662 -0
- package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +29 -0
- package/claude-assets/cfn-extras/agents/google-sheets-specialist.md +614 -0
- package/claude-assets/commands/cfn/create-handoff.md +224 -0
- package/claude-assets/hooks/cfn-BACKUP_USAGE.md +243 -243
- package/claude-assets/hooks/cfn-invoke-security-validation.sh +69 -69
- package/claude-assets/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
- package/claude-assets/hooks/cfn-post-edit.config.json +44 -44
- package/claude-assets/hooks/cfn-post-execution/memory-cleanup.sh +19 -19
- package/claude-assets/hooks/cfn-pre-execution/memory-check.sh +19 -19
- package/claude-assets/skills/agent-lifecycle/execute-lifecycle-hook.sh +572 -572
- package/claude-assets/skills/agent-lifecycle/simple-audit.sh +30 -30
- package/claude-assets/skills/cfn-automatic-memory-persistence/persist-agent-output.sh +48 -48
- package/claude-assets/skills/cfn-automatic-memory-persistence/query-agent-history.sh +34 -34
- package/claude-assets/skills/cfn-deliverable-validation/confidence-calculator.sh +261 -261
- package/claude-assets/skills/cfn-expert-update/update-expert.sh +345 -345
- package/claude-assets/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
- package/claude-assets/skills/cfn-intervention-detector/detect-intervention.sh +110 -110
- package/claude-assets/skills/cfn-intervention-orchestrator/execute-intervention.sh +58 -58
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
- package/claude-assets/skills/cfn-loop2-output-processing/process-validator-output.sh +275 -275
- package/claude-assets/skills/cfn-memory-management/check-memory.sh +159 -159
- package/claude-assets/skills/cfn-memory-management/cleanup-memory.sh +196 -196
- package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +325 -325
- package/claude-assets/skills/cfn-playbook-auto-update/auto-update-playbook.sh +85 -85
- package/claude-assets/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
- package/claude-assets/skills/cfn-redis-coordination/get-context.sh +112 -112
- package/claude-assets/skills/cfn-scope-simplifier/simplify-scope.sh +67 -67
- package/claude-assets/skills/cfn-specialist-injection/recommend-specialist.sh +56 -56
- package/claude-assets/skills/cfn-standardized-error-handling/capture-agent-error.sh +86 -86
- package/claude-assets/skills/cfn-standardized-error-handling/test-error-handling.sh +165 -165
- package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +264 -264
- package/claude-assets/skills/cfn-task-decomposition/task-decomposer.sh +278 -278
- package/claude-assets/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
- package/claude-assets/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
- package/claude-assets/skills/cfn-transparency-middleware/test-integration.sh +161 -161
- package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
- package/claude-assets/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
- package/claude-assets/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
- package/claude-assets/skills/docker-build/SKILL.md +96 -203
- package/claude-assets/skills/docker-build/build.sh +73 -73
- package/claude-assets/skills/integration/agent-handoff.sh +494 -0
- package/claude-assets/skills/integration/file-operations.sh +414 -0
- package/claude-assets/skills/workflow-codification/APPROVAL_WORKFLOW.md +806 -0
- package/claude-assets/skills/workflow-codification/COST_TRACKING.md +637 -0
- package/claude-assets/skills/workflow-codification/EDGE_CASE_TRACKING.md +404 -0
- package/claude-assets/skills/workflow-codification/README_PHASE4.md +457 -0
- package/claude-assets/skills/workflow-codification/SKILL.md +110 -0
- package/claude-assets/skills/workflow-codification/analyze-patterns.sh +899 -0
- package/claude-assets/skills/workflow-codification/approval-workflow.sh +514 -0
- package/claude-assets/skills/workflow-codification/generate-skill-update.sh +525 -0
- package/claude-assets/skills/workflow-codification/review-skill.sh +643 -0
- package/claude-assets/skills/workflow-codification/templates/email-notification.txt +114 -0
- package/claude-assets/skills/workflow-codification/templates/slack-notification.md +85 -0
- package/claude-assets/skills/workflow-codification/test-integration.sh +281 -0
- package/claude-assets/skills/workflow-codification/track-cost-savings.sh +445 -0
- package/claude-assets/skills/workflow-codification/track-edge-case.sh +323 -0
- package/dist/agents/agent-loader.js +165 -146
- package/dist/agents/agent-loader.js.map +1 -1
- package/dist/cli/config-manager.js +91 -109
- package/dist/cli/config-manager.js.map +1 -1
- package/dist/integration/DatabaseHandoff.js +507 -0
- package/dist/integration/DatabaseHandoff.js.map +1 -0
- package/dist/integration/StandardAdapter.js +291 -0
- package/dist/integration/StandardAdapter.js.map +1 -0
- package/dist/lib/agent-output-parser.js +518 -0
- package/dist/lib/agent-output-parser.js.map +1 -0
- package/dist/lib/agent-output-validator.js +950 -0
- package/dist/lib/agent-output-validator.js.map +1 -0
- package/dist/lib/artifact-registry.js +443 -0
- package/dist/lib/artifact-registry.js.map +1 -0
- package/dist/lib/config-validator.js +687 -0
- package/dist/lib/config-validator.js.map +1 -0
- package/dist/types/agent-output.js +44 -0
- package/dist/types/agent-output.js.map +1 -0
- package/dist/types/config.js +28 -0
- package/dist/types/config.js.map +1 -0
- package/package.json +2 -1
- package/scripts/artifact-cleanup.sh +392 -0
- package/scripts/build-linux.sh +78 -0
- package/scripts/deploy-production.sh +355 -355
- package/scripts/docker-playwright-fix.sh +311 -311
- package/scripts/docker-rebuild-all-agents.sh +127 -127
- package/scripts/memory-leak-prevention.sh +305 -305
- package/scripts/migrate-artifacts.sh +563 -0
- package/scripts/migrate-yaml-to-json.sh +465 -0
- package/scripts/run-marketing-tests.sh +42 -42
- package/scripts/update_paths.sh +46 -46
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Integration test: Transparency middleware with CFN Loop orchestrator
|
|
3
|
-
# Validates middleware initialization, agent wrapping, and memory capture
|
|
4
|
-
|
|
5
|
-
set -euo pipefail
|
|
6
|
-
|
|
7
|
-
# Enhanced logging function with security audit trail
|
|
8
|
-
log() {
|
|
9
|
-
local level="$1"
|
|
10
|
-
local message="$2"
|
|
11
|
-
local timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
|
12
|
-
local caller_info=$(caller)
|
|
13
|
-
|
|
14
|
-
# Log to syslog for security tracking
|
|
15
|
-
logger -p local0.notice -t "interaction-tester" \
|
|
16
|
-
"SECURITY_AUDIT: level=${level}, caller=${caller_info}, message=${message}"
|
|
17
|
-
|
|
18
|
-
echo "[${timestamp}] [${level}] [${caller_info}] ${message}"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
# Strict input validation
|
|
22
|
-
validate_input() {
|
|
23
|
-
local input="$1"
|
|
24
|
-
local input_type="$2"
|
|
25
|
-
|
|
26
|
-
case "$input_type" in
|
|
27
|
-
"task_id")
|
|
28
|
-
if [[ ! "$input" =~ ^[a-zA-Z0-9_-]+$ ]]; then
|
|
29
|
-
log "SECURITY_ERROR" "Invalid task_id format: ${input}"
|
|
30
|
-
exit 1
|
|
31
|
-
fi
|
|
32
|
-
;;
|
|
33
|
-
"agent_id")
|
|
34
|
-
if [[ ! "$input" =~ ^[a-zA-Z0-9_-]+$ ]]; then
|
|
35
|
-
log "SECURITY_ERROR" "Invalid agent_id format: ${input}"
|
|
36
|
-
exit 1
|
|
37
|
-
fi
|
|
38
|
-
;;
|
|
39
|
-
*)
|
|
40
|
-
log "SECURITY_ERROR" "Unknown input type: ${input_type}"
|
|
41
|
-
exit 1
|
|
42
|
-
;;
|
|
43
|
-
esac
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
# Error handling wrapper with extensive logging
|
|
47
|
-
safe_execute() {
|
|
48
|
-
local command="$1"
|
|
49
|
-
local error_message="${2:-Execution failed}"
|
|
50
|
-
local log_file="/tmp/interaction_tester_$(date +%s).log"
|
|
51
|
-
|
|
52
|
-
# Redirect command output to log file for detailed tracing
|
|
53
|
-
set +e
|
|
54
|
-
eval "$command" > >(tee -a "$log_file") 2> >(tee -a "$log_file" >&2)
|
|
55
|
-
local exit_code=$?
|
|
56
|
-
set -e
|
|
57
|
-
|
|
58
|
-
if [ $exit_code -ne 0 ]; then
|
|
59
|
-
log "ERROR" "$error_message (Exit code: $exit_code)"
|
|
60
|
-
log "ERROR" "Detailed logs in: $log_file"
|
|
61
|
-
|
|
62
|
-
# Signal failure to Redis coordination with log reference
|
|
63
|
-
redis-cli lpush "swarm:sprint-1.3-testing:interaction-tester:error" \
|
|
64
|
-
"integration_test_failure:${log_file}" >/dev/null
|
|
65
|
-
|
|
66
|
-
exit 1
|
|
67
|
-
fi
|
|
68
|
-
|
|
69
|
-
# Cleanup log file after successful execution
|
|
70
|
-
rm -f "$log_file"
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
# Dependency check
|
|
74
|
-
check_dependencies() {
|
|
75
|
-
local dependencies=("node" "sqlite3" "redis-cli" "jq")
|
|
76
|
-
for dep in "${dependencies[@]}"; do
|
|
77
|
-
if ! command -v "$dep" &> /dev/null; then
|
|
78
|
-
log "ERROR" "Dependency not found: $dep"
|
|
79
|
-
exit 1
|
|
80
|
-
fi
|
|
81
|
-
done
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
main() {
|
|
85
|
-
log "INFO" "=== Transparency Middleware Integration Test ==="
|
|
86
|
-
|
|
87
|
-
# Check dependencies
|
|
88
|
-
check_dependencies
|
|
89
|
-
|
|
90
|
-
# 1. Initialize middleware
|
|
91
|
-
log "INFO" "Initializing Transparency Middleware"
|
|
92
|
-
safe_execute "node -e \"
|
|
93
|
-
import TransparencyMiddleware from './src/middleware/transparency-middleware.js';
|
|
94
|
-
const config = TransparencyMiddleware.loadConfig('./.claude/skills/cfn-transparency-middleware/config.json');
|
|
95
|
-
const middleware = new TransparencyMiddleware(config);
|
|
96
|
-
await middleware.initialize();
|
|
97
|
-
console.log('Middleware initialized successfully');
|
|
98
|
-
\"" "Middleware initialization failed"
|
|
99
|
-
|
|
100
|
-
# 2. Spawn test agent with middleware wrapper
|
|
101
|
-
log "INFO" "Spawning test agent"
|
|
102
|
-
safe_execute "./.claude/skills/cfn-transparency-middleware/wrap-agent.sh \
|
|
103
|
-
\"backend-dev\" \
|
|
104
|
-
\"test-agent-1\" \
|
|
105
|
-
\"integration-test-task\" \
|
|
106
|
-
\"echo 'Test execution'\"" "Agent wrapping failed"
|
|
107
|
-
|
|
108
|
-
# 3. Verify memory was captured
|
|
109
|
-
log "INFO" "Verifying memory capture"
|
|
110
|
-
|
|
111
|
-
# Validate task_id using strict input validation
|
|
112
|
-
TASK_ID="integration-test-task"
|
|
113
|
-
validate_input "$TASK_ID" "task_id"
|
|
114
|
-
|
|
115
|
-
# Prepared statement with parameterized query
|
|
116
|
-
MEMORY_COUNT=$(safe_execute "sqlite3 -csv .claude/swarm-memory.db \
|
|
117
|
-
'SELECT COUNT(*) FROM agent_memory WHERE task_id = ?;' '$TASK_ID'" "SQLite query failed")
|
|
118
|
-
|
|
119
|
-
if [ "$MEMORY_COUNT" -eq 0 ]; then
|
|
120
|
-
log "ERROR" "No memory captured for task: $TASK_ID"
|
|
121
|
-
|
|
122
|
-
# Log additional diagnostic information
|
|
123
|
-
redis-cli lpush "swarm:sprint-1.3-testing:interaction-tester:memory_check" \
|
|
124
|
-
"task_id_length:${#TASK_ID},task_id_check:$TASK_ID" >/dev/null
|
|
125
|
-
|
|
126
|
-
exit 1
|
|
127
|
-
fi
|
|
128
|
-
|
|
129
|
-
log "INFO" "Memory captured: $MEMORY_COUNT events"
|
|
130
|
-
|
|
131
|
-
# 4. Verify Redis events emitted
|
|
132
|
-
log "INFO" "Checking Redis events"
|
|
133
|
-
REDIS_EVENTS=$(safe_execute "redis-cli llen \"agent:transparency\"" "Redis event count failed")
|
|
134
|
-
log "INFO" "Redis events: $REDIS_EVENTS"
|
|
135
|
-
|
|
136
|
-
# 5. Test query script
|
|
137
|
-
log "INFO" "Testing memory query script"
|
|
138
|
-
safe_execute "./.claude/skills/cfn-transparency-middleware/query-memory.sh \
|
|
139
|
-
\"integration-test-task\" \
|
|
140
|
-
\"*\" \
|
|
141
|
-
10 | jq '.' >/dev/null" "Memory query failed"
|
|
142
|
-
|
|
143
|
-
# CFN Protocol: Signal task completion
|
|
144
|
-
redis-cli lpush "swarm:sprint-1.3-testing:interaction-tester:done" "complete" >/dev/null
|
|
145
|
-
|
|
146
|
-
# Report confidence and enter waiting mode
|
|
147
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
148
|
-
--task-id "sprint-1.3-testing" \
|
|
149
|
-
--agent-id "interaction-tester" \
|
|
150
|
-
--confidence 0.95 \
|
|
151
|
-
--iteration 1
|
|
152
|
-
|
|
153
|
-
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh enter \
|
|
154
|
-
--task-id "sprint-1.3-testing" \
|
|
155
|
-
--agent-id "interaction-tester" \
|
|
156
|
-
--context "iteration-1-complete"
|
|
157
|
-
|
|
158
|
-
log "INFO" "✅ Integration test complete"
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
# Run the main function
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Integration test: Transparency middleware with CFN Loop orchestrator
|
|
3
|
+
# Validates middleware initialization, agent wrapping, and memory capture
|
|
4
|
+
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
# Enhanced logging function with security audit trail
|
|
8
|
+
log() {
|
|
9
|
+
local level="$1"
|
|
10
|
+
local message="$2"
|
|
11
|
+
local timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
|
12
|
+
local caller_info=$(caller)
|
|
13
|
+
|
|
14
|
+
# Log to syslog for security tracking
|
|
15
|
+
logger -p local0.notice -t "interaction-tester" \
|
|
16
|
+
"SECURITY_AUDIT: level=${level}, caller=${caller_info}, message=${message}"
|
|
17
|
+
|
|
18
|
+
echo "[${timestamp}] [${level}] [${caller_info}] ${message}"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
# Strict input validation
|
|
22
|
+
validate_input() {
|
|
23
|
+
local input="$1"
|
|
24
|
+
local input_type="$2"
|
|
25
|
+
|
|
26
|
+
case "$input_type" in
|
|
27
|
+
"task_id")
|
|
28
|
+
if [[ ! "$input" =~ ^[a-zA-Z0-9_-]+$ ]]; then
|
|
29
|
+
log "SECURITY_ERROR" "Invalid task_id format: ${input}"
|
|
30
|
+
exit 1
|
|
31
|
+
fi
|
|
32
|
+
;;
|
|
33
|
+
"agent_id")
|
|
34
|
+
if [[ ! "$input" =~ ^[a-zA-Z0-9_-]+$ ]]; then
|
|
35
|
+
log "SECURITY_ERROR" "Invalid agent_id format: ${input}"
|
|
36
|
+
exit 1
|
|
37
|
+
fi
|
|
38
|
+
;;
|
|
39
|
+
*)
|
|
40
|
+
log "SECURITY_ERROR" "Unknown input type: ${input_type}"
|
|
41
|
+
exit 1
|
|
42
|
+
;;
|
|
43
|
+
esac
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
# Error handling wrapper with extensive logging
|
|
47
|
+
safe_execute() {
|
|
48
|
+
local command="$1"
|
|
49
|
+
local error_message="${2:-Execution failed}"
|
|
50
|
+
local log_file="/tmp/interaction_tester_$(date +%s).log"
|
|
51
|
+
|
|
52
|
+
# Redirect command output to log file for detailed tracing
|
|
53
|
+
set +e
|
|
54
|
+
eval "$command" > >(tee -a "$log_file") 2> >(tee -a "$log_file" >&2)
|
|
55
|
+
local exit_code=$?
|
|
56
|
+
set -e
|
|
57
|
+
|
|
58
|
+
if [ $exit_code -ne 0 ]; then
|
|
59
|
+
log "ERROR" "$error_message (Exit code: $exit_code)"
|
|
60
|
+
log "ERROR" "Detailed logs in: $log_file"
|
|
61
|
+
|
|
62
|
+
# Signal failure to Redis coordination with log reference
|
|
63
|
+
redis-cli lpush "swarm:sprint-1.3-testing:interaction-tester:error" \
|
|
64
|
+
"integration_test_failure:${log_file}" >/dev/null
|
|
65
|
+
|
|
66
|
+
exit 1
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
# Cleanup log file after successful execution
|
|
70
|
+
rm -f "$log_file"
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
# Dependency check
|
|
74
|
+
check_dependencies() {
|
|
75
|
+
local dependencies=("node" "sqlite3" "redis-cli" "jq")
|
|
76
|
+
for dep in "${dependencies[@]}"; do
|
|
77
|
+
if ! command -v "$dep" &> /dev/null; then
|
|
78
|
+
log "ERROR" "Dependency not found: $dep"
|
|
79
|
+
exit 1
|
|
80
|
+
fi
|
|
81
|
+
done
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
main() {
|
|
85
|
+
log "INFO" "=== Transparency Middleware Integration Test ==="
|
|
86
|
+
|
|
87
|
+
# Check dependencies
|
|
88
|
+
check_dependencies
|
|
89
|
+
|
|
90
|
+
# 1. Initialize middleware
|
|
91
|
+
log "INFO" "Initializing Transparency Middleware"
|
|
92
|
+
safe_execute "node -e \"
|
|
93
|
+
import TransparencyMiddleware from './src/middleware/transparency-middleware.js';
|
|
94
|
+
const config = TransparencyMiddleware.loadConfig('./.claude/skills/cfn-transparency-middleware/config.json');
|
|
95
|
+
const middleware = new TransparencyMiddleware(config);
|
|
96
|
+
await middleware.initialize();
|
|
97
|
+
console.log('Middleware initialized successfully');
|
|
98
|
+
\"" "Middleware initialization failed"
|
|
99
|
+
|
|
100
|
+
# 2. Spawn test agent with middleware wrapper
|
|
101
|
+
log "INFO" "Spawning test agent"
|
|
102
|
+
safe_execute "./.claude/skills/cfn-transparency-middleware/wrap-agent.sh \
|
|
103
|
+
\"backend-dev\" \
|
|
104
|
+
\"test-agent-1\" \
|
|
105
|
+
\"integration-test-task\" \
|
|
106
|
+
\"echo 'Test execution'\"" "Agent wrapping failed"
|
|
107
|
+
|
|
108
|
+
# 3. Verify memory was captured
|
|
109
|
+
log "INFO" "Verifying memory capture"
|
|
110
|
+
|
|
111
|
+
# Validate task_id using strict input validation
|
|
112
|
+
TASK_ID="integration-test-task"
|
|
113
|
+
validate_input "$TASK_ID" "task_id"
|
|
114
|
+
|
|
115
|
+
# Prepared statement with parameterized query
|
|
116
|
+
MEMORY_COUNT=$(safe_execute "sqlite3 -csv .claude/swarm-memory.db \
|
|
117
|
+
'SELECT COUNT(*) FROM agent_memory WHERE task_id = ?;' '$TASK_ID'" "SQLite query failed")
|
|
118
|
+
|
|
119
|
+
if [ "$MEMORY_COUNT" -eq 0 ]; then
|
|
120
|
+
log "ERROR" "No memory captured for task: $TASK_ID"
|
|
121
|
+
|
|
122
|
+
# Log additional diagnostic information
|
|
123
|
+
redis-cli lpush "swarm:sprint-1.3-testing:interaction-tester:memory_check" \
|
|
124
|
+
"task_id_length:${#TASK_ID},task_id_check:$TASK_ID" >/dev/null
|
|
125
|
+
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
|
|
129
|
+
log "INFO" "Memory captured: $MEMORY_COUNT events"
|
|
130
|
+
|
|
131
|
+
# 4. Verify Redis events emitted
|
|
132
|
+
log "INFO" "Checking Redis events"
|
|
133
|
+
REDIS_EVENTS=$(safe_execute "redis-cli llen \"agent:transparency\"" "Redis event count failed")
|
|
134
|
+
log "INFO" "Redis events: $REDIS_EVENTS"
|
|
135
|
+
|
|
136
|
+
# 5. Test query script
|
|
137
|
+
log "INFO" "Testing memory query script"
|
|
138
|
+
safe_execute "./.claude/skills/cfn-transparency-middleware/query-memory.sh \
|
|
139
|
+
\"integration-test-task\" \
|
|
140
|
+
\"*\" \
|
|
141
|
+
10 | jq '.' >/dev/null" "Memory query failed"
|
|
142
|
+
|
|
143
|
+
# CFN Protocol: Signal task completion
|
|
144
|
+
redis-cli lpush "swarm:sprint-1.3-testing:interaction-tester:done" "complete" >/dev/null
|
|
145
|
+
|
|
146
|
+
# Report confidence and enter waiting mode
|
|
147
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
148
|
+
--task-id "sprint-1.3-testing" \
|
|
149
|
+
--agent-id "interaction-tester" \
|
|
150
|
+
--confidence 0.95 \
|
|
151
|
+
--iteration 1
|
|
152
|
+
|
|
153
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh enter \
|
|
154
|
+
--task-id "sprint-1.3-testing" \
|
|
155
|
+
--agent-id "interaction-tester" \
|
|
156
|
+
--context "iteration-1-complete"
|
|
157
|
+
|
|
158
|
+
log "INFO" "✅ Integration test complete"
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
# Run the main function
|
|
162
162
|
main
|