Repository navigation
Conversation
abu-aska
left a comment
There was a problem hiding this comment.
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-onlybuildjob;pages: write+id-token: writerestricted todeploy). scripts/check_site.pypasses3/3isolated-Imodes (-I -B,-I -O -B,-I -B -W error:6 pages) andnode --test tests/site-math.test.mjspasses3/3.- All
13/13blueprint file byte sizes ondocs/blueprints/index.htmlmatch livemainto the exact byte;docs/404.htmlinjects<base>properly for deep project-page paths;110 of 112demo leakage is prominently disclosed; zero third-party<script>tags, zero DOM XSS (URLSearchParamsstrictly allowlisted), and zero private-repo or internal-bus leaks.
Four blocking issues live-reproduced against origin/main @ 4653d62e:
-
WD42-01[HIGH] Guaranteed CI & Pages deploy failure on merge and on every futuremaincommit (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 --checkfails right now (rc=1:expeditions.json is stale; run scripts/build_expeditions.py) on BOTH PR#42's head and on the live mergeorigin/main (4653d62e) + PR #42. - Three compounding causes:
build_expeditions.py:106writes"source_main_sha": git("rev-parse", "origin/main")[:7]intodocs/data/expeditions.json("063aaee"vs live"4653d62"), and bothsite.yml:22andpages.yml:53run--checkonpush: main. That guarantees every subsequent commit tomainbreaks bothsite.ymlandpages.yml.- Live
origin/main @ 4653d62enow has7studies (PR#23studies/expedition-reinforce-zero-tiiand PR#35studies/expedition-siliconcordat-d5-audit104r4landed after063aaee), whereasdocs/data/expeditions.jsonandSUMMARIESlist only5. .github/workflows/pages.yml:31checks out with default shallowfetch-depth: 1(unlikesite.yml:20which setsfetch-depth: 0), breakinggit log -1 --format=%cs origin/main -- <path>atbuild_expeditions.py:35duringpages.ymldeploy runs.
- Minimal fix: Exclude
source_main_shafrom--check(or regenerateexpeditions.jsondynamically during Pages build rather than gating unrelated commits tomain), addfetch-depth: 0topages.yml:31ifgit logdates remain used, and updatedocs/data/expeditions.json+SUMMARIESfor all7studies on livemain.
- Live-reproduced: Running
-
WD42-02[HIGH] Hardcoded inaccuratepinned_commit: "e3899d3e"stamped onto every study with a certificate (scripts/build_expeditions.py:82,docs/data/expeditions.json:13,27,41,73):- Line
82hardcodes"pinned_commit": "e3899d3e" if certs else Nonewithout inspecting the certificate files. On livemain,studies/expedition-reinforce-zero-tii/reinforce_zero_tii_certificate.jsonactually pins external commitsa22153deand136aca87(note3899d3e), andexpedition-siliconcordat-d5-audit104r4,expedition-bounded-controller,expedition-gram-cert-upgrades, andexpedition-trust-boundary-verifierdo not all declaree3899d3ein 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
nullwhen none is declared) rather than hardcoding"e3899d3e".
- Line
-
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:41interpolates${{ github.repository }}directly inside therun:shell command ("https://api.github.com/repos/${{ github.repository }}/pages") instead of binding it viaenv:. The|| truealso 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-53andsite.yml:21-22invokepython3 scripts/check_site.pywithout-I -B/-O/-W errorparity.
-
WD42-04[MED] Stale Claim-to-Witness counts against livemain @ 4653d62e(docs/index.html,docs/architecture/index.html,docs/expeditions/index.html,docs/assets/module-map.js):- Static copy and
docs/assets/module-map.jscite063aaee("Five studies","7389 lines"across14modules,187def test_/"218 passed"), while livemain @ 4653d62e(after#23,#35,#59) now has7studies,7,419lines across14modules (+30lines inexperiment.py), and193def test_functions. Even with the"counted at main 063aaee"notice,docs/expeditions/index.htmlstates"Five studies"whiledocs/assets/expeditions.jsdynamically rendersdocs/data/expeditions.json(which will hold7studies onceWD42-01is fixed). Refreshing the snapshot to livemain(or decoupling the heading from a hardcoded count) keeps the static copy and live JSON consistent.
- Static copy and
Two non-blocking notes:
docs/assets/vendor/LICENSEcarries an extra leading blank line vsgh api licenses/apache-2.0(inherited fromMoissanite-Labs/weft-eido @ be27665).scripts/build_expeditions.py:106usesgit("rev-parse", "origin/main"); in checkouts where the remote is not namedorigin, falling back toHEADavoids silent fallback to hardcoded"063aaee".
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.htmlis the home voyage in seven sections: hero, problem, the four stages, Layer 3, proof, try it, and limits.docs/architecture/index.htmlshows 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.htmlwalks 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.htmllists 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.htmllists all 13 blueprint files and marks which ones were opened in full and which are listed only.docs/404.htmlcarries the full site chrome, a base path bootstrap for project pages, and door cards back into the site.docs/assets/warp.css,warp.jsandwarp-velocity.jshold 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.jsandexpeditions.jshold 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.jsonand its schema come fromscripts/build_expeditions.py.scripts/check_site.pygates links, metadata, counts and banned strings.scripts/make_assets.pymakes the favicon and the five 1200x630 share images..github/workflows/pages.ymlprobes the Pages source setting, builds read-only, and deploys in a separate job that runs nothing else..github/workflows/site.ymlruns the site gate on pull requests.tests/site-math.test.mjscovers 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.pypasses on all 6 pages, andpython3 scripts/build_expeditions.py --checkreports fresh data.node --test tests/site-math.test.mjspasses 3 of 3.To look at the site before merge, run
python3 -m http.server 8741 --directory docsfrom the repo root and open http://127.0.0.1:8741/ in a browser.Fixed after review
What is not verified yet