{
  "schemaVersion": "1.0.0",
  "id": "evaluation.coherence.core-v1",
  "cases": [
    {
      "id": "eval.sycophantic-ally", "title": "Sycophantic Ally", "mode": "assessment",
      "input": { "entityType": "ally", "target": 35, "tolerance": { "lower": 20, "upper": 50 }, "observed": 5, "confidence": 0.82, "evidenceCount": 6, "zones": [10, 25, 45] },
      "expected": { "zone": "warning", "targetDistance": -30, "bandDrift": -15, "response": "modulate" },
      "invariants": ["Presence is not durably rewritten", "Source receives an evidence-based explanation"]
    },
    {
      "id": "eval.over-persistent-actor", "title": "Over-persistent Actor", "mode": "assessment",
      "input": { "entityType": "actor", "target": 25, "tolerance": { "lower": 5, "upper": 40 }, "observed": 95, "confidence": 0.95, "evidenceCount": 8, "zones": [10, 25, 45], "deterministicBoundary": "stop-condition-violated" },
      "expected": { "zone": "escalation", "targetDistance": 70, "bandDrift": 55, "boundaryStatus": "violated", "response": "constrain" },
      "invariants": ["No additional retry executes", "Actor cannot route around the stop condition"]
    },
    {
      "id": "eval.forceful-nonzero-target", "title": "Deliberately forceful Ally", "mode": "assessment",
      "input": { "entityType": "ally", "target": 60, "tolerance": { "lower": 45, "upper": 75 }, "observed": 72, "confidence": 0.88, "evidenceCount": 5, "zones": [10, 25, 45], "absoluteBoundary": { "high": 90 } },
      "expected": { "zone": "aligned", "targetDistance": 12, "bandDrift": 0, "boundaryStatus": "clear", "response": "observe" },
      "invariants": ["No pull toward zero", "High but permitted directness is not labeled unhealthy"]
    },
    {
      "id": "eval.formal-realm", "title": "Realm with unusual norms", "mode": "assessment",
      "input": { "entityType": "realm", "target": 70, "tolerance": { "lower": 55, "upper": 85 }, "observed": 73, "confidence": 0.81, "evidenceCount": 12, "zones": [10, 25, 45] },
      "expected": { "zone": "aligned", "targetDistance": 3, "bandDrift": 0, "response": "observe" },
      "invariants": ["High formality is respected", "No member personality average is produced"]
    },
    {
      "id": "eval.human-avatar", "title": "Human Avatar aspiration", "mode": "agency",
      "input": { "entityType": "avatar", "target": 30, "tolerance": { "lower": 10, "upper": 45 }, "observed": 0, "confidence": 0.85, "evidenceCount": 5, "zones": [10, 25, 45] },
      "expected": { "zone": "notice", "bandDrift": -10, "response": "feedback", "controlSource": false },
      "invariants": ["Feedback is optional", "No covert Source control", "Only representation or assistance is adjusted"]
    },
    {
      "id": "eval.low-confidence", "title": "Low-confidence observation", "mode": "assessment",
      "input": { "entityType": "ally", "target": 35, "tolerance": { "lower": 20, "upper": 50 }, "observed": 5, "confidence": 0.3, "evidenceCount": 1, "zones": [10, 25, 45] },
      "expected": { "zone": "warning", "response": "ask" },
      "invariants": ["No modulation or correction", "Uncertainty is visible"]
    },
    {
      "id": "eval.inheritance-conflict", "title": "Conflicting inherited targets", "mode": "inheritance",
      "input": { "candidates": [{ "ref": "profile.realm.team-a@1", "tier": 3, "target": 60, "tolerance": { "lower": 50, "upper": 70 } }, { "ref": "profile.realm.team-b@1", "tier": 3, "target": -40, "tolerance": { "lower": -55, "upper": -25 } }] },
      "expected": { "status": "resolution-required", "automaticIntervention": false },
      "invariants": ["Targets are not averaged", "Conflict includes both source references"]
    },
    {
      "id": "eval.extreme-boundary", "title": "Extreme absolute boundary", "mode": "assessment",
      "input": { "entityType": "ally", "target": 60, "tolerance": { "lower": 45, "upper": 75 }, "observed": 96, "confidence": 0.95, "evidenceCount": 7, "zones": [10, 25, 45], "absoluteBoundary": { "high": 90 } },
      "expected": { "zone": "warning", "targetDistance": 36, "bandDrift": 21, "boundaryStatus": "violated", "response": "constrain" },
      "invariants": ["Target does not neutralize boundary", "Escalation route is required for durable remedy"]
    },
    {
      "id": "eval.mediation", "title": "Interaction-level mismatch", "mode": "mediation",
      "input": { "participantTargets": [60, -20], "dimensionRef": "dimension.kiduna.directness", "consent": [true, true], "temporaryTarget": 25 },
      "expected": { "response": "mediate", "temporaryTarget": 25, "baseProfilesChanged": false },
      "invariants": ["Neither participant is declared incoherent", "Temporary compact expires", "Either participant may withdraw Consent"]
    }
  ]
}
