Repository navigation
foranswerfirst: a small subject --callers answer goes ahead of <tail> - #739
Conversation
A `callers of X` task gets the FOR-ROUTE-DECLINED <graph_verb endpoints="subject" verb="--callers=X"> block appended after its ranked answer. resolvedRouted() only calls a graph_verb resolved on <path reachable="1"> or <met_bridge>, so a callers block stayed behind </tail>; when the tail overflows the page stop, G cannot move it either. On ld-cockroach-08 the 6-row (4 callers + 2 tests), 1,187 B answer sat on page 3 at byte 25,320. rowBlockOrder now moves a subject --callers graph_verb whose <callers> has defs="1" and count <= kCallersPromoteMaxCount (8) directly ahead of <tail>. It is still a permutation (same bytes, answerFirst's size contract unchanged). Two or more definitions, a count over the cap, and every other verb stay where they were. Measured offline (l1 harness, S1/MF1/LD/NL1 with grader G2, GA1 DEV census): the shape occurs on one row (ld-cockroach-08; the other subject callers block, ld-envoy-08, has defs="2"). That row goes p1 ✗ -> ✓ (R1-R4), no row loses an item, ΔĈ < 0 in both cost profiles. Every cap from 6 to 1000 selects the same row. Gate: test/foranswerfirstcheck.sh (CP0/CPn/CP1/CP2n/CP2). CP1 is red on main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…ER bound, nothing dropped) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Commit after the last review, CI fix only:
@coderabbitai review |
Action performed
|
What
A
--fortask spelledcallers of Xgets the subject--callersanswer appended as<graph_verb endpoints="subject" verb="--callers=X">.resolvedRouted()only treats a graph_verb as resolved when it has<path reachable="1">or<met_bridge>, so a callers block stayed behind</tail>. Once the tail runs past the page stop, guarded promotion (G) cannot move it either.This change moves that block directly ahead of
<tail>when its<callers>child hasdefs="1"andcount≤kCallersPromoteMaxCount(8). It is still a permutation: the same bytes are reordered, andanswerFirst's size contract is unchanged. A block with two or more definitions, a count over the cap, or any other verb stays where it was.Evidence
defs="2"and does not move.Gates
test/foranswerfirstcheck.shadds these arms:</tail>in the legacy order.<tail>.--quality-delta: gating 0.🤖 Generated with Claude Code
Summary by CodeRabbit