ci+docs(perf-gate): Phase D — enrich memory regression gate + OOM-fix evidence#148
Merged
Conversation
…(Phase D) Phase D of the 2026-05-13 OOM-fix plan — locks in the empirical gain from Phases A-C with a CI gate plus documents the verified memory profile in CLAUDE.md. Adds to .github/workflows/perf-gate.yml a new step "Enrich memory gate" that: - /usr/bin/time -v's `codeiq enrich /tmp/fm-perf` after the existing index gate runs. - Parses Maximum resident set size from the time output. - Asserts peak RSS <= MAX_ENRICH_RSS_KB (300 MB / ~2.7x over the local 108 MB baseline). Tight enough to surface real regressions, loose enough to absorb CI runner variance. Doc update — CLAUDE.md "### Performance" section now records: - Pre-fix airflow peak: 3.8 GB → post-Phase-A+B+C: 1.27 GB - Pre-fix ~/projects/ peak: OOM (exit 137) → post-fix: 3.12 GB - Tunable knobs: --memprofile, --max-buffer-pool, --copy-threads Plan: docs/superpowers/plans/2026-05-13-enrich-oom-fix.md Phase D. Verification: - go test ./... -count=1: 877 pass - go test ./... -race -count=1: green (verified locally pre-PR) - perf-gate workflow yml lints clean
2 tasks
aksOps
added a commit
that referenced
this pull request
May 14, 2026
Stale doc references after Phase 6 (Java deletion, #132) and the Kuzu 0.7.1 → 0.11.3 bump (#155 + #159). - CLAUDE.md / PROJECT_SUMMARY.md: bump Kuzu 0.7.1 → 0.11.3, go-sqlite3 1.14.22 → 1.14.44, cobra to 1.10.2; note native FTS. - AGENTS.md: rewrite "What this repo is" (no more "REST API"); flip `mvn -B -ntp clean verify` → `go test ./...`; clarify that REST + React SPA were deleted in Phase 6 and won't return. - SECURITY.md: rewrite scope. Drop the dead JAR / serve / REST API / React UI / H2 / Neo4j Embedded references. New in-scope list covers every codeiq subcommand, the 10 MCP tools (with `run_cypher` mutation gate called out), `.codeiq/cache/` (SQLite) + `.codeiq/graph/` (Kuzu), and `read_file` path sandboxing. Add the security CI workflows (CodeQL, Semgrep, OSV-Scanner, Trivy, Gitleaks, SBOM, Socket Security) + perf-gate to the hardening references. - CHANGELOG.md: populate [Unreleased] with the OOM-fix saga (PRs #145-#148), the five correctness fixes (#149-#153), the Kuzu 0.7.1 → 0.11.3 bump (#155-#158), the FTS migration (#159), the Dependabot config rewrite (#154), and the enrich CLI knobs. No code changes. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase D of the 2026-05-13 OOM-fix plan. Locks in the empirical gains from Phases A-C and documents the verified memory profile.
What lands
1. CI memory regression gate (.github/workflows/perf-gate.yml)
New "Enrich memory gate" step in the existing perf-gate job:
2. CLAUDE.md memory section
Records the verified ceilings post-fix:
Documents the three landed fixes (per-file tree parse, bounded goroutine pool, Kuzu buffer pool cap) and the tunable knobs (`--memprofile`, `--max-buffer-pool`, `--copy-threads`).
Plan completion
This is the fourth and final phase PR. After merge, every item in §"Completion promise" of the plan is satisfied:
Test plan