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
2 changes: 2 additions & 0 deletions docs/site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ in URLs and browser history. Links use the catalog’s pinned source records, no
live proof index; the search URL does not freeze future catalog updates. If history updates are unavailable, filtering and the explicit
link still work; if source verification fails, controls stay unavailable.

The Library's static text names its bytes. `#status-rendered-from` states the SHA-256 and byte count of `status.json` and of the `STATUS.md` snapshot that `config.json` pins, and `#proof-link` carries the pinned proof URL that `app.js` also assigns; `tests/test_reader_links.py` pins both to `config.json` and to the payload bytes, so refreshing `status.json`, `config.json` or the SIDE24 pins means updating those sentences and the three `<noscript>` routes in the same change. A refused source prints `Unavailable: … No result inferred.` followed by a link to the pinned source on GitHub, built only from a pin whose repository, commit and path pass the same guards as `core.safeSourceURL`.

## Browser evidence in CI

The existing `public-shop` workflow also runs a separate read-only `browser-smoke`
Expand Down
14 changes: 8 additions & 6 deletions docs/site/app.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import {verifiedJSON, verifiedBytes, validateStatus, validateCoefficient, safeSourceURL, hex40, hex64} from './core.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55';
import {connectCatalogQuery} from './catalog-query.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55';
import {prepareWorkspaceFragment} from './workspace-fragment.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55';
import {verifiedJSON, verifiedBytes, validateStatus, validateCoefficient, safeSourceURL, hex40, hex64} from './core.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a';
import {connectCatalogQuery} from './catalog-query.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a';
import {prepareWorkspaceFragment} from './workspace-fragment.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a';
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;};
const error=(id,e)=>{el(id).textContent=`Unavailable: ${e.message}. No result inferred.`;el(id).className='error';};
const error=(id,e,pin)=>{const target=el(id);target.textContent=`Unavailable: ${e.message}. No result inferred.`;target.className='error';
if(pin&&/^d6g8k5htny-coder\/(main|Math-|query-)$/.test(pin.repository)&&hex40.test(pin.commit)&&typeof pin.path==='string'&&!pin.path.split('/').some(p=>!p||p==='.'||p==='..'))
target.append(' ',link('Read the pinned source on GitHub ↗',`https://github.com/${pin.repository}/blob/${pin.commit}/${pin.path.split('/').map(encodeURIComponent).join('/')}`));};
const link=(text,url)=>{const a=node('a',text);a.href=url;return a;};
const disclaimer='This canvas explains the pinned source. It is not a proof and does not change status.';
// Small safe renderer: links to this public GitHub owner; no HTML execution.
Expand Down Expand Up @@ -112,7 +114,7 @@ async function queryIdentity(config) {
}
try {
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);}}));
const jobs=[['status-note',()=>board(config),config.status],['coefficient-state',()=>coefficients(config),config.coefficient],['inventory-state',()=>inventory(config),config.inventory],['custody-note',()=>custody(config),config.imports],['query-note',()=>queryIdentity(config),config.query]];
await Promise.allSettled(jobs.map(async([id,job,pin])=>{try{await job();}catch(e){error(id,e,pin);if(id==='inventory-state')el('catalog-query-note').textContent='Search links are unavailable because the catalog could not be verified.';}}));
} catch(e) {['status-note','coefficient-state','inventory-state','custody-note','query-note'].forEach(id=>error(id,e));}
finally {finishFragment();}
12 changes: 9 additions & 3 deletions 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?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55") center/contain no-repeat; }
.brand::before { content: ""; position: absolute; left: 0; top: 1px; width: 42px; height: 42px; background: url("brand/mark.svg?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a") 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 All @@ -82,6 +82,7 @@ h3, h4 { color: var(--ul-text); }
}
.button:hover, button:hover { filter: brightness(1.06); text-decoration: none; }
.button.secondary { background: transparent; border-color: var(--ul-edge); color: var(--ul-link); }
.button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
button:disabled { filter: none; }
.boundary { color: var(--ul-text); background: var(--ul-raised); border-left: 3px solid var(--ul-amend); border-radius: 0 6px 6px 0; padding: 13px 18px; line-height: 1.65; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
Expand All @@ -102,13 +103,16 @@ input::placeholder { color: var(--ul-muted); opacity: 1; }
code, pre, dd, .hash, .source-identity { overflow-wrap: anywhere; }
code { color: inherit; }
th { color: var(--ul-muted); background: var(--ul-raised); }
caption { text-align: left; color: var(--ul-muted); font-size: 13px; padding: 8px 12px; }
td { border-color: var(--ul-border); }
.table-wrap { border: 1px solid var(--ul-border); border-radius: 6px; }
.error { color: var(--ul-error); }
.good { color: var(--ul-accept); }
footer { padding-top: 32px; }
/* Existing plots retain a light drawing surface; their data/geometry code is untouched. */
#coefficient-chart, .geometry-host canvas, .geometry-host svg { background: #ffffff; border-radius: 6px; }
#coefficient-chart { border: 1px solid var(--ul-border); }
#coefficient-chart:empty { background: transparent; }
#coefficient-chart text { fill: #34475c; }
#coefficient-chart line { stroke: #6a7e96; }
#coefficient-chart rect[fill="#2b7565"] { fill: #216ca8; }
Expand Down Expand Up @@ -139,7 +143,7 @@ footer { padding-top: 32px; }
.skip-link { position: absolute; left: 20px; top: -120px; z-index: 10; padding: 12px 18px; background: var(--ul-surface); border: 2px solid var(--ul-focus); border-radius: 6px; color: var(--ul-text); }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--ul-focus); outline-offset: 4px; }
#formal-coverage:focus, #formal-coverage .table-wrap:focus-visible { outline: 3px solid var(--ul-focus); outline-offset: 4px; }
#formal-coverage:focus, .table-wrap:focus-visible { outline: 3px solid var(--ul-focus); outline-offset: 4px; }
@media (max-width: 950px) { body > header { align-items: flex-start; } .cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
body > header { padding: 20px; gap: 20px; }
Expand All @@ -157,14 +161,16 @@ a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible
.cards article { padding: 20px; }
h1 { font-size: 39px; }
.claim-column + .claim-column { border-color: var(--ul-border); }
#inventory table { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) {
body, .cards article, .museum-card, .source-header, .boundary, .custody, .explorer { background: Canvas; color: CanvasText; }
a, .button.secondary { color: LinkText; }
.button, button { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
.button[aria-disabled="true"] { color: GrayText; border-color: GrayText; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: Highlight; }
#formal-coverage:focus, #formal-coverage .table-wrap:focus-visible { outline-color: Highlight; }
#formal-coverage:focus, .table-wrap:focus-visible { outline-color: Highlight; }
.brand::before { display: none; } .brand { padding-left: 0; }
}
@media print {
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?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"><link rel="stylesheet" href="brand.css?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"><link rel="stylesheet" href="home.css?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"><link rel="stylesheet" href="reference.css?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"><link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"><meta name="theme-color" content="#07111f">
<script type="module" src="cite.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"></script>
<link rel="stylesheet" href="style.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"><link rel="stylesheet" href="brand.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"><link rel="stylesheet" href="home.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"><link rel="stylesheet" href="reference.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"><link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"><meta name="theme-color" content="#07111f">
<script type="module" src="cite.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"></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?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55';
import {wireReferenceForm} from './source-reference.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a';
const byId = id => document.getElementById(id);
wireReferenceForm({form:byId('reference-form'), repository:byId('reference-repository'), commit:byId('reference-commit'), path:byId('reference-path'), sha256:byId('reference-sha256'), output:byId('reference-output'), json:byId('reference-json'), bibtex:byId('reference-bibtex'), link:byId('reference-link'), status:byId('reference-status'), actions:byId('reference-actions'), copyText:byId('reference-copy'), copyJSON:byId('reference-copy-json'), copyBibTeX:byId('reference-copy-bibtex'), share:byId('reference-share'), clipboard:globalThis.navigator?.clipboard, location:globalThis.location, history:globalThis.history, events:globalThis.window});
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?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55');
const services=()=>import('./museum.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a');
// 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
11 changes: 10 additions & 1 deletion docs/site/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ 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', ...(target.startsWith('https:')?{}:{cache:'no-store'})});
let response;
try {
response = await fetcher(target, {credentials:'omit', redirect:'error', ...(target.startsWith('https:')?{}:{cache:'no-store'})});
} catch (cause) {
if (cause instanceof TypeError) {
const host = target.startsWith('https:') ? new URL(target).host : 'this site';
throw new Error(`the pinned source on ${host} could not be reached (offline, blocked, or the host is unavailable)`, {cause});
}
throw cause;
}
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
2 changes: 1 addition & 1 deletion docs/site/curvature-export.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Bounded, local export of the Peaks and saddles teaching diagram. No source fetch
// or proof verification occurs here; the identity below is recorded provenance.
import { coneModel } from './explore-models.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55';
import { coneModel } from './explore-models.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a';

const SVG_NS = 'http://www.w3.org/2000/svg';
const PUBLIC_EXPLORE = 'https://d6g8k5htny-coder.github.io/main/site/explore.html';
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?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<link rel="stylesheet" href="brand.css?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<link rel="stylesheet" href="dependencies.css?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<script type="module" src="dependencies.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"></script>
<link rel="stylesheet" href="style.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<link rel="stylesheet" href="brand.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<link rel="stylesheet" href="dependencies.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<script type="module" src="dependencies.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"></script>
</head>
<body class="dependency-page">
<a class="skip-link" href="#main-content">Skip to content</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/dependencies.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
parsePinnedGraph,
recordedContextRows,
unresolvedTargets,
} from './dependency-model.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55';
} from './dependency-model.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a';

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

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?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55';
import { annulusModel, p15Model, remoteModel } from './geometry.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a';

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?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<link rel="stylesheet" href="brand.css?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<link rel="stylesheet" href="explore.css?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55">
<script type="module" src="explore.mjs?site-release=df7567a6f92c0fbf279dbab93c239f98f12b41fd54a9871147fa37aaab409c55"></script>
<link rel="stylesheet" href="style.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<link rel="stylesheet" href="brand.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<link rel="stylesheet" href="explore.css?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<link rel="icon" type="image/svg+xml" href="brand/mark.svg?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a">
<script type="module" src="explore.mjs?site-release=564d949ae88eccee63fee29acedba9df2655018856458aae38f55d575271fd1a"></script>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to content</a>
Expand Down
Loading
Loading