Skip to content

Kit v0.2.0: the motion-essay engine for ProofEr (+ stage_log bookkeeping fix) - #21

Merged
BPMData merged 8 commits into
mainfrom
claude/dreamy-gates-19vu5o
Dec 1, 2026
Merged

BPMData merged 8 commits into
mainfrom
claude/dreamy-gates-19vu5o

Conversation

@BPMData

@BPMData BPMData commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Kit v0.2.0: the motion-essay engine for ProofEr

What ProofEr needs to build its first motion essay. It's all plain WebGL2 in the DHS namespace: no three.js, no libraries, and it works as a single offline HTML file. Mechanisms come from Q-Day / The Last Boring Slide, not their look.

One commit per stage:

  1. Beat model and fixed-step clock (engine/src/essay/beats.js). A scene is a list of beats with delay, dur and hold. Holds come from reading time (2.6 s + 0.31 s a word, kept between 5.2 and 16 s). The clock steps at 1/60 s and random numbers come from a seed. The whole essay is a pure function of the playhead.
  2. Player shell (engine/src/essay/player.js):
    • start screen: "Begin with sound" and "Begin silently" when the essay has sound, "Begin" otherwise;
    • plays by itself (A) or waits for clicks;
    • click, keys, swipe and right-click to move; going back runs 2.4× faster;
    • progress bar with gaps between chapters, and #scene-beat links that work with the back button;
    • help card (?), black screen (.), controls that hide after 3 s;
    • a no-WebGL2 path that still plays the words and numbers.
  3. Test hooks on window.EOMD_ESSAY: seek, trans, at, perf, flashCheck and contrast. engine/tools/essay-qa.js uses them to write stills of every beat and every transition, plus a report.
  4. Scene host and compositor (engine/src/gl/):
    • each scene draws into a half-float buffer, then the lens runs on the GPU texture (new: DHS.lens.create(knobs, { gl }) and drawTexture);
    • scenes: field, bars (start at zero, height linear in the value), tally (one dot per unit), areas (area proportional to the value) and a plain fallback.
  5. Transitions: cut, crossfade, dip, wipe, dissolve, push. Measured worst case, white to black: 0 flashes/s. Under reduced motion, wipe, dissolve and push become a crossfade.
  6. Text over the picture (engine/src/essay/text.js):
    • named positions, a soft dark patch behind the text, word-by-word fade-in, data labels, reduced motion respected;
    • a WCAG check per paragraph against the brightest and darkest pixels under it, with the patch and the text's opacity composited in.

The kit: 8 new files in kit/ (via tools/build_kit.py), KIT.json at 0.2.0. The shape and AGPL-3.0-only are unchanged, and the CHANGELOG and kit README are updated.

The demo: players/essay-demo.html (built by tools/build_essay_demo.py from the kit copies). It uses placeholder words and made-up numbers, and says so on screen. It has no real figures.

QA (essay-qa.js on the built file, 1280×720, SwiftShader): PASS.

  • No page errors.
  • Flashes: 0–1 per second for every transition.
  • Contrast: all 50 text blocks pass AA. The worst is the dimmed bar labels at 5.2:1.
  • The 2D lens path still passes through pixel-exact with every knob at 0.
  • Not yet seen on a real GPU or TV.

Next (listed in TODO.md): GPU letter-by-letter type, sound hits and beds, MP4 export of an essay, presenter tools.

Also: a port of ProofEr's 5929024 to .claude/hooks/stage_log.py. The hook now skips Bash commands made only of git bookkeeping, so the access log is no longer dirty again after every commit.


Generated by Claude Code

…k, seeded RNG (engine/src/essay/beats.js)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
…follow, keys/swipe/right-click, chapter progress bar, #scene-beat links, help card, no-WebGL2 note) + demo essay content (placeholders)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
…e/tools/essay-qa.js (stills of every beat and transition, flash, contrast and speed report)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
…c/gl/gl.js), scene host + render-to-texture compositor (host.js), example scenes field/bars/tally/areas (scenes.js); lens.drawTexture takes a linear-light GPU texture in a shared context

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
…olve, push; reduced motion -> crossfade) and a 3-flashes-a-second check (E.flashCheck, DHS.essay.flashCount); worst case white<->black: 0 flashes/s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
…xt.js): named positions, soft dark patch, word-by-word fade, data labels, reduced motion; WCAG check per paragraph with opacity and patch composited (E.contrast); fixes: last scene's words, perf timing, stills hide the controls

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
…lens.drawTexture) + demo essay (tools/build_essay_demo.py -> players/essay-demo.html, placeholder content); docs, TODO next list, STATUS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
… of ProofEr 5929024)

The hook logged every Bash command, including the git commit itself, so proj/<name>/access.jsonl was dirty again
right after every commit and the cloud stop hook never settled. add/commit/push/status plus cd/echo are now skipped;
show, diff, log and everything else stay logged for the stage-read audit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ad4FSZyShDwuPQbAcgGJY3
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