Repository navigation
docs(ops)+test(benchmarks): pin and clarify 200k A/B 0.574x figure (Pro slower) - #231
Merged
Merged
Conversation
Read-only regression guard for tests/benchmarks/official_benchmark_200k.json that pins direction and findings parity for the 2026-04-25 lab session: - benchmark shape provenance (rows=200000, workers=8, official_pro_v1) - Pro path is slower than OpenCore in this profile (pro_seconds > opencore_seconds) - recorded speedup_vs_opencore matches opencore_seconds / pro_seconds - detection parity: opencore_hits == pro_hits (defensive coverage first) The guard parses JSON only, no SQLite, no scan side-effect; safe for hosts running active scans. Surfaces drift between the artifact and prose if a future profile flips direction. Co-authored-by: Fabio Tavares Leitão <[email protected]>
Operator handoff phrased the result as 'Pro is 0.574x mais lento que o OpenCore'. The artifact tests/benchmarks/official_benchmark_200k.json records speedup_vs_opencore = 0.574 (= t_open / t_pro), so Pro takes roughly 1 / 0.574 ~= 1.74x the OpenCore wall-clock. Both phrasings agree on direction (Pro slower); only the inverse trap risks flipping the sign in executive copy. Changes (no measurement change): - LAB_LESSONS_LEARNED.md: reading-guide callout + link to regression test - SPRINT_GREAT_LEAP_POSTMORTEM.md (+ pt-BR): direction-vs-ratio note - lab_lessons_learned/LAB_LESSONS_LEARNED_2026_04_27.md: dated erratum snapshot per the archive contract; the 2026-04-25 frozen file stays unchanged Co-authored-by: Fabio Tavares Leitão <[email protected]>
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.
Description
Operator handoff (Slack) flagged that the 200k A/B benchmark confirms the Pro profile is
0.574x mais lentothan OpenCore and asked the agent to consider that when refining manifests. This PR is the evidence + reading-guide echo for that handoff: it adds a regression guard that pins the recorded JSON, and it clarifies in the lab-lessons hub + sprint post-mortem how to read the figure so executive copy and manifests cannot accidentally flip the sign.No measurement is rerun. The artifact
tests/benchmarks/official_benchmark_200k.jsonis unchanged from the 2026-04-25 lab session (opencore_seconds=0.252242,pro_seconds=0.439419,speedup_vs_opencore=0.574,opencore_hits == pro_hits == 100000).The math, plainly (Julia Evans-style)
speedup_vs_opencore = OpenCore_time / Pro_time = 0.574.1 / 0.574 ≈ 1.74×the OpenCore wall-clock.Why this matters for the project
docs/ops/SPRINT_GREAT_LEAP_POSTMORTEM.mdalready separates verified vs aspirational numbers. Without a machine-readable echo, future executive material could quote~15xfor Pro+ (the aspirational row) while the only artifact in-tree shows the opposite direction. The guard added here is the seatbelt.Defensive Architecture posture
tests/test_official_benchmark_200k_evidence.py) only parses a JSON file. No SQLite connection, no scan, no shared lock — safe to run while a host is doing real audit work.opencore_hits == pro_hitsbefore any performance ratio. If the Pro path ever drops findings, that fails loudly even if it becomes faster.pro_seconds > opencore_secondsandspeedup < 1.0(rather than pinning exact times) so a future reproducible profile that flips the result fails intentionally, prompting the operator to update prose + JSON together.Resilience / fallback posture
tests/benchmarks/run_official_bench.pyso the operator decides whether to rerun or restore fromgit.recorded ≈ opencore_seconds / pro_seconds) catches hand-edits that drift the JSON away from its own numbers.Lab-lessons archive contract
Per the situational rule (
.cursor/rules/lab-lessons-learned-archive.mdc) and ADR 0042, the 2026-04-25 dated snapshot is not rewritten. A new dated filedocs/ops/lab_lessons_learned/LAB_LESSONS_LEARNED_2026_04_27.mdis added as an erratum / reading-guide; the hub gains a row pointing at it; the post-mortem (EN + pt-BR) gains a "direction vs ratio" note.Type of change
Files
tests/test_official_benchmark_200k_evidence.pydocs/ops/LAB_LESSONS_LEARNED.mddocs/ops/SPRINT_GREAT_LEAP_POSTMORTEM.mddocs/ops/SPRINT_GREAT_LEAP_POSTMORTEM.pt_BR.mddocs/ops/lab_lessons_learned/LAB_LESSONS_LEARNED_2026_04_27.mdChecklist
uv run pytest tests/test_official_benchmark_200k_evidence.py tests/test_docs_pt_br_locale.py tests/test_docs_external_no_plan_links.py tests/test_docs_markdown.py— 165 tests passing).uv run ruff check tests/test_official_benchmark_200k_evidence.py;ruff format --check).Related
docs/ops/lab_lessons_learned/LAB_LESSONS_LEARNED_2026_04_25.md.docs/ops/SPRINT_GREAT_LEAP_POSTMORTEM.md..cursor/rules/lab-lessons-learned-archive.mdc.Inspired in form (clear repro, direction stated, defensive checks first, fallback note) by community bug-fix issues such as
linuxmint/live-installer#177and#178.