ADR 0001: Public demo on GitHub Pages

Status: accepted, 2026-12-03. Decided by the owner.

Context

Issue 17 asks for a public URL that works for judges without a login until the judging period ends on 2027-01-29. The contest rules require a working application URL that is free of charge and open for testing for that period. The issue also asks the owner to choose the host and the budget cap and to record the choice before anything is deployed. The issue text imagines a live verify behind rate limits. The CAD kernel needs a native OpenCascade install, so a free static host cannot run it.

Decision

The public demo is a static site on GitHub Pages. It lives at https://vladimirrott.github.io/tolerance-arena/demo/, on the same origin as the docs site, and it replays recorded kernel results that the repository commits:

  • the kernel verify of the fixture at 45 degrees and -1.2 mm, which measures a 0.8 mm gap against the 1.5 mm requirement, with its witness points;
  • the pin mesh export at that pose, drawn by the same three.js viewer as web/;
  • the five-pose sweep (0, 30, 45, 60 and 90 degrees at -1.2 mm), four satisfied and one violated;
  • one recorded analyst run of 2026-12-02, byte-identical to assets/recorded/analyst-2026-12-02-none-failure-found-14-poses.json.

The page says on load that it shows recorded kernel output, that it does not run a live verify, and where to re-run it: arena verify, with the steps in docs/install.md. The data lives in web/public-demo/recorded/. The build is npm run build:demo in web/, and .github/workflows/docs.yml publishes it under demo/ in the same deploy as the docs.

Host

GitHub Pages, deployed by the single existing workflow. No server, container, database or domain is added.

Cost cap

0 USD. Pages is free for public repositories. Nothing in the demo spends money: it calls no provider and holds no API key, and the workflow adds no paid service. If GitHub ever bills this site, the teardown below applies.

Teardown

After 2027-01-29, delete the web/public-demo/ data and the demo build step from docs.yml, or disable Pages for the repository. Either action removes the URL. The owner picks one and records it in the development log.

Security and abuse

The demo accepts no upload and no user input that reaches a server. The page has no form and no text field, and the only requests it makes are reads of its own static files. It needs no rate limit, no size limit and no request scoping, because there is no endpoint to protect, so this ADR sets none. scripts/check_demo.py fails the build when the bundle names another origin or when a data file the page reads is missing.

Consequences

  • The URL loads from a clean network with no login and survives a restart, because Pages serves static files.
  • A provider failure cannot happen on the page: no provider is called. The recorded analyst run shows its own recorded outcome.
  • Fonts, scripts and styles come from the demo's own origin, so an ad blocker or a judge's network cannot break the page. The origin check runs in the deploy, and scripts/check-demo.sh runs it locally.
  • The recordings are fixed. A change to the kernel or the fixture does not change the page until someone records new results and commits them.
  • The demo shares the Pages deploy with the docs, so a failed demo check blocks a docs deploy until it is fixed.

Differences from the issue text

  • The demo replays recorded results. It does not run a live verify, and the issue's proof "runs a verify" is met by a recorded one. A judge who wants a live run installs the tool and runs arena verify --angle-deg 45 --offset-mm=-1.2 (see docs/install.md).
  • The criteria on rate limits, size limits and fixture bounds do not apply, because the page has no input and no endpoint.
  • The criterion "survives a provider failure and shows the failure plainly" is met by having no provider. The page shows a plain error when a recorded file is missing.
  • The AI buttons of the issue scope do not exist in the demo, so no provider key sits on the host.