From b1c42facdafc40dd85a1c316cc7a0fcee4be73cd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Oct 2026 14:33:07 +0000 Subject: [PATCH 1/3] Initial plan From fe7814eec5275dcdb005a138b59b930b70825587 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Oct 2026 14:34:37 +0000 Subject: [PATCH 2/3] Skip absent build script in AI repair workflow Co-authored-by: SolanaRemix <240965752+SolanaRemix@users.noreply.github.com> --- .github/workflows/elite-ai-agent.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/elite-ai-agent.yml b/.github/workflows/elite-ai-agent.yml index 78ee4fa..5b71d73 100644 --- a/.github/workflows/elite-ai-agent.yml +++ b/.github/workflows/elite-ai-agent.yml @@ -255,7 +255,7 @@ jobs: full|*) echo "🏥 Full elite repair mode" npm audit fix --force || true - npm run build || (echo "⚠️ Build failed - attempting repair" && npm install --force && npm run build) + npm run build --if-present || (echo "⚠️ Build failed - attempting repair" && npm install --force && npm run build --if-present) npm test || (echo "⚠️ Tests failed - self-healing applied") ;; esac From 2113d1061a87c2fc02ef95a852abbb5d11639bf3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 22 Oct 2026 14:59:52 +0000 Subject: [PATCH 3/3] Fix zero-match risk counters in AI workflow Co-authored-by: SolanaRemix <240965752+SolanaRemix@users.noreply.github.com> --- .github/workflows/elite-ai-agent.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/elite-ai-agent.yml b/.github/workflows/elite-ai-agent.yml index 5b71d73..2b26873 100644 --- a/.github/workflows/elite-ai-agent.yml +++ b/.github/workflows/elite-ai-agent.yml @@ -90,8 +90,8 @@ jobs: CONFIDENCE="${{ inputs.confidence_threshold || env.ML_CONFIDENCE }}" BROKEN_DEPS=$(npm audit --json 2>/dev/null | jq '.metadata.vulnerabilities.total' 2>/dev/null || echo "0") - TEST_FAILURES=$(npm test 2>&1 | grep -c "failing" || echo "0") - TYPING_ISSUES=$(npx tsc --noEmit 2>&1 | grep -c "error TS" || echo "0") + TEST_FAILURES=$(npm test 2>&1 | grep -c "failing" || true) + TYPING_ISSUES=$(npx tsc --noEmit 2>&1 | grep -c "error TS" || true) RISK_SCORE=$(echo "scale=4; ($BROKEN_DEPS * 0.4 + $TEST_FAILURES * 0.3 + $TYPING_ISSUES * 0.3) / 100" | bc) if [ -z "$RISK_SCORE" ] || [ "$RISK_SCORE" = "0" ]; then