Repository navigation
bench: the §5 gate instrument — production accessor in two builds, verdict table as a tool (D-LGJ-MMV-1a-bench) - #64
Conversation
…d the verdict table as a tool D-LGJ-MMV-1a-bench. Component H measured a bare lgj_lane_describe crossing and is void as a gate: its arms bypass RowStore.classidAt. Component I times the PRODUCTION accessor, and which arm it is comes from the build, not a flag: - java/.../LaneProbe.java: a package-private no-op seam RowStore.lane() calls on every cached read. Ships as a no-op; an empty static call inlines to nothing. - bench/variants/probed/LaneProbe.java: the per-access liveness probe (re-describe + epoch/length compare, the Mask.words() shape from #53). NOT on the production classpath. - bench/gate-run.sh: compiles java/src/main twice — as shipped, and with that ONE file swapped — and runs I_ProductionAccessorGate against each. §5.5's build-time variant swap and ISS-LGJ-BENCH-GATE-PRECEDES-ITS-SUBJECT's two-build consequence, taken literally. Refuses to run if the variant equals the shipped file. - bench/gate.py: the §5 verdict table and nothing else. delta/hw_delta/ex-ante power/PASS-FAIL-UNDERPOWERED/label/ratio-flag. --selftest pins the plan's own worked examples, including the three struck verdict rules. Refuses N <= 0, a CSV under 5x8 samples (quick smoke runs can never be evidence), and a missing amendment sha. - Harness: -Dlgj.bench.result for per-arm CSVs; LGJ_BENCH_QUICK=1 for smoke runs. Smoke-verified the swap takes (quick mode, refused by gate.py by design): before ~11 ns/call, after ~41 ns/call, consistent with H's +35.5 ns crossing. Not banked, not evidence. The gate has NOT run. No amendment names N; §5.2 requires that commit to precede both runs. Board: STATUS_BOARD rows for -bench/-rowstore, ISSUES append on the two-build entry, #63 merge sha recorded. Java suite 360/360 with the seam in. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv
|
Warning Review limit reachedNext included review available in 39 minutes. View limit detailsLimit details: You’ve used the included review currently available. Your 81 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (12)
Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_7cc25f17-7658-45fc-abea-74bcde8a7538) |
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 55b7648550
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .forks(quick ? 1 : -1) | ||
| .warmupIterations(quick ? 1 : -1) | ||
| .measurementIterations(quick ? 2 : -1) |
There was a problem hiding this comment.
Apply JMH overrides only in quick mode
When LGJ_BENCH_QUICK is unset—the documented full/evidence run—these calls pass -1 to OptionsBuilder. JMH's programmatic setters reject negative fork and iteration counts rather than treating them as “inherit the annotations,” so Harness throws while constructing the options and never reaches Runner; this also breaks ordinary bench/run.sh runs. Build the base options normally and invoke these three setters only when quick mode is enabled.
Useful? React with 👍 / 👎.
| if not re.fullmatch(r"[0-9a-f]{7,40}", a.amendment): | ||
| ap.error("--amendment must be a commit sha") |
There was a problem hiding this comment.
Bind the amendment to the run before collecting results
The advertised pre-registration safeguard only checks that the argument looks like hexadecimal text. A typo, a nonexistent commit, an unrelated commit, or an amendment created after inspecting the CSVs is accepted and printed alongside a PASS because gate-run.sh never records the amendment/N before starting and gate.py verifies neither the commit nor its relationship to the run. Consequently the tool can bless exactly the post-hoc threshold that §5 declares void; require the amendment at run time, record it with both arms, and verify that binding during verdict calculation.
Useful? React with 👍 / 👎.
…non-quick path fixed Results commit citing Amendment A1 (43a08d1, which precedes this commit): before 8.645 ± 0.284 ns/call (5 forks x 8 iterations, 65,536 rows) after 61.405 ± 1.464 ns/call delta +52.760 ± 1.492 hw_delta 1.49 < N/2 = 20: powered VERDICT FAIL: delta - hw = 51.27 >= 40. Ratio 7.10 flagged (blocks nothing). Banked: gate-before.csv, gate-after.csv, gate-run.txt, gate-verdict.txt. Also fixes Harness: the quick-mode change in #64 passed -1 to JMH's forks/warmup/measurement setters as "use the annotation"; JMH rejects a negative count, so every NON-quick run died at startup, run.sh included. The quick smoke never walked that path. Setters are now only called in quick mode. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv
…idue kept open, #64 sha + its shipped defect recorded Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv
What
D-LGJ-MMV-1a-bench, the hard prerequisite of the RowStore half ofISS-LGJ-EPOCH-UNCHECKED. Component H is void as the §5 gate (Codex P1, #55): both its arms callEngine.describeLanedirectly and bypassRowStore.classidAt. Component I times the production accessor, and which arm it is comes from the build, not a flag.The seam (production code, one file)
java/.../LaneProbe.java— a package-private no-op thatRowStore.lane()now calls on every cached read. An empty static call inlines to nothing; there is no branch and no flag, so nothing is hoistable (§5.5). Ships as a no-op:RowStore's cached lanes stay guarded only byclosed, andISS-LGJ-EPOCH-UNCHECKEDstays OPEN for RowStore.bench/variants/probed/LaneProbe.java— the same class with the per-access probe (re-describe + epoch/length compare, theMask.words()shape from #53). Not on the production classpath. If the gate ever passes, the swap intojava/src/mainis one file copy.The runner and the instrument
bench/gate-run.shcompilesjava/src/maintwice, as shipped and with that single file swapped, and runsI_ProductionAccessorGateagainst each. That isISS-LGJ-BENCH-GATE-PRECEDES-ITS-SUBJECT's two-build consequence taken literally, with the same JDK /.so/ machine pinned by the script's own structure. It refuses to run if the variant equals the shipped file.I_ProductionAccessorGate: one@Benchmark,store.classidAt(row, facet), Blackhole,@Fork(5), 65,536 rows,CALLS_PER_OP = 1. Emits one CSV; decides nothing.The verdict function
bench/gate.pyis the §5 table and nothing else:delta_ns,hw_delta = sqrt(hw_a² + hw_b²), ex-ante powerhw_delta < N/2, PASS / FAIL / UNDERPOWERED from the delta interval, the "below resolution" label when the interval contains 0, the 2× ratio as a non-blocking flag.--selftestpins the plan's own worked examples including the three struck verdict rules (10/10). It refusesN ≤ 0, refuses any CSV under 5×8 samples (soLGJ_BENCH_QUICK=1smoke runs can never be mistaken for evidence), and requires the amendment sha — a run whoseNwas chosen after the numbers is not pre-registered and the tool will not bless it.What was verified
gate.py --selftest10/10. Two pins fired on first write and both were my case data, not the function: the −20 example sits exactly athw = N/2for N=10 (strict, correctly refused), and the label attaches to an interval containing 0 even when underpowered.gate.pyrefused the CSVs (2 samples < 40) as designed. Not banked, not evidence.What has NOT happened
The gate has not run. No amendment names
N, and §5.2 requires that commit to precede both runs.Nis a cost budget, an operator number, not something a measurement produces. The board says so: the sole remaining blocker onD-LGJ-MMV-1a-rowstoreis the amendment.Board
STATUS_BOARDrows for-bench(In PR) and-rowstore(blocker narrowed to the amendment);ISSUES.mddated append on the two-build entry;PR_ARC_INVENTORYrecords #63's merge shaf1c8aef. Arc entry for this PR follows once it has a number.🤖 Generated with Claude Code
https://claude.ai/code/session_01DCfrD5y19cvFc4AoyydXYv
Generated by Claude Code