"""WSGI entry point for Gunicorn.""" from app import app if __name__ == "__main__": app.run()
- Kind
- Source File
- Date
- 2026-05-02T08:44:53Z
- Source
copecheck-careers/wsgi.py
Network knowledge layer
Generated OKF concepts across the CopeCheck public estate, split into readable chunks with source, type, and date.
Showing concepts 76-150 of 9965. Each page is capped at 75 concepts so browsers, crawlers, and LLM agents do not have to ingest the whole network at once.
"""WSGI entry point for Gunicorn.""" from app import app if __name__ == "__main__": app.run()
copecheck-careers/wsgi.pyPNG asset at copecheck-cities/static/favicon-32.png
copecheck-cities/static/favicon-32.pngICO asset at copecheck-cities/static/favicon.ico
copecheck-cities/static/favicon.ico"""Add top 10 best/worst cities articles to CopeCheck Cities.""" import os # 1. Create article template template_path = "/home/ben/infra/copecheck-cities/templates/article.html" template = r'''{% extends "base.html" %}.
copecheck-cities/add_articles.py#!/usr/bin/env python3 """Add Ireland, Canada, Australia, and New Zealand to CopeCheck Cities.""" import json, os SECTOR_WEIGHTS = {"administrative_support": 0.85, "retail": 0.80, "manufacturing": 0.82.
copecheck-cities/add_countries.pyimport json cities = [] # Batch 1: AL-FL (10 cities) cities.extend([ {"name":"Birmingham","slug":"birmingham-al","region":"Alabama","population":197575,"gva":42000.
copecheck-cities/add_us_cities.pyimport re import json import os from datetime import datetime from flask import Flask, render_template, abort, request, Response, url_for, jsonify app = Flask(__name__) # --- CopeCheck heuristic sector-exposure weights.
copecheck-cities/app.py[ { "name": "Sydney", "slug": "sydney", "region": "New South Wales", "population": 5231147, "gva": 85000, "sectors": { "agriculture": 0.2, "manufacturing": 5.5, "construction": 7.2, "wholesale": 3.5, "retail": 8.8.
copecheck-cities/data/au.json[ { "name": "Toronto", "slug": "toronto", "region": "Ontario", "population": 2794356, "gva": 72000, "sectors": { "agriculture": 0.2, "manufacturing": 6.8, "construction": 5.5, "wholesale": 3.8, "retail": 9.5.
copecheck-cities/data/ca.json[ { "name": "Dublin", "slug": "dublin", "region": "Leinster", "population": 1458154, "gva": 95000, "sectors": { "agriculture": 0.3, "manufacturing": 5.2, "construction": 4.8, "wholesale": 3.5, "retail": 8.9.
copecheck-cities/data/ie.json{ "slug": "london", "backed_up_at": "2026-09-25T14:15:44+00:00", "reason": "extended narrative pass against measured ONS data", "previous": { "oracle_soft": "London's extraordinary economic diversity is its ultimate.
copecheck-cities/data/narrative_backups/london-20260925T141544Z.json{ "slug": "london", "backed_up_at": "2026-09-25T14:17:24+00:00", "reason": "extended narrative pass against measured ONS data", "previous": { "oracle_soft": "London's measured labour market in mid-2026 reads as a.
copecheck-cities/data/narrative_backups/london-20260925T141724Z.json{ "slug": "london", "backed_up_at": "2026-09-25T22:09:56+00:00", "reason": "extended narrative pass against measured ONS data", "previous": { "oracle_soft": "London's measured labour market has moved the wrong way on.
copecheck-cities/data/narrative_backups/london-20260925T220956Z.json[ { "name": "Auckland", "slug": "auckland", "region": "Auckland", "population": 1695200, "gva": 68000, "sectors": { "agriculture": 0.5, "manufacturing": 7.2, "construction": 8.5, "wholesale": 4.5, "retail": 9.8.
copecheck-cities/data/nz.json[ { "name": "Swindon", "slug": "swindon", "region": "South West", "population": 185609, "sectors": { "agriculture": 0.4, "manufacturing": 11.2, "construction": 5.1, "wholesale": 4.8, "retail": 10.5.
copecheck-cities/data/uk.json{ "generated_at": "2026-11-22T08:30:05+00:00", "national": { "unemployment_rate": { "cdid": "MGSX", "title": "Unemployment rate (16+, SA)", "unit": "%", "value": 4.6, "period": "July to September 2026", "period_raw".
copecheck-cities/data/uk_labour.json{ "generated_at": "2026-11-24T07:15:01+00:00", "scope": "United Kingdom (country-level; the upstream dataset records no city or location field)", "upstream_last_updated": "2026-11-24", "upstream_last_scan".
copecheck-cities/data/uk_layoffs.json{ "generated_at": "2026-11-22T08:35:02+00:00", "workbook": "rtisanov2026.xlsx", "regions": { "North East": { "latest_period": "October 2026", "latest": 1119806, "year_ago_period": "October 2025", "year_ago": 1124777.
copecheck-cities/data/uk_rti.json[ { "name": "Birmingham", "slug": "birmingham-al", "region": "Alabama", "population": 197575, "gva": 42000, "sectors": { "agriculture": 0.3, "manufacturing": 8.5, "construction": 5.8, "wholesale": 3.2, "retail": 11.2.
copecheck-cities/data/us.jsonimport re app_path = "/home/ben/infra/copecheck-cities/app.py" with open(app_path, "r") as f: content = f.read() # Fix 1: articles_index - add countries=COUNTRIES content = content.replace( 'return.
copecheck-cities/fix_articles.pyapp_path = "/home/ben/infra/copecheck-cities/templates/base.html" with open(app_path, "r") as f: content = f.read() old_nav = """ <div class="nav-links"> {% for code, info in countries.items() if countries is defined.
copecheck-cities/fix_nav.py""" CopeCheck Cities — regenerate a city's narrative fields against measured data. This is an EXTENDED PASS in the established sense: it ADDS or replaces narrative prose only. It never computes, touches, or writes a.
copecheck-cities/generate_city_narrative.pybind = "127.0.0.1:5020" workers = 2 timeout = 30 accesslog = "-" errorlog = "-"
copecheck-cities/gunicorn_config.py""" CopeCheck Cities — UK labour market fetcher. Pulls genuinely current UK labour market data from two official sources and [redacted secret-like line] 1. ONS time series API.
copecheck-cities/labour_fetcher.py""" CopeCheck Cities — one-way snapshot of UK layoffs from copecheck-layoffs. Deliberate architecture: this script READS the layoffs service's data file and writes a private snapshot into this site's own data.
copecheck-cities/layoffs_sync.pypath = "/home/ben/infra/copecheck-cities/templates/city.html" with open(path, "r") as f: content = f.read() old = """automation probabilities, mapped to SIC sectors via ONS correspondence tables.""" new = """automation.
copecheck-cities/patch_city_template.pyimport re app_path = "/home/ben/infra/copecheck-cities/app.py" with open(app_path, "r") as f: content = f.read() old = ''' "us": { "name": "United States", "flag": "\\U0001f1fa\\U0001f1f8", "data_file": "us.json".
copecheck-cities/patch_countries.pypath = "/home/ben/infra/copecheck-cities/templates/landing.html" with open(path, "r") as f: content = f.read() old = """ONS workforce data. It's a blunt instrument, but it shows which local economies have the most to.
copecheck-cities/patch_landing.pyflask==3.1.1 gunicorn==23.0.0
copecheck-cities/requirements.txt""" CopeCheck Cities — HMRC PAYE RTI payrolled employees parser. The RTI payroll series is the one ONS says "currently provides the most reliable measure of employees", and it is the other half of the payroll-vs-.
copecheck-cities/rti_fetcher.py""" Trailing-slash canonicalisation for the CopeCheck Flask sites. Problem ------- Flask/Werkzeug only auto-redirects in ONE direction. A rule declared WITH a trailing slash ("/foo/") redirects "/foo" -> "/foo/" with a.
copecheck-cities/slash_canonical.py{% extends "base.html" %} {% block title %}404 — Page Not Found | CopeCheck Cities{% endblock %} {% block content %} <div style="text-align: center; padding: 4rem 0;"> <h1 style="font-size: 4rem; color: #333;">404</h1>.
copecheck-cities/templates/404.html{% extends "base.html" %} {% block title %}AI Disclosure | CopeCheck{% endblock %} {% block content %} <article class="cc-ai-disclosure" style="max-width:52rem;margin:0 auto 3rem;line-height:1.65"> <p.
copecheck-cities/templates/ai_disclosure.html<style> .cc-ai-label,.cc-ai-footer{box-sizing:border-box;border:1px solid rgba(245,158,11,.45);background:rgba(245,158,11,.08);color:inherit} .cc-ai-label{margin:1rem auto 1.5rem;padding:.75rem.
copecheck-cities/templates/_ai_footer.html<aside class="cc-ai-label" role="note" aria-label="AI-generated content disclosure"> <strong>AI-generated analysis</strong> <span>Scores and analytical summaries may be generated by AI. Check linked primary sources.
copecheck-cities/templates/_ai_label.html{% extends "base.html" %} {% block title %}{{ title }} — CopeCheck Cities{% endblock %} {% block content %} <h1>{{ title }}</h1> <p class="subtitle" style="color: #888; margin-bottom: 2rem;">{{ subtitle }}</p> <div.
copecheck-cities/templates/article.html{% extends "base.html" %} {% block title %}Articles from the Oracle — CopeCheck Cities{% endblock %} {% block content %} <h1>Articles from the Oracle</h1> <p class="subtitle" style="color: #888; margin-bottom.
copecheck-cities/templates/articles_index.html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{% block title %}CopeCheck Cities{% endblock %}</title> <meta.
copecheck-cities/templates/base.html{% extends "base.html" %} {% set countries = {country_code: country} %} {% block title %}{{ city.name }} — AI Displacement Score {{ city.score }}/100 | CopeCheck Cities{% endblock %} {% block content %} <div.
copecheck-cities/templates/city.html{% extends "base.html" %} {% set countries = {country_code: country} %} {% block title %}{{ country.name }} — AI Displacement Rankings | CopeCheck Cities{% endblock %} {% block content %} <div class="breadcrumb"> <a.
copecheck-cities/templates/country.html{% extends "base.html" %} {% set countries = countries %} {% block title %}CopeCheck Cities — AI Displacement Vulnerability Rankings{% endblock %} {% block content %} <h1>Which cities are most exposed to AI.
copecheck-cities/templates/landing.html<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> {% for page in pages %} <url> <loc>{{ page.url }}</loc> <priority>{{ page.priority }}</priority> </url> {% endfor %}.
copecheck-cities/templates/sitemap.xmlPNG asset at copecheck-codex/assets/apple-touch-icon.png
copecheck-codex/assets/apple-touch-icon.pngPNG asset at copecheck-codex/assets/favicon-192.png
copecheck-codex/assets/favicon-192.pngPNG asset at copecheck-codex/assets/favicon-32.png
copecheck-codex/assets/favicon-32.pngICO asset at copecheck-codex/assets/favicon.ico
copecheck-codex/assets/favicon.icoPNG asset at copecheck-codex/assets/og-default.png
copecheck-codex/assets/og-default.png<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>AI Disclosure | CopeCheck Codex</title> <meta name="description" content="How.
copecheck-codex/ai-disclosure.htmlimport { metrics, channels, extensions, mainRanks, ukRanks, policyRanks, careerRanks, layoffRanks, feedOps, protocol, pipeline } from "../data/seed.js?v=20260824-integrity2"; import { storyFeed } from.
copecheck-codex/assets/app.js:root { --void: #070708; --ink: #f4efe3; --muted: #aaa192; --faint: #6f675e; --panel: #101113; --panel-2: #15171a; --panel-3: #1b1d21; --line: #2d2c2a; --gold: #d8c28b; --gold-2: #f1dca5; --red: #d23f35; --amber.
copecheck-codex/assets/styles.css"""Deterministic URL and story identity helpers shared by CopeCheck pipelines. The identity deliberately contains no ingestion-channel prefix. A publisher URL discovered by RSS, Google News, Brave, or a user submission.
copecheck-codex/canonical_identity.pyfrom __future__ import annotations import argparse import copy import html as html_lib import importlib.util import ipaddress import json import math import os import re import sqlite3 import socket import sys import.
copecheck-codex/codex_server.pyexport const doomMarkets = { "generatedAt": "2026-11-24T12:14:59.829043Z", "summary": { "doom_index": 71, "market_pressure": 80, "official_pressure": 50, "market_count": 24, "provider_counts": { "Manifold": 18.
copecheck-codex/data/doom-markets.js{ "generatedAt": "2026-11-24T12:14:59.829043Z", "summary": { "doom_index": 71, "market_pressure": 80, "official_pressure": 50, "market_count": 24, "provider_counts": { "Manifold": 18, "Polymarket": 6 }, "topic_counts".
copecheck-codex/data/doom-markets.json[redacted secret-like line]
copecheck-codex/data/jobs-state.jsonexport const metrics = [ { label: "mapped surfaces", value: "19", detail: "including this control plane", url: "#network" }, { label: "evidence model", value: "Canonical", detail: "unique events; publishers retained".
copecheck-codex/data/seed.jsexport const storyFeed = { "generatedAt": "2026-11-24T13:07:14.644458Z", "count": 30, "stories": [ { "channel": "layoffs", "channels": [ "layoffs" ], "feed": "staff redundancies UK 2026", "title": "City & Guilds firm.
copecheck-codex/data/stories.js{"generatedAt":"2026-11-24T13:07:14.644458Z","count":30,"stories":[{"channel":"layoffs","channels":["layoffs"],"feed":"staff redundancies UK 2026","title":"City & Guilds firm workers balloted on strike action - Civil.
copecheck-codex/data/stories.json[redacted secret-like line]
copecheck-codex/data/tmp0q80cq00[redacted secret-like line]
copecheck-codex/data/tmp5gb0c1d8{ "jobs": { "cc_421036ff820d499b": { "job_id": "cc_421036ff820d499b", "url": "https://codex.copecheck.com/fixtures/scoring-smoke.html", "channel": "main", "status": "complete", "submitted_at".
copecheck-codex/data/tmpgx4hdjne[redacted secret-like line]
copecheck-codex/data/tmpi349iifv[redacted secret-like line]
copecheck-codex/data/tmpk8qhglul{ "jobs": { "cc_421036ff820d499b": { "job_id": "cc_421036ff820d499b", "url": "https://codex.copecheck.com/fixtures/scoring-smoke.html", "channel": "main", "status": "complete", "submitted_at".
copecheck-codex/data/tmplbsau4m8{ "jobs": { "cc_421036ff820d499b": { "job_id": "cc_421036ff820d499b", "url": "https://codex.copecheck.com/fixtures/scoring-smoke.html", "channel": "main", "status": "complete", "submitted_at".
copecheck-codex/data/tmpr1vrquc2[Unit] Description=Refresh CopeCheck Codex doom-market signals [Service] Type=oneshot User=ben WorkingDirectory=/home/ben/infra/copecheck-codex ExecStart=/usr/bin/python3 tools/fetch_doom_markets.py --per-query 8.
copecheck-codex/deploy/copecheck-codex-doom-markets.service[Unit] Description=Refresh CopeCheck Codex doom-market signals every 6 hours [Timer] OnBootSec=5min OnUnitActiveSec=6h Unit=copecheck-codex-doom-markets.service [Install] WantedBy=timers.target
copecheck-codex/deploy/copecheck-codex-doom-markets.timer[Unit] Description=CopeCheck Codex site and scoring queue After=network.target [Service] Type=simple User=ben WorkingDirectory=/home/ben/infra/copecheck-codex ExecStart=/usr/bin/python3 codex_server.py --host 127.0.0.1.
copecheck-codex/deploy/copecheck-codex.service[Unit] Description=Refresh CopeCheck Codex RSS stories [Service] Type=oneshot User=ben WorkingDirectory=/home/ben/infra/copecheck-codex ExecStart=/usr/bin/python3 tools/fetch_rss_stories.py --limit 30.
copecheck-codex/deploy/copecheck-codex-stories.service[Unit] Description=Refresh CopeCheck Codex RSS stories every 30 minutes [Timer] OnBootSec=3min OnUnitActiveSec=30min Unit=copecheck-codex-stories.service [Install] WantedBy=timers.target
copecheck-codex/deploy/copecheck-codex-stories.timer# CopeCheck Codex Prototype This folder is a dependency-free prototype for `codex.copecheck.com`. The intended product is a unified CopeCheck operating layer that folds the existing eight subdomains into one data.
copecheck-codex/docs/ARCHITECTURE.md# Doom Market Signals [redacted secret-like line] It is designed to surface public market prices and UK labour context without [redacted secret-like line] ## What It Pulls - Manifold public search API for AI jobs.
copecheck-codex/docs/DOOM_MARKETS.md{ "feeds": [ { "name": "company layoffs announced", "url": "https://www.google.com/alerts/feeds/03237800361243394157/1710907971154286548" }, { "name": "job cuts workers laid off", "url".
copecheck-codex/feeds/layoffs-rss_feeds.json{ "_comment": "Google Alerts RSS feeds for AI cope topics — auto-ingested by pipeline.py", "fetch_timeout": 15, "max_articles_per_feed": 20, "feeds": [ { "name": "AI replacing jobs", "url".
copecheck-codex/feeds/main-rss_feeds.json{ "_comment": "Google Alerts RSS feeds for UK AI cope topics — auto-ingested by pipeline_uk.py", "fetch_timeout": 15, "max_articles_per_feed": 20, "feeds": [ { "name": "UK AI jobs", "url".
copecheck-codex/feeds/uk-rss_feeds.jsonCopeCheck Network: Main · UK · Countries · EU · Policy · Cities · Layoffs · Careers · Quiz · Feedback