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
91 changes: 91 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Publish the site: the docs verbatim, plus the instrument built from source.
#
# The build happens here rather than being committed. A checked-in bundle drifts from the
# code silently — a deployed app older than the repository is exactly the kind of drift
# docs/v0-stub.md exists to prevent, and nobody would notice it for weeks.
#
# This workflow owns everything Pages serves. `docs/` is copied first and whole, so the deck,
# the journal and the session files keep the URLs they already have; the app is added beside
# them. Getting step order wrong here takes the published deck down with it.
name: Pages

on:
push:
branches: [main]
# A pull request builds and assembles but does not deploy. That is what lets a change to
# this file be proved before main depends on it -- workflow_dispatch cannot, because
# GitHub only knows a workflow once it is on the default branch.
pull_request:
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# One deploy at a time; never cancel one midway and leave the site half-written.
concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# pnpm, not npm: `npm install` fails in this repository on a pre-existing
# typescript-eslint peer conflict, while the pnpm lockfile resolves cleanly.
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: frontend/app/pnpm-lock.yaml

- name: Install
working-directory: frontend/app
run: pnpm install --frozen-lockfile

- name: Test
working-directory: frontend/app
run: pnpm test

# `tsc && vite build`. vite.config.ts sets base to /BodyPrompt/app/ for builds only.
- name: Build the instrument
working-directory: frontend/app
run: pnpm build

- name: Assemble the site
run: |
# docs first and whole — .nojekyll included, so every file is served exactly as
# committed and the deck reaches a browser byte-for-byte as it was presented.
cp -r docs _site
test -f _site/.nojekyll || { echo "docs/.nojekyll missing — Jekyll would rewrite the site"; exit 1; }
test -f _site/presentation/2026-09-09-lecture-performance-deck.html || { echo "the deck did not make it into the artifact"; exit 1; }
mkdir -p _site/app
cp -r frontend/app/dist/. _site/app/
test -f _site/app/index.html || { echo "the instrument did not build"; exit 1; }

- name: What was assembled
run: |
echo "site is $(du -sh _site | cut -f1) across $(find _site -type f | wc -l) files"
find _site -maxdepth 2 -name '*.html' | sed 's|_site|.|' | sort

- uses: actions/upload-pages-artifact@v3
with:
path: _site

deploy:
needs: build
# Never from a pull request: the site is published from main and from nowhere else.
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ Open <http://localhost:5173>, type a phrase, press **Generate**.
| [`docs/abstract.md`](docs/abstract.md) | The accepted abstract — the canonical framing and vocabulary |
| [`docs/journal/`](docs/journal/) | **The research journal** — what the instrument has been asked, and what it did |
| [`docs/lecture-performance.md`](docs/lecture-performance.md) | The live performance this is all built for |
| [`docs/presentation/`](docs/presentation/) | The lecture-performance deck as delivered — a dated record, not a maintained document |
| [`docs/architecture.md`](docs/architecture.md) | The adapter pattern, the stack, running the real models |
| [`docs/roadmap.md`](docs/roadmap.md) | Versions, parked items, and questions left open |
| [`docs/usage.md`](docs/usage.md) | The full guide to the instrument |
Expand Down
Empty file added docs/.nojekyll
Empty file.
98 changes: 98 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BodyPrompt — Prompting as Choreographic Search</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root{
--bg:#0b0c10; --ink:#f2ede3; --ink-dim:#9aa0a6; --amber:#e9b872;
--line:#23262b; --teal:#6b8a8f;
--serif:'Newsreader', Georgia, 'Times New Roman', serif;
--mono:'IBM Plex Mono','SF Mono',Consolas,monospace;
}
*{box-sizing:border-box;}
body{
margin:0; background:var(--bg); color:var(--ink);
font-family:var(--serif); -webkit-font-smoothing:antialiased;
padding:clamp(32px,7vw,96px) clamp(24px,7vw,120px);
line-height:1.5;
}
.wrap{max-width:760px;}
.kicker{font-family:var(--mono); font-size:12px; letter-spacing:.02em; color:var(--amber); margin-bottom:18px;}
h1{font-weight:500; font-size:clamp(30px,4.6vw,54px); line-height:1.08; margin:0 0 18px; max-width:16ch;}
h1 em{font-style:italic; color:var(--amber);}
.sub{font-family:var(--mono); font-size:clamp(13px,1.1vw,15px); color:var(--ink-dim); max-width:58ch; line-height:1.65;}
h2{font-family:var(--mono); font-weight:500; font-size:12px; color:var(--amber);
letter-spacing:.04em; text-transform:uppercase; margin:52px 0 4px;}
a.card{
display:block; text-decoration:none; color:inherit;
border-top:1px solid var(--line); padding:16px 0;
}
a.card:last-of-type{border-bottom:1px solid var(--line);}
a.card .t{font-size:19px; color:var(--ink);}
a.card .d{font-family:var(--mono); font-size:12.5px; color:var(--ink-dim); margin-top:4px; max-width:60ch;}
a.card:hover .t, a.card:focus-visible .t{color:var(--amber);}
a.card:focus-visible{outline:2px solid var(--amber); outline-offset:3px;}
.note{
font-family:var(--mono); font-size:12.5px; color:var(--teal); line-height:1.7;
border:1px dashed var(--line); padding:14px 16px; margin-top:16px; max-width:62ch;
}
.note b{color:var(--ink);}
footer{font-family:var(--mono); font-size:11.5px; color:var(--ink-dim); margin-top:64px;}
footer a{color:var(--ink-dim);}
</style>
</head>
<body>
<div class="wrap">
<div class="kicker">INTO STORYMODE</div>
<h1>BodyPrompt<br><em>Prompting as Choreographic Search</em></h1>
<p class="sub">
A practice-based research project on poetic language, AI motion generation, and
choreographic selection. Can a poem move a machine the way a choreographer moves a dancer —
through image and metaphor rather than instruction?
</p>

<h2>Read</h2>
<a class="card" href="presentation/2026-09-09-lecture-performance-deck.html">
<div class="t">The lecture-performance deck</div>
<div class="d">As delivered, 2026-09-09. Sixteen slides; arrow keys or space to navigate.</div>
</a>
<a class="card" href="https://github.com/WWStoryMode/BodyPrompt/tree/main/docs/journal">
<div class="t">The research journal</div>
<div class="d">Four days: what the instrument was asked, and what it did. Findings and preferences, not a defect list. Reads on GitHub, where the links between entries resolve.</div>
</a>

<h2>Open</h2>
<a class="card" href="app/">
<div class="t">The instrument</div>
<div class="d">The poem editor, the stage, the four notation registers, the model triptych, and the rating tool.</div>
</a>
<a class="card" href="app/?session=../journal/data/2026-09-08/poem-writing-006.json">
<div class="t">A poem that does not travel</div>
<div class="d">Fire, a rocking floor, water. No human body named anywhere — the most articulate motion of that day, and 2 cm of travel in 35 seconds.</div>
</a>
<a class="card" href="app/?session=../journal/data/2026-09-08/poem-writing-007a.json">
<div class="t">The same imagery, made explicit</div>
<div class="d">The same five images rewritten as named actions. Line three runs 9.51 m where the poem above managed 0.38 m.</div>
</a>

<div class="note">
<b>Nothing here generates motion.</b> That needs a GPU and three model workers running on
your own machine, and this is a static site. What does work, with nothing installed: opening
a saved session and watching every body in it, scrubbing it, reading the notation, and
rating it. The motions are inside the files.<br><br>
Press <b>Generate</b> or <b>Bake</b> and the instrument will tell you the service is absent
rather than pretending otherwise.
</div>

<footer>
<a href="https://github.com/WWStoryMode/BodyPrompt">github.com/WWStoryMode/BodyPrompt</a>
· William Wong
</footer>
</div>
</body>
</html>
69 changes: 69 additions & 0 deletions docs/journal/data/2026-09-08/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Day 4 — the poem sessions

Every session exported while writing on 2026-09-08, fourteen files, committed byte-identical to
what left the browser. They are the evidence behind
[Day 4](../../2026-09-08-day-4.md); each opens with **IMPORT** in the session bar, or by link:

```
…/app/?session=../journal/data/2026-09-08/poem-writing-007a.json
```

They open with no GPU, no service and no network — the motions are inside them.

## ⚠ `poem-writing-004.json` — the bake is Kimodo's, not SnapMoGen's

**Read this before quoting anything from that file.** It holds SnapMoGen's five lines as
*per-line drafts*, but the whole-poem bake on its stage is **Kimodo's**, carried over from
`003c`. Pressing play shows Kimodo. SnapMoGen's motions are on the lines.

That is the same trap Day 1's session files carried, and it exists for the same reason:
SnapMoGen reports `can_stitch_poems: false` and cannot bake a poem at all, so the bake in the
session was left as whatever Kimodo had last produced. Every SnapMoGen figure in Day 4 §6 comes
from the line drafts.

## The files

| file | seed | length | net travel | what it is evidence for |
|---|---|---|---|---|
| `001` | 1574588694 | 18 s | 0.026 m | the poetic poem; articulation declining 10.4 → 1.4 cm line by line |
| `002` | 1233756094 | 30 s | 0.032 m | rewritten toward the physical; the decline gone |
| `003a` | 945441740 | 50 s | 0.445 m | seated, action-described — this seed goes to the floor at line 3 and stays |
| `003b` | 456501483 | 50 s | 0.019 m | the same poem; **1.9 cm** after fifty seconds |
| `003c` | 290947168 | 50 s | 0.068 m | the third seed; the line-4 collapse in all three |
| `004` | *(drafts)* | 10.1 s × 5 | — | **SnapMoGen** — seated in none of five lines; line 4 travels 0.30 m. ⚠ see above |
| `005` | 1781250075 | 50 s | 0.062 m | the mechanism named — *"places both hands on the floor… scoots"* — and 0.011 m on line 4 |
| `006` | 750436569 | 35 s | 0.020 m | imagistic, **no human body named**: most articulate of the day, and no travel |
| `007a` | 1330880189 | 50 s | 3.627 m | the same imagery made explicit — line 3 runs **9.51 m** of path |
| `007b` | 382025585 | 50 s | 1.069 m | sideways weight transfer rather than running: 4.12 m, the least of the three |
| `007c` | 1958551934 | 50 s | 3.610 m | short running steps: 6.00 m |
| `008a` | 374019914 | 50 s | 4.784 m | `007a` re-baked, lines 1–4 byte-identical: 6.81 m |
| `008b` | 361520248 | 50 s | 0.695 m | `007b` re-baked: 4.39 m — least in both seeds |
| `008c` | 629427053 | 50 s | 1.463 m | `007c` re-baked: 8.04 m |

*Net travel* is the pelvis from the first frame of the poem to the last, in the ground plane. It
is not the same as path length — `007b`'s line 3 covers 4.12 m and ends 4 cm from where it
started, because the wording describes oscillation and the body oscillated.

## Why all fourteen

The day's findings are **comparisons**, and most of them exist only across the variants. One
file per headline would let a reader check the headline and nothing else:

- the seated collapse is reproducible because `003a/b/c` agree,
- the locomotion finding is six bakes — `007a/b/c` against `008a/b/c` — not one,
- `006` against `007a` is the whole point: same imagery, 0.38 m against 9.51 m on line 3,
- `001` and `002` are what "the poem barely moves" means before any of that.

39 MB raw, around 14 MB once git compresses them.

## What these files cannot show you

**One bake was overwritten during the session.** An intermediate version of `002` — seed
1646366110, carrying a prompt-residue bug on line 5 — was replaced by the clean re-bake now in
this directory. Day 4 §3 quotes a wrist span of 0.018 m from it. That figure is real and was
measured, but it **cannot be reproduced from these files**; only two of the three bakes behind
that comparison survive.

**Authorship.** The poems are the researcher's (`001`, `002`, `006`); every action-described
version was written with an LLM (`003`, `005`, `007`, `008`). See
[Day 4 §7](../../2026-09-08-day-4.md).
1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-001.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-002.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-003a.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-003b.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-003c.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-004.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-005.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-006.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-007a.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-007b.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-007c.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-008a.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-008b.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/journal/data/2026-09-08/poem-writing-008c.json

Large diffs are not rendered by default.

Loading
Loading