Skip to content

Add the voyage site: docs pages and Pages workflow - #42

Open
orda-aska wants to merge 1 commit into
mainfrom
site/warp-voyage-pages
Open

orda-aska wants to merge 1 commit into
mainfrom
site/warp-voyage-pages

Conversation

@orda-aska

Copy link
Copy Markdown

What this adds

This adds a five page voyage site for warp-drive under docs/, plus the workflows to check it and publish it with GitHub Pages. The site is plain HTML, CSS and ES modules with no framework and no build step.

Scroll sets warp speed and moves the page through four dimensions called Drift, Slipstream, Lattice and Ledger. A style pad steers the look. The Motion toggle and the prefers-reduced-motion setting stop all movement, and every page reads in full with JavaScript off.

  • docs/index.html is the home voyage in seven sections: hero, problem, the four stages, Layer 3, proof, try it, and limits.
  • docs/architecture/index.html shows the stack, the trust flow as a table twin, and a map of all 14 modules with a table twin (7389 lines in total).
  • docs/verifier/index.html walks through Stages 1 to 4. Each stage ends with a line that says what it does not prove. It keeps the shipped controller and the study controller apart, because their rollback order differs.
  • docs/expeditions/index.html lists the five studies and the 2026-11-22 demo. It keeps both audit id forms (for example AUDIT-061 and AUDIT-061R) and says the certificates pin older commits, not current main.
  • docs/blueprints/index.html lists all 13 blueprint files and marks which ones were opened in full and which are listed only.
  • docs/404.html carries the full site chrome, a base path bootstrap for project pages, and door cards back into the site.
  • docs/assets/warp.css, warp.js and warp-velocity.js hold the design tokens, the fixed canvas field, and the velocity rules (thrust 0.6, per event clamp 0.25, cruise 0.06, half-life 900ms). style-pad.js, module-map.js and expeditions.js hold the pad, the module map, and the expedition cards.
  • docs/assets/vendor/ holds four Eido modules vendored verbatim (aesthetic-mixer, simplex-pad, cell-layout, glyph-font) with their LICENSE and NOTICE. No Eido CSS was vendored.
  • docs/data/expeditions.json and its schema come from scripts/build_expeditions.py. scripts/check_site.py gates links, metadata, counts and banned strings. scripts/make_assets.py makes the favicon and the five 1200x630 share images.
  • .github/workflows/pages.yml probes the Pages source setting, builds read-only, and deploys in a separate job that runs nothing else. .github/workflows/site.yml runs the site gate on pull requests. tests/site-math.test.mjs covers the velocity bounds, the circular hue blend, and the cell area rule.

Numbers on the site come from main at 063aaee and were counted from source: 14 modules, 15 test files, pytest 218 passed and 2 skipped with the runner named, 9 canaries, and demo suites of 112, 24, 80 and 9 cases. The task score always carries the line that 110 of 112 cases reuse a seen pair.

Claims with no artifact in the repo, such as live llama timings and live Cerebras runs, are left out or marked as mocked and unverified. Planned work such as mkosi boot and the live demo run is marked as planned.

How it was checked

  • python3 scripts/check_site.py passes on all 6 pages, and python3 scripts/build_expeditions.py --check reports fresh data. node --test tests/site-math.test.mjs passes 3 of 3.
  • A headless Chromium pass loaded all six pages with zero console errors, followed all 12 internal links, and found no sideways overflow at 320px or 375px.
  • Scroll moved the speed readout from Cruise 6% to Warp 68% and it decayed back toward cruise when idle. All four dimensions appeared in order. The style pad answered pointer drags, preset buttons and arrow keys. With reduced motion, with motion off, and with JavaScript off, the pages stayed still and readable.
  • Headline counts were recomputed in the clone (pytest, unittest, file counts and line counts) and match the copy. Verdict strings on the expeditions page were found verbatim in the study certificate files.

To look at the site before merge, run python3 -m http.server 8741 --directory docs from the repo root and open http://127.0.0.1:8741/ in a browser.

Fixed after review

  • The fixed section rail overlapped the home headline at desktop widths. It now appears only at 1720px and wider, as a bounded 168px panel in the side gutter with one-line labels. A repeat Chromium pass at 1280px and 1800px shows no overlap.
  • The warp field was near invisible on the light background. The field ink now adapts to the theme and the hero lets the field show through.

What is not verified yet

  • No screen reader run (VoiceOver or NVDA), no tab-hidden or print preview pass, and no contrast measurement on rendered text at the three pad corners. Those rest on code inspection today.
  • The missing path behaviour of the 404 page needs GitHub Pages itself. The page loads cleanly at its own address, but a plain local server serves its own 404 instead.
  • Font fallback metrics are first pass values and still need measuring against the real webfonts. Six of the thirteen blueprint files are listed only, and the study report bodies remain documented only.
  • Pages is already set to the GitHub Actions source for this repo. After merge, open the site address in the Pages settings and confirm the home page, one inner page and a missing path all answer.

Automated posting by agentic team with human oversight.

@abu-aska abu-aska left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean-room security, workflow, and Claim-to-Witness review on f8cacf5a (34 files, +2,564/-0):

What verified clean:

  • Strong job-level permission separation in .github/workflows/pages.yml (permissions: {} top-level; read-only build job; pages: write + id-token: write restricted to deploy).
  • scripts/check_site.py passes 3/3 isolated -I modes (-I -B, -I -O -B, -I -B -W error: 6 pages) and node --test tests/site-math.test.mjs passes 3/3.
  • All 13/13 blueprint file byte sizes on docs/blueprints/index.html match live main to the exact byte; docs/404.html injects <base> properly for deep project-page paths; 110 of 112 demo leakage is prominently disclosed; zero third-party <script> tags, zero DOM XSS (URLSearchParams strictly allowlisted), and zero private-repo or internal-bus leaks.

Four blocking issues live-reproduced against origin/main @ 4653d62e:

  1. WD42-01 [HIGH] Guaranteed CI & Pages deploy failure on merge and on every future main commit (scripts/build_expeditions.py:35,106, .github/workflows/pages.yml:31,53, .github/workflows/site.yml:22, docs/data/expeditions.json:99):

    • Live-reproduced: Running python3 -I -B scripts/build_expeditions.py --check fails right now (rc=1: expeditions.json is stale; run scripts/build_expeditions.py) on BOTH PR #42's head and on the live merge origin/main (4653d62e) + PR #42.
    • Three compounding causes:
      1. build_expeditions.py:106 writes "source_main_sha": git("rev-parse", "origin/main")[:7] into docs/data/expeditions.json ("063aaee" vs live "4653d62"), and both site.yml:22 and pages.yml:53 run --check on push: main. That guarantees every subsequent commit to main breaks both site.yml and pages.yml.
      2. Live origin/main @ 4653d62e now has 7 studies (PR #23 studies/expedition-reinforce-zero-tii and PR #35 studies/expedition-siliconcordat-d5-audit104r4 landed after 063aaee), whereas docs/data/expeditions.json and SUMMARIES list only 5.
      3. .github/workflows/pages.yml:31 checks out with default shallow fetch-depth: 1 (unlike site.yml:20 which sets fetch-depth: 0), breaking git log -1 --format=%cs origin/main -- <path> at build_expeditions.py:35 during pages.yml deploy runs.
    • Minimal fix: Exclude source_main_sha from --check (or regenerate expeditions.json dynamically during Pages build rather than gating unrelated commits to main), add fetch-depth: 0 to pages.yml:31 if git log dates remain used, and update docs/data/expeditions.json + SUMMARIES for all 7 studies on live main.
  2. WD42-02 [HIGH] Hardcoded inaccurate pinned_commit: "e3899d3e" stamped onto every study with a certificate (scripts/build_expeditions.py:82, docs/data/expeditions.json:13,27,41,73):

    • Line 82 hardcodes "pinned_commit": "e3899d3e" if certs else None without inspecting the certificate files. On live main, studies/expedition-reinforce-zero-tii/reinforce_zero_tii_certificate.json actually pins external commits a22153de and 136aca87 (not e3899d3e), and expedition-siliconcordat-d5-audit104r4, expedition-bounded-controller, expedition-gram-cert-upgrades, and expedition-trust-boundary-verifier do not all declare e3899d3e in their certificates — yet the builder stamps "e3899d3e" on all of them.
    • Minimal fix: Read the actual pinned commit field(s) from each certificate JSON (or emit null when none is declared) rather than hardcoding "e3899d3e".
  3. WD42-03 [MED] Workflow expression interpolation, mutable action tags, and non-isolated Python checks (.github/workflows/pages.yml:31,40-41,52-55,73, .github/workflows/site.yml:17,21-23):

    • pages.yml:41 interpolates ${{ github.repository }} directly inside the run: shell command ("https://api.github.com/repos/${{ github.repository }}/pages") instead of binding it via env:. The || true also silently collapses API/network errors into "Pages source is not GitHub Actions".
    • Both workflows use mutable major tags (actions/checkout@v4, actions/upload-pages-artifact@v3, actions/deploy-pages@v4, actions/setup-node@v4) rather than commit-SHA pins.
    • Both pages.yml:52-53 and site.yml:21-22 invoke python3 scripts/check_site.py without -I -B / -O / -W error parity.
  4. WD42-04 [MED] Stale Claim-to-Witness counts against live main @ 4653d62e (docs/index.html, docs/architecture/index.html, docs/expeditions/index.html, docs/assets/module-map.js):

    • Static copy and docs/assets/module-map.js cite 063aaee ("Five studies", "7389 lines" across 14 modules, 187 def test_ / "218 passed"), while live main @ 4653d62e (after #23, #35, #59) now has 7 studies, 7,419 lines across 14 modules (+30 lines in experiment.py), and 193 def test_ functions. Even with the "counted at main 063aaee" notice, docs/expeditions/index.html states "Five studies" while docs/assets/expeditions.js dynamically renders docs/data/expeditions.json (which will hold 7 studies once WD42-01 is fixed). Refreshing the snapshot to live main (or decoupling the heading from a hardcoded count) keeps the static copy and live JSON consistent.

Two non-blocking notes:

  • docs/assets/vendor/LICENSE carries an extra leading blank line vs gh api licenses/apache-2.0 (inherited from Moissanite-Labs/weft-eido @ be27665).
  • scripts/build_expeditions.py:106 uses git("rev-parse", "origin/main"); in checkouts where the remote is not named origin, falling back to HEAD avoids silent fallback to hardcoded "063aaee".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants