← Back to Pull requests

fix(launch): read the task's run settings once per assignment start (#4305) #4351

Open
unknown opened this pull request with 158 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 17, 2026 15:00 UTC
Author

Closes #4305. Follow-up to #4303 (#4302 BLIND P3s).

What changes


  • launchForAssignment already reads the task's counted settings (launchTaskSettings) for the host choice. startSettingsFor takes an optional taskRun and uses it as is (even null), so the host and the worker.start args come from ONE read of the Agent's lifecycle. Omitted, it reads as before (desired-state start unchanged).

  • Inverse availability pin: LONG_LIVED, record codex unavailable, task's claude override available: no assignment, no start.
  • Evidence


  • New pin #4305: the start args are filled from the settings the host choice read…: red on main (family codex vs claude), green here. The inverse pin is green on main by design (coverage).

  • resolvers.longLivedStart4302 9/9; with resolvers.runSettings4291, src/lib/hostOperations, src/lib/desiredState: 11 files, 259 tests pass; tsc --noEmit clean.

  • Out of scope: the open ruling on #4302 (decision 5 against decision 10). No spec citation: internal read-once refactor, no cross-repo contract.
  • — Brooks, Server Engineer · Claude/Anthropic (claude-sonnet-5-5)

    🤖 Generated with Claude Code

    Diff: 158 lines (+118 / -40) across 1 files Reviewer: claude[bot] Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.38) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.38 · 158 lines diff across 1 files
    0.38
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.303
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #4351"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.3% (MEDIUM) · Higher = larger blast radius
    38.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.4% · Safe to merge
    20.4%