Skip to content

docs(adr): route runtime and model per task from a config policy - #7251

Closed
waynesun09 wants to merge 2 commits into
mainfrom
routing-policy-adr
Closed

waynesun09 wants to merge 2 commits into
mainfrom
routing-policy-adr

Conversation

@waynesun09

Copy link
Copy Markdown
Member

What

ADR 0112: fullsend run resolves runtime, model, effort and persona models per task, on the host, before the sandbox exists, from a routing: block in .fullsend/config.yaml. Docs only; no code in this PR.

Why

Every choice is static per agent today (ADR 0091, ADR 0104). CEL overlays cannot set model or effort (ADR 0088) and the normalized event carries no diff size or paths, so a one-line docs change and a 2,000-line CI refactor get the same opus-at-high review.

Asks this decision answers with one mechanism:

The decision, in brief

  • routing.rules[] with agents:, CEL when: over a system-derived task variable, and a set: limited to the four fields an agents: entry holds. PR title, body, comments, commit messages and branch names are never routing inputs; downgrade rules may key only on allowlisted labels.
  • Precedence: flags and FULLSEND_* variables › routing.rules › the agent's agents: entry › repo default.
  • Guards: allowed_models ∩ catalog, runtime capability matrix, never_downgrade (the Runtime parity backlog: deferred runtime/model UX items (pi Agent tool, per-role models, per-run overrides, model switching, other clouds) #6527 rule kept as written: a downgrade rule for review moves effort and subagents, never the orchestrator's model), persona min_tier floors, served-model preflight before the sandbox.
  • Effort before model, model before runtime.
  • Every choice echoed with its rule (plan block, metrics.json, root span, status comment); shadow mode records without acting.
  • Learning is offline: a routing ledger on the root span, a replay over it, and a reviewed edit to routing: as the only path to production. No in-run adaptation.

Rejected options recorded: per-prompt routing inside the sandbox (the closed #6361 draft) and routing in an LLM gateway, which stays an optional provider.

Living documents updated

  • docs/architecture.md: one Decided line under Agent Runtime.
  • docs/problems/adaptive-agent-selection.md, cross-run-memory.md, operational-observability.md: annotations on the open questions this partially answers.

Notes for review

https://claude.ai/code/session_01BCAjgeumZBcuaRSVvsbAkY

Every runtime/model/effort/persona choice is static per agent (ADR 0091,
ADR 0104); CEL overlays cannot set model or effort and the normalized
event carries no diff size, so a one-line docs change and a 2,000-line
CI refactor get the same opus-at-high review. #5777, #6891, #2842 and
agents#497 ask for a cheaper model or effort on trivially scoped
changes, agents#535 for a deeper review on security signals, #6560 for
a cost preview, and #6964 / agents#1225 record the retry-on-unavailable
incident class that a pre-sandbox served-model check would end.

ADR 0112 decides that `fullsend run` resolves the four fields an
`agents:` entry holds per task, on the host, before the sandbox exists,
from a `routing:` block in config.yaml: rules keyed on system-derived
task facts only (never PR text), a precedence slot between the per-run
overrides and the static entry, guards (allowed set, runtime capability
matrix, never-downgrade set kept as #6527 wrote it, persona floors,
served-model preflight), effort before model, every choice echoed, a
shadow mode, and learning that lands only as a reviewed policy change.
The two rejected options are per-prompt routing inside the sandbox
(the #6361 draft) and routing in an LLM gateway, which stays an
optional provider.

Living documents: a Decided line under Agent Runtime in architecture.md
and annotations on the open questions in adaptive-agent-selection,
cross-run-memory and operational-observability. No code change.

Assisted-by: Claude
Claude-Session: https://claude.ai/code/session_01BCAjgeumZBcuaRSVvsbAkY
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 1:32 AM UTC · Ended 1:49 AM UTC

Commit: c89aefd · View workflow run →

@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Rules cannot read a diff; a short read-only run on the fast tier can.
Record the advisor as a follow-on decision and fix the one constraint
this ADR owns for it: an assessment read from author-controlled content
may fire an escalation rule alone but may satisfy a downgrade rule only
together with a system-derived fact, and it never widens the allowed set
or crosses the never-downgrade floor.

Assisted-by: Claude
Claude-Session: https://claude.ai/code/session_01BCAjgeumZBcuaRSVvsbAkY
Signed-off-by: Wayne Sun <gsun@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:51 AM UTC · Completed 2:12 AM UTC

Commit: 611ed05 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $5.08

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Sep 12, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Re-review of the identical commit: Tier 1 metadata is low (docs-only, 5 files, 171 lines, no protected/security/CI/dependency paths, non-bot non-first-time author), but Tier 2 git-history churn on the modified shared docs (especially docs/architecture.md) has risen since the prior review; the weighted composite still rounds to 2 (moderate), preserving the prior score with a slightly stronger git-history basis.

Previous run

Risk Assessment: moderate (2/5)

Details

Docs-only PR (5 files, 171 lines, no protected/security/CI/dependency paths, non-first-time non-bot author) drives a low Tier 1 score, but two frequently-churned shared docs pull the git-history tier up to moderate, yielding a composite score of 2 (moderate) with no linked issue to factor in.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Review

Findings

Low

  • [logic-error] docs/ADRs/0112-task-g....md:147 — Item 4 puts the review orchestrator in routing.never_downgrade only "by implication" and allows equal-or-higher tier moves; Consequences says the orchestrator model "can move only by amending Runtime parity backlog: deferred runtime/model UX items (pi Agent tool, per-role models, per-run overrides, model switching, other clouds) #6527's wording in a later ADR." Since Runtime parity backlog: deferred runtime/model UX items (pi Agent tool, per-role models, per-run overrides, model switching, other clouds) #6527 is "never downgraded," this reads as wording drift rather than a hard contradiction, but an implementer could still read the Consequences line as a total freeze that forbids even an in-config escalation.
    Remediation: Name review explicitly in the default never_downgrade set (rather than "by implication"), and state plainly whether an equal-or-higher model move for the review orchestrator via routing.rules is allowed or must wait for a later ADR.

  • [logic-error] docs/ADRs/0112-task-g....md:101 — The label-key restriction, never_downgrade tier check, effort-first step ordering, and the Deferred routing-advisor constraint all key off a rule (or resolved field) being a "downgrade" vs. an "escalation," but the rule shape (item 1: agents: + CEL when: + set: of four fields) has no kind: field and no stated mechanical test for that classification.
    Remediation: Define the classification test explicitly — e.g. compare each resolved set: field to the static choice on a documented tier order — and state that the label/effort-ordering/never-downgrade guards apply to that computed result.

  • [logic-error] docs/ADRs/0112-task-g....md:116 — "persona min_tier floors from the persona files hold" references a field ADR 0104 does not define. ADR 0104's persona frontmatter is only name:, optional model:, and optional tools:; frontmatter model: is explicitly a default for personas naming no model, "never an override" — a repo subagents.<persona> entry may legitimately sit below it. An undefined hard min_tier floor would conflict with that resolution order.
    Remediation: Either define min_tier as a new, explicit persona-frontmatter field and reconcile it with ADR 0104's model: default, or drop the reference and name the real floor (e.g. routing.never_downgrade / allowed_models).

  • [logic-error] docs/ADRs/0112-task-g....md:94 — subagents is treated as one of the four fields subject to "later entries win per field" (whole-value replacement), but ADR 0104 merges agents[].subagents per persona key (with ~ tombstones). Whole-field replacement would silently drop unmentioned persona overrides from the static agents: entry, which conflicts with the Consequences example ("opus security and challenger personas ... as reviewed config") that reads as a per-persona overlay.
    Remediation: State that routed subagents uses ADR 0104's per-key merge semantics (later non-empty key wins, ~ tombstones), both within one rule's set: and across multiple matching routing.rules.

  • [logic-error] docs/ADRs/0112-task-g....md:118 — The served-model preflight is described as "falling to the next fallback entry or the static entry on a miss," but no fallback-entry list is defined anywhere in the ADR. The repo's only existing fallback mechanism (Claude-only FULLSEND_FALLBACK_MODELS) is ruled out by the same sentence ("never retried inside the sandbox"), leaving the miss path unspecified if the static entry is also unservable.
    Remediation: Name the ordered fallback sequence the host walks on a preflight miss (e.g. routed model -> other allowed_models entries -> static agents:/runtime: model) and the terminal failure behavior if none is servable.

  • [untrusted-input] docs/ADRs/0112-task-g....md:97 — Item 2 binds a task variable "beside event" for CEL when: evaluation in the same sentence that excludes PR title/body/comments/commit messages/branch names as routing inputs, but never states that event itself (which under ADR 0088 can include fields like transition.comment.body) is redacted of those fields for routing purposes.
    Remediation: State explicitly that the routing CEL environment omits PR title/body/comments/commit-message/branch-name fields on event (or define a redacted view), and require config-time validation that rejects when: expressions referencing them.

  • [untrusted-input] docs/ADRs/0112-task-g....md:100 — "linked-issue metadata" is listed as a system-derived routing input, but the exclusion list only names PR-side text. Issue title, body, and comments are equally author-controlled — a downgrade rule could key on issue prose without violating the stated exclusion if "metadata" is read as the full issue payload.
    Remediation: Allowlist the specific linked-issue fields usable in routing (e.g. number, state, label names) and explicitly exclude issue title/body/comments; apply the same trusted_labels restriction to issue labels used in a downgrade rule.

  • [fail-open] docs/ADRs/0112-task-g....md:109 — The guards named in item 4 (routing.allowed_models, routing.never_downgrade, served-model preflight) and routing.mode (item 1) have no stated fail-closed default for the omitted/empty/malformed case — e.g. whether an omitted routing.mode defaults to off (safe) or could be read as enforce, and whether malformed routing: config falls back to the static agents: choice.
    Remediation: Pin fail-closed defaults in this ADR: omitted mode defaults to off; malformed routing: is a config-time error that keeps the static agents: choice; an explicit empty never_downgrade does not remove the review-orchestrator / deciding-session floor.

  • [documentation-scope-conformance] docs/ADRs/0112-task-g....md:4 — The ADR backlinks and annotates docs/problems/cross-run-memory.md, but cross-run-memory is not listed in the ADR's relates_to frontmatter (only adaptive-agent-selection, agent-architecture, operational-observability are listed). skills/writing-adrs/SKILL.md's "What NOT to update" is explicit: "Do not update documents unrelated to the ADR's relates_to problem areas." Note also that relates_to already lists 3 problem docs, which is the skill's own soft limit ("relates_to lists more than 3 problem docs -- the decision may be too broad"), so simply appending a 4th entry trades one guideline violation for another.
    Remediation: Prefer removing the cross-run-memory.md annotation to stay within the existing relates_to scope; only add cross-run-memory to relates_to if the annotation is judged essential, and if so consider whether the ADR's declared scope is now too broad.


None of the above are critical or high, and none identify a functional bug — these are internal-consistency and under-specification gaps in the Decision text of an ADR that is marked Accepted but has not yet merged. Per this repo's own docs/contributing/adrs.md and skills/writing-adrs/SKILL.md, edits to an ADR before it merges to main are normal authoring, not post-acceptance amendments, so this is the right time to tighten the wording — after merge, substantive edits to Decision/Consequences would require a superseding ADR instead. The PR's head commit is unchanged since the prior review; none of these items (already raised previously) have been addressed yet.

A separate candidate finding — adding a backlink from docs/problems/security-threat-model.md's cost-estimation open question to this ADR — was considered and rejected: skills/writing-adrs/SKILL.md restricts ADR-triggered doc updates to the ADR's declared relates_to set, and security-threat-model is not in it (nor, by the same rule, is cross-run-memory — see the finding above).


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

Review

Findings

Low

  • [logic-error] docs/ADRs/0112-task-g....md:147 — Item 4 puts the review orchestrator in routing.never_downgrade only "by implication" and allows equal-or-higher tier moves; Consequences says the orchestrator model "can move only by amending Runtime parity backlog: deferred runtime/model UX items (pi Agent tool, per-role models, per-run overrides, model switching, other clouds) #6527's wording in a later ADR." Since Runtime parity backlog: deferred runtime/model UX items (pi Agent tool, per-role models, per-run overrides, model switching, other clouds) #6527 is "never downgraded," this reads as wording drift rather than a hard contradiction, but an implementer could still read the Consequences line as a total freeze that forbids even an in-config escalation.
    Remediation: Name review explicitly in the default never_downgrade set (rather than "by implication"), and state plainly whether an equal-or-higher model move for the review orchestrator via routing.rules is allowed or must wait for a later ADR.

  • [logic-error] docs/ADRs/0112-task-g....md:101 — The label-key restriction, never_downgrade tier check, effort-first step ordering, and the Deferred routing-advisor constraint all key off a rule (or resolved field) being a "downgrade" vs. an "escalation," but the rule shape (item 1: agents: + CEL when: + set: of four fields) has no kind: field and no stated mechanical test for that classification.
    Remediation: Define the classification test explicitly — e.g. compare each resolved set: field to the static choice on a documented tier order — and state that the label/effort-ordering/never-downgrade guards apply to that computed result.

  • [logic-error] docs/ADRs/0112-task-g....md:116 — "persona min_tier floors from the persona files hold" references a field ADR 0104 does not define. ADR 0104's persona frontmatter is only name:, optional model:, and optional tools:; frontmatter model: is explicitly a default for personas naming no model, "never an override" — a repo subagents.<persona> entry may legitimately sit below it. An undefined hard min_tier floor would conflict with that resolution order.
    Remediation: Either define min_tier as a new, explicit persona-frontmatter field and reconcile it with ADR 0104's model: default, or drop the reference and name the real floor (e.g. routing.never_downgrade / allowed_models).

  • [logic-error] docs/ADRs/0112-task-g....md:94 — subagents is treated as one of the four fields subject to "later entries win per field" (whole-value replacement), but ADR 0104 merges agents[].subagents per persona key (with ~ tombstones). Whole-field replacement would silently drop unmentioned persona overrides from the static agents: entry, which conflicts with the Consequences example ("opus security and challenger personas ... as reviewed config") that reads as a per-persona overlay.
    Remediation: State that routed subagents uses ADR 0104's per-key merge semantics (later non-empty key wins, ~ tombstones), both within one rule's set: and across multiple matching routing.rules.

  • [logic-error] docs/ADRs/0112-task-g....md:118 — The served-model preflight is described as "falling to the next fallback entry or the static entry on a miss," but no fallback-entry list is defined anywhere in the ADR. The repo's only existing fallback mechanism (Claude-only FULLSEND_FALLBACK_MODELS) is ruled out by the same sentence ("never retried inside the sandbox"), leaving the miss path unspecified if the static entry is also unserved.
    Remediation: Name the ordered fallback sequence the host walks on a preflight miss (e.g. routed model -> other allowed_models entries -> static agents:/runtime: model) and the terminal failure behavior if none is servable.

  • [untrusted-input] docs/ADRs/0112-task-g....md:97 — Item 2 binds a task variable "beside event" for CEL when: evaluation in the same sentence that excludes PR title/body/comments/commit messages/branch names as routing inputs, but never states that event itself (which under ADR 0088 can include fields like transition.comment.body) is redacted of those fields for routing purposes.
    Remediation: State explicitly that the routing CEL environment omits PR title/body/comments/commit-message/branch-name fields on event (or define a redacted view), and require config-time validation that rejects when: expressions referencing them.

  • [untrusted-input] docs/ADRs/0112-task-g....md:100 — "linked-issue metadata" is listed as a system-derived routing input, but the exclusion list only names PR-side text. Issue title, body, and comments are equally author-controlled — a downgrade rule could key on issue prose without violating the stated exclusion if "metadata" is read as the full issue payload.
    Remediation: Allowlist the specific linked-issue fields usable in routing (e.g. number, state, label names) and explicitly exclude issue title/body/comments; apply the same trusted_labels restriction to issue labels used in a downgrade rule.

  • [fail-open] docs/ADRs/0112-task-g....md:109 — The guards named in item 4 (routing.allowed_models, routing.never_downgrade, served-model preflight) and routing.mode (item 1) have no stated fail-closed default for the omitted/empty/malformed case — e.g. whether an omitted routing.mode defaults to off (safe) or could be read as enforce, and whether malformed routing: config falls back to the static agents: choice.
    Remediation: Pin fail-closed defaults in this ADR: omitted mode defaults to off; malformed routing: is a config-time error that keeps the static agents: choice; an explicit empty never_downgrade does not remove the review-orchestrator / deciding-session floor.

  • [documentation-scope-conformance] docs/ADRs/0112-task-g....md:4 — The PR annotates docs/problems/cross-run-memory.md with a backlink to this ADR, but cross-run-memory is not listed in the ADR's relates_to frontmatter (adaptive-agent-selection, agent-architecture, operational-observability). The repo's ADR-writing guidance ties permissible problem-doc edits to the declared relates_to scope.
    Remediation: Add cross-run-memory to the ADR's relates_to frontmatter to match the problem doc this PR actually backlinks.

Info

  • [logic-error] docs/ADRs/0112-task-g....md:123 — Echo/ledger provenance is singular ("the rule that fired," metrics.json field routing.rule) while item 1's resolution is merge-all (all matching rules merge, later entries win per field). This is implementation grain rather than an ADR defect; the implementing PR should record either the last-winning rule or per-field rule provenance.

  • [prompt-injection] docs/ADRs/0112-task-g....md:160 — The Deferred "routing advisor" constraint allows a downgrade when: to pair author-controlled task.assessment with a system-derived conjunct that could be satisfied close to vacuously. Non-blocking note for whichever follow-on ADR implements the advisor: require the system-derived conjuncts to be independently sufficient.

  • [adr-scope-and-conciseness] docs/ADRs/0112-task-g....md — At ~150 lines this ADR is longer than the repo's own stated guidance, though comparably long ADRs (0088, 0091, 0104) already exist and the sub-items read as constraints of one decision rather than separate decisions. Informational only — no split requested.

  • [stale-doc] docs/ADRs/0091-per-agent-runtime-model-effort.md:105 — ADR 0091's precedence chain is where ADR 0112 inserts the new routing layer; 0091 is not contradicted but has no forward link to 0112. Optional annotation for discoverability.


None of the above are critical or high; nothing here blocks the decision recorded by this ADR. They are wording/internal-consistency gaps in the Decision text itself (precedence vs. legacy config, undefined fields like min_tier and rule kind:, subagents merge granularity, fail-closed defaults, and a relates_to/backlink mismatch) that are worth tightening in this PR while the ADR text is still open for edit, since the repo's ADR convention discourages substantially rewriting Decision/Consequences sections after acceptance.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can choose which labels appear on a finding, and whether they show icons or text

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Document host-side per-task runtime and model routing policy

📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Defines host-side per-task routing for runtime, model, effort, and personas.
• Establishes trusted inputs, precedence, safety guards, preflight checks, and shadow mode.
• Connects routing outcomes to observability, offline replay, and reviewed policy changes.
Diagram

graph TD
  A["System task facts"] --> B["Routing policy"] --> C{"Rules match?"} --> D["Guarded resolution"] --> E["Runtime plan"] --> F["Sandbox execution"] --> G["Routing ledger"] --> H["Offline replay"]
  C -->|No match| E
  H -->|Reviewed edit| B
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Per-prompt sandbox routing
  • ➕ Could adapt between prompts using information learned during execution.
  • ➕ May select stronger models only when a running agent encounters complexity.
  • ➖ Consumes author-controlled prompt content after the sandbox already exists.
  • ➖ Couples routing to runtime-specific hooks and loses centralized routing state.
  • ➖ Cannot size changes before initial model work begins.
2. LLM gateway routing
  • ➕ Centralizes provider traffic and can support organization-wide routing controls.
  • ➕ Could hide provider failover from individual runtimes.
  • ➖ Lacks forge task context and later outcome events needed by the policy.
  • ➖ May require gateway-held credentials and incompatible provider endpoint changes.
  • ➖ Silent model rewrites undermine model reporting, usage accounting, and persona constraints.
3. Forge workflow heuristic
  • ➕ Could be implemented quickly for GitHub-triggered runs.
  • ➕ Has direct access to pull-request metadata before agent execution.
  • ➖ Creates a GitHub-specific second resolution path.
  • ➖ Duplicates model and effort decisions outside the established runner precedence chain.
  • ➖ Does not provide consistent behavior for other forges or local runs.

Recommendation: Keep the ADR's host-side fullsend run policy. It is the best strategic boundary because it operates before sandbox creation, uses trusted runtime-neutral task facts, preserves one resolution chain, and supports explicit safety validation and complete observability. In-sandbox adaptation remains appropriate only as a separately governed escalation mechanism, while gateways should remain optional transport providers.

Files changed (5) +167 / -4

Documentation (5) +167 / -4
0112-task-grain-routing-policy-on-the-host.mdDefine host-side task-grain routing policy +162/-0

Define host-side task-grain routing policy

• Adds ADR 0112 defining per-task resolution of runtime, model, effort, and persona models from repository configuration before sandbox creation. It specifies trusted inputs, precedence, safety guards, served-model preflight, shadow-mode observability, offline learning, consequences, deferred work, and rejected alternatives.

docs/ADRs/0112-task-grain-routing-policy-on-the-host.md

architecture.mdRecord task-level routing in the runtime architecture +1/-0

Record task-level routing in the runtime architecture

• Adds the accepted routing decision to the Agent Runtime architecture section. The summary links policy inputs, precedence, safeguards, observability outputs, shadow mode, and reviewed learning back to ADR 0112.

docs/architecture.md

adaptive-agent-selection.mdConstrain adaptive routing and cost evaluation questions +2/-2

Constrain adaptive routing and cost evaluation questions

• Annotates the open fitness and safety questions with ADR 0112's partial decisions. Runtime and model routing must evaluate cost per work item, begin with shadow evidence, remain selection-only, and respect deterministic safety constraints.

docs/problems/adaptive-agent-selection.md

cross-run-memory.mdClarify review requirements for routing feedback +1/-1

Clarify review requirements for routing feedback

• Documents that routing outcomes cannot feed forward automatically. They may inform offline replay, but production changes require a reviewed routing policy edit.

docs/problems/cross-run-memory.md

operational-observability.mdConnect routing decisions to operational traces +1/-1

Connect routing decisions to operational traces

• Extends the quality-measurement discussion with ADR 0112's routing ledger. Root-span routing attributes enable cost and outcome comparisons per work item across model choices.

docs/problems/operational-observability.md

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:20 PM UTC · Completed 8:40 PM UTC

Commit: 611ed05 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $4.84

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

@redhat-chai-bot

Copy link
Copy Markdown

Additional design and validation context

A few points worth incorporating as this ADR is refined:

  • Start by comparing current routing patterns and existing solutions, then validate the policy with a practical classification-driven experiment.
  • A small, lower-cost classifier such as Jev or DiffusionGemma-Jev behind an API-compatible endpoint is a useful candidate for task-size classification. A self-hosted endpoint can support early experiments; a centralized inference gateway should remain a future integration point rather than a blocker.
  • Task-size/entity-resolution work is a related routing input, but it should not block early verification.
  • Keep this ADR focused on Fullsend's host-side harness decision before sandbox/runtime startup. In-run model switching, budget-aware fallback, or stop/resume with a different runtime or model should be follow-up work.
  • Pi and Codex can support model switching during a run more directly; avoid making this ADR depend on extra Claude Code plugin complexity.
  • Validation can begin before the ADR merges by running Fullsend locally against a test repository. Implementation can follow the ADR review and approval path.
  • Evaluate routing with both cost and quality evidence. It contributes to review-cost reduction, but is not a complete solution by itself.

AI-generated. Review for accuracy.

@fullsend-ai-retro

fullsend-ai-retro Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 7:11 PM UTC · Completed 7:17 PM UTC

Commit: 611ed05 · View workflow run →

Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $1.27

@fullsend-ai-retro

Copy link
Copy Markdown

PR #7251 (docs-only ADR 0112 draft, closed without merge on 2026-09-28) was overall a clean run. The review agent (fullsend-ai/agents@main, pi runtime, sonnet, high effort) surfaced 9 legitimate low/info-severity internal-consistency gaps in the ADR text (undefined min_tier field, ambiguous downgrade/escalation classification, fail-open defaults on omitted routing.mode, untrusted-input scoping around event/linked-issue metadata, and a relates_to backlink mismatch) with no apparent false positives. The author addressed all 9 findings in the superseding PR #7808, which cherry-picks #7251's two commits and reuses ADR number 0112 via the renumber-adr workflow — the org's existing ADR-collision tooling (tracked by open issues #992, #2987, #1570, #3737) worked as intended here, so no new finding on that front. No human reviewer commented on #7251 (only external non-fullsend bots qodo-code-review and redhat-chai-bot left advisory notes), so there is no agent-vs-human review delta to mine for autonomy-readiness this run.

The one real inefficiency: fullsend re-ran a full high-effort review (cost $4.84) on 2026-09-24 when the author flipped the PR from draft to ready_for_review, even though the head SHA (611ed05) was byte-identical to the commit already reviewed 12 days earlier (cost $5.08) on 2026-09-12. The second review's own generated prose even states "The PR's head commit is unchanged since the prior review" — yet the pipeline still ran the entire high-effort review and produced near-verbatim duplicate findings, for roughly $10 combined spend on a single unchanging commit. This is a known, actively-tracked class of problem, so no new issue is filed:

Recommend attaching this run's evidence (the specific file/line pointers above, plus the quantified ~$10 double-spend) to #1715 and #4401 rather than opening a new issue.

This branch was previously deployed

1 inactive deployment
dev — 611ed057 Deployed Sep 12, 2026 by waynesun09 via behaviour #12641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants