apply_consolidation_rules
Aggregate advisory reports and determine a verdict (REJECTED, CHANGES_REQUIRED, APPROVED) by applying severity and ownership rules, with optional minimum score quality floor and weighted rubric scorecard.
Instructions
Aggregate advisory reports and emit a verdict per the rules in shared/_Severity-and-Ownership.md. Blocker -> REJECTED. Unjustified Major -> REJECTED. Otherwise CHANGES_REQUIRED or APPROVED. When reports carry per-dimension scores (0-100), also returns a weighted rubric scorecard (see score_rubric). Optional min_score downgrades APPROVED to CHANGES_REQUIRED if the weighted score is below the floor — useful for projects that want a quality bar beyond absence of blockers. Includes severity_counts and agents_involved for downstream summarization. Also returns arbitration_needed (true iff any blocker, unjustified major, or cross-agent forwarded finding) so callers can skip the consolidator persona when there is nothing to arbitrate; the verdict + rubric scorecard are produced regardless.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reports | Yes | ||
| weights | No | ||
| threshold | No | ||
| min_score | No |