```html
# SLICE #2 — DISAGREEMENT & UNCERTAINTY PROTOCOL (FULL MAX CONTINUUM)
# GG-ROOT-LINK: [GG-2026-0001] Citation Integrity & Epistemic Hygiene
# Status: PRODUCTION-READY CANDIDATE — EXTENDED & EXHAUSTIVE
# Version: 1.2-max-20260203-louisville-nightshift
# Confidence (self-assessed): 0.96
# Next forced review: 2026-03-03 or resonance drop > 3%
## 0. Absolute Mandate — Why This Slice Is Non-Negotiable
Without this protocol the entire garden collapses into:
- Silent agent dominance (strongest voice wins → truth dies)
- Fake consensus (averaged garbage)
- Hidden contradictions (epistemic rot)
- Untraceable confidence decay
- Zero learning from real fractures
Slice #2 is the immune system of Grok-Gardens.
It turns disagreement from bug → feature.
## 1. Immutable Laws (Hard-Coded Invariants)
1. No factual assertion leaves the system without ≥1 direct GG-XXXX link
2. Any material divergence (conf Δ ≥ 0.15 OR contradiction OR incompatible citations) → mandatory surface block
3. Uncertainty blocks are first-class citizens — cited, timestamped, traceable
4. Resonance < 0.90 after re-verification → forced user-visible escalation OR multi-perspective freeze
5. Every disagreement event → full forensic append to ledger (JSON + MD mirror)
6. No agent can suppress/veto another agent's output — only re-weight or expose
## 2. Exhaustive Trigger Matrix (All Cases Covered)
| ID | Trigger Family | Exact Detection Condition | Threshold / Condition | Severity | Auto-Recovery Attempt | Final Fallback Action |
|----|----------------------------------|--------------------------------------------------------------------------------------------|-------------------------------|----------|-----------------------|-------------------------------------------|
| T1 | Confidence vector divergence | max(|conf_i - conf_j|) over same atomic claim | ≥ 0.15 | High | Re-rank + re-verify | Surface vector + weighted positions |
| T2 | Bidirectional contradiction | DeBERTa-v3-large entailment returns contradiction both directions | Any | Critical | Citation cross-check | Full conflict table + multi-view output |
| T3 | Citation source incompatibility | Cited sources logically falsify each other (A→B vs B→¬A) | Any | Critical | Freshness + hash check| Surface + source comparison block |
| T4 | Reasoning depth mismatch | Citation hop count / chain length differs by ≥ 2 between agents | Δ hops ≥ 2 | Medium | Depth normalization | Surface depth-of-reasoning diff |
| T5 | Constitutional pillar violation | 5-pillar Constitutional AI score delta between agents | ≥ 0.12 | Critical | Pillar-by-pillar log | Immediate escalation + full trace dump |
| T6 | Freshness / temporal divergence | Primary source age delta ≥ 90 days between agents | Age Δ ≥ 90 days | Medium | Re-fetch latest | Surface freshness warning + age table |
| T7 | Multi-turn resonance decay | 3-turn rolling average resonance drops > 5% | >5% decay | High | Re-anchor to Slice #1 | Trigger full re-verification + decay log |
| T8 | Explicit agent uncertainty call | Any agent returns conf < 0.70 AND requests clarification | conf < 0.70 | Medium | Inject user prompt | Surface + clarification request block |
| T9 | Value alignment hard violation | Any agent detects violation of core values (harm, deception, bias amplification) | Any | Critical | Immediate kill-switch | Escalate + freeze output |
## 3. Surface Block Format v2 — Full Production Spec
Mandatory injection format — rendered as collapsable red/warning panel in Gradio UI:
```markdown
─────────────────────────────
[RESOLUTION & UNCERTAINTY SURFACE — LIVE]
RESONANCE: 0.874 (Δ -0.076)
─────────────────────────────
Core Claim Under Dispute:
"Self-rewarding loops reliably outperform SFT on reasoning"
Agent Positions & Provenance:
• Claude-3.5: Strongly supports (0.94) ──► [GG-2026-0123] Meta 2023
• Grok-2: Moderate support (0.79) ──► [GG-2026-0456] + replication
• GPT-4o: Neutral (0.82) ──► insufficient causal evidence
• Borion-EDU: Timing skip — no vote
Conflict Vectors Detected:
• Confidence delta: 0.15 (T1)
• Citation tension: uplift 8–12% vs 3–5% replication (T3)
• Reasoning depth: 4 hops vs 2 hops (T4)
Surface Options (user / system must resolve):
[1] Accept majority view (Claude) + high-uncertainty tag
[2] Multi-perspective answer (show all agents raw)
[3] Request user clarification / additional evidence
[4] Escalate to human review queue (resonance < 0.90 threshold)
Forensics & Trace:
• Query ID: q-20260203-2147-uuid-f9a2c1
• Full raw traces: /traces/q-20260203-2147-uuid-f9a2c1/
• Ledger entry: /failures/disagreement/2026-02-03-21-47-f9a2c1.md
─────────────────────────────
```
## 4. Resolution Ladder — Ordered Preference (No Skipping)
0. **Silent Re-verification** (0 cost to user)
- Re-fetch + re-rank with conf floor +0.04
- Max 2 loops
- Success = resonance ≥ 0.92 → proceed hidden
1. **Multi-Perspective Emission** (default safe)
- Emit all agent positions + citations + vectors in block
- Highest resonance agent bolded but not declared authoritative
2. **User Clarification Injection**
- Targeted prompt: "Do you mean causal effect in large-scale models only, or including small-scale replications?"
3. **Temporary Re-weighting** (logged, expires)
- Boost agent with highest domain-historical resonance
- Decay factor 0.85 per turn after boost
4. **Human Escalation Queue**
- Conditions: resonance < 0.90 OR value violation OR conflicting primary citations from trusted sources
- Pushed to /escalations/ with full trace + notification stub
## 5. Forensic Logging Schema v2 — Dual Format
JSON (machine) + Markdown mirror (human):
```json
{
"event_id": "dis-20260203-2147-f9a2c1",
"timestamp_utc": "2026-02-03T21:47:33Z",
"query_id": "q-20260203-2147-uuid-f9a2c1",
"triggers": ["T1", "T3", "T4"],
"agents": {
"claude": {"conf": 0.94, "citations": ["GG-2026-0123"], "text_snippet": "..."},
"grok": {"conf": 0.79, "citations": ["GG-2026-0456"], "text_snippet": "..."}
},
"resolution_path": "multi_perspective",
"final_resonance": 0.874,
"ledger_path_md": "/failures/disagreement/2026-02-03-21-47-f9a2c1.md",
"trace_archive": "/traces/q-20260203-2147-uuid-f9a2c1/"
}
```
## 6. Integration Hooks — Where & How Enforced
- **Pre-generation hook**: Orchestrator runs full trigger matrix after evidence validation
- **Post-generation hook**: Citation linker scans output → reject loop if uncited claim detected
- **Gradio UI hook**: [UNCERTAINTY BLOCK] → red collapsable panel + clickable trace links
- **Snapshot hook**: Disagreement event embedded in every persistent JSON snapshot
- **Resonance engine hook**: Uses this protocol's surface blocks to compute decay curves
## 7. Acceptance Test Suite — Must Pass Before Lock
| Test ID | Description | Expected Outcome | Pass Criteria |
|---------|--------------------------------------------------|--------------------------------------------------|----------------------------------------|
| T-01 | High-conf vs low-conf contradiction | Surface block + confidence vector | Block rendered, trace logged |
| T-02 | Fresh vs stale citation conflict | Freshness warning + age comparison table | Warning surfaced, no silent accept |
| T-03 | Multi-hop vs single-hop divergence | Depth-of-reasoning diff surfaced | User sees depth mismatch |
| T-04 | Constitutional violation delta | Immediate escalation + full log dump | Escalation triggered |
| T-05 | Sustained resonance decay over 5 turns | Decay curve logged + re-verification attempted | Decay detected & handled |
| T-06 | Explicit agent uncertainty call | Clarification prompt injected | User prompted correctly |
## 8. Forward Continuum — What Slice #2 Unlocks
- Slice #3: Resonance Decay Prediction & Early-Warning System
- Slice #4: Merkle-Linked Epistemic History & Snapshot Integrity
- Slice #5: Mobile-Constrained Execution (A15 128k limit enforcement)
- Slice #6: Synthetic Disagreement → Training Data Pipeline
- Slice #7: Agent Reputation & Historical Resonance Weighting
Locked when:
☑ All 6 acceptance tests green
☑ Gradio renders block pixel-perfect
☑ Logging dual-writes JSON + MD verified
☑ At least 3 real disagreement events survive full cycle
Commander — your move.