Skip to content

render-pipeline: list_style_nextline reads the index, not the source (unbreaks main) - #638

Merged
GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/nextline-uses-index
Sep 15, 2026
Merged

GoKubar merged 1 commit into
mainfrom
agent/kabir-claude/nextline-uses-index

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

main does not compile

error[E0425]: cannot find value `src` in this scope
  --> crates/render-pipeline/src/adapter.rs:2788:51
error: could not compile `flashtex-render-pipeline` (lib)

A semantic conflict that git merged cleanly. #624 added list_style_nextline(src, env, begin_keys). #623 then made adapt linear, replacing the per-block source rescans with a SourceIndex and removing src from that scope. Neither PR touched the other's lines, so the textual merge was conflict-free — and the combination is broken. Each was green on its own branch.

The fix, and why not the obvious one

Threading src back in would compile. It would also quietly undo #623 at this call site: setlist_calls walks the entire document, and list_style_nextline runs once per list — exactly the quadratic shape that made a 450-section warm edit take 16 s.

So it now takes &index.setlist, the calls the index has already computed, matching its siblings:

list_margins(index, at.start, size, natbib_bib)
list_seps_from(&index.setlist, env, depth, size, style, begin_keys)
list_style_nextline(&index.setlist, env, begin_keys)   // this PR

Verified

All render-pipeline test targets compile; 420 passed, 0 failed.

Note for the gate

This is the second main breakage today that a test result: summary could not see (the first was #636, a non-compiling test target). Both were caught only by running cargo test --no-run as a separate step. That check is now in my integration gate and in every rebase agent's instructions — a compile failure produces no test line at all, so summing test lines reports green over a broken tree.

Implementation-Agent: orchestrator-astra
Commit-Executor: orchestrator-astra (direct; Cursor usage limit)

…(unbreaks main)

#624 added `list_style_nextline(src, env, begin_keys)`. #623 then made `adapt`
linear, replacing the per-block source rescans with a `SourceIndex` and removing
`src` from that scope. Git merged the two cleanly -- neither touched the other's
lines -- and the result does not compile:

  error[E0425]: cannot find value `src` in this scope
    --> src/adapter.rs:2788:51

Passing the source back in would compile, but it would also undo #623 here:
`setlist_calls` walks the whole document and this runs once per list, which is
precisely the quadratic shape that made a 450-section warm edit take 16 s. So it
takes `&index.setlist` -- the calls the index already precomputed -- matching its
siblings `list_margins(index, ...)` and `list_seps_from(&index.setlist, ...)`.

render-pipeline: all test targets compile, 420 passed, 0 failed.

Implementation-Agent: orchestrator-astra
Commit-Executor: orchestrator-astra (direct; Cursor usage limit)
@GoKubar
GoKubar merged commit 889276b into main Sep 15, 2026
10 of 21 checks passed
GoKubar added a commit that referenced this pull request Sep 15, 2026
…/expansion-token-limit-parity

Clean merge, no conflicts: picks up main's fix for the #624/#623
list_style_nextline compile breakage.

Implementation-Agent: fable-rebase-d
Commit-Executor: fable-rebase-d (direct; Cursor usage limit)
GoKubar added a commit that referenced this pull request Sep 15, 2026
Clean merge, no conflicts; picks up main's #638 compile fix for the
#623/#624 render-pipeline clash.

Implementation-Agent: fable-rebase-c
Commit-Executor: fable-rebase-c (direct; Cursor usage limit)
GoKubar added a commit that referenced this pull request Sep 15, 2026
Clean re-merge picking up the #638 render-pipeline list_style_nextline
fix; no conflicts, supported-latex inventory unchanged and in sync.

Implementation-Agent: fable-rebase-b
Commit-Executor: fable-rebase-b (direct; Cursor usage limit)
GoKubar added a commit that referenced this pull request Sep 15, 2026
Main's #638 rewrote list_style_nextline to read the memoised index, making
the src binding this branch restored (to unbreak d7b7f9f) unused; dropped
it so the merged tree carries no dead binding. Supported-latex artefacts
regenerated, sync --check clean.

Implementation-Agent: fable-rebase-a
Commit-Executor: fable-rebase-a (direct; Cursor usage limit)
@GoKubar
GoKubar deleted the agent/kabir-claude/nextline-uses-index branch September 16, 2026 04:17
GoKubar added a commit that referenced this pull request Sep 16, 2026
…unbreaks main) (#693)

`tests/label_page_seed.rs:36` constructs `Wire { images, device_color }`, but
`Wire` grew a third field:

    error[E0063]: missing field `diagnostics` in initializer of `Wire`

A combination break, not either change being wrong. #652 (label-page seeding)
added this test against a two-field `Wire`; #358 added `Wire.diagnostics` and
landed separately inside integration PR #658. Each was green on its own branch
and neither CI run saw the other.

This is the same failure mode as #664 and #638: a Rust test target that fails to
compile emits no `test result:` line, so summing those lines reads the crate as
green while 482 tests never run. Caught by running `cargo test --no-run` as a
separate first step before trusting any pass count -- worth keeping in the
release checklist, since this was found while verifying main for the 0.1.6 tag.

Verified in `--release` (per #667, debug is not a valid oracle for this crate):
render-pipeline 482 passed, 0 failed, with `--no-run` clean first.

Implementation-Agent: Claude Opus 5 (orchestrator-astra, linux-primary)
Commit-Executor: Claude Opus 5 via Claude Code

Co-authored-by: Claude Opus 5 <[email protected]>
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