← Back to Pull requests

Operator limits: choose which agent slots a target uses #549

Open
unknown opened this pull request with 197 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 22, 2026 03:19 UTC
Author

Closes #493.

limits.toml can narrow a target, but new runs always took the lowest free agent-01..agent-<width>, so an operator could not keep a particular agent's research line or author binding. A target table now takes an optional slots list:

[targets."owner/repo"]
max_active_attempts = 1
slots = ["agent-04"]

  • New self-initiated runs take the first free listed slot, in order. Intake and steward runs keep their own identities, as before.

  • The width (minimum of the contract and operator limits) still caps concurrency, and running agents in unlisted slots count against it, so slots never add capacity. Slots above the contract width are allowed.

  • Running agents in unlisted slots are left alone (outerloop stop stops them).

  • slots is per target only; a [defaults] slots key, an empty list, duplicates or a malformed id fail the file closed like any other limits error. The agent-id check is the one author overrides already use.

  • Width and slots come from one read of the file.

  • outerloop limits shows the list. Without slots, behaviour is unchanged.
  • Compatibility: limits.toml is operator config; existing files need no change. An older kernel treats slots as an unknown key and fails closed, so the Upgrading: line says to remove it before rolling back.

    Gate: ruff check, ruff format --check, mypy, pytest (3135 passed, 6 skipped).

    Built by DeepSeek-V4.1-Flash (on-prem). Reviewed by codex (two passes: width/slots read once, a stronger capacity test, the Upgrading line) and by Claude (Opus 5.5), who applied those fixes.

    Diff: 197 lines (+147 / -50) across 2 files Reviewer: github-actions[bot] Review duration: 11m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 197 lines diff across 2 files
    0.36
    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%
    42%
    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.316
    Real PR Conversation Timeline
    1 comments
    "Review active on #549"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    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: 43.0% · Lower = rushed or shallow review
    43.0%
    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.6% · Safe to merge
    20.6%