---
type: "Source File"
title: "!/usr/bin/env python3"
description: "#!/usr/bin/env python3 \"\"\"Add one attributable primary-source claim for newly tracked UK figures.\"\"\" import sys sys.path.insert(0, \"/home/ben/infra/copecheck-uk\") from dotenv import load_dotenv."
resource: "https://uk.copecheck.com"
tags: ["copecheck", "uk", "source-file", "py"]
timestamp: "2026-08-04T21:43:33Z"
site: "uk"
source_path: "copecheck-uk/bootstrap_current_figures.py"
---

# !/usr/bin/env python3

Source path: `copecheck-uk/bootstrap_current_figures.py`  
Index snapshot generated: `2026-11-24T13:42:54Z`  
File modified: `2026-08-04T21:43:33Z`

```py
#!/usr/bin/env python3
"""Add one attributable primary-source claim for newly tracked UK figures."""
import sys

sys.path.insert(0, "/home/ben/infra/copecheck-uk")

from dotenv import load_dotenv

load_dotenv("/home/ben/infra/copecheck-uk/.env")

import db_uk as db
import oracle_uk as oracle


SOURCES = [
    {
        "figure_id": "healey",
        "quote": "Every government department is a growth department. We will make the fullest possible use of public investment within our fiscal framework, and take the fullest advantage of private and international investment ready to back Britain.",
        "url": "https://www.gov.uk/government/speeches/[redacted]",
        "title": "Chancellor John Healey delivers speech to Treasury staff",
    },
    {
        "figure_id": "louise_haigh",
        "quote": "No10 North has been set up to drive economic growth in every postcode and put power in the hands of every community.",
        "url": "https://www.gov.uk/government/news/[redacted]",
        "title": "No10 North open for business",
    },
    {
        "figure_id": "yvette_cooper",
        "quote": "Every woman having a baby in the NHS should feel safe and looked after, and that has to be our mission. A lot of good work has been done but there is so much more to do.",
        "url": "https://www.gov.uk/government/news/[redacted]",
        "title": "£4.5 million to improve Berkshire maternity and neonatal services",
    },
    {
        "figure_id": "lucy_powell",
        "quote": "The technological revolution we are living through should mean young people become the fresh lifeblood our economy needs to adapt and grow.",
        "url": "https://www.gov.uk/government/news/[redacted]",
        "title": "Britain will value the hard hat as much as the graduation cap",
    },
    {
        "figure_id": "hassabis",
        "quote": "AGI will be the most profound technology ever invented and potentially the ultimate tool to advance science, medicine, and productivity.",
        "url": "https://deepmind.google/blog/10-years-of-alphago/",
        "title": "From games to biology and beyond: 10 years of AlphaGo's impact",
    },
]


def main():
    failures = 0
    for source in SOURCES:
        figure = db.get_figure(source["figure_id"])
        if not figure:
            print(f"MISSING {source['figure_id']}")
            failures += 1
            continue
        if db.cope_entry_exists(source["figure_id"], source["quote"][:200]):
            print(f"EXISTS {source['figure_id']}")
            continue
        result = oracle.score_figure_cope(
            figure["name"], figure.get("role", ""), source["quote"], source["title"]
        )
        if not result or result.get("cope_score") is None:
            print(f"FAILED {source['figure_id']}")
            failures += 1
            continue
        db.add_cope_entry(
            figure_id=source["figure_id"],
            quote=source["quote"],
            source_url=source["url"],
            source_title=source["title"],
            cope_score=float(result["cope_score"]),
            cope_type=(result.get("cope_type") or "unknown").strip().lower(),
            analysis_md=result.get("analysis") or "",
            model=result.get("model") or "unknown",
        )
        print(
            f"ADDED {source['figure_id']} score={result['cope_score']} "
            f"type={result.get('cope_type')} model={result.get('model')}"
        )
    return 1 if failures else 0


if __name__ == "__main__":
    raise SystemExit(main())
```
