Workstreams.1.mov
- Push this entire folder to a GitHub repository
- Go to Settings β Pages β Source: Deploy from branch β main β / (root)
- Live at
https://yourusername.github.io/hormuz/index.html
github_site/
βββ index.html β Public portal with breaking news banner
βββ admin.html β Admin control panel (parameter calibration)
βββ params.json β Shared parameters file (AI analysis + Brent)
βββ README.md
β
βββ eq4/ β Equation 4: U.S. accommodation vs escalation
β βββ index.html
β βββ css/style.css
β βββ js/main.js
β
βββ eq5/ β Equation 5: Iran closure decision
β βββ index.html
β βββ css/style.css
β βββ js/main.js
β
βββ eq7/ β Equation 7: Swing producer cascade
β βββ index.html
β βββ css/style.css
β βββ js/main.js
β
βββ eq8/ β Equation 8: Dollar hegemony decay
β βββ index.html
β βββ css/style.css
β βββ js/main.js
β
βββ eq12/ β Equation 12: Sanctions relief threshold
βββ index.html
βββ css/style.css
βββ js/main.js
The admin.html panel manages model parameters via AI calibration:
Get free API keys:
- Guardian API: https://open-platform.theguardian.com/access/ (12,000 req/day)
- Anthropic API: https://console.anthropic.com/ (Claude calibration)
Enter keys in admin panel β Click "Save keys" (stored in browser localStorage only)
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β 1. Fetch Brent Oil Price β
β β’ Auto-scrapes oilprice.com (every 5 min) β
β β’ Fallback: Yahoo Finance β
β β’ Manual override available β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β 2. Fetch Headlines β
β β’ Guardian API (customizable keywords) β
β β’ Auto-labeled by equation (Eq.4-12) β
β β’ 24h lookback (configurable) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β 3. Run Claude Calibration β
β β’ AI analyzes headlines + Brent price β
β β’ Updates 12 model parameters β
β β’ Provides justifications + confidence β
β β’ Stores changelog (learning tool) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β 4. Review & Publish β
β β’ View changelog history (insights) β
β β’ Add analyst notes β
β β’ Download params.json β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β 5. Deploy to GitHub β
β β’ git add github_site/params.json β
β β’ git commit -m "Update params" β
β β’ git push β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β 6. Portal Auto-Updates β
β β’ index.html fetches params.json (10 min) β
β β’ All equation pages update β
β β’ Banner shows dynamic AI analysis β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
| Symbol | Name | Range | Description |
|---|---|---|---|
| c | Credibility | 0.0-1.0 | Iran closure threat credibility (0=bluff, 1=certain) |
| E | Base escalation cost | 1-15 | U.S. military intervention base cost |
| m | Geographic multiplier | 1.0-5.0 | Hormuz chokepoint impact (~3.0 = 20% global oil) |
| H | Hegemony loss | 1-12 | U.S. dollar dominance erosion |
| G | Iran yuan gain | 1-15 | Iran benefit from yuan adoption |
| S | Sanctions cost | 1-15 | Iran economic damage from sanctions |
| Sr | Sanctions relief | 0-25 | Sanctions relief amount (OFAC/SWIFT) |
| k | Cascade switchers | 0-10 | Swing producers switching to yuan |
| nu | Network gain | 1-8 | Utility gain per yuan switcher |
| Ps | U.S. guarantee value | 5-20 | U.S. security guarantee value to allies |
| rhoI | Iran decay rate | 0.005-0.15 | Iran's erosion rate from yuan settlements |
| n | Swing states | 0-5 | Number of swing producer states |
- E* (Effective escalation cost):
E Γ [1 + c(mβ1)] - Dominance margin:
G + S - Sr(positive = trap active) - Sr coverage:
Sr/(G+S) Γ 100%
After 10 calibrations, you notice:
β’ Eq.5 headlines (attacks) β Always boost 'c' (HIGH confidence)
β’ Eq.12 headlines β Only move 'Sr' when containing "OFAC/SWIFT"
β’ Eq.7 headlines (yuan switching) β Gradual 'H'/'G' increases
β’ Brent >$90 β c parameter jumps significantly
Use these insights to:
β Refine search keywords
β Write better analyst notes
β Understand model sensitivity
β Predict parameter moves
| Data Type | Storage | Shared? |
|---|---|---|
| API Keys | Browser localStorage | β Never (private) |
| Changelog | Browser localStorage | β Never (learning tool) |
| Parameters | GitHub (params.json) | β Yes (public) |
| Headlines | Session memory | β No (cleared on refresh) |
Zero server costs - everything runs in browser or GitHub Pages.
- Create folder:
/eqXX/ - Add files:
index.html(copy from existing eq folder)css/style.css(shared stylesheet)js/main.js(equation-specific logic)
- Update
index.htmlin root:- Change
.card.comingto.card.live - Add correct
hrefto/eqXX/
- Change
- Ensure equation page fetches
params.json:fetch('../params.json') .then(r => r.json()) .then(p => { // Use parameters in visualization });
| ID | Equation | Status | Path | Description |
|---|---|---|---|---|
| 001 | E* = EΓ[1 + c(mβ1)] | β Live | /eq5/ | Hormuz Commitment Device |
| 002 | a* = argmax min U_A | β Live | /eq4/ | U.S. Dominant Strategy |
| 003 | Gs + kΞ½ > Ps(1βΞ΄)^k | β Live | /eq7/ | Swing Producer Cascade |
| 004 | Sr β₯ G+S | β Live | /eq12/ | Sanctions Relief Threshold |
| 005 | H_{t+1} = H_t(1βΟIβntΒ·ΟS) | β Live | /eq8/ | Hegemony Decay |
- Frontend: Pure HTML/CSS/JavaScript (no frameworks)
- APIs:
- Guardian API (news headlines)
- Anthropic Claude API (AI calibration)
- oilprice.com scraper (Brent crude)
- Yahoo Finance fallback (Brent crude backup)
- Storage:
- localStorage (API keys, changelog)
- GitHub Pages (params.json, static site)
- Deployment: GitHub Pages (zero cost, auto-updates)
β
Auto-scraping Brent price (every 5 minutes)
β
Guardian API integration (headline fetching)
β
Claude AI calibration (parameter updates)
β
Changelog tracking (learn from past calibrations)
β
Manual overrides (full control)
β
Dynamic banner (shows AI analysis from params.json)
β
Slower scrolling (60s cycle for readability)
β
Bigger fonts (15px for visibility)
β
Zero server costs (browser + GitHub Pages)
β
Privacy-first (API keys never leave browser)
β
Real-time portal updates (params.json auto-fetch)
MIT License - Free to use and modify for research purposes.
- Admin Panel:
/admin.html - Public Portal:
/index.html - Guardian API: https://open-platform.theguardian.com/
- Anthropic Claude: https://console.anthropic.com/
- GitHub Pages Docs: https://docs.github.com/en/pages
| Date | Event |
|---|---|
| 28 FEB 2026 | Crisis begins - Hormuz closure |
| 23 MAR 2026 | Trump-Iran talks signal, Brent volatile |
- Brent $105+ (up 18% on invasion)
- Trap Status Active (dominance margin > 0)
- Primary Threat Military escalation + Bab al-Mandan leverage