Skip to content

feat(review): synthetic defect corpora for review evaluation #415

Closed

Description

@dan-petty

Context & Rationale

Evaluating a reviewer needs code whose defects are known exactly. Real repositories do not supply that — a finding is only ever labelled by another judgement, which is the circularity the benchmark above runs into. Code can instead be generated with a defect deliberately injected at a known line, giving a recall figure that is measured rather than inferred.

Scope & Deliverables

  • Context & Rationale*: Evaluating a reviewer needs code whose defects are known exactly. Real repositories do not supply that — a finding is only ever labelled by another judgement, which is the circularity the benchmark above runs into. Code can instead be generated with a defect deliberately injected at a known line, giving a recall figure that is measured rather than inferred.
  • Deliverable*: A generator that takes a clean source file and an injection template — drop a bounds check, widen a path join, remove an await, unpin a tag — and emits the mutated file with the injected line recorded. Recall is the share of injections reported at the right location; precision is what the reviewer reports beyond them.
  • Constraint*: An injection the generator knows how to make is an injection the prompt can be tuned to find, and tuning against a synthetic corpus produces a reviewer good at synthetic defects. It measures regression, not capability, and the distinction has to stay visible in how the numbers are reported.

Strategic Alignment

  • Milestone: v0.2.23 (Foundational Architectural Guardrails & Project Hygiene)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.23 milestone on Sep 22, 2026
  2. added
    type/feature
    scope/review
    priority/p1-high
    on Sep 22, 2026
  3. added a commit that references this issue on Sep 24, 2026
    d7ccf10
  4. dan-petty commented on Sep 24, 2026

    @dan-petty
    OwnerAuthor

    Closed by #501, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

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

    priority/p1-highscope/reviewtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions