Skip to content

Review tool: preserve finding bindings and require usable CI evidence - #842

Merged
jpsamaroo merged 7 commits into
masterfrom
jps/review-tool-followups
Nov 29, 2026
Merged

jpsamaroo merged 7 commits into
masterfrom
jps/review-tool-followups

Conversation

@jpsamaroo

Copy link
Copy Markdown
Member

What changed

  • Preserve hold and change bindings when multiline TOML examples contain apparent headers or binding fields. Previously deleting an entry could move a later hold to the wrong finding.
  • Require passing CI for the reviewed commit or coverage before the Tested category can pass.
  • Keep additional reviewer explanations in the Markdown brief and verbose text output.
  • Document separate Julia depots for base and head benchmark runs.

These are follow-ups to #835, tracked on the Dagger Rhizome board under ISSUE-14.

Verification

All 109 review tool tests passed under Python 3.11.15 and 3.14.6. The new binding tests reproduce the failures on the original revision.

Written by an AI agent on jpsamaroo's review feedback.

A line resembling a hold header or binding field can be part of a multiline answer. Counting it as syntax made the tag rewrite fall back to ordinal keys. Releasing one hold could then move another onto the wrong finding.

Check TOML boundaries before editing candidate lines. Regression tests cover hold identity across deletion and preservation of a binding field example.

Written by an AI agent on jpsamaroo's review feedback.
Pending, skipped and failing checks could satisfy the Tested evidence gate because a normalized check section was treated as a result. Require at least one passing check and reject results known to target another commit. Coverage remains valid evidence.

Written by an AI agent on jpsamaroo's review feedback.
Alternating base and head in one scratch depot can replace a revision’s package image and make the next run pay for compilation. Document separate depots and reuse through each revision’s warmup and samples.

Written by an AI agent on jpsamaroo's review feedback.
The brief printed the first three explanations and silently dropped the rest. Fold additional explanations in Markdown and make them available through the existing verbose text view.

Written by an AI agent on jpsamaroo's review feedback.
Review finding 1 on PR #842 (should-fix): First-time binding reparses each growing TOML prefix
Requested: Try the candidate-line edit with round-trip validation before reparsing TOML prefixes. Use prefix checks on retry if needed.

Require the full parsed document to match the intended tag-only edit before replacing answers.toml. A misleading line inside a multiline value still triggers the boundary-aware retry.

The ordinary binding regression test fails on the former head and passes with the patch. Both existing multiline regression tests pass. Median time to bind 250 new holds across seven runs falls from 3.98 s to 47 ms.

Written by an AI agent on jpsamaroo's review feedback.
Review finding 2 on PR #842 (nit): Quoted hold headers can still move a hold onto the wrong finding
Requested: Recognize standard quoted hold and change headers with the TOML parser and verify that removing an entry preserves the other finding bindings.

Identify a quoted standalone header with tomllib. Keep the existing candidate rewrite checks, so a quoted header example in a multiline value cannot disturb the finding tags.

The new hold and change cases both fail on the former head and pass with the patch. The complete 111-test review suite passes on Python 3.11.15 and 3.14.6.

Written by an AI agent on jpsamaroo's review feedback.
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Dagger benchmarks: dirty vs master

Counts are benchmark metrics (time, allocations, bytes). Timing changes require non-overlapping median ± IQR bands; both revisions need at least five timed samples, and timing regressions need an independent confirmation run.

Backend Regressions Improvements Within noise Inconclusive time Suites
Threads 0 1 8 6 4/4
Distributed 2 0 1 0 4/4
Distributed+Threads 0 1 1 2 4/4
MPI 0 0 3 1 4/4
MPI+Threads 1 5 17 1 4/4
Total 3 7 30 10 20/20

Regressions across all backends

Backend Benchmark Metric Change
Distributed sparse/dagger/N=256 (block 16)/cg solve (laplacian) memory +44.8%
MPI+Threads linalg/dagger/N=1024 (block 128)/matmul (A*A) time +35.2%
Distributed sparse/dagger/N=256 (block 16)/cg solve (laplacian) allocs +35.0%

Improvements across all backends

Backend Benchmark Metric Change
MPI+Threads array/dagger/N=256 (block 128)/map (sin.(X)) time -74.3%
MPI+Threads linalg/dagger/N=1024 (block 512)/solve (A\b via lu) time -57.0%
MPI+Threads array/dagger/N=1024 (block 512)/add (X + X) time -51.4%
MPI+Threads linalg/dagger/N=1024 (block 512)/qr time -43.7%
Distributed+Threads array/dagger/N=1024 (block 512)/broadcast (X .+ 1) time -43.6%
MPI+Threads stencil/dagger/N=256 (block 128)/neighbors (Pad) time -42.9%
Threads array/dagger/N=256 (block 128)/map (sin.(X)) time -26.5%
Threads (1 process × 4 threads) — 0 regressions, 1 improvements
Suite Regressions Improvements Within noise Inconclusive time
array 0 1 4 2
linalg 0 0 4 1
sparse 0 0 0 0
stencil 0 0 0 3

Improvements

Benchmark Metric Change
array/dagger/N=256 (block 128)/map (sin.(X)) time -26.5%

Within noise

