Skip to content

Decide whether Built with names the route that ran the implement session when Plan usage reroutes #2201

Open

Description

@JacobStephens2

What the finding is

When Plan usage routes a factory Command's session Steps away from its first configured route ([harness] routes), the pull request's and Run notification's Built with line still names the Command's first route, not the route that ran the implement session.

For example, with routes = ["claude", "codex"] and Claude at its max_utilization ceiling, every Step runs on Codex, but the PR says Built with claude …. Scoring reads Built with as the Harness, Model and Effort that built the change, so it would credit Claude.

Evidence

Why the call is not the implementing session's

Which tuple Scoring credits is a product decision that ADR 0021/0031 and the grill answer differently. The Built with line is written before and after Repairs from the Command's choice in several places (src/main.rs, src/delivery.rs, src/notification.rs). Changing it would also change Scoring's historical attribution semantics. #2200 keeps the ADR's behaviour; the Spec or the Day shift should decide whether Built with should name the route that ran the implement session.

Activity

  1. added
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 14, 2026
  2. JacobStephens2 commented on Nov 14, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    The attribution decision remains unresolved. The selected Base is commit 12da417. It writes the Command's configured Harness/Model/Effort into Built with: src/main.rs:540 supplies asks.harness to the notification; src/delivery.rs:731 and :1376 supply child_asks.harness when publishing and refreshing the PR, including after Repairs. src/notification.rs:236 explicitly describes this as configured attribution, and notifications append '(configured)'.

    ADR 0021 explicitly retains the Command's Harness. ADR 0031 preserves that single primary tuple. However, the accepted Q2.9(a) in docs/grill-with-docs/583-available-usage-routing.md:191 and Spec #583 refer to the primary implementation session, with a resolved-first-route exception whose meaning needs clarification. Ticket #2183 requires a single parseable primary tuple without resolving which choice it represents.

    The consequences extend beyond displayed credit. src/scoring/sample.rs:39 reads Harness, Model and Effort directly from the PR's Built with line, then groups samples by Harness/Model. src/scoring/grader.rs:77 uses that Model to choose an independent Grader. Therefore, if the tuple differs from the implementing Model, Grader selection also follows the configured Model; it could select the Model that actually implemented the change. This is a code-derived consequence, not an observed production incident.

    Existing coverage supports the current contract: tests/security_review.rs:1402 retains the Command's Built with while recording another Harness for Security review; tests/scoring.rs:769 checks factory-written attribution flowing into Scoring. These tests were inspected, not executed.

    Day shift decision

    Choose and document whether Built with represents the Command's configured primary choice or an implementation session's actual route. Changing to actual-route attribution would reopen ADR 0021 and clarify ADR 0031. Keeping configured attribution requires reconciling the grill and Spec wording and deciding whether Scoring should independently consult implementation evidence for Grader independence.

    If actual-route attribution is chosen, define which session wins when implementation reroutes after preserving commits, when Repairs use another route, and when a later Command continues existing work. Also decide whether historical attribution remains unchanged or is migrated. Preserve the single parseable format unless an explicit compatibility change is approved.

    After this decision, shape a follow-up covering consistent PR/notification attribution, Scoring behavior, documentation and regressions for proactive routing, mid-Step fallback, Repairs and Continuations. Coordinate with #2183/#2200; this issue addresses their unresolved attribution policy rather than duplicating their routing implementation.

  3. added
    enhancement
    ready-for-human
    and removed
    in-progress
    on Nov 14, 2026
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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions