Skip to content

BRC: fan out reviewer_security and reviewer_concurrency on large diffs #2127

Closed

Description

@jwbron

Background

Postmortem #2125 on PR #2105 — the in-pipeline reviewer_security lens caught the first path-traversal (in shared/egg_config/repos.py) but missed the second (in orchestrator/mcp_tools.py:1602-1635) and the third (in skills/onboard-repo/SKILL.md) on a 33K-LOC / 41-file diff. One reviewer reading 33K LOC is the bottleneck.

#2061 fanned out reviewer_code but left reviewer_security and reviewer_concurrency as single-pass calls.

Proposal

Fan out reviewer_security and reviewer_concurrency on large diffs:

  • Same threshold as reviewer_code (>10 files OR >500 LOC)
  • Same partition strategy (TASK-N-N partitioning from the structured contract)
  • Same parent cross-partition pass

Acceptance

  • reviewer_security and reviewer_concurrency roles fan out above the existing threshold
  • Below threshold they continue to run single-pass
  • Parent role runs the cross-partition pass on each lens

References

Activity

  1. jwbron commented on Apr 27, 2026

    @jwbron
    OwnerAuthor

    #2139 will close this — clean tear-out of the reviewer_code diff-size subagent fan-out paths. No salvage of ReviewerCodeConfig.parallel or partition cross-pass.

    Context: the slice-scheduler architecture in #2137 sizes slices small enough that diff-size fan-out is unnecessary. The fan-out cleanup is being done independently of #2137's runtime work in #2139.

  2. added a commit that references this issue on Apr 27, 2026
    08e8a7f
  3. added a commit that references this issue on Apr 28, 2026
    23b3216
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