Benchmark Metric Change
array/dagger/N=1024 (block 512)/reduce (sum) time +247.9%
array/dagger/N=256 (block 128)/add (X + X) time +152.1%
linalg/dagger/N=256 (block 256)/matvec (A*x) time +63.6%
array/dagger/N=256 (block 128)/norm time +44.8%
linalg/dagger/N=256 (block 128)/lu time +26.6%
array/dagger/N=1024 (block 128)/alloc (rand) time -26.6%
linalg/dagger/N=256 (block 256)/syrk (A'*A) time -28.2%
linalg/dagger/N=256 (block 128)/syrk (A'*A) time -39.4%

Inconclusive timing changes

Benchmark Metric Change
stencil/dagger/N=256 (block 256)/alloc (neighbors Wrap) time +212.0%
linalg/dagger/N=1024 (block 512)/matvec (A*x) time +196.0%
array/dagger/N=1024 (block 512)/map (sin.(X)) time +37.1%
array/dagger/N=256 (block 256)/broadcast (X .+ 1) time +31.2%
stencil/dagger/N=1024 (block 128)/alloc (neighbors Wrap) time +30.2%
stencil/dagger/N=1024 (block 128)/neighbors (Reflect) time +27.0%
Distributed (4 processes × 1 thread) — 2 regressions, 0 improvements
Suite Regressions Improvements Within noise Inconclusive time
array 0 0 0 0
linalg 0 0 1 0
sparse 2 0 0 0
stencil 0 0 0 0

Regressions

Benchmark Metric Change
sparse/dagger/N=256 (block 16)/cg solve (laplacian) memory +44.8%
sparse/dagger/N=256 (block 16)/cg solve (laplacian) allocs +35.0%

Within noise

Benchmark Metric Change
linalg/dagger/N=1024 (block 128)/syrk (A'*A) time -51.8%
Distributed+Threads (2 processes × 2 threads) — 0 regressions, 1 improvements
Suite Regressions Improvements Within noise Inconclusive time
array 0 1 0 1
linalg 0 0 0 0
sparse 0 0 0 0
stencil 0 0 1 1

Improvements

Benchmark Metric Change
array/dagger/N=1024 (block 512)/broadcast (X .+ 1) time -43.6%

Within noise

Benchmark Metric Change
stencil/dagger/N=1024 (block 512)/neighbors (Clamp) time +37.4%

Inconclusive timing changes

Benchmark Metric Change
stencil/dagger/N=1024 (block 512)/neighbors (Pad) time +72.3%
array/dagger/N=256 (block 256)/broadcast (X .+ 1) time +51.4%
MPI (4 ranks × 1 thread) — 0 regressions, 0 improvements
Suite Regressions Improvements Within noise Inconclusive time
array 0 0 3 0
linalg 0 0 0 0
sparse 0 0 0 0
stencil 0 0 0 1

Within noise

Benchmark Metric Change
array/dagger/N=256 (block 128)/add (X + X) time +115.6%
array/dagger/N=1024 (block 512)/transpose (permutedims) time +79.7%
array/dagger/N=1024 (block 512)/reduce (sum) time -60.2%

Inconclusive timing changes

Benchmark Metric Change
stencil/dagger/N=1024 (block 128)/neighbors (Clamp) time +41.8%
MPI+Threads (2 ranks × 2 threads) — 1 regressions, 5 improvements
Suite Regressions Improvements Within noise Inconclusive time
array 0 2 9 1
linalg 1 2 6 0
sparse 0 0 1 0
stencil 0 1 1 0

Regressions

Benchmark Metric Change
linalg/dagger/N=1024 (block 128)/matmul (A*A) time +35.2%

Improvements

Benchmark Metric Change
array/dagger/N=256 (block 128)/map (sin.(X)) time -74.3%
linalg/dagger/N=1024 (block 512)/solve (A\b via lu) time -57.0%
array/dagger/N=1024 (block 512)/add (X + X) time -51.4%
linalg/dagger/N=1024 (block 512)/qr time -43.7%
stencil/dagger/N=256 (block 128)/neighbors (Pad) time -42.9%

Within noise

Benchmark Metric Change
array/dagger/N=256 (block 256)/broadcast (X .+ 1) time +142.5%
array/dagger/N=1024 (block 128)/broadcast (X .+ 1) time +98.6%
array/dagger/N=256 (block 128)/broadcast (X .+ 1) time +82.4%
array/dagger/N=1024 (block 128)/map (sin.(X)) time +61.7%
linalg/dagger/N=256 (block 256)/solve (A\b via lu) time +45.9%
linalg/dagger/N=1024 (block 128)/matvec (A*x) time +40.4%
array/dagger/N=256 (block 128)/add (X + X) time +39.5%
sparse/dagger/N=256 (block 16)/spmv (S*x) time +38.2%
array/dagger/N=256 (block 256)/transpose (permutedims) time +38.0%
linalg/dagger/N=1024 (block 512)/syrk (A'*A) time +35.7%
linalg/dagger/N=256 (block 256)/cholesky time -36.7%
linalg/dagger/N=256 (block 256)/matmul (A*A) time -38.1%
array/dagger/N=256 (block 256)/map (sin.(X)) time -40.2%
stencil/dagger/N=256 (block 128)/neighbors (Reflect) time -43.3%
array/dagger/N=1024 (block 512)/reduce (sum) time -66.2%
array/dagger/N=256 (block 128)/reduce (sum) time -74.4%
linalg/dagger/N=1024 (block 512)/matvec (A*x) time -83.2%

Inconclusive timing changes

Benchmark Metric Change
array/dagger/N=256 (block 128)/transpose (permutedims) time +233.8%

Full results and plots (download the benchmark-results-* artifacts).

@jpsamaroo
jpsamaroo merged commit bedaf8b into master Nov 29, 2026
50 of 56 checks passed
@jpsamaroo
jpsamaroo deleted the jps/review-tool-followups branch November 29, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant