Skip to content

feat(document-review): smarter autofix, batch-confirm, and error/omission classification#401

Merged
tmchow merged 1 commit intomainfrom
feat/doc-review-autofix
Mar 27, 2026
Merged

feat(document-review): smarter autofix, batch-confirm, and error/omission classification#401
tmchow merged 1 commit intomainfrom
feat/doc-review-autofix

Conversation

@tmchow
Copy link
Collaborator

@tmchow tmchow commented Mar 27, 2026

Summary

The document-review skill presented all findings sequentially at equal weight, even when most were obvious mechanical fixes. This came from real-world feedback where a review produced 12 findings that could have been 3 interactions.

Three changes to the autofix and presentation pipeline:

  1. Broader autofix scopeauto now covers completeness corrections (wrong counts, missing list entries, broken cross-references) where the correct value is verifiable from the document itself, not just terminology and formatting.

  2. batch_confirm tier — New routing class between auto and present. Obvious fixes that touch document meaning but have one clear correct answer get grouped for a single yes/no/select approval instead of individual presentation. Demotion chain: auto missing suggested_fix demotes to batch_confirm, batch_confirm missing suggested_fix demotes to present.

  3. finding_type classification — New required field (error vs omission) so the skill distinguishes design tensions from missing mechanical steps. Findings are sub-grouped within each severity level (errors first, omissions second), and the summary line reports both counts. Synthesized findings (residual promotions, contradiction resolutions) always get a finding_type assigned.

Files changed

  • SKILL.md — Phase 3.4-3.7 synthesis rules, Phase 4 presentation flow
  • findings-schema.jsonbatch_confirm enum, finding_type field and metadata
  • subagent-template.md — Reviewer instructions for new fields
  • review-output-template.md — Example output with batch confirm section, error/omission grouping, expanded coverage table

Compound Engineering v2.54.1
🤖 Generated with Claude Opus 4.6 (1M context, extended thinking) via Claude Code

…ication, and broader autofix

Addresses three gaps in the document-review skill's autofix and presentation
pipeline based on real-world feedback where 12 findings were presented
sequentially at equal weight despite most being obvious or mechanical:

- Expand autofix_class to include completeness corrections (wrong counts,
  missing list entries) and add a batch_confirm tier for obvious fixes that
  touch meaning but have one clear answer — reducing N interactions to 1
- Add finding_type (error vs omission) so reviewers distinguish design
  tensions from missing mechanical steps, and presentation groups them
  separately within each severity level
- Ensure synthesized findings (residual promotions, contradiction
  resolutions) always have finding_type assigned
- Add cross-platform interaction instructions to batch-confirm step
@tmchow tmchow merged commit 0863cfa into main Mar 27, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant