compound-engineering-plugin icon indicating copy to clipboard operation
compound-engineering-plugin copied to clipboard

feat(ce-code-review): simplification reviewer persona — a delete-list lens

Open duketopceo opened this issue 1 month ago • 0 comments

Proposal

Add a simplification reviewer persona to ce-code-review, covering review ground the current roster leaves open.

Motivation

The existing personas cover correctness, structural health (maintainability), and domain lenses — but no persona owns the question "should this diff be this big?" Concretely missing:

  • Unrequested surface — features, endpoints, config keys, flags, exports beyond what the change's intent calls for
  • Dependency minimalism — a new package where stdlib or an existing canonical helper already does it
  • Lean misses — dead code added, near-copies that must change together, single-consumer abstractions
  • AI-slop artifacts — narrating comments, defensive noise on trusted paths, silencing casts, deep nesting that early returns flatten
  • Feature-flag branching debt — flags branching in 3+ locations with no cleanup path
  • Avoidable orchestration — unnecessary serialization, non-atomic related updates

maintainability already covers structural health (coupling, layering, file size, Fowler smells); the boundary is declared in the persona — it owns excess introduced by the diff, findings phrased as delete-lists that name what disappears.

Shape

  • New references/personas/simplification-reviewer.md matching the persona contract (anchored confidence calibration, "What you don't flag", JSON output block)
  • Generic-conditional selection: fires when the diff adds production code surface; skips pure deletions and docs/test/generated-only diffs
  • finish-review.md soft-bucket demotion + Removable surface coverage extended to simplification findings
  • Contract test persona lists + the demotion-route pin updated

PR attached for review. Validation: bun run test:skill-guards — 797 pass, 0 fail.

Agent Disclosure

Devin CLI · SWE-2 Max

duketopceo avatar Oct 10 '26 22:10 duketopceo