---
name: yogsoth-ai-gap-pairwise-judgment
description: "SOP: Make a criterion-by-criterion relative priority judgment between two gaps and output the preference result"
license: "Apache-2.0"
metadata:
  decimalai-skill-id: "4260679a-56dd-4d32-9578-866fe9972113"
  decimalai-version-id: "c64be7ee-f68a-4126-9aa6-a1aa8fe13e24"
  decimalai-version: "1"
  decimalai-body-sha256: "442af509b966acb3bd9138eab2fb0dfd580f0a35d8119488cce7162def87fce2"
  decimalai-name: "yogsoth-ai/gap-pairwise-judgment"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "research"
  decimalai-source: "https://app.decimal.ai/s/yogsoth-ai-gap-pairwise-judgment@1/SKILL.md"
---
# Gap Pairwise Judgment

Make a criterion-by-criterion relative priority judgment between two gaps and output the preference result.

## HARD-GATE

<HARD-GATE>
- Input must contain two GapRecords with status: "complete" and at least 1 scoring criterion
- preferred_gap must be either gap_a_id or gap_b_id ("tie" is not allowed)
- saaty_value must be within the range [1, 9] (integer or fraction 1/n)
- Each criterion must have an independent comparison result
</HARD-GATE>

## Pipeline

1. **Precondition check**: Verify the completeness of the two GapRecords; confirm the criteria list is non-empty
2. **Criterion-by-criterion comparison**: For each criterion, independently judge the relative advantage of Gap A versus Gap B; record which is better and why
3. **Overall preference determination**: Aggregate by weighting each criterion's weight to determine the overall preference direction
4. **Saaty scale assignment**: Map preference strength to the Saaty scale (1=equal / 3=slightly better / 5=clearly better / 7=strongly better / 9=extremely better); if B is better than A, take the reciprocal
5. **Output**: Return the PairwiseJudgment object

## Output Format

```json
{
  "gap_a_id": "gap_001",
  "gap_b_id": "gap_002",
  "criteria_comparisons": [
    {
      "criterion": "importance",
      "weight": 0.40,
      "preferred": "gap_001",
      "rationale": "..."
    }
  ],
  "preferred_gap": "gap_001",
  "preference_strength": "moderate",
  "saaty_value": 3,
  "overall_rationale": "Overall basis (2-3 sentences)"
}
```
