Skip to content

agent find: the struct_field eval scenario reports gap line 10 twice on main #14713

Closed

Description

@EffortlessSteven

What happens

On current main (d7d14e3), cargo xtask agent-eval reports the struct_field scenario's agent-format find output with the same gap line twice: reported_gap_lines: [10,10], gaps_header: 2, extra_gaps: 1. The scenario keys one gap at line 10. The checked-in benchmarks/agent_eval/baseline.json (generated at 84e04b2) still records [10] with gaps_header: 1, so this appeared between that commit and current main.

Evidence

Expected

One gap row per distinct gap line, as for the other scenarios, or two rows only when they name distinct seams an agent must act on separately. Worth checking which seam kinds the two rows carry before folding them.

Separate from #14701 (the struct_field reference test not closing the loop), which stays as it is.


Generated by Claude Code

Activity

  1. EffortlessSteven commented on Nov 14, 2026

    @EffortlessSteven
    MemberAuthor

    Claiming this: the thread that filed it (from #14708) will investigate which seam kinds the two line-10 rows carry and open a fix PR.


    Generated by Claude Code

  2. EffortlessSteven commented on Nov 15, 2026

    @EffortlessSteven
    MemberAuthor

    For the existing #14713 claimant: #14726 has the current reconciliation handoff. The #14706 closeout reports a passing focused changed-field case, but the subsequent whole-scenario replay still reports struct_field closure false with two line-10 rows. Please keep one investigation: identify each row by seam identity and compare the actual post-reference rows using the same pinned binary, route and fixture as the focused result. Keep the sibling-only assertion as the negative control. No baseline refresh or second repair branch is implied.

  3. EffortlessSteven commented on Nov 17, 2026

    @EffortlessSteven
    MemberAuthor

    Landed in #14949 (squash 3a14d2f on main).

    Cause. The two line-10 rows were two different seams over one changed initializer, verbose: flag == "-v" || flag == "--verbose",:

    • a field_construction row (probe:…:field_construction), whose missing value is the whole initializer;
    • a predicate row over flag == "-v" || flag == "--verbose".

    Both were weakly exposed with the same related test and the same stages. The only difference was the test's miss= wording (missing_exact_assertion vs observation_unconfirmed), which is why the #14338 identical-row fold left them apart.

    Fix. The agent renderer folds the predicate row into the field row only when all of these hold:

    • the field expression is exactly one <field>: <value> initializer and the predicate is <value>;
    • class, FILE:LINE, strongest test (file, line, name, oracle kind, oracle) and stages= all match;
    • the predicate names no missing value of its own;
    • every missing line the predicate carries is also on the field row, so predicate-only advice such as the boundary-input line keeps its row.

    The folded row counts under folded_gaps=. JSON and verify= still count both findings.

    Measured on the merged head (6e8f239). cargo xtask agent-eval reports struct_field reported_gap_lines [10] (was [10,10]), extra_gaps 0 (was 1), and 278 find tokens (was 370).

    Still open, and not addressed here. reference_test_closes_loop stays false. After the reference test (assert!(options_from_flag("--verbose").verbose); assert!(!options_from_flag("-q").verbose);), the rows look like this, from the same binary and fixture:

    • the field row becomes exposed;
    • the predicate row stays weakly_exposed, with its test eval_reference relational_check and missing=Check unconfirmed: no supported assertion that distinguishes the changed behavio….

    So the remaining row after the reference is the predicate seam, a classifier question about bool-field truthiness assertions. That stays with the #14726 / #14701 owners. Closing this issue for the duplicate-row acceptance.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions