Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/public-shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
fetch-depth: 0
- name: Status-export negative controls
run: python3 -B -m unittest discover -s tests -p test_public_shop_data.py
- name: Reproducible entry and transitive asset release
run: |
python3 -B tools/site_asset_release.py --check
python3 -B -m unittest tests.test_site_asset_release
- name: Browser data-validation controls
run: node --test tests/test_public_shop_frontend.mjs tests/test_explore_models.mjs tests/test_reader_navigation.mjs tests/test_source_reference.mjs tests/test_measurement_model.mjs tests/test_dependency_viewer.mjs tests/test_museum_frontend.mjs tests/test_workspace_navigation.mjs
- name: Reader navigation and local asset routes
Expand Down
8 changes: 4 additions & 4 deletions docs/site/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {verifiedJSON, verifiedBytes, validateStatus, validateCoefficient, safeSourceURL, hex40, hex64} from './core.mjs';
import {connectCatalogQuery} from './catalog-query.mjs';
import {prepareWorkspaceFragment} from './workspace-fragment.mjs';
import {verifiedJSON, verifiedBytes, validateStatus, validateCoefficient, safeSourceURL, hex40, hex64} from './core.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';
import {connectCatalogQuery} from './catalog-query.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';
import {prepareWorkspaceFragment} from './workspace-fragment.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';
const finishFragment=prepareWorkspaceFragment();
const el=id=>document.getElementById(id);
const node=(tag,text,cls)=>{const n=document.createElement(tag);if(text!==undefined)n.textContent=text;if(cls)n.className=cls;return n;};
Expand Down Expand Up @@ -110,7 +110,7 @@ async function queryIdentity(config) {
el('query-note').append(node('code','python -B -S verify_portable_stubs.py --check-math-tip'),node('span','. The command checks file bytes, not commit equality. This page reads only the pinned bundle and performs no live tip check.'));
}
try {
const response=await fetch('config.json',{credentials:'omit'});if(!response.ok)throw new Error('Shop config unavailable');const config=await response.json();
const response=await fetch('config.json',{credentials:'omit',cache:'no-store'});if(!response.ok)throw new Error('Shop config unavailable');const config=await response.json();
const jobs=[['status-note',()=>board(config)],['coefficient-state',()=>coefficients(config)],['inventory-state',()=>inventory(config)],['custody-note',()=>custody(config)],['query-note',()=>queryIdentity(config)]];
await Promise.allSettled(jobs.map(async([id,job])=>{try{await job();}catch(e){error(id,e);}}));
} catch(e) {['status-note','coefficient-state','inventory-state','custody-note','query-note'].forEach(id=>error(id,e));}
Expand Down
2 changes: 1 addition & 1 deletion docs/site/brand.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ body > header {
color: var(--ul-text); font-weight: 750; letter-spacing: .13em;
position: relative; padding-left: 57px; min-height: 44px; line-height: 1.65;
}
.brand::before { content: ""; position: absolute; left: 0; top: 1px; width: 42px; height: 42px; background: url("brand/mark.svg") center/contain no-repeat; }
.brand::before { content: ""; position: absolute; left: 0; top: 1px; width: 42px; height: 42px; background: url("brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3") center/contain no-repeat; }
.brand span { color: var(--ul-muted); font-size: 10px; letter-spacing: .18em; }
nav { gap: 12px 24px; flex-wrap: wrap; }
nav a { color: var(--ul-text); min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; }
Expand Down
4 changes: 2 additions & 2 deletions docs/site/cite.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta name="description" content="Cite exact proofs, calculations and software sources with their real metadata, immutable commits and stated scope.">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src 'none'; style-src 'self'; script-src 'self'; img-src 'self' data:; object-src 'none'; base-uri 'none'; form-action 'none'">
<title>Cite · Universal Law</title>
<link rel="stylesheet" href="style.css"><link rel="stylesheet" href="brand.css"><link rel="stylesheet" href="home.css"><link rel="stylesheet" href="reference.css"><link rel="icon" type="image/svg+xml" href="brand/mark.svg"><meta name="theme-color" content="#07111f">
<script type="module" src="cite.mjs"></script>
<link rel="stylesheet" href="style.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="stylesheet" href="brand.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="stylesheet" href="home.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="stylesheet" href="reference.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><meta name="theme-color" content="#07111f">
<script type="module" src="cite.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"></script>
</head><body class="reader-home"><a class="skip-link" href="#main-content">Skip to content</a>
<header><a class="brand" href="index.html">UNIVERSAL LAW <span>MATHEMATICS IN THE OPEN</span></a><nav aria-label="Primary"><a href="index.html">Home</a><a href="explore.html">Explore</a><a href="research.html">Research</a><a href="workspace.html#inventory">Library</a></nav></header>
<nav class="reader-tools" aria-label="Research tools"><a href="reproduce.html">Reproduce</a><a href="cite.html" aria-current="page">Cite</a></nav>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/cite.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {wireReferenceForm} from './source-reference.mjs';
import {wireReferenceForm} from './source-reference.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';
const byId = id => document.getElementById(id);
wireReferenceForm({form:byId('reference-form'), repository:byId('reference-repository'), commit:byId('reference-commit'), path:byId('reference-path'), output:byId('reference-output'), link:byId('reference-link'), status:byId('reference-status')});
byId('reference-builder').hidden = false;
2 changes: 1 addition & 1 deletion docs/site/conditionals.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function renderProjection(document,host,data,source){
el(document,'p','Generated from verified source bytes. This graph is not formal verification, a proof review, or a scientific-status register.'));
host.replaceChildren(article);
}
const services=()=>import('./museum.mjs');
const services=()=>import('./museum.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3');
// The museum module already verifies config → manifest → index/status once per
// page fetch and caches every pinned byte request. This route consumes that same
// verified startup, so it adds only the audited-descriptor check and projection.
Expand Down
2 changes: 1 addition & 1 deletion docs/site/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function verifiedBytes(pin, fetcher = fetch) {
const expected = `https://raw.githubusercontent.com/${pin.repository}/${pin.commit}/${pin.path.split('/').map(encodeURIComponent).join('/')}`;
if (target !== expected) throw new Error('Displayed identity does not match source URL');
}
const response = await fetcher(target, {credentials:'omit', redirect:'error'});
const response = await fetcher(target, {credentials:'omit', redirect:'error', ...(target.startsWith('https:')?{}:{cache:'no-store'})});
if (!response.ok) throw new Error(`Source unavailable (${response.status})`);
const data = new Uint8Array(await response.arrayBuffer());
if (data.byteLength !== pin.bytes) throw new Error('Source byte count mismatch');
Expand Down
10 changes: 5 additions & 5 deletions docs/site/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src 'self'; style-src 'self'; script-src 'self'; img-src 'self' data:; object-src 'none'; base-uri 'none'; form-action 'none'">
<title>Claim dependency viewer · Universal Law</title>
<meta name="theme-color" content="#07111f">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="brand.css">
<link rel="stylesheet" href="dependencies.css">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg">
<script type="module" src="dependencies.mjs"></script>
<link rel="stylesheet" href="style.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="stylesheet" href="brand.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="stylesheet" href="dependencies.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<script type="module" src="dependencies.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"></script>
</head>
<body class="dependency-page">
<a class="skip-link" href="#main-content">Skip to content</a>
Expand Down
6 changes: 3 additions & 3 deletions docs/site/dependencies.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
parsePinnedGraph,
searchNodes,
unresolvedTargets,
} from './dependency-model.mjs';
} from './dependency-model.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';

const byId = id => document.getElementById(id);

Expand Down Expand Up @@ -120,8 +120,8 @@ function renderPath(path) {

async function load() {
const [graphResponse, provenanceResponse] = await Promise.all([
fetch('./dependency-source/GRAPH.json'),
fetch('./dependency-source/PROVENANCE.json'),
fetch('./dependency-source/GRAPH.json',{cache:'no-store'}),
fetch('./dependency-source/PROVENANCE.json',{cache:'no-store'}),
]);
if (!graphResponse.ok || !provenanceResponse.ok)
throw new Error('A pinned source file could not be loaded.');
Expand Down
2 changes: 1 addition & 1 deletion docs/site/explore-models.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// NON-CERTIFYING educational arithmetic. These functions illustrate source
// definitions; they do not simulate a field or estimate a theorem's constants.
import { annulusModel, p15Model, remoteModel } from './geometry.mjs';
import { annulusModel, p15Model, remoteModel } from './geometry.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';

function finite(value, name) {
if (!Number.isFinite(value)) throw new RangeError(`${name} must be finite`);
Expand Down
10 changes: 5 additions & 5 deletions docs/site/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<title>Explore the mathematics · Universal Law</title>
<meta name="description" content="Three hands-on explanations of curvature, shrinking scales, and finite obstructions, with a path to the underlying research.">
<meta name="theme-color" content="#07111f">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="brand.css">
<link rel="stylesheet" href="explore.css">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg">
<script type="module" src="explore.mjs"></script>
<link rel="stylesheet" href="style.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="stylesheet" href="brand.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="stylesheet" href="explore.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<script type="module" src="explore.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"></script>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to content</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/explore.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { coneModel, pinModel, paletteModel } from './explore-models.mjs';
import { coneModel, pinModel, paletteModel } from './explore-models.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';

const ns = 'http://www.w3.org/2000/svg';
const byId = id => document.getElementById(id);
Expand Down
6 changes: 3 additions & 3 deletions docs/site/formal.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self'; script-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'">
<title>Formal verification · Universal Law</title>
<link rel="stylesheet" href="style.css"><link rel="stylesheet" href="museum.css">
<link rel="stylesheet" href="brand.css">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg">
<link rel="stylesheet" href="style.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="stylesheet" href="museum.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="stylesheet" href="brand.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<meta name="theme-color" content="#07111f">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions docs/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta name="description" content="Explore the mathematics of random landscapes: peaks, connections and the features that persist. Interactive examples, research and open proofs.">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src 'self'; style-src 'self'; script-src 'self'; img-src 'self' data:; object-src 'none'; base-uri 'none'; form-action 'none'">
<title>Universal Law · The shape of randomness</title>
<link rel="stylesheet" href="style.css"><link rel="stylesheet" href="brand.css"><link rel="stylesheet" href="home.css">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg"><meta name="theme-color" content="#07111f"><script type="module" src="home.mjs"></script>
<link rel="stylesheet" href="style.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="stylesheet" href="brand.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="stylesheet" href="home.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><meta name="theme-color" content="#07111f"><script type="module" src="home.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"></script>
</head><body class="reader-home">
<a class="skip-link" href="#main-content">Skip to content</a>
<header><a class="brand" href="index.html">UNIVERSAL LAW <span>MATHEMATICS IN THE OPEN</span></a><nav aria-label="Primary"><a href="index.html" aria-current="page">Home</a><a href="explore.html">Explore</a><a href="research.html">Research</a><a href="workspace.html#inventory">Library</a></nav></header>
Expand Down
10 changes: 5 additions & 5 deletions docs/site/measure.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<title>From counts to density · Universal Law</title>
<meta name="description" content="An interactive synthetic example showing how counts, realizations, area and bin width determine bin mass and density.">
<meta name="theme-color" content="#07111f">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="explore.css">
<link rel="stylesheet" href="brand.css">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg">
<script type="module" src="measure.mjs"></script>
<link rel="stylesheet" href="style.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="stylesheet" href="explore.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="stylesheet" href="brand.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<script type="module" src="measure.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"></script>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to content</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/measure.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { measurementModel, parseMeasurementInputs } from './measurement-model.mjs';
import { measurementModel, parseMeasurementInputs } from './measurement-model.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';

const byId = id => document.getElementById(id);
const fields = Object.fromEntries(['count', 'realizations', 'lower', 'upper'].map(name => [name, byId(`measure-${name}`)]));
Expand Down
6 changes: 3 additions & 3 deletions docs/site/museum.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; connect-src 'self' https://raw.githubusercontent.com; style-src 'self'; script-src 'self' https://cdn.jsdelivr.net; img-src 'self' data:; object-src 'none'; base-uri 'none'; form-action 'none'">
<title>Source records &amp; exhibits · Universal Law</title>
<link rel="stylesheet" href="style.css"><link rel="stylesheet" href="museum.css"><script type="module" src="museum.mjs"></script><script type="module" src="conditionals.mjs"></script>
<link rel="stylesheet" href="style.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><link rel="stylesheet" href="museum.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"><script type="module" src="museum.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"></script><script type="module" src="conditionals.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3"></script>
<!-- EC-014 alone lazily loads Three.js 0.160.0: https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.js
SRI sha384-ADduDXZ84mYNs9BwgDbfsq8503KaK0OzR6s3AFB6fclZoaXtLa7zmoXdmbFSEptM. -->
<link rel="stylesheet" href="brand.css">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg">
<link rel="stylesheet" href="brand.css?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3">
<meta name="theme-color" content="#07111f">
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions docs/site/museum.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {renderSourceQuote} from './source-quote.mjs';
import {verifiedBytes, hex40, hex64} from './core.mjs';
import {renderSourceQuote} from './source-quote.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';
import {verifiedBytes, hex40, hex64} from './core.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3';

export const DISCLAIMER='This canvas explains the pinned source. It is not a proof and does not change status.';
const REVIEWED_IDS=['d2-lifetime-remainder','d3-side24-coefficient','d4-fixed-remote-rn','d5-all-height-annulus','d5-height-window-annulus','d5-two-scale','d5-inner-belt-density','d5-fixed-transverse','cumulative-transfer-correction','p15-demand-one-counterexample','d6-p15-full-price'];
Expand Down Expand Up @@ -247,7 +247,7 @@ function prepareClaimFragment(document,window,currentHash) {
return true;
};
}
export async function startMuseum({document=globalThis.document,window=globalThis.window,fetcher=globalThis.fetch,search=globalThis.location?.search||'',geometryLoader=()=>import('./geometry.mjs'),currentHash=()=>globalThis.location?.hash||''}={}){
export async function startMuseum({document=globalThis.document,window=globalThis.window,fetcher=globalThis.fetch,search=globalThis.location?.search||'',geometryLoader=()=>import('./geometry.mjs?site-release=dc3b8a3d50e06b183520769b998318b774231b7fc56eda438e4a4878b963d1a3'),currentHash=()=>globalThis.location?.hash||''}={}){
const ids=['museum-state','claim-cards','lifetime-fixture','packet-cards','active-exhibit'];
const containers=Object.fromEntries(ids.map(id=>{const node=document.getElementById(id);if(!node)throw Error(`Missing museum container: ${id}`);return [id,node];}));
const finishFragment=prepareClaimFragment(document,window,currentHash);
Expand Down
Loading
Loading