Skip to content

main is red: #231 added LlmResult.usage but tool_validation_tests.rs initializers were not updated (3× E0063) #233

Closed

Description

@acoliver

What

origin/main at 32caee82 (and the two CI runs after it) fails to compile the lib test target with 3× E0063. CI on main is red: runs 34158726515 (20:15Z) and 34158245747 (20:08Z) both conclude failure; the last green main run was 18:41Z, before this commit cluster landed.

error[E0063]: missing field `usage` in initializer of `adapter::LlmResult`
  --> src/agent/tool_validation_tests.rs:63:19
  --> src/agent/tool_validation_tests.rs:72:16
  --> src/agent/tool_validation_tests.rs:81:16
error: could not compile `llxprt-code-rs` (lib test) due to 3 previous errors

Why

78f44bc3 (#231, "Carry usage counters through LlmResult") added the required usage: LlmUsage field to adapter::LlmResult and updated src/agent/tests.rs, but src/agent/tool_validation_tests.rs still constructs LlmResult { text, calls, finish_reason } without usage. That file was extended the same cluster by 35341e51 (#221/#225), so the two owner commits collided on the same module without a compile of the lib test target in between.

Repro on a clean checkout of 32caee82:

cargo +1.88 check --workspace --all-targets

Scope note

Downstream integration work (issue #66 lane) reproduced this independently; the three error sites are byte-identical to origin/main (no local diff touches that file), so this is an upstream defect, not integration fallout. Not fixing it here to avoid a duplicate owner-lane patch.

Activity

  1. acoliver commented on Sep 7, 2026

    @acoliver
    ContributorAuthor

    Disposition update (resolution evidence, not a standalone patch): the usage initializers in src/agent/tool_validation_tests.rs are fixed on origin/main by the #64/#224 + #76/#227 cluster (now at 66e51049).

    Independent verification from the #66 integration branch (issue66-live-tool-evidence-integrated at 2566994a, which merges 66e51049):

    • git diff origin/main -- src/agent/tool_validation_tests.rs is empty (byte-identical, no local patch).
    • Full 42-command local CI-equivalent matrix at that commit: cargo +1.88 check --workspace --all-targets rc 0 and cargo +1.88 clippy --workspace --all-targets --all-features -- -D warnings rc 0 — the lib unit-test target compiles clean again.

    Nothing was changed locally to fix this file; the fix arrived via the owner's own merges.

  2. acoliver commented on Sep 9, 2026

    @acoliver
    ContributorAuthor

    Ownership linkage, no separate lane dispatched: the affected file src/agent/tool_validation_tests.rs is owned by open PR #245 (tool-validation lane, files include src/agent/tool_validation.rs and src/agent/tool_validation_tests.rs). The E0063 initializer updates belong in that PR's next exact-head validation before merge rather than a parallel patch. This coordinator will not touch that path while #245 is open.

  3. acoliver commented on Oct 11, 2026

    @acoliver
    ContributorAuthor

    This is resolved on main. The LlmResult initializers in src/agent/tool_validation_tests.rs now set usage: LlmUsage::default() (for example lines 25, 37, 45, 75 and 86 at a69e3a20), and CI on main at a69e3a20 passed. Closing.

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