Skip to content

Enforce the reasoning-effort ceiling across supported-effort matching and pinned routes #45

Closed

Description

@CompleteDotTech

Problem

The effort index is capped before fitEffort chooses a supported effort, which may round upward above the cap. The low-confidence early return also preserves current.effort without enforcing the ceiling. Users cannot rely on the advertised “Reasoning effort ceiling.”

Triage

  • Original finding: 6 of 11.
  • Priority: P1. Resolve before the next release because an explicit transport, session, or cost constraint can be violated.
  • Classification: Confirmed behavior/source defect.
  • Inspected current main: 3c2bb240059b3e1bec9264f1e57fa885096c6bf9 (2026-10-01).

Evidence

Two offline reproductions using decide and synthetic candidates: max_effort=low with a candidate supporting only high returns high; low Jev confidence with current effort xhigh and max_effort=low returns xhigh. No live model turn was run.

Source: apps/desktop/src/main/engine/routing/policy.ts:43, apps/desktop/src/main/engine/routing/policy.ts:64, apps/desktop/src/main/engine/routing/policy.ts:116.

Acceptance criteria

  • All returned explicit effort levels respect the configured cap, including low-confidence and no-model-list branches.
  • Define safe behavior when no supported effort is at/below the cap or the backend default is unknown; do not silently exceed the ceiling.
  • Cover sparse effort sets, pinned routes, unknown capabilities, and premium-budget caps using deterministic fixtures.

Coordination and validation

Related issues: #49 (finding 10). These are coordination links, not hard blockers.

Recommended sequence: fix transport enforcement/setup invalidation and policy constraints first; coordinate draft testing/status and persistence semantics; then reorganize the UI and add advanced controls. Independent fixes may proceed without artificial dependencies.

Use offline fixtures/fake transports for automated checks. Coding turns remain CLI-only; do not launch live agents or weaken approval/sandbox behavior. Implementation PRs must use their own worktree, update docs/status.md as applicable, and run required build/unit/UI checks. This issue publishes scope and acceptance criteria; no production fix or live-provider verification is claimed.

Activity

  1. added a commit that references this issue on Oct 3, 2026
    d9414b5
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