Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c6ee13a
Repaint every card with GPT Image 2.5
JacobStephens2 Oct 23, 2026
67916a2
Teach the dance to call and answer
JacobStephens2 Oct 24, 2026
a697792
Paint the home hero and the end-of-song illustrations
JacobStephens2 Oct 24, 2026
e4e5e94
Serve WebP and audio with their media types
JacobStephens2 Oct 24, 2026
875c687
Bring the call to the table
JacobStephens2 Oct 24, 2026
3b417a3
Play the call through the browser tests
JacobStephens2 Oct 24, 2026
a5644fd
Record the Lyria soundtrack attempt
JacobStephens2 Oct 24, 2026
51fdbf9
Keep a stumble off the song card and record each 8-count's call
JacobStephens2 Oct 24, 2026
4daef61
Show what a call costs, keep the finale's cues, count the recap exactly
JacobStephens2 Oct 24, 2026
3f7701e
Typecheck the tests, browser tests and scripts
JacobStephens2 Oct 24, 2026
37f6b97
Fit the opening step, price every drop, keep the finale's toast on sc…
JacobStephens2 Oct 24, 2026
eaf6fc1
Record the final test counts in the task log
JacobStephens2 Oct 24, 2026
4553c0b
Wait for the turn before reading the hand in the online call test
JacobStephens2 Oct 24, 2026
35f87a8
Record the Mureka soundtrack attempt
JacobStephens2 Oct 24, 2026
619b7c7
Record the Suno soundtrack attempt
JacobStephens2 Oct 24, 2026
fd0474e
Correct the soundtrack record: Suno v6 exists, APIFRAME lacks it
JacobStephens2 Oct 24, 2026
868275f
Call Clave free and public, not open source, in the soundtrack record
JacobStephens2 Oct 24, 2026
ae21632
Loop the Suno v6 takes into the house band's two cues
JacobStephens2 Oct 26, 2026
84140df
Play the house band under the dance
JacobStephens2 Oct 26, 2026
f5094a9
Record the house band that shipped
JacobStephens2 Oct 26, 2026
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
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ engine + hot-seat and two-device play). The governing build plan is
hardcode card behavior or balance numbers in engine or UI code.
- Deterministic, seedable RNG only; no wall-clock and no unseeded randomness in
the engine.
- Card IDs follow `<type>_<###>`: `pos_`, `mov_`, `flo_`, `rec_`, `song_`.
- Card and content IDs follow `<type>_<###>`: `pos_`, `mov_`, `flo_`, `rec_`,
`song_`, and `call_` (a call is a clause in `rules.call.options`, not a card).
- Rules ambiguities are resolved as rulings appended to `docs/rules/decisions.md`
(with the rulebook amended in the same commit) — never silently decided in code.

Expand Down
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ engine + hot-seat and two-device play). The governing build plan is
hardcode card behavior or balance numbers in engine or UI code.
- Deterministic, seedable RNG only; no wall-clock and no unseeded randomness in
the engine.
- Card IDs follow `<type>_<###>`: `pos_`, `mov_`, `flo_`, `rec_`, `song_`.
- Card and content IDs follow `<type>_<###>`: `pos_`, `mov_`, `flo_`, `rec_`,
`song_`, and `call_` (a call is a clause in `rules.call.options`, not a card).
- Rules ambiguities are resolved as rulings appended to `docs/rules/decisions.md`
(with the rulebook amended in the same commit) — never silently decided in code.

Expand Down
42 changes: 42 additions & 0 deletions CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
A cooperative two-player digital card game in which a Lead and a Follow salsa dance a song
together.

## Calling and answering

**Call**:
One of seven named asks a player makes as their dance step ends, in place of taking the
song card's bonus; it stands over the partner's next 8-count, where it is answered,
covered, or dropped. A call is content (`rules.call.options`, ids `call_001`–`call_007`),
never a card.
_Avoid_: ask, request, challenge, dare; "the call" for song card 14, which is itself
titled **Call** — say "song card 14" or "the Call card"

**Afinque**:
The calls the couple has answered in a row, counted in links and shared between both
players; each link pays the answer extra Style. It breaks to 0 on a dropped call, a
covered call, a stumble, or an 8-count with no Move, and resets at every phrase ending.
_Avoid_: streak, combo, multiplier, chain

**Hold**:
The position the couple is in, and the one play that changes it without a Move: taking
the hold on an empty floor, or adjusting the hold on an established one, before any
other card in the 8-count. Which of the two it was is recorded on the 8-count, as
`hold: "taken" | "adjusted"`, so a hold is never read back as the basic.
_Avoid_: frame, grip; transition (a transition is the Position played _after_ a Move);
"hold" for a held, staged, or paused card

**Rung**:
The one label every 8-count ends on — perfect, clean, awkward, recovered, or break —
recorded on the 8-count's history entry beside the older `outcome` field.
_Avoid_: outcome, grade, result; the clean **rung** for the **Clean phrase** bonus (the
rung is one 8-count, the bonus is a whole phrase)

## Games and their storage

**Room**:
Expand Down Expand Up @@ -41,3 +71,15 @@ version it ran under and why it was retired: pre-upgrade, replay mismatch, or un
**Unresumable**:
The ending of a game whose stored envelope the running release cannot safely resume.
_Avoid_: corrupted, lost (a lost game is one whose Connection reached 0)

## Music

**House band**:
The game's own optional background music: two looping instrumental cues made for Clave,
**Cuerpo** under phrase 1 and **Montuno** under phrase 2, bundled with the client and
played locally. Off by default, remembered per device, and never part of game or room
state. It is also the band painted into the home-screen and recap artwork — same fiction,
one name.
_Avoid_: the song, Llorarás, the record (the song is Llorarás, the Oscar D'León
recording, which Clave only links to and never hosts); background track; calling one cue
"the house band" — a cue is the **Cuerpo cue** or the **Montuno cue**
54 changes: 39 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ for its settings and verification.

