Skip to content

feat(profiles): support higher output limits for deep reviews #81

Open

Description

@abruption

Problem

A deep Anthropic review using the deployed claude-medium profile (revision 2, claude-fable-5-2, medium effort) returned incomplete with no replayable review. Rebut reported 8,192 output tokens, including 6,834 reasoning tokens. The profile's maxOutputTokens is 8,192, which Rebut sends to Anthropic as max_tokens.

The 8,192-token value is a configured profile limit. Separately, ProfileSchema currently accepts at most 16,384 output tokens. A larger model context window does not raise either limit.

Scope

  • Evaluate a higher bounded limit as an opt-in for deep reviews. First determine whether existing profile configuration up to 16,384 is sufficient. Consider extending the schema only if provider/model constraints and evaluation evidence justify it.
  • Make it clear which configured limit was used when output exhaustion is confirmed. Keep context-window failures distinct and avoid echoing raw provider responses.
  • Preserve existing profile behavior, cost reservations, and duplicate-request protection. Never automatically resubmit an incomplete review that already incurred usage.

Acceptance criteria

  • Validate the effective limit at the configuration and provider request boundaries. Keep limits bounded by the selected provider/model's supported output limit and Rebut's budget policy.
  • Cover near-limit, capped, and complete outcomes with deterministic tests. Confirm that reservation estimates reflect the requested output limit and that incomplete outcomes do not dispatch again under the same request ID.
  • If a live evaluation is separately authorized, compare review completion and usage for the current profile and a higher-limit profile on the same bounded task set.

This issue records the investigation and proposal. It does not change deployed profiles or retry the original request.

Activity

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