Skip to content

experiment(review): evaluate an opt-in structured output extension #95

Closed

Description

@abruption

Goal

Evaluate a compact opt-in review output with requirement references, a bounded reproduction suggestion, and evidence-backed acceptance-criteria coverage. Preserve the existing response contract as a comparison baseline.

Scope

  • Compare identical synthetic inputs through OpenAI and Anthropic request and response paths using deterministic fixtures.
  • Record request and response JSON bytes, reservation estimates, and simulated truncation for both output formats at 8,192 and 10,240 tokens.
  • Keep this experiment open during review of the results. Higher deployed profile limits are tracked separately in feat(profiles): support higher output limits for deep reviews #81.

Validation contract

  • A legacy response still validates in its original mode. Extended output checks the JSON shape, supplied criterion IDs, cited paths and line ranges, and the presence of a citation or linked finding for assessed.
  • That validation cannot establish that a suggestion was executed or that the model assessed the full criterion. A free-text claim can pass shape validation, and a finding linked to a compound criterion can address only part of it. Exercise both cases in synthetic fixtures. Callers decide whether evidence supports the conclusion and whether to run any suggested test.
  • Retain validated citations for the initial comparison. Any later output compaction should be evaluated separately from provider-generated token usage.
  • Mock results measure serialized size and handler behavior. Measure actual token usage and provider schema acceptance separately.

Default rollout

  • Initial stage in Draft PR feat(review): add opt-in structured coverage output #96: supplying criterion IDs selects v2. Omitted format and criteria retain the existing legacy bundle. Explicit --output-schema 1 is the compatibility path.
  • Intended future default: apply v2 only to newly collected bundles. Support an empty coverage list when the caller supplies zero criterion IDs, keep a legacy selection, and preserve the hash-pinned format of existing requests.
  • Before switching the default, verify both providers against the final schema, check older Worker behavior, and identify scripts that consume legacy results. Keep output-cap changes in feat(profiles): support higher output limits for deep reviews #81.

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