Repository navigation
fix(benchmarks): make floor check non-blocking, add --no-regression gate - #503
Merged
Merged
Conversation
main itself no longer clears the published FLOOR_* thresholds in reproduce.sh (LongMemEval MRR 0.904988 < 0.914, LoCoMo MRR 3-run mean 0.779868 < 0.805, LoCoMo Recall@10 0.889506 < 0.915 — all measured via this same script, cdeust/Cortex PR #492), so every PR built on main inherited an already-failing gate it did not cause and could not pass. check_floors now rounds `got` to the same 4-decimal precision it prints before computing delta/status (comparing at a hidden precision beyond what's displayed was the source of borderline-case confusion), and no longer exits 1 — same disposition as the pyright ratchet in issue #188 ("raising the floor would just hide the debt"). Add benchmarks/lib/bench_regression.sh + reproduce.sh --no-regression: runs the same suite against --baseline-ref (default origin/main) in an isolated git worktree, in the same container, then fails only if HEAD is worse than its own baseline by more than the tolerance. This is the blocking gate a PR should use instead of lowering FLOOR_*. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01StMBvNd7eVJGtpnC2zNsx1
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01StMBvNd7eVJGtpnC2zNsx1
cdeust
marked this pull request as ready for review
September 8, 2026 10:49
cdeust
pushed a commit
that referenced
this pull request
Sep 8, 2026
Brings in #503 (floor check non-blocking + --no-regression gate), which this PR's base moved to. No file overlap between the two changes. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01StMBvNd7eVJGtpnC2zNsx1
cdeust
pushed a commit
that referenced
this pull request
Sep 8, 2026
Brings in #503 (floor check non-blocking + --no-regression gate) and #505 (mcp-host-config timeout sized to its measured tail), so this PR is verified against the CI its merge will actually land on. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01StMBvNd7eVJGtpnC2zNsx1
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
mainitself no longer clears the publishedFLOOR_*thresholds inbenchmarks/reproduce.sh: PR #492 measured LongMemEval MRR 0.904988 (< floor 0.914), LoCoMo MRR 3-run mean 0.779868 (< floor 0.805) and LoCoMo Recall@10 0.889506 (< floor 0.915), all via this same script onmain@6ec76a0e. Every PR built on top ofmaintherefore inherited an already-failing gate it did not cause and could not pass — this is the structural issue currently blocking theperf/green-*PR stack (#492→#502).Closes the two issues named for this: rounding and the floor-vs-regression conflation.
Type of change
Changes
check_floorsnow roundsgotto the same 4-decimal precision it prints before computingdelta/status, so the printed verdict always matches what a reader sees on screen instead of comparing at a hidden higher precision.check_floorsstill prints PASS/FAIL per metric; it no longerexit 1s.--no-regression/--baseline-ref <ref>gate (benchmarks/lib/bench_regression.sh, sourced byreproduce.sh): runs the same benchmark suite against a baseline ref (defaultorigin/main) in an isolated git worktree, inside the same already-running ephemeral container (harnesses self-clean, so a second run against the same DB is safe), then fails only if HEAD is worse than its own baseline by more than the existing 0.005 (0.5pp) tolerance. This is the gate a PR should use to prove it doesn't regress — instead of loweringFLOOR_*to match wherevermaincurrently sits.CLAUDE.mdandCHANGELOG.mdupdated to point at--no-regressionas the PR-blocking gate.Test plan
bash -n benchmarks/reproduce.sh benchmarks/lib/bench_regression.sh— syntax OK.Extracted and
ast.parse()'d every embedded Python heredoc in both files — OK.Sourced
bench_regression.shstandalone and confirmedREGRESSION_TOLERANCE/BASELINE_REFdefaults resolve correctly.Did not run a full
reproduce.sh --no-regressionpass here (needs Docker + ~1-2h wall time per PR perf(capture): reject bounded writes before loading embeddings #492's own measured durations, ~1700-2050s per benchmark, doubled). This should be exercised by a maintainer with the isolated container before relying on it to gate a release.All existing tests pass. (no Python production code touched; nothing under
mcp_server/changed)New tests added for new behavior. (bash harness script, not covered by
pytest; verified via syntax/AST checks above)Manual verification of any UI / CLI / MCP-tool behavior changes. (CLI flag behavior traced by hand; not executed end-to-end — see caveat above)
Audit notes
mcp_server/code touched).--no-regressionrun against a live Docker daemon has not been executed in this session (no Docker available here). Flagging for a maintainer to run once before relying on it for a release decision.Coding-standards compliance
bench_regression.shis ~150 lines;reproduce.shis bash, not gated by the Python-only craftsmanship AST check).bench_container.shalready is.REGRESSION_TOLERANCEreusesFLOOR_TOLERANCE's own provenance (design §8,benchmarks/results/a3_longmemeval_post_refactor.md); the floor drift numbers are sourced to PR perf(capture): reject bounded writes before loading embeddings #492 and measured commit6ec76a0e.Breaking changes
None.
check_floorsbehavior changes from blocking to non-blocking (a relaxation, not a tightening);--no-regressionis strictly additive/opt-in.Reviewer checklist
[Unreleased].FLOOR_*pointer).reproduce.sh(it's a manual, Docker-requiring release gate); the standardlint/typecheck/testCI jobs should be unaffected since nomcp_server/code changed.🤖 Generated with Claude Code
https://claude.ai/code/session_01StMBvNd7eVJGtpnC2zNsx1
Generated by Claude Code