---
type: "Source File"
title: "\"\"\"Score policies against the Discontinuity Thesis v3.3 framework.\"\"\""
description: "\"\"\"Score policies against the Discontinuity Thesis v3.3 framework.\"\"\" import json import os import re import time import requests [redacted secret-like line] [redacted secret-like line] DISCONTINUITY_THESIS = \"\"\" THE."
resource: "https://policy.copecheck.com"
tags: ["copecheck", "policy", "source-file", "py"]
timestamp: "2026-07-06T12:31:06Z"
site: "policy"
source_path: "copecheck-policy/scorer.py"
---

# """Score policies against the Discontinuity Thesis v3.3 framework."""

Source path: `copecheck-policy/scorer.py`  
Index snapshot generated: `2026-11-24T13:27:52Z`  
File modified: `2026-07-06T12:31:06Z`

```py
"""Score policies against the Discontinuity Thesis v3.3 framework."""
import json
import os
import re
import time
import requests

[redacted secret-like line]
[redacted secret-like line]


DISCONTINUITY_THESIS = """
THE DISCONTINUITY THESIS v3.3: INTERFACE COLLAPSE

The Discontinuity Thesis argues that postwar capitalism dies when wage labour no longer
provides mass economic agency. Not total labour extinction - mass agency collapse.

THE FOUR-LAYER CASCADE:
1. TASK-LEVEL UNIT-COST DOMINANCE: AI + thin human oversight produces professional task
   outputs at equal/better quality, faster, cheaper. Already crossed for many cognitive tasks.
2. INTERFACE & WORKFLOW DOMINANCE: AI operates through the same software environments
   where work happens. The old moat was software fragmentation. That moat is collapsing.
3. JOB-LEVEL DOMINANCE: Whole roles become unnecessary as enough task volume is stripped out.
4. LABOUR-MARKET DOMINANCE: Wage labour stops being the mass route to economic agency.

THE THREE COMPLEMENTARITY STAGES:
- Genuine: AI raises marginal value of human labour. Real but not guaranteed to persist.
- Transitional: Humans supervise while AI improves. Unstable by design.
- Theatrical: Humans remain for trust/liability/optics. Not augmentation - managed displacement.

WHY REGULATION FAILS:
- AI erodes task boundaries continuously: spell-check to drafting to composition to analysis
  to decision-making to execution. No stable line between assisted and automated.
- Coordination fails: actors who keep expensive human labour lose to those who automate.
- Prisoner's dilemma runs at quarterly earnings pace. Treaty negotiation at OECD summit pace.

THE THRESHOLD: The majority. Postwar capitalism dies when the majority of working-age adults
cannot sell labour at socially sustaining wages without subsidy, protection, or makework.
"""

SCORING_PROMPT = """You are the Oracle of Policy Obsolescence for CopeCheck.
You score policy proposals against the Discontinuity Thesis v3.3 (Interface Collapse).

{thesis}

SCORE THIS POLICY on four dimensions (0-100, higher = more cope / more likely to fail):

1. **UNIT-COST SURVIVABILITY** (0-100):
   0 = Policy explicitly accounts for near-zero marginal cost and still functions
   100 = Policy assumes human labour remains cost-competitive with AI

2. **INTERFACE COLLAPSE RESISTANCE** (0-100):
   0 = Policy addresses the world where AI handles end-to-end workflows
   100 = Policy assumes humans retain their role as the stitching between fragmented software

3. **PROPAGATION BLINDNESS** (0-100):
   0 = Policy addresses systemic propagation and has mechanisms for each layer
   100 = Policy only addresses one layer and assumes the others hold

4. **COORDINATION FEASIBILITY** (0-100):
   0 = Policy is self-enforcing or doesn't require multi-actor coordination
   100 = Policy requires voluntary compliance from actors incentivised to defect

ALSO:
- **OVERALL COPE SCORE**: Weighted = (unit_cost x 0.30) + (interface x 0.25) + (propagation x 0.25) + (coordination x 0.20)
- **VERDICT**: "Pure Cope" (80+) | "Heavy Cope" (60-79) | "Partial Cope" (40-59) | "Somewhat Lucid" (20-39) | "Actually Addresses Reality" (0-19)
- **SURVIVES**: true if overall < 30, false otherwise. Be VERY strict.

Return ONLY valid JSON:
{{
    "unit_cost_score": <0-100>,
    "unit_cost_analysis": "<3-4 sentences>",
    "interface_collapse_score": <0-100>,
    "interface_analysis": "<3-4 sentences>",
    "propagation_score": <0-100>,
    "propagation_analysis": "<3-4 sentences>",
    "coordination_score": <0-100>,
    "coordination_analysis": "<3-4 sentences>",
    "overall_cope_score": <0-100>,
    "verdict": "<verdict string>",
    "analysis": "<2-3 paragraph overall analysis>",
    "survives": <true/false>
}}

POLICY TO SCORE:
Name: {name}
Domain: {domain}
Summary: {summary}
Description: {description}
Challenge: {challenge}
"""

def _parse_json(raw: str) -> dict:
    content = re.sub(r"<think>.*?</think>", "", str(raw), flags=re.DOTALL).strip()
    m = re.search(r"\{[\s\S]*\}", content)
    if m:
        return json.loads(m.group())
    raise ValueError(f"No JSON found in response: {content[:200]}")


def _call_minimax(prompt: str) -> tuple:
    resp = requests.post(
        "https://api.minimax.io/v1/chat/completions",
[redacted secret-like line]
        json={"model": "MiniMax-M3", "messages": [{"role": "user", "content": prompt}],
[redacted secret-like line]
        timeout=120,
    )
    resp.raise_for_status()
    return resp.json()["choices"][0]["message"]["content"], "minimax-m3"


def _call_gemini(prompt: str) -> tuple:
    resp = requests.post(
[redacted secret-like line]
        json={"contents": [{"parts": [{"text": prompt}]}],
[redacted secret-like line]
        timeout=120,
    )
    resp.raise_for_status()
    return resp.json()["candidates"][0]["content"]["parts"][0]["text"], "gemma-4-27b"



def score_policy(policy_data: dict) -> dict:
    """Score a policy. Fallback chain: MiniMax -> Gemini."""
    prompt = SCORING_PROMPT.format(
        thesis=DISCONTINUITY_THESIS,
        name=policy_data.get("name", ""),
        domain=policy_data.get("domain", ""),
        summary=policy_data.get("summary", ""),
        description=policy_data.get("description", ""),
        challenge=policy_data.get("challenge", ""),
    )
    errors = []
[redacted secret-like line]
        try:
            raw, model = _call_minimax(prompt)
            result = _parse_json(raw)
            result["model"] = model
            return result
        except Exception as e:
            errors.append(f"MiniMax: {e}")
            time.sleep(2)
[redacted secret-like line]
        try:
            raw, model = _call_gemini(prompt)
            result = _parse_json(raw)
            result["model"] = model
            return result
        except Exception as e:
            errors.append(f"Gemini: {e}")
            time.sleep(2)
    raise RuntimeError(f"All scorers failed: {'; '.join(errors)}")
```
