diff --git a/.claude-flow/metrics/agent-performance.json b/.claude-flow/metrics/agent-performance.json new file mode 100644 index 0000000000..6dc3bfda8d --- /dev/null +++ b/.claude-flow/metrics/agent-performance.json @@ -0,0 +1,25 @@ +{ + "totalVerifications": 62, + "passedVerifications": 2, + "averageScore": 0.632258064516129, + "byAgent": { + "reviewer": { + "total": 2, + "passed": 2, + "avgScore": 0.85 + }, + "coder": { + "total": 60, + "passed": 0, + "avgScore": 0.625 + } + }, + "byHour": { + "15": { + "total": 62, + "avgScore": 0.632258064516129 + } + }, + "created": "2025-08-12T15:57:16.156Z", + "lastUpdated": "2025-08-12T15:57:23.425Z" +} \ No newline at end of file diff --git a/.claude-flow/models/agent-coder.json b/.claude-flow/models/agent-coder.json new file mode 100644 index 0000000000..4278ff2335 --- /dev/null +++ b/.claude-flow/models/agent-coder.json @@ -0,0 +1,321 @@ +{ + "agentType": "coder", + "totalTasks": 60, + "successfulTasks": 0, + "averageScore": 0.625, + "scoreHistory": [ + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:03.880Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:07.061Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:15.369Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:26.586Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:35.902Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:37.545Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:45.633Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:48.186Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:52.643Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:56.891Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:59.469Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:03.289Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:03.365Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:05.137Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:09.175Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:12.551Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:12.686Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:18.077Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:18.195Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:21.412Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:23.169Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:26.066Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:28.953Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:31.606Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:34.727Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:36.255Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:39.356Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:39.791Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:39.796Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:42.089Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:03.880Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:07.061Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:15.369Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:26.586Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:35.902Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:37.545Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:45.633Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:48.186Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:52.643Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:56.891Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:34:59.469Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:03.289Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:03.365Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:05.137Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:09.175Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:12.551Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:12.686Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:18.077Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:18.195Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:21.412Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:23.169Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:26.066Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:28.953Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:31.606Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:34.727Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:36.255Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:39.356Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:39.791Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:39.796Z", + "passed": false + }, + { + "score": 0.625, + "timestamp": "2025-08-12T14:35:42.089Z", + "passed": false + } + ], + "checkPerformance": { + "undefined": { + "total": 240, + "passed": 60, + "avgScore": 0.6249999999999986 + } + }, + "trend": { + "direction": "declining", + "change": 0, + "recentAverage": 0.625, + "previousAverage": 0.625 + } +} \ No newline at end of file diff --git a/.claude-flow/models/agent-reviewer.json b/.claude-flow/models/agent-reviewer.json new file mode 100644 index 0000000000..280c503b56 --- /dev/null +++ b/.claude-flow/models/agent-reviewer.json @@ -0,0 +1,25 @@ +{ + "agentType": "reviewer", + "totalTasks": 2, + "successfulTasks": 2, + "averageScore": 0.85, + "scoreHistory": [ + { + "score": 0.85, + "timestamp": "2025-08-12T14:32:28.016Z", + "passed": true + }, + { + "score": 0.85, + "timestamp": "2025-08-12T14:32:28.016Z", + "passed": true + } + ], + "checkPerformance": { + "undefined": { + "total": 6, + "passed": 6, + "avgScore": 0.85 + } + } +} \ No newline at end of file diff --git a/.claude-flow/models/verification-model.json b/.claude-flow/models/verification-model.json new file mode 100644 index 0000000000..29195a0820 --- /dev/null +++ b/.claude-flow/models/verification-model.json @@ -0,0 +1,32 @@ +{ + "version": "1.0.0", + "created": "2025-08-12T15:57:16.156Z", + "agentReliability": { + "reviewer": 0.5665, + "coder": 0.6247753737125109 + }, + "patterns": { + "reviewer_success": { + "count": 2, + "avgScore": 0.85, + "checks": { + "undefined": { + "success": 6, + "failure": 0 + } + } + }, + "coder_failure": { + "count": 60, + "avgScore": 0.625, + "checks": { + "undefined": { + "success": 0, + "failure": 240 + } + } + } + }, + "checkWeights": {}, + "lastUpdated": "2025-08-12T15:57:23.425Z" +} \ No newline at end of file diff --git a/.claude-flow/training/verification-data.jsonl b/.claude-flow/training/verification-data.jsonl new file mode 100644 index 0000000000..03bf01b4dd --- /dev/null +++ b/.claude-flow/training/verification-data.jsonl @@ -0,0 +1,62 @@ +{"input":{"taskId":"demo-task","agentType":"reviewer","timestamp":"2025-08-12T14:32:28.016Z","mode":"moderate","checksPerformed":[null,null,null]},"output":{"score":0.85,"passed":true,"threshold":0.85},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.154Z"}} +{"input":{"taskId":"pair-1755009154971","agentType":"coder","timestamp":"2025-08-12T14:34:03.880Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.156Z"}} +{"input":{"taskId":"pair-1755009157974","agentType":"coder","timestamp":"2025-08-12T14:34:07.061Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.158Z"}} +{"input":{"taskId":"pair-1755009160975","agentType":"coder","timestamp":"2025-08-12T14:34:15.369Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.159Z"}} +{"input":{"taskId":"pair-1755009163976","agentType":"coder","timestamp":"2025-08-12T14:34:26.586Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.161Z"}} +{"input":{"taskId":"pair-1755009166977","agentType":"coder","timestamp":"2025-08-12T14:34:35.902Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.162Z"}} +{"input":{"taskId":"pair-1755009169978","agentType":"coder","timestamp":"2025-08-12T14:34:37.545Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.164Z"}} +{"input":{"taskId":"pair-1755009172978","agentType":"coder","timestamp":"2025-08-12T14:34:45.633Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.165Z"}} +{"input":{"taskId":"pair-1755009175979","agentType":"coder","timestamp":"2025-08-12T14:34:48.186Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.167Z"}} +{"input":{"taskId":"pair-1755009178979","agentType":"coder","timestamp":"2025-08-12T14:34:52.643Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.168Z"}} +{"input":{"taskId":"pair-1755009181979","agentType":"coder","timestamp":"2025-08-12T14:34:56.891Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.170Z"}} +{"input":{"taskId":"pair-1755009184979","agentType":"coder","timestamp":"2025-08-12T14:34:59.469Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.171Z"}} +{"input":{"taskId":"pair-1755009187979","agentType":"coder","timestamp":"2025-08-12T14:35:03.289Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.173Z"}} +{"input":{"taskId":"pair-1755009193980","agentType":"coder","timestamp":"2025-08-12T14:35:03.365Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.174Z"}} +{"input":{"taskId":"pair-1755009190979","agentType":"coder","timestamp":"2025-08-12T14:35:05.137Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.176Z"}} +{"input":{"taskId":"pair-1755009196979","agentType":"coder","timestamp":"2025-08-12T14:35:09.175Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.177Z"}} +{"input":{"taskId":"pair-1755009202980","agentType":"coder","timestamp":"2025-08-12T14:35:12.551Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.179Z"}} +{"input":{"taskId":"pair-1755009199980","agentType":"coder","timestamp":"2025-08-12T14:35:12.686Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.180Z"}} +{"input":{"taskId":"pair-1755009208981","agentType":"coder","timestamp":"2025-08-12T14:35:18.077Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.181Z"}} +{"input":{"taskId":"pair-1755009205981","agentType":"coder","timestamp":"2025-08-12T14:35:18.195Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.183Z"}} +{"input":{"taskId":"pair-1755009211982","agentType":"coder","timestamp":"2025-08-12T14:35:21.412Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.184Z"}} +{"input":{"taskId":"pair-1755009214981","agentType":"coder","timestamp":"2025-08-12T14:35:23.169Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.186Z"}} +{"input":{"taskId":"pair-1755009217982","agentType":"coder","timestamp":"2025-08-12T14:35:26.066Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.187Z"}} +{"input":{"taskId":"pair-1755009220982","agentType":"coder","timestamp":"2025-08-12T14:35:28.953Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.188Z"}} +{"input":{"taskId":"pair-1755009223984","agentType":"coder","timestamp":"2025-08-12T14:35:31.606Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.190Z"}} +{"input":{"taskId":"pair-1755009226987","agentType":"coder","timestamp":"2025-08-12T14:35:34.727Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.191Z"}} +{"input":{"taskId":"pair-1755009229987","agentType":"coder","timestamp":"2025-08-12T14:35:36.255Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.192Z"}} +{"input":{"taskId":"pair-1755009232988","agentType":"coder","timestamp":"2025-08-12T14:35:39.356Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.193Z"}} +{"input":{"taskId":"pair-1755009238988","agentType":"coder","timestamp":"2025-08-12T14:35:39.791Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.195Z"}} +{"input":{"taskId":"pair-1755009235992","agentType":"coder","timestamp":"2025-08-12T14:35:39.796Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.196Z"}} +{"input":{"taskId":"pair-1755009241989","agentType":"coder","timestamp":"2025-08-12T14:35:42.089Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:16.198Z"}} +{"input":{"taskId":"demo-task","agentType":"reviewer","timestamp":"2025-08-12T14:32:28.016Z","mode":"moderate","checksPerformed":[null,null,null]},"output":{"score":0.85,"passed":true,"threshold":0.85},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.375Z"}} +{"input":{"taskId":"pair-1755009154971","agentType":"coder","timestamp":"2025-08-12T14:34:03.880Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.377Z"}} +{"input":{"taskId":"pair-1755009157974","agentType":"coder","timestamp":"2025-08-12T14:34:07.061Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.379Z"}} +{"input":{"taskId":"pair-1755009160975","agentType":"coder","timestamp":"2025-08-12T14:34:15.369Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.381Z"}} +{"input":{"taskId":"pair-1755009163976","agentType":"coder","timestamp":"2025-08-12T14:34:26.586Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.383Z"}} +{"input":{"taskId":"pair-1755009166977","agentType":"coder","timestamp":"2025-08-12T14:34:35.902Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.384Z"}} +{"input":{"taskId":"pair-1755009169978","agentType":"coder","timestamp":"2025-08-12T14:34:37.545Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.386Z"}} +{"input":{"taskId":"pair-1755009172978","agentType":"coder","timestamp":"2025-08-12T14:34:45.633Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.388Z"}} +{"input":{"taskId":"pair-1755009175979","agentType":"coder","timestamp":"2025-08-12T14:34:48.186Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.389Z"}} +{"input":{"taskId":"pair-1755009178979","agentType":"coder","timestamp":"2025-08-12T14:34:52.643Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.391Z"}} +{"input":{"taskId":"pair-1755009181979","agentType":"coder","timestamp":"2025-08-12T14:34:56.891Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.393Z"}} +{"input":{"taskId":"pair-1755009184979","agentType":"coder","timestamp":"2025-08-12T14:34:59.469Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.395Z"}} +{"input":{"taskId":"pair-1755009187979","agentType":"coder","timestamp":"2025-08-12T14:35:03.289Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.396Z"}} +{"input":{"taskId":"pair-1755009193980","agentType":"coder","timestamp":"2025-08-12T14:35:03.365Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.398Z"}} +{"input":{"taskId":"pair-1755009190979","agentType":"coder","timestamp":"2025-08-12T14:35:05.137Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.399Z"}} +{"input":{"taskId":"pair-1755009196979","agentType":"coder","timestamp":"2025-08-12T14:35:09.175Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.401Z"}} +{"input":{"taskId":"pair-1755009202980","agentType":"coder","timestamp":"2025-08-12T14:35:12.551Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.402Z"}} +{"input":{"taskId":"pair-1755009199980","agentType":"coder","timestamp":"2025-08-12T14:35:12.686Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.404Z"}} +{"input":{"taskId":"pair-1755009208981","agentType":"coder","timestamp":"2025-08-12T14:35:18.077Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.406Z"}} +{"input":{"taskId":"pair-1755009205981","agentType":"coder","timestamp":"2025-08-12T14:35:18.195Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.407Z"}} +{"input":{"taskId":"pair-1755009211982","agentType":"coder","timestamp":"2025-08-12T14:35:21.412Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.409Z"}} +{"input":{"taskId":"pair-1755009214981","agentType":"coder","timestamp":"2025-08-12T14:35:23.169Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.410Z"}} +{"input":{"taskId":"pair-1755009217982","agentType":"coder","timestamp":"2025-08-12T14:35:26.066Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.412Z"}} +{"input":{"taskId":"pair-1755009220982","agentType":"coder","timestamp":"2025-08-12T14:35:28.953Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.413Z"}} +{"input":{"taskId":"pair-1755009223984","agentType":"coder","timestamp":"2025-08-12T14:35:31.606Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.415Z"}} +{"input":{"taskId":"pair-1755009226987","agentType":"coder","timestamp":"2025-08-12T14:35:34.727Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.416Z"}} +{"input":{"taskId":"pair-1755009229987","agentType":"coder","timestamp":"2025-08-12T14:35:36.255Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.417Z"}} +{"input":{"taskId":"pair-1755009232988","agentType":"coder","timestamp":"2025-08-12T14:35:39.356Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.419Z"}} +{"input":{"taskId":"pair-1755009238988","agentType":"coder","timestamp":"2025-08-12T14:35:39.791Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.421Z"}} +{"input":{"taskId":"pair-1755009235992","agentType":"coder","timestamp":"2025-08-12T14:35:39.796Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.422Z"}} +{"input":{"taskId":"pair-1755009241989","agentType":"coder","timestamp":"2025-08-12T14:35:42.089Z","mode":"moderate","checksPerformed":[null,null,null,null]},"output":{"score":0.625,"passed":false,"threshold":0.95},"metadata":{"sessionId":"default","timestamp":"2025-08-12T15:57:23.424Z"}} diff --git a/.claude/checkpoints/1755014215.json b/.claude/checkpoints/1755014215.json new file mode 100644 index 0000000000..055aa8d007 --- /dev/null +++ b/.claude/checkpoints/1755014215.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250812-155655", "file": "/workspaces/claude-code-flow/src/cli/command-registry.js", "timestamp": "2025-08-12T15:56:55Z", "type": "pre-edit", "original_branch": "alpha-89"} diff --git a/.claude/checkpoints/1755014217.json b/.claude/checkpoints/1755014217.json new file mode 100644 index 0000000000..6d0add363d --- /dev/null +++ b/.claude/checkpoints/1755014217.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250812-155657", "file": "/workspaces/claude-code-flow/src/cli/command-registry.js", "timestamp": "2025-08-12T15:56:57Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 ++++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1755014194.json | 1 + .claude/checkpoints/1755014195.json | 1 + src/cli/command-registry.js | 28 +++++++++++++++++++++++++ 6 files changed, 70 insertions(+), 4 deletions(-) "} diff --git a/test-verification.js b/test-verification.js new file mode 100644 index 0000000000..d31e97e99b --- /dev/null +++ b/test-verification.js @@ -0,0 +1,43 @@ +import { VerificationTrainingIntegration } from './src/cli/simple-commands/verification-training-integration.js'; + +async function simulateLearning() { + const integration = new VerificationTrainingIntegration(); + await integration.initialize(); + + // Simulate some successful verifications + for (let i = 0; i < 10; i++) { + const verification = { + taskId: 'test-task-' + i, + agentType: 'coder', + score: 0.85 + Math.random() * 0.15, // 0.85-1.0 range + passed: true, + threshold: 0.85, + timestamp: new Date().toISOString(), + results: [ + { name: 'compile', passed: true, score: 0.95 }, + { name: 'test', passed: true, score: 0.90 }, + { name: 'lint', passed: true, score: 0.85 } + ] + }; + + await integration.feedVerificationToTraining(verification); + } + + console.log('\nāœ… Simulated 10 successful verifications'); + + // Show updated prediction + const prediction = await integration.predictVerificationOutcome('default', 'coder'); + console.log('\nšŸ”® Updated Prediction:'); + console.log(' Predicted Score: ' + prediction.predictedScore.toFixed(3)); + console.log(' Confidence: ' + (prediction.confidence * 100).toFixed(1) + '%'); + console.log(' Recommendation: ' + prediction.recommendation); + + // Show status + const status = await integration.getTrainingStatus(); + console.log('\nšŸ“Š Updated Agent Reliability:'); + for (const [agent, reliability] of Object.entries(status.agentReliability)) { + console.log(' ' + agent + ': ' + (reliability * 100).toFixed(1) + '%'); + } +} + +simulateLearning().catch(console.error); \ No newline at end of file