---
type: "Source File"
title: "<section class=\"hero hero-compact\">"
description: "{% extends \"base.html\" %} {% block title %}Oracle — {{ entry.month }}{% endblock %} {% block content %} <section class=\"hero hero-compact\"> <div class=\"hero-inner\"> <h1 class=\"hero-title\">ONS Oracle: {{ entry.month."
resource: "https://uk.copecheck.com"
tags: ["copecheck", "uk", "source-file", "html"]
timestamp: "2026-04-22T22:02:44Z"
site: "uk"
source_path: "copecheck-uk/templates/oracle_month.html"
---

# <section class="hero hero-compact">

Source path: `copecheck-uk/templates/oracle_month.html`  
Index snapshot generated: `2026-11-24T13:42:54Z`  
File modified: `2026-04-22T22:02:44Z`

```html
{% extends "base.html" %}
{% block title %}Oracle — {{ entry.month }}{% endblock %}

{% block content %}
<section class="hero hero-compact">
    <div class="hero-inner">
        <h1 class="hero-title">ONS Oracle: {{ entry.month }}</h1>
        <p class="hero-subtitle">
            <a href="/oracle">&larr; Back to latest</a>
        </p>
    </div>
</section>

<section class="oracle-section">
    <div class="oracle-latest">
        <div class="oracle-month-header">
            <h2 class="oracle-month-title">{{ entry.month }}</h2>
            <span class="oracle-model-badge">Scored by {{ entry.ai_model or 'seed' }}</span>
        </div>

        {% if entry.ai_summary %}
        <div class="oracle-block">
            <h3 class="oracle-block-title">
                <span class="block-icon">&#x1f4ca;</span> Summary
            </h3>
            <div class="oracle-text">{{ entry.ai_summary }}</div>
        </div>
        {% endif %}

        {% if entry.ai_gap_analysis %}
        <div class="oracle-block oracle-block-gap">
            <h3 class="oracle-block-title">
                <span class="block-icon">&#x1f50d;</span> Gap Analysis: Claims vs Reality
            </h3>
            <div class="oracle-text">{{ entry.ai_gap_analysis }}</div>
        </div>
        {% endif %}

        {% if entry.ai_scapegoat_check %}
        <div class="oracle-block oracle-block-scapegoat">
            <h3 class="oracle-block-title">
                <span class="block-icon">&#x1f3af;</span> Scapegoat Check
            </h3>
            <div class="oracle-text">{{ entry.ai_scapegoat_check }}</div>
        </div>
        {% endif %}

        {% if entry.data %}
        <div class="oracle-data-grid">
            <h3 class="oracle-block-title">
                <span class="block-icon">&#x1f4c8;</span> Raw Data
            </h3>
            <div class="data-cards">
                {% if entry.data.gdp_growth is defined %}
                <div class="data-card">
                    <span class="data-label">GDP Growth</span>
                    <span class="data-value">{{ entry.data.gdp_growth }}%</span>
                </div>
                {% endif %}
                {% if entry.data.inflation_cpi is defined %}
                <div class="data-card">
                    <span class="data-label">CPI Inflation</span>
                    <span class="data-value">{{ entry.data.inflation_cpi }}%</span>
                </div>
                {% endif %}
                {% if entry.data.unemployment_rate is defined %}
                <div class="data-card">
                    <span class="data-label">Unemployment</span>
                    <span class="data-value">{{ entry.data.unemployment_rate }}%</span>
                </div>
                {% endif %}
                {% if entry.data.wage_growth_real is defined %}
                <div class="data-card">
                    <span class="data-label">Real Wage Growth</span>
                    <span class="data-value">{{ entry.data.wage_growth_real }}%</span>
                </div>
                {% endif %}
                {% if entry.data.net_migration is defined %}
                <div class="data-card">
                    <span class="data-label">Net Migration</span>
                    <span class="data-value">{{ "{:,}".format(entry.data.net_migration) }}</span>
                </div>
                {% endif %}
                {% if entry.data.housing_avg_price is defined %}
                <div class="data-card">
                    <span class="data-label">Avg House Price</span>
                    <span class="data-value">&pound;{{ "{:,}".format(entry.data.housing_avg_price) }}</span>
                </div>
                {% endif %}
                {% if entry.data.base_rate is defined %}
                <div class="data-card">
                    <span class="data-label">Base Rate</span>
                    <span class="data-value">{{ entry.data.base_rate }}%</span>
                </div>
                {% endif %}
                {% if entry.data.productivity_growth is defined %}
                <div class="data-card">
                    <span class="data-label">Productivity Growth</span>
                    <span class="data-value">{{ entry.data.productivity_growth }}%</span>
                </div>
                {% endif %}
            </div>
        </div>
        {% endif %}

        <div class="oracle-actions">
            <button class="btn btn-secondary" onclick="rescoreMonth('{{ entry.month }}')">
                <span class="btn-text">Re-score with AI</span>
                <span class="btn-loading" style="display:none"><span class="spinner"></span> Scoring...</span>
            </button>
        </div>
    </div>
</section>
{% endblock %}

{% block scripts %}
<script>
async function rescoreMonth(month) {
    const btn = event.target.closest('.btn');
    const btnText = btn.querySelector('.btn-text');
    const btnLoading = btn.querySelector('.btn-loading');
    btnText.style.display = 'none';
    btnLoading.style.display = 'inline-flex';
    btn.disabled = true;

    try {
        const resp = await fetch(`/api/oracle/rescore/${month}`, {method: 'POST'});
        const data = await resp.json();
        if (data.ok) {
            location.reload();
        } else {
            alert(data.error || 'Scoring failed');
        }
    } catch (e) {
        alert('Error: ' + e.message);
    } finally {
        btnText.style.display = 'inline';
        btnLoading.style.display = 'none';
        btn.disabled = false;
    }
}
</script>
{% endblock %}
```
