Repository navigation
tooling(perf): reusable phase A/B harness + perf-ab skill - #3178
Merged
Merged
Conversation
Codify the ad-hoc worktree-A/B loop used to land #3069/#3072/#3173 into a committed tool, and capture the honest-measurement playbook as a skill so it stops living in scattered memories. tests/tools/phase_ab.py: runs galaxyscope over one repo with N alternating rounds across two-or-more engine checkouts (PYTHONPATH), reports each --file-speed --splicing-speed macro-phase total per engine with the delta vs baseline, plus an optional A-vs-A control (--control) for the noise floor and an artifact-identity diff on the deterministic surface (audit.json minus the nested volatile timestamp/duration keys, and sarif.json). Drives the engine by importing gitgalaxy.galaxyscope.main() and prints gitgalaxy.__file__ so the running engine is unambiguous. Validated: A-vs-A on curl shows a <1% noise floor and IDENTICAL artifacts. .claude/skills/perf-ab/SKILL.md: the setup env, the three anti-self-deception rules (alternate rounds, A-vs-A control, don't scale micro-benches), the deterministic-surface + one-sided-gate proof requirements, and the report-without-overclaiming guidance (incl. the node/vscode-source-gone caveat). Co-Authored-By: Claude Opus 4.8 <[email protected]>
This was referenced Sep 18, 2026
Closed
Contributor
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.
Codifies the ad-hoc worktree-A/B loop used to land #3069/#3072/#3173 into a
committed tool, and captures the honest-measurement playbook as a skill — so the
remaining perf tickets (#3171, #3174, #3175) don't re-derive it each time.
tests/tools/phase_ab.pyRuns
galaxyscopeover one repo with N alternating rounds across two-or-moreengine checkouts (each on
PYTHONPATH), and reports each--file-speed --splicing-speedmacro-phase total per engine with the delta vs baseline.--controlre-runs the baseline under a second label → the A-vs-A noisefloor you must clear before believing any delta.
audit.json(minus thenested volatile
Analysis ISO Timestamp/Total Scan Durationkeys) andsarif.json. An output-preserving change must printIDENTICAL.gitgalaxy.galaxyscope.main()(never the consolescript) and prints
gitgalaxy.__file__so the running engine is unambiguous.Validated: A-vs-A on curl shows a <1% noise floor and IDENTICAL artifacts.
.claude/skills/perf-ab/SKILL.mdThe setup env (license key, sandbox-off, PYTHONPATH engine, worktree vars), the
three anti-self-deception rules (alternate rounds, A-vs-A control, don't scale
single-segment micro-benches), the deterministic-surface + one-sided-gate proof
requirements, and report-without-overclaiming guidance — including that the
node/vscode source trees are no longer on the box (use
all_language_repo/curl/temporal-crucible-pool).Ruff clean; audit baseline unchanged (the one
subprocesscall is# noqa: S603with a reason — trusted internal args only).
🤖 Generated with Claude Code