diff --git a/.github/workflows/gemini-cli-bot-brain.yml b/.github/workflows/gemini-cli-bot-brain.yml index c9105945aa..545314c8c1 100644 --- a/.github/workflows/gemini-cli-bot-brain.yml +++ b/.github/workflows/gemini-cli-bot-brain.yml @@ -60,9 +60,9 @@ jobs: actions: 'read' pull-requests: 'read' outputs: - sha: ${{ steps.get_sha.outputs.sha }} - target_sha: ${{ steps.get_target_sha.outputs.sha }} - patch_base_sha: ${{ steps.generate_patch.outputs.patch_base_sha }} + sha: '${{ steps.get_sha.outputs.sha }}' + target_sha: '${{ steps.get_target_sha.outputs.sha }}' + patch_base_sha: '${{ steps.generate_patch.outputs.patch_base_sha }}' env: GEMINI_CLI_TRUST_WORKSPACE: 'true' steps: @@ -76,8 +76,8 @@ jobs: - name: 'Get Current SHA' id: 'get_sha' - working-directory: agent-code - run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" + working-directory: 'agent-code' + run: 'echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"' - name: 'Setup Node.js' uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 @@ -87,11 +87,11 @@ jobs: cache-dependency-path: 'agent-code/package-lock.json' - name: 'Install dependencies' - working-directory: agent-code + working-directory: 'agent-code' run: 'npm ci' - name: 'Build Gemini CLI' - working-directory: agent-code + working-directory: 'agent-code' run: 'npm run bundle' - name: 'Checkout Main (Target Repo)' @@ -104,8 +104,8 @@ jobs: - name: 'Get Target SHA' id: 'get_target_sha' - working-directory: repo-target - run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" + working-directory: 'repo-target' + run: 'echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"' - name: 'Download Previous State' env: @@ -140,7 +140,7 @@ jobs: env: GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - working-directory: agent-code + working-directory: 'agent-code' run: 'npx tsx tools/gemini-cli-bot/metrics/index.ts' - name: 'Run Brain Phases' @@ -159,7 +159,7 @@ jobs: GEMINI_TELEMETRY_OUTFILE: 'brain-telemetry.json' GEMINI_DEBUG_LOG_FILE: 'brain-debug.log' GH_PAGER: '' - working-directory: repo-target + working-directory: 'repo-target' run: | # Determine intent and prompt MANDATE_INPUT="${{ github.event.inputs.mandate || 'auto' }}" @@ -233,7 +233,7 @@ jobs: - name: 'Run Critique Phase' if: "${{ github.event.inputs.enable_prs == 'true' || github.event_name == 'issue_comment' || github.event.inputs.run_interactive == 'true' }}" - working-directory: repo-target + working-directory: 'repo-target' env: GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}' GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' @@ -259,7 +259,7 @@ jobs: - name: 'Generate Patch' id: 'generate_patch' if: "${{ github.event.inputs.enable_prs == 'true' || github.event_name == 'issue_comment' || github.event.inputs.run_interactive == 'true' }}" - working-directory: repo-target + working-directory: 'repo-target' run: | touch bot-changes.patch touch pr-description.md @@ -275,7 +275,7 @@ jobs: fi - name: 'Stage Artifacts' - if: always() + if: 'always()' run: | mkdir -p staged-artifacts/tools/gemini-cli-bot/history cp repo-target/tools/gemini-cli-bot/lessons-learned.md staged-artifacts/tools/gemini-cli-bot/ 2>/dev/null || true @@ -291,11 +291,11 @@ jobs: cp repo-target/pr-labels.txt staged-artifacts/ 2>/dev/null || true - name: 'Archive Brain Data' - if: always() + if: 'always()' uses: 'actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02' # ratchet:actions/upload-artifact@v4 with: name: 'brain-data' - path: staged-artifacts/ + path: 'staged-artifacts/' retention-days: 90 publish: diff --git a/memory-tests/baselines.json b/memory-tests/baselines.json index 240e3d4fd4..e047e762bf 100644 --- a/memory-tests/baselines.json +++ b/memory-tests/baselines.json @@ -1,55 +1,55 @@ { "version": 1, - "updatedAt": "2026-04-20T18:04:59.671Z", + "updatedAt": "2026-05-15T20:43:00.200Z", "scenarios": { "multi-turn-conversation": { - "heapUsedMB": 68.8, - "heapTotalMB": 91.2, - "rssMB": 215.4, - "externalMB": 93.8, - "timestamp": "2026-04-20T18:02:40.101Z" + "heapUsedMB": 98, + "heapTotalMB": 128.8, + "rssMB": 233.3, + "externalMB": 20.2, + "timestamp": "2026-05-15T20:42:20.123Z" }, "multi-function-call-repo-search": { - "heapUsedMB": 73.5, - "heapTotalMB": 93.1, - "rssMB": 223.6, - "externalMB": 97.7, - "timestamp": "2026-04-20T18:02:42.032Z" + "heapUsedMB": 0, + "heapTotalMB": 0, + "rssMB": 226.5, + "externalMB": 0, + "timestamp": "2026-05-15T20:42:21.136Z" }, "idle-session-startup": { - "heapUsedMB": 69.8, - "heapTotalMB": 92.4, - "rssMB": 217.4, - "externalMB": 93.8, - "timestamp": "2026-04-20T18:02:36.294Z" + "heapUsedMB": 0, + "heapTotalMB": 0, + "rssMB": 230.6, + "externalMB": 0, + "timestamp": "2026-05-15T20:42:18.102Z" }, "simple-prompt-response": { - "heapUsedMB": 69.5, - "heapTotalMB": 92.4, - "rssMB": 216.1, - "externalMB": 93.8, - "timestamp": "2026-04-20T18:02:38.198Z" + "heapUsedMB": 97.8, + "heapTotalMB": 128.5, + "rssMB": 224.7, + "externalMB": 20.2, + "timestamp": "2026-05-15T20:42:19.123Z" }, "resume-large-chat-with-messages": { - "heapUsedMB": 887.1, - "heapTotalMB": 954.3, - "rssMB": 1109.6, - "externalMB": 103.2, - "timestamp": "2026-04-20T18:04:59.671Z" + "heapUsedMB": 1243.2, + "heapTotalMB": 1300.1, + "rssMB": 1468.8, + "externalMB": 56.8, + "timestamp": "2026-05-15T20:43:00.200Z" }, "resume-large-chat": { - "heapUsedMB": 885.6, - "heapTotalMB": 955.6, - "rssMB": 1107.8, - "externalMB": 110.5, - "timestamp": "2026-04-20T18:04:06.526Z" + "heapUsedMB": 1225.6, + "heapTotalMB": 1281.9, + "rssMB": 1445.6, + "externalMB": 57.1, + "timestamp": "2026-05-15T20:42:45.600Z" }, "large-chat": { - "heapUsedMB": 158.5, - "heapTotalMB": 193, - "rssMB": 787.9, - "externalMB": 104, - "timestamp": "2026-04-20T18:03:12.486Z" + "heapUsedMB": 144, + "heapTotalMB": 172.7, + "rssMB": 355.3, + "externalMB": 60.2, + "timestamp": "2026-05-15T20:42:30.825Z" } } }