Clave is a cooperative card game for two players — a Lead and a Follow — who dance
a salsa song together, one 8-count at a time. Play positions, moves, and
flourishes; protect your Connection; finish the song with as much Style as you
can. It is the first entry in the planned _Partner Dance Game_ series.
flourishes, call for what you want next and answer what your partner asks for;
protect your Connection; finish the song with as much Style as you can. It is the
first entry in the planned _Partner Dance Game_ series.

v1 is a single responsive web app with a headless TypeScript engine, hot-seat
pass-and-play, and server-authoritative two-device rooms. The governing,
Expand All @@ -23,18 +24,33 @@ adjudicated build plan is [`docs/plans/clave-plan.md`](docs/plans/clave-plan.md)
joined by a shared room code. Hot-seat games are saved in the browser after
every accepted action; online rooms are saved transactionally in SQLite, and a
reloaded device reclaims its seat and resumes the game.
- **Call and answer:** as your 8-count ends you either take the song card's bonus
or make one of seven named **calls** over your partner's next 8-count. Answer it
for Style and another link of **afinque** — the groove the couple builds by
answering call after call — or drop it and lose Connection. Cover a call you
can't answer with a Recovery card, take or **adjust the hold** to fix the floor
you were left, and watch each 8-count land on one of five rungs: perfect, clean,
awkward, recovered, break.
- **Guided turns:** the table walks each turn through Move → Position →
Flourish, explains why a card can't be played on the current floor Position,
and supports drag-and-drop as well as tap and keyboard play.
Flourish, shows the standing call and whether your dance answers it yet,
explains why a card can't be played on the current floor Position, and supports
drag-and-drop as well as tap and keyboard play.
- **In-app rulebook:** a responsive **How to play** dialog on the home screen and
live table, with balance values read from the same validated content as the
engine.
- **Original card artwork** in an Afro-Caribbean figurative-expressionist style;
see [`docs/art/card-art-direction.md`](docs/art/card-art-direction.md).
- **Music and sound:** the home screen and song banner can start or pause
Spotify's official Llorarás embed. Clave does not bundle the copyrighted
recording or synchronize it to turns. Card landings and lesson, turn, stumble,
and finish cues are synthesized locally with the Web Audio API, with a separate
live table — the call, afinque, the hold, and the ladder included — with balance
values read from the same validated content as the engine.
- **Original card artwork** in an Afro-Caribbean figurative-expressionist style,
repainted card by card with GPT Image 2.5; see
[`docs/art/card-art-direction.md`](docs/art/card-art-direction.md).
- **Music and sound:** an optional **house band** — two original instrumental
loops made for Clave with Suno v6 on the owner's own Suno Pro account, Cuerpo
under phrase 1 and Montuno under phrase 2, cut to whole bars and looped
seamlessly in the browser. It is **off by default**, and the home screen and
song banner still link to the real Llorarás recording on Spotify for couples
who would rather dance to the record — that copyrighted recording is never
hosted or synchronized to turns. See
[`docs/audio/soundtrack.md`](docs/audio/soundtrack.md). Card landings, calls,
answers, drops, afinque links, lesson, turn, stumble, and finish cues are
synthesized locally with the Web Audio API on **both** devices, with a separate
SFX toggle that each device remembers.

## Play locally
Expand Down Expand Up @@ -75,6 +91,10 @@ npm run build
- [`docs/cards/v1-card-list.md`](docs/cards/v1-card-list.md) — the complete v1 card set and the Llorarás song deck
- [`docs/plans/`](docs/plans/) — the v1 build plan, its adversarial review and adjudication, and the admin console plan
- [`docs/art/`](docs/art/) — card art direction and the generation prompts
- [`docs/audio/soundtrack.md`](docs/audio/soundtrack.md) — the five 2026-10-23/24
attempts at an original instrumental soundtrack: the four that did not ship, and
the house band that did, with its prompts, model settings, licensing, and the
loop engineering behind the two files the game plays
- [`docs/unity-vs-web-implementation-report.md`](docs/unity-vs-web-implementation-report.md) — comparison of Unity/Hearthstone-style and browser/BGA-style Clave development
- [`docs/living-documents/1-concept-brief.md`](docs/living-documents/1-concept-brief.md) — pitch, pillars, non-goals
- [`docs/living-documents/0-dance.md`](docs/living-documents/0-dance.md) — the Llorarás song/dance breakdown behind the v1 song deck
Expand All @@ -84,12 +104,16 @@ npm run build
- [`research/`](research/) — salsa music, dance, and game-design research notes
- [`tasks/`](tasks/) — working task list (`todo.md`) and log (`done.md`)

## Status (2026-10-15)
## Status (2026-10-24)

The digital v1 is deployed at [clave.dance](https://clave.dance) and passes the
automated engine, persistence, build, bundle-size, hot-seat, reload-resume, and
two-browser online-game checks. The remaining launch gates are human and
operational: the physical couch playtests, the device smoke matrix, and the
two-browser online-game checks. The call, afinque, the hold, and the resolution
ladder were added after v1 was measured; they are recorded as dated rulings in
[`docs/rules/decisions.md`](docs/rules/decisions.md) and as the plan's §9
amendment. The remaining launch gates are human and operational: the physical
couch playtests — now with the amended starter deck, the new Beginner Pose, and
the retuned song-card values — the device smoke matrix, and the
latency/crash/upgrade/restore drills. An authenticated room-administration
console is planned in
[`docs/plans/admin-ui-plan.md`](docs/plans/admin-ui-plan.md). All of these are
Expand Down
Loading
Loading