Log
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
Chronological, newest last. Absolute dates only.
[2026-07-29] decision | v1 design settled by adversarial grill
Ran a full design grill before any code existed. Resolved: calisthenics over tai chi (tai chi needs video, making it a content project); single user, no auth; zero equipment as a hard constraint (reaffirmed after two pushes for a €25 doorway bar); daily ~12 min sessions on a rotating A/B/C cycle; deterministic double progression; no streaks and no calendar.
Two places the user overrode the recommendation, both of which survived scrutiny:
daily-short over 3×/week (which forced the rotating cycle, and the rotating cycle
is what produced the no-missed-days design), and charts + guided warmup in v1
(both turned out ~10× cheaper than quoted — hand-rolled SVG and speechSynthesis).
Largest late change: a ladder rung is one movement plus a modifier, not a different exercise. Reps cap at 12, then the engine switches to tempo/pause/range/ unilateral. This simultaneously kept exercises simple, kept adaptation in the strength range rather than drifting to endurance, held sessions at 12–13 min, and shrank the drawing work.
Recorded in ../SPEC.md.
[2026-07-29] maintenance | corpus bootstrapped
Created the skeleton, lint.sh, routing.md, and the wiki spine
(overview, architecture, decisions, status, open-questions) plus a
progression-engine concept page. Filed briefs 01–11 in briefs/todo/
decomposing the v1 build.
[2026-07-29] done | Brief 01 — scaffold ships; app is installable and offline-capable
Vite 8.1.5 + React 19.2.8 + TypeScript 6.0.3 + Vitest 4.1.10 + vite-plugin-pwa 1.3.0,
all exactly pinned. npm run check = typecheck + lint + tests.
Two deviations, both forced by facts rather than preference. TypeScript 6.0.3, not
7.0.2: typescript-eslint@8.65.0 peer-requires <6.1.0, and the import-boundary
rule is the whole reason ESLint is present. brace-expansion overridden to 5.0.8:
8 high-severity advisories all traced to one DoS in workbox-build's build-time glob
chain; the override clears npm audit and the build still generates the precache.
The purity guard came out stronger than specified — src/domain/ is blocked from
importing the shell and from browser globals, new Date(), Date.now(), and
Math.random(). Verified by planting a file with all five violations (5 errors, then
reverted). This is load-bearing for brief 04's simulation harness.
Verified in a real browser rather than inferred: SW registered, manifest valid with a maskable icon, and an offline reload served the shell from a 7-entry precache — with an uncached fetch asserted to reject, to prove the offline emulation was genuine.
Finding for brief 11: navigator.onLine reported true while the network was
demonstrably offline. Sync must attempt-and-catch, never gate on it.
Brief: briefs/done/01-project-scaffold.md.
[2026-07-29] done | Brief 02 — the domain type contract
src/domain/types.ts plus a realistic midProgram fixture. 14 tests green.
Resolved the brief's open design question: LadderState is authoritative on read,
derivable for repair. deriveLadderStates(history) is an explicitly invoked repair
tool, never automatic — running it implicitly would silently revert hand-edits, which
defeats the point of a hand-editable state file. Brief 04 must therefore not consult
history inside applySession.
Three additions beyond spec, all to spare later briefs from editing a file they are
forbidden to touch: Settings/SyncSettings (needed by 05, 07, 08, 11);
Ladder.kind: 'strength' | 'postural' as a required field so the pull ladder
cannot silently be presented as pull strength; and Modifier.pauseAt so "pause 2s"
cannot be expressed without saying where.
The fixture embeds a real push-ladder rung advance (10 → 11 → 12 → reset to 5), giving briefs 04, 05 and 09 the one transition that distinguishes a correct chart from a sawtoothing one.
Brief: briefs/done/02-domain-types.md.
[2026-07-29] done | Brief 03 — five ladders, 35 rungs, cue-discriminability gate passed
src/domain/ladders.ts + 35 tests. Ids reconciled with brief 02's fixture verbatim,
no conflict. Tests go beyond structural invariants to assert cue content: every rung
must state a tempo even when normal, every pause must name both duration and location
in words, every rung needs a stop-the-set signal, and both nordic rungs must cue
anchoring, the slow eccentric, and the bail-out.
Deliberate SPEC deviation: squat-05 keeps rung 4's tempo, because read literally
("heels elevated" at normal tempo) rung 5 would be easier than rung 4 and the ladder
would run backwards.
Convention to remember: rung id numbers are 1-based, getRung is 0-based.
Also surfaced a defect in brief 02's own fixture — fixtures.ts was authored
before ladders.ts existed and its ladder states are not reachable by replaying its
history under the engine rules (wrong rung indices, a target above targetMax, and a
rung advance below max). Filed as the wave-3 gate in
wiki/status.md; it blocks brief 04, because an engine written against
an invalid fixture gets contorted to fit it.
Brief: briefs/done/03-ladder-content.md.
[2026-07-29] done | Brief 10 — figure system + all five pose pairs
ExerciseFigure + placeholder built first, drawings second, as the brief required.
25 tests. All five pose pairs completed (full, not partial, delivery).
The overlay system is the part that matters: ElevationMarker / HandPositionDots /
AngleArc / TempoDot compose from Rung.modifier alone, so new rungs need modifier
data rather than new drawings. That is what keeps the count at ten figures instead of
forty.
Notable judgement call: react-hooks v7's static-components rule false-positived on
registry-resolved dynamic dispatch; the agent worked around it locally with
createElement instead of loosening the shared eslint config. Correct instinct —
the purity/quality guards are project infrastructure.
Outstanding: legibility at ~120px needs a visual pass once brief 06 renders a real screen. Tracked in the brief's outcome note.
Brief: briefs/done/10-svg-figures.md.
[2026-07-29] done | Brief 05 — persistence, with crash-safety asserted rather than argued
96 tests (codec 52, store 31, SettingsScreen 13). Save order is
serialise → parse-the-serialised-text → shadow write → read back and byte-compare and
re-parse → promote → verify → remove shadow. Verified by injecting failures at each key
and asserting the live key stays byte-identical; a storage layer that lies and truncates
on setItem is caught at read-back.
The corrupt-file path writes nothing at all — storage.ops asserted empty on load,
text byte-identical after repeated loads and a refused save, and the read-only latch
cannot be defeated by call order.
serialise is hand-rolled rather than JSON.stringify(…, 2) so the file is genuinely
readable and byte-stable — brief 11's round-trip test depends on the latter.
Deliberate leniency documented in the codec: history rung ids are not validated against
current content (ids are immutable, old docs must load), sessionsCompleted need not
equal history.length, target is not range-checked, and _-prefixed keys are allowed
as human notes in a format with no comments.
Brief: briefs/done/05-persistence.md.
[2026-07-29] maintenance | Wave-3 gate: fixture repaired and made provable
fixtures.ts was authored before ladders.ts and its ladder states were not reachable
by replaying its own history. Repaired, and made provable instead of re-asserted:
midProgramStart is now exported so brief 04 must assert
history.reduce(applySession, midProgramStart) === midProgram.
Five new tests in types.test.ts catch the bug class without needing the engine.
One of brief 05's tests hardcoded fixture values rather than deriving them — that
coupling was the real defect and is now fixed.
Decision recorded: time-based ladders step by 5 seconds (20→45, six targets per
rung), not 1. A one-second step would mean 26 sessions per rung of planks and would
break progressIndex, whose × 8 was the rep span. Both targetStep and
stepsPerRung derive from unit, so no type or content change was needed. See
wiki/progression-engine.md.
Plan correction: brief 09 depends on brief 04 (it consumes progress.ts), not
just 02 and 05. The wave plan was wrong; 09 moves to wave 5 alongside 06.
Whole-tree verification after the gate: typecheck clean, lint clean, 175 tests, build emits a working service worker.
[2026-07-29] decision | Durability revisited: SQLite snapshot rows replace the single-file blob
This supersedes a decision in wiki/decisions.md, recorded here because reversing a locked decision requires an explicit note rather than a quiet edit.
Was: PUT/GET a single JSON file on a remote host. Now: a zero-dependency Node
service owns db/app.db (gitignored) through Node's built-in node:sqlite, storing the
same JSON document as append-only snapshot rows. The service and its own database
run wherever the app is deployed.
node:sqlite verified working locally on Node 24, which keeps the service at zero
dependencies — no better-sqlite3 native build to compile or pin. It emits an
experimental warning; that is accepted, and must not be "fixed" by adding a dependency.
Snapshot rows rather than normalised sessions/sets/ladders tables: the codec
already owns validation and the canonical shape, and schemaVersion lives inside the
JSON, so normalising would create a second source of truth for shape and duplicate all
of brief 05's validation for no benefit at one user. It also preserves the
hand-editability decision — one sqlite3 query still returns the editable JSON.
Retention is capped at ~20 snapshots as a correctness-of-scale limit, not a tuning knob: each snapshot embeds the full history, so size grows linearly with sessions and the database grows quadratically with retention × sessions.
Brief 11 was rewritten accordingly as
briefs/done/11-sqlite-persistence.md, replacing
the earlier remote-file version, and db/ was added to .gitignore. Deployment
specifics are intentionally kept out of this repo entirely — this repo describes the
service and its local database, nothing about where or how it is hosted.
[2026-07-29] done | Brief 11 — SQLite snapshot service, zero dependencies
28 server + 32 sync + 10 sync-UI tests. node:sqlite, WAL, synchronous = FULL,
insert+prune in one BEGIN IMMEDIATE.
Byte-identical round-trip proven against a real database file over a real socket, with an
adversarial payload and an explicit assertion that JSON.stringify(JSON.parse(sent)) !== sent — so the round-trip test cannot pass vacuously.
Two findings worth remembering: retention prunes by id, not created_at, because an
NTP correction can move the server clock backwards and "newest" must be a fact about
insertion order; and applyRemote must preserve local settings.sync, because the
sync address and secret live inside the synced document, so a naive pull would break
sync as a side effect of using it.
timingSafeEqual runs on SHA-256 digests rather than raw secret bytes — always 32 bytes,
so it is constant-time even for a wrong-length input, where a length !== guard would
leak the secret's length.
Brief: briefs/done/11-sqlite-persistence.md.
[2026-07-29] decision | Effort input removed entirely; cardio gets its own day
Two locked decisions superseded, recorded here because reversing one requires a trail.
1. No effort input anywhere. The post-set easy-ok-hard tap is gone, and a proposed pre-session difficulty picker was considered and also rejected — one level only. The engine's sole input is did you complete the prescribed work.
This deletes the fast-track, which was the only calibration mechanism, and an onboarding quiz / post-set rating / pre-session picker have now all been declined. Calibration therefore becomes descending: ladders start mid-ladder and the 3-miss regress rule walks the user down. The reasoning that settles it — a missed set is free information, a question is not.
It also resolves the 25% hold over-advance by deletion rather than refinement. Worth noting the simulation had concluded the effort signal was the only lever that moved that number (605 → 16); removing the signal achieves the same end by a different route.
Accepted cost: the engine can no longer distinguish 3×12 with five reps in reserve from a genuine 3×12, and the evidence says proximity to failure matters more at low load. That autoregulation burden now sits with the user, knowingly.
2. Cardio gets its own day, twice weekly. Cycle A·B·C·Cardio·A·B·Cardio; 5 × 60s hard / 90s easy; lower-body movements only; one room, floor only. Supersedes "no cardio in v1". Driven by an evidence review (wiki/training-science.md): resistance work alone accrues effectively zero aerobic minutes, strength-only mortality benefit already maxes out at 30–60 min/week, and strength + aerobic combined gives 40% all-cause / 46% CVD reduction. Marginal return on more strength is small; on any aerobic work it is large.
The user's original proposal — "more reps on an easy exercise, done fast" — does not work as stated, and this is the most useful thing the research produced: intensity is the active ingredient, not reps or speed. A high-rep set on an easy movement ends when the muscle quits, not when the cardiovascular system is taxed. Tabata's own author published a note that copying 20/10 intervals while dropping the intensity requirement produces no VO2max gain. The prescription is therefore by breathlessness, never by rep count.
Zero equipment reaffirmed a third time, against specific no-purchase alternatives (a broom handle across two chairs; a towel round a sofa leg). Both declined; all training is one room, floor only. Standing consequence the app must state rather than hide: no pulling strength is trainable, and lats, elbow flexors and grip get nothing.
Corpus maintenance: decisions.md passed the 200-line cap, so the technical half was
split into wiki/technical-decisions.md, and two now-superseded
entries (the old zero-equipment section, the ascending-calibration mechanism) were
reconciled rather than left to contradict the new ones.
[2026-07-29] ingest | Design direction: "Instrument", and a real defect found
Design research produced a full brief; the durable half is wiki/design-system.md (tokens + doctrine + accessibility floor), the screen-level specs go into the UI brief.
Direction committed: "the app is an instrument, not a coach" — large tabular numerals on near-black, exactly one signal colour, and nothing on any screen reads the clock. Chosen partly because it is the only thing legible on a floor phone at arm's length, and partly because it structurally cannot produce the template tells it lists.
The existing #111418 / #6ee7a8 both survived review (12.0:1, AAA at any size).
Category convention conflicts with our constraints in five places, and each is resolved in the page: bottom tab bars (we have two destinations, and a persistent bottom bar puts mis-tap targets under the primary action), browse-style home screens, calendars and heatmaps (a calendar with gaps is a missed-day indicator even unlabelled), trophies, and weekly-goal percentages.
Two mechanical enforcement tests specified, because intent is not enforcement: a grep
banning date formatting from src/ui/, and a snapshot asserting the home DOM is
byte-identical whether the last session was 1 day or 400 days ago.
Defect found in shipped code (brief 10): under prefers-reduced-motion,
ExerciseFigure renders the animated end-frame at opacity: 0, so it shows only the
start pose — silently discarding the movement information the two frames exist to
convey. Accessibility settings should not cost information. Fix: render both phases side
by side, labelled 1 and 2. Folded into the UI brief.
Typeface: Archivo Variable, self-hosted (~28 KB subset), explicitly not Inter.
Honesty note carried from the research: Dribbble, Mobbin and screensdesign all refuse automated fetches, so the visual direction derives from shipped apps and documented design principles rather than from inspected shots. Those links are flagged as un-verified in the research output.
[2026-07-29] todo | Briefs 12, 13, 14 filed for the post-decision rebuild
Three decisions (no effort input, cardio day, floor-only) plus a settled UI direction turned into three briefs:
- 12 — domain v2 (in flight): delete
Effort, seven-position cycle with two cardio days, mid-ladder starting rungs, and a real v1→v2 migration. The new property it must prove is descending calibration — a user started 3+ rungs above capability must walk down and settle without oscillating. That has never been tested and it is the entire justification for mid-ladder starts. - 13 — content: cardio (5 × 60s/90s, lower-body, prescribed by breathlessness rather than reps), the floor-only fixes (couch nordics → sliding leg curl, which also biases biceps femoris better; chair inclines → wall), and the extras pool led by prone trunk extension for the spinal erectors.
- 14 — UI: TanStack Router + Query, Base UI, the six routes, and the two mechanical tests that enforce the no-guilt constraints instead of merely intending them.
Briefs 06 and 09 are superseded by 14 — it absorbed the session player and progress
screen once the page structure and design system were decided. They move to superseded/
when 14 lands rather than leaving three briefs claiming the same files.
One tradeoff dissolved rather than accepted: the user chose expanded cues on the home
cards, which pushes Start below the fold on a small phone. Making Start a sticky
bottom dock (mirroring the player's) gives expanded cues and one-tap-to-begin, so there
is nothing to trade.
2026-07-29 — second grill: the app stops measuring, and half the codebase goes with it
A second adversarial grill on the whole concept, run against a much simpler product statement from the user: one home page with today's training and three variants, all the exercises shown one by one with a next button, no counter, trusting the user, a dashboard, a calendar-style week page, weak auth, animated SVG figures, and no time tracking.
Five collisions with locked v1 decisions, resolved in this order:
- "No counter, trusting the user" vs. the engine's only input.
SetResult.actualValueand the 3-miss regress rule were the sole mechanism by which a ladder could go down. Four options were offered — cap the ladder, two buttons per exercise, a fixed ramp, or a pre-filled counter. The user rejected all four: "trust the user. Don't adapt." That is now the governing decision and it deletes the adaptive engine outright. - "No time tracking" vs. 12 timed rungs. Kept as timed holds with tiered times, plus an orientative countdown with a start button that gates nothing — Next is always live. Converting the holds to reps was rejected, which was the right call: two of McGill's Big 3 are isometric by design.
- A calendar page vs. no dates anywhere. Resolved as the next 7 sessions, no dates. The invariant survived completely intact — and then survived again when the user picked milestones and total-work-ever for the account page over a consistency chart, both of which key off session number rather than a clock.
- Three variants became a per-session easy/medium/hard load dial (±2 reps / ±5s), independent of the schedule. This partly reverses "no effort input anywhere", and the reversal is sound for a reason worth recording: the old objection was that the engine read the signal badly. The engine no longer reads anything, so a picker that feeds nothing cannot corrupt anything.
- Auth went from "single user, no auth" to multi-user with passwords that are accepted and discarded. Storing an unchecked password collects real reused passwords for no benefit whatsoever.
The pacing law, which was a genuinely satisfying result
The user gave three step sizes at three different moments — +1 rep per 2 sessions, ~+1s for core, +1s per 2 sessions for posture — and asked me to tweak the numbers as needed. They are all one rule: a rung takes ~6 weeks, and the step is the span divided by the sessions in it. Nothing the user specified had to be overridden. Expressed as interpolation rather than accumulation, it also gives top-of-ladder cycling and re-tunable per-rung caps for free, with no special case for either.
Corrections I had to make mid-grill
- I presented a 3-day and a 6-day rotation as different options.
P·L·C·P·L·CisP·L·C— the same sequence written twice. The only real variable was ordering. - The arithmetic on the user's stated step exposed that core rungs would take 50 weeks each against push's 7, from two compounding causes (a 1s step across a 25s span is 25 increments; core trained once per 7-day cycle). Fixing it produced the daily core and posture block, which the posture evidence independently supports.
- I claimed "where you are on each ladder" was the most useful account-page stat. The user declined it. Fair — the most recent milestone per pattern carries nearly the same information, and today's page already shows the patterns being trained.
Research commissioned during the grill
- Isometric ceilings are much lower than the ladders assumed. McGill programs 10-second holds in a reverse pyramid; transfer drops sharply past 60s and past ~2 minutes it is meaningless or harmful. Caps set per rung: plank 60s, side plank 45s/side, hollow hold 45s, tuck L-sit 30s (wrist-limited, not abdominal-limited), prone Y/T 30s.
- Concurrent-training interference is real and this programme sits in its risk zone — it peaks with HIIT at 95–100% VO2max alongside resistance work at ≥10RM, which is exactly hard intervals plus 5–12-rep bodyweight sets. The mitigation is order, not distance: strength first, conditioning after.
- Volume beats frequency for hypertrophy — frequency's effect is compatible with
negligible once weekly volume is matched. Combined with the fact that daily training
makes legs/cardio adjacency unavoidable (unless legs days go back-to-back, breaking 48h
recovery), that settles the rotation at
Push · Legs · Cardiowith cardio always following legs.
Accepted risk, recorded not relitigated
With no adaptation the schedule prescribes rungs on a clock rather than on readiness. I
recommended cutting the injurious rungs or gating them behind a one-time unlock; the user
chose to rely on each rung's own safety cue. Standing, with one presentation consequence:
on a safetyCritical rung the first cue renders first and visually separated.
One thing improved without anyone choosing it: brief 15 removes the couch-anchored nordic negatives for a floor-only reason (superseded brief 13 had already specified the sliding leg curl replacement), so the first risky rung the user meets is a hollow hold at ~session 84 rather than a hamstring-strain mechanism at ~4 months.
Corpus changes
Rewrote decisions.md, progression-engine.md, architecture.md, overview.md,
technical-decisions.md, open-questions.md, status.md, and the invariants and
source-of-truth ordering in CLAUDE.md. New page wiki/programme.md, split out when
decisions.md passed the 200-line cap — the lint gate caught both that and
training-science.md going over. SPEC.md dropped from rank 2 to rank 4 in the
source-of-truth ordering: it describes an adaptive engine the app no longer has, and
leaving it at rank 2 would have made every future agent implement the wrong product.
Four open questions deleted as answered or dissolved (the fast-track over-advance, rung discriminability, the missing interior fixed point, descending calibration). Five filed, of which #1 — is six weeks per rung right? — is the only number in the programme with no evidence behind it.
Briefs 06, 07, 08, 09, 13 and 14 superseded with outcome notes. Briefs 15–20 filed.
lint.sh now reads package.json to distinguish npm subpath specifiers from repo paths,
which had been producing a false stale-path warning.
Also: the repo had zero commits across ~30 files until this session. The v1 tree is now committed as a baseline before any of the above touched code.
2026-07-29 — the v2 rebuild shipped: six briefs, three waves, 611 tests
Built briefs 15–20 through plan-split-dispatch in wave mode: 15 ‖ 17, then
16 ‖ 18 ‖ 20, then 19. Green at the end — typecheck, lint, 611 tests, npm audit
clean, a service worker with 10 precache entries, and offline proven rather than
asserted (a full Push session played to the finish screen with the network down).
Routing was senior-heavy (five opus, one sonnet) and that was the right call for this particular set: a cross-module contract four briefs depend on, an irreversible migration of persisted state, an auth surface, and a correctness call no test can catch. Only the milestones module was mechanical enough for sonnet.
The run's real output was the reports, not the diffs
Every brief was asked for an honest verdict on something it could not be tested on, and four of the six came back with a real problem:
- Brief 15 found that declared caps were asymptotes, not values — dividing by
sessionsPerRungmeantfractiontopped out at(per-1)/per, so the 20–60s plank prescribed 59s and never 60. Fixed by dividing by(per-1). It also found the finding I'd rank highest in the whole run: the step between rungs is worth far more than the ±2-rep variant can absorb (12 knee push-ups → 5 full push-ups), so difficulty is front-loaded within each rung rather than evenly spread as the wiki claimed. Filed as open question 7. - Brief 18 found
design-system.mdcontradicting the code it governs — it claimed the countdown ring was the only continuously-animating element and that nothing animates on load, while the brief it was governing shipped a looping figure that does both. It correctly declined to edit the corpus and reported instead. - Brief 19 found five layout defects that only exist when the app is operated: the countdown ring 39px off-centre on the most-looked-at screen, the ring oversized enough that one clipped cue line was visible (and cues are the only thing distinguishing adjacent rungs), the safety cue rendering seventh and below the fold on exactly the rungs where it is the only brake, a finish screen with 370px of dead canvas, and a placeholder address that reads as a configured service.
- Brief 20 found
programme.mdclaiming a per-side side-plank dose that the rung's own cue splits between sides — 45s meaning ~22s each. Survived a whole design pass because nobody multiplied by two.
Two agents also correctly refused to overstep: brief 17 wrote that its instinct was to add a per-user secret and flagged it rather than acting, and brief 18 declined to edit the corpus page it had found wrong. Both are the ownership contract working.
Corrections I made to the agents
- Reversed brief 15's
push-07-pike. The implementer needed a floor-only replacement for the feet-elevated push-up and a pike push-up was a fair reading of the constraint — but it is a vertical press, not a push-up plus a modifier, so it broke a project invariant and brief 18's five-pose premise. Push took the shorter ladder, and the id numbering now keeps a deliberate gap at 07 because renumbering would rename shipped ids. - Moved the
Prescription → ExerciseRecord[]mapping into the domain astoSessionResult, after brief 15 flagged that it arguably belonged there. Without it brief 19 would have defined the shape of a recorded session a second time.
Things worth knowing later
- Brief 16 had to adopt the pre-v3 storage keys to make its own migration reachable. The v3 keys are new, so without adoption an upgrading user's history would have silently vanished and brief 16 §1 would have been dead code.
- The
?user=parameter is required onPUT, which the brief hadn't asked for: a mismatch check needs an independently stated target to compare the document against. - Usernames are rejected rather than case-folded, because folding makes the stream key
disagree with the document's own
usernamefield — which is precisely whatPUTrefuses. - Open question 4 is answered and the answer was surprising, so it was kept as a note rather than deleted: a 2-second pause is legible at 120px not because the figure stops moving but because the two-frame crossfade snaps into focus. A true morph would look better and weaken the signal.
Left open on purpose
Two design calls brief 19 declined to patch because they want a decision:
POSTURAL_NOTICE outweighs the plan it annotates on / and sits ~730px below the fold on
the pull player page; and long rung names wrap to three lines beside the figure, which is
the norm rather than an exception, since a rung is one movement plus a modifier.
Deploy integration is not started. The user asked mid-run whether the service could be a
Fastify REST API — it is already REST; whether it becomes Fastify is an open decision
against the zero-dependency call in technical-decisions.md.
2026-07-29 — reversing the zero-dependency service: Fastify, and three workspaces
The user asked whether the server could be a Fastify REST API with the frontend talking to
it over REST. Half of that was already true — the client makes four fetch calls
against /api/state, /api/login and /api/health, so the wire protocol was never the
question. What was being asked was whether to replace the implementation underneath.
I put the trade to the user rather than deciding it: at four endpoints Fastify replaces
about 300 lines of hand-rolled but tested HTTP plumbing, and the real cost is not code
aesthetics but that deploying stops being a file copy and gains an install step on the
server — which was the entire value of the zero-dependency choice. The user chose to
migrate, and additionally to restructure into npm workspaces with client, server and
shared.
shared/ earns its place for a specific reason rather than as a habit: the username rule
currently exists in both server/db.mjs and src/persistence/codec.ts, kept honest by a
test asserting the two regexes match. One definition imported twice is strictly better than
two definitions plus a test that they agree. The constraint that follows is that shared/
holds data shapes and validation, never behaviour — it is a dependency of a browser
bundle and a Node service at the same time, so it may not import node:* or touch the DOM,
and that will be enforced by an ESLint rule rather than a comment, the same way the
domain/ purity boundary already is.
Filed as two briefs, not one. 21 moves the tree and must end with all 611 tests still passing; 22 swaps the HTTP layer with those tests as the contract. A behavioural change hidden inside a hundred-file move is close to unreviewable, and "the move is green" is only a meaningful signal if nothing else changed at the same time.
Two things brief 22 is most likely to break silently, so both are called out in it: Fastify will happily parse and re-stringify JSON, which would destroy the byte-verbatim round-trip the client's crash-safe save depends on; and Fastify logs requests by default, which would quietly defeat the five tests asserting the password never reaches the database or the logs.
decisions.md is unchanged by any of this — the product did not move, only the plumbing.
2026-07-29 — brief 22 shipped: Fastify underneath, nothing different on the wire
The service is Fastify (5.10.0). npm run check is green at 614 tests — the 73 server
tests all pass unchanged, four were added, and not one file under client/ changed.
That last fact was the brief's premise and it held: the client makes four fetch calls and
needed no edit, which is what "the REST contract does not change" has to mean to be worth
saying.
The migration's value was almost entirely in the tests it had to satisfy. Brief 17's suite was written against wire behaviour rather than implementation, so it survived a total rewrite of the layer beneath it. That is not luck; it is what the effort spent on those tests bought, cashed in eleven briefs later. Nothing about a green run on a new implementation would have been believable otherwise.
Four framework defaults had to be switched off, and each was mutation-tested. Fastify
re-serialises JSON (which would silently destroy the byte-verbatim round trip the client's
crash-safe save depends on), synthesises HEAD for every GET route (turning today's
HEAD /api/state 405 into a 200), runs hooks globally unless scoped (which would put the
401 after validation), and logs every request. Flipping each switch back was verified to
fail a test — 9 failures for the re-serialisation one.
The logging test did not have teeth on the first attempt, and the reason is worth
remembering. pino writes to file descriptor 1 directly, so an in-process spy on
process.stdout.write reported a perfectly clean run with logger: true. Worse, Fastify's
request log does not include the body, so even a working spy would not have found the
sentinel password — the assertion had to become "no request line reached these pipes at
all", checked by spawning the real service as a child process. This is exactly the failure
mode the brief warned about: a migration that quietly defeats a security test while
leaving it green. It took two attempts to actually avoid it.
Writing that test also found a sixth unguarded behaviour: an unauthorised caller using
the wrong method on a guarded route was answered 401 rather than the 405 that would
reveal the route exists — correct, but nothing tested it. Removing the check left all 77
tests green. There is a test now.
Validation is schema-driven from shared/api.ts — TypeBox, so one declaration is both a
JSON Schema for Fastify's AJV and a TypeScript type. The username schema is built from
USERNAME_PATTERN.source rather than a copy of the pattern, so the regex and the schema
cannot drift. Compilation stays in the service: TypeCompiler uses new Function, and
shared/ has to work under a browser CSP. StateDocumentEnvelope is three fields and
stops there — a schema for the whole StateDoc would make the service a second source of
truth for the document and reject documents from a future schemaVersion it is meant to
store blindly.
The brief's server/src/db.ts was not followed, deliberately. The files stayed
server/*.mjs in place, because moving them would have meant editing the assertions that
are the migration's only proof and would have moved the db/ directory db.mjs derives
from its own location. eslint.config.js had already called this: its Node-globals block is
scoped server/**/*.mjs with a note saying it is about the runtime rather than the HTTP
library and should survive brief 22 unchanged. It did. Both ESLint boundary blocks were
re-proved by making them fail, as brief 21 established.
And the bill, which was known in advance: the service has a dependency tree now, so a
deploy needs npm ci --omit=dev before node state-server.mjs will start. Copying files is
no longer enough. That is the whole cost of the decision, it was accepted knowing about it
on 2026-07-29, and it now belongs to the deploy brief. Storage was untouched — node:sqlite
is built in, db.mjs is a port and not a redesign.
2026-07-30 — Five questions answered, the theme goes white, and the deploy exists
No brief. Three changes made directly, plus the answers that unblocked one of them.
The user answered five of the six open questions
Asked whether all briefs were done and what was still open, the user closed 1, 2, 3, 5 and 6 in a handful of sentences. Each is now a section in wiki/decisions.md; wiki/open-questions.md holds only question 7.
- 1 — is six weeks per rung right? "Don't make assumptions about continuity. I will try to do it daily, but there might be some days when i skip. After i skip, i will go to the next session in the queue." This dissolves the question rather than answering it. The sharp version of Q1 was that "six weeks" silently assumes daily training and the app cannot notice a three-a-week user taking two years — the answer is that the app was never promising six weeks, only a step size. The queue is the contract. No code changed, and the constants stay re-tunable.
- 2 and 3 — is the cue text a strong enough brake, and will the squat ladder stall? "It's ok if it gets difficult" and "If it's dangerous, the player can skip it by pressing next." The brake is Next, not the prose — a stronger mitigation than the one recorded on 2026-07-29, and free, because the app measures nothing. Recorded as a constraint on future work: nothing may ever count, flag or display a skip, because that is what this rests on. The intermediate squat rung is not being added.
- 5 — does the daily core and posture block survive real use? "yes, it's important to have some exercises for daily posture and core." Kept at full frequency; all three alternatives rejected. Moving it before the strength work is the one that looks free and is not — it would put low-intensity holds ahead of the main work, which the concurrent-training ordering exists to prevent.
- 6 — should the side-plank cap rise? "yes, it should rise." 15→45s total became
30→90s (
SEC_30_90inladders.ts), which is 15→45s per side against norms of 65–97s. It is now the only rung above the front plank's 60s ceiling, which is consistent rather than exceptional: the cap governs one continuous hold and a side plank is two. The rung's third cue was rewritten to say the clock is a total, so 90 cannot be misread as per-side. The milestone label moved with it.
Question 7 survives all of this, and it is worth saying why, because the answers look like they should have killed it. 2 and 3 were about whether the user will accept a hard rung; 7 is the claim that the interpolation misrepresents where difficulty sits inside a rung — a smooth ramp drawn over a step function. Accepting hard sessions does not make a wrong curve right.
Dark → white
The user asked for a white theme, reversing an explicit doctrine line ("No light theme. One user, 7am, dim room. Scope with no user"). Reversed, and recorded in wiki/design-system.md.
It could not be an inversion. #6ee7a8 is 1.5:1 on white, so the accent was
re-chosen rather than re-tuned — #0b6b3f, same hue, 6.6:1. --warn likewise: the amber
was 1.9:1. Everything else in the design system survived untouched, which is the useful
signal — the system was never actually about being dark.
The edit itself was one file, which is exactly the payoff noHexColors was written
for. Then two things turned up underneath it:
--text-3on--surface-2fails if you only check against--bg. It is the/loginplaceholder. The against-white figure was a comfortable 4.8:1 and the real one was 4.25:1. Fixed by darkening the floor to#646c75; the page now quotes ratios against the surface each token is painted on, not against the canvas.noHexColorshad been passing vacuously forapp.csssince it was written. Vitest stubs CSS modules to''by module id, soapp.css?rawmatched the glob, returned no bytes, and a grep over nothing passed.css: trueinclient/vite.config.tsfixes it, andapp.cssis now genuinely checked (it was clean). Generalisable: a test that greps files it failed to open is green and worthless — assert the input is non-empty.
Added client/src/ui/__tests__/contrast.test.ts (20 cases): parses tokens.css,
composites the rgba() washes over their real backdrops, asserts 4.5:1 / 3:1 pair by
pair, and asserts the ceiling on the ring track so the documented sub-3:1 exception
cannot be "fixed" later. 614 → 634 tests.
The deploy
Built at vps-deploy/projects/sports-app (deploy.ts, .env.example,
.env, README.md), plus the Caddy routes and a one-line hasServer registration in
vps-deploy/src/projects.ts. Modelled on public-resource-map, the closest existing shape
(SPA + Fastify + sqlite + pm2).
Serving under a sub-path needed a source change here, and it is the only one:
SPORTS_APP_BASE now drives the Vite base, the PWA manifest start_url/scope/id,
the service worker's navigateFallback, and the TanStack Router basepath — four things
that must agree exactly. Default /, so dev, preview and every test are unchanged. The
deploy verifies the first two after building, because a wrong base fails silently and
completely: every asset 404s and the page is blank with a clean server log.
Four things worth keeping:
- The DB path is the dangerous one. The service defaults to
<repo>/db/app.db, which underSERVER_DIRsits inside the rsync mirror —rsync --deletewould destroy the user's entire training history on the second deploy.SPORTS_APP_DBpoints at/srv/sports-app-api/data/app.dband--exclude=/datais anchored. There is no backup job; move one and you must move the other. - Port 8794, not the service's own 8787 — farm-valley's sim server already holds that on this box.
npm ci --omit=dev -w @sports-app/server --include-workspace-root. Unscoped it would install the client's React tree on a box that never runs it; scoped it is 58 packages. Verified locally end to end before writing it in: rsync subset → install → boot →/api/health200 → DB created at the out-of-tree path.- Two secret leaks found and fixed in review of my own script. The shared secret was
being echoed to the terminal by the command logger and passed in the
sshargv, where it is readable viaps. It now goes over stdin with a redacted label, and the.envis written underumask 077. A dry run is asserted not to contain it.
No build-time API URL, deliberately. Sync is optional and the settings field's
emptiness means "same origin", which is load-bearing in the app's own design — so the
address and secret are typed into /account once per browser rather than baked in. That
is a contract with a human, and it is written down in both READMEs.
The deploy has not been run. It typechecks and dry-runs clean; SSH, the Node version
check, the remote npm ci, pm2 and the Caddy reload are all unverified against the real
server.
2026-07-30, later — the floor-phone sizing model is retired
The user looked at the app on a laptop and said the primary button was too big, then, after a first fix, scoped the devices: "The expected devices are smarthphones and desktop. You don't need to over-extend the buttons for those because they got good accuracy."
That invalidates a whole cluster of numbers, not one button. The floor-phone model — a sweaty finger aiming at a device on the ground, viewed obliquely mid-exhale — was the sole justification for a 96px primary, 24px of mandated dead space, and a 120px exclusion zone. It was plausible and never confirmed.
Now --tap-min: 44px, --tap-row: 48px, --tap-primary: 56px, --fs-btn: 19px (from
24px — 24px inside a 56px control fills it rather than sitting in it), the primary's radius
steps --r-lg → --r-md (20px on 56px is 4px off a pill, a named tell), and the footer gap
drops --sp-6 → --sp-4 because it was dead space rather than rhythm. 44px is a hard
floor — WCAG 2.2 AAA target size — so this stops there rather than at "looks tidy".
The instructive part is that my first attempt was wrong in a way that looked right. I
gated the old sizes behind (hover: hover) and (pointer: fine), shrinking the primary on
desktop and leaving phones at 96px, and argued for modality over viewport width. The
argument was fine and the premise was not: it preserved a number nobody wanted on the
device the app is mostly used on, and left two sizes to maintain. Recorded in
wiki/design-guardrails.md as a shape to watch for — when a
rule's justification is wrong, change the rule; do not add a breakpoint that hides it on one
device. There is now no per-device override of control sizes anywhere.
Two things deliberately survived, since they were bundled with the retired model and are independently justified: the sticky footer (the next action is always in the same place without scrolling, on screens whose cue list is taller than the viewport) and the reach ordering that puts the primary bottom-centre and the destructive control top-right (a reaching arm occludes top-centre regardless of how accurately it points). Type sizes were left alone — those are about viewing distance, not aim.
2026-07-30, later still — brief 23 written: the figures get a rig
Researched the animation system against game-engine, then grilled the
result into briefs/done/23-figure-rig-and-morph.md.
Nothing implemented.
The engine turned out not to be the answer. It has easing curves, an injected-time
tween, an AnimationClip, and Catmull-Rom corner smoothing — and the useful output was
not a technique to copy but a measurement. figures/motion.ts claims a morph is
impossible because the poses "have different path shapes… nothing to tween
geometrically". That is wrong: the poses are joint dictionaries, and three of the five
figures already have identical topology. The real blocker is that bone lengths are not
preserved between the two poses — push arm −44%, hinge torso +26%, squat leg
−37% — because the pairs were drawn as independent stills, not as one skeleton twice.
Four of the five worst cases are anatomically impossible; only the squat's arms are real
foreshortening.
Two pieces of maths did the deciding, and both killed a cheaper option. A chord is
shorter than its radius, so lerping joint coordinates collapses prone's arm to 26%
of its length mid-sweep even after the lengths are corrected — which makes angle
interpolation the only correct choice rather than a preference. And the measured sweeps
showed push's limbs barely rotate (4°, 0°, −8°): its hands and feet are planted
while the torso descends, so the elbow is not authored, it is solved. That splits
the figures into IK (planted endpoint: push, plank, hinge legs, squat legs) and FK
(free swing: prone arms, squat arms) — a distinction I missed in the first research pass
and which makes this a substantially bigger job than the "afternoon of geometry" I
initially estimated. Said so.
The architecture survives intact, which is the good news. figures/index.ts forbids
a JS loop ("this renders beside a live countdown on a phone") and forbids a figure
animating itself, so motion.ts samples the timeline, solves FK/IK per sample, and
emits per-bone @keyframes — JS once per render, never per frame, no new CSS features.
buildTimeline is untouched and every assertion about it must still pass; its own
docstring already anticipated "a future morphing renderer would consume the same
timeline".
Art direction, from the user's reference image (a game stickman with spiky hair and
baggy orange trousers): took the silhouette ideas, refused the palette. A hair spike and
a trouser flare, currentColor at STROKE_WIDTH, unfilled — both justified
functionally rather than decoratively (the spike is a stationary landmark for prone's
150° sweep; the flare marks the hip, an invisible vertex that carries the most
information in hinge and plank). Colour would need a new token, a contrast pair and
a decisions.md revisit, and was rejected. I declined to identify the source game
rather than guess, and flagged that copying a recognisable character into a deployed app
is a different thing from taking stylistic cues.
Deliberately deferred: easing the turnaround (R3). The loop reverses direction instantly at the bottom, which no body does, and linearity is enforced by an actual test rather than just a doc rule. Left alone because 30 of 35 rungs have no pause, so easing all of them risks 30 rungs reading as lightly paused — and because the rig may dissolve the problem by itself, a rotating limb reading more organically than a translating point. One variable at a time.
A third vacuous test found, in the same family as the CSS-glob one: the
reduced-motion assertion in ExerciseFigure.test.tsx queries by
.exercise-figure__frame--start and then asserts that element has that class — always
true. Its name also contradicts the CSS, which holds the end pose. Brief 23 fixes it.
The generalisable shape is now stated twice in the corpus: a test that greps files it
failed to open, or asserts the selector it just queried, is green and worthless.
[2026-09-04] decision | v3 visual direction: the category standard, and three invariants reversed with it
Ran an Impeccable direction round (seed 197b2dd1, mode Operate, code-led) against a
brief of "keep the business idea, think of a better design", with openGym offered as
inspiration. Four worlds were built as live phone mockups carrying real ladder content
rather than described in prose: the Crag Guidebook (the roll's assignment — 35 rungs
as 35 graded routes, a fixed grade ramp, the topo line as the movement path, and a
guidebook's native voice for access and safety notes), the Physio Handout
(Impeccable's pick), Split-Flap Concourse (a competitive challenger), and the
category standard played straight. Five further challengers were declined, each
donating one discipline before it left.
The user took the standing exit. Convention is now the commitment: dark ground, gradient progress ring, streak grid, stat tiles, bottom tab bar, Inter throughout, executed at full fidelity without irony. The craft bar is openGym — light/dark themes, custom iconography, eight accent colours, "designed, not assembled".
The direction round is recorded because the reasoning is worth keeping even though the grounded directions lost. Two findings survive the choice and are worth more than the cards they came on:
- A guidebook's access-note voice was the only vocabulary any world offered for the
app's three honest warnings (
POSTURAL_NOTICE, the cardio dose limit, the safety-critical first cue). The chosen direction has no such slot, and the warnings still have to live somewhere. - Every rung's fourth cue is already a stop rule — "stop the set when your hips sag", "stop the clock when your shoulders creep toward your ears". A physio sheet has a conventional boxed slot for exactly that. Nothing in the category standard does, and the shipped app buries it as cue four. This is a content structure the ladders already have and no design has ever surfaced.
Three reversals, taken deliberately and at the user's explicit direction. Each is
recorded in decisions.md; none should be treated as a design detail:
- "The app measures nothing" is reversed. It was the top-ranked product decision.
- "No dates anywhere in the app" is reversed. Dates, streaks, missed days and a
weekly-goal percentage are in scope.
noDatesInUi.test.tsand the time-invariance snapshot are deleted rather than weakened — a test kept while its rule is gone is worse than no test. - Comparison affect is admitted — "last time: 7" and an estimated 1RM. The rule against green-vs-red comparison was argued as "guilt with extra steps"; it loses.
Stack: Tailwind + Framer Motion + anime.js, at the user's choice. Tailwind replaces
app.css, which retires noHexColors.test.ts in its current form. The contrast test
survives and must be re-pointed at the Tailwind theme — it is the only mechanical
guard left on the palette once the hex-literal rule is gone, and it is the one that
caught the dark→white accent failure.
PRODUCT.md was written at the repo root during this round (the direction flow gates on
it) and now carries the category-standard commitment as a brand commitment.
[2026-09-04] build | briefs 24–27: the category standard, shipped
Ran the v3 direction as four briefs in waves (24a ‖ 26 → 24b → 25 → 27a → 27b),
dispatched to subagents with the controller verifying each wave against the integrated
tree rather than trusting the agents' own reports. 704 tests at baseline → 1115.
Typecheck clean, lint clean, and the client builds at both / and /sports-app/.
Two rate-limit terminations mid-run, one on each model tier. Neither lost work: 27a had finished its code and died writing its report. Worth knowing the failure is survivable and that the tree, not the agent's summary, is the source of truth.
The repo had not built since 2026-08-13, and nobody knew
0d7d4f3 ("SAVE") converted Prone.tsx from a ProneFigure component to a PRONE_RIG
data export while figures/index.ts still imported the component. That broke
npm run build and npm run typecheck for three weeks. It went unnoticed because
Vitest does not typecheck and no test renders a prone figure, so 704 tests stayed green
over a tree that could not be built. The generalisable shape, and it is the third of its
family in this corpus: a green suite is not a green repo.
Fixed by restoring the component verbatim from 5bb9e6b alongside the rig, so brief 23
loses nothing and deletes the old renderer when its morph lands. A subagent had instead
stubbed ProneFigure to return null — which compiles, takes typecheck from 3 errors to
2, and silently ships the postural exercise with no figure at all. Reverted. Prefer
the loud restore to the quiet stub.
What the review gate caught that the briefs did not
- The eight-accent system was unreachable.
theme.tswas complete, correct, and imported by nothing;index.html's cold-start script stamped what was stored, but no screen could change it.contrast.test.tswas meanwhile proving all sixteen palettes legible. Legible and reachable are different claims, and only one had a test. An Appearance section on/accountnow owns both settings, with three tests. - A swatch that lies is worse than a name that is true. The first version of that
picker stamped
data-accentper button to preview each hue. Every accent block is:root[data-accent='…'], so it matched nothing and all eight dots rendered the accent already in use. Element-scoping them would mean duplicating the theme logic into each block; the picker is named options instead, and the app itself is the preview. StreakPillhad anaria-labelon a bare<span>with both childrenaria-hidden— the generic role does not carry an author-supplied name, so the element looked at most often was never announced.RingandHeatmapalready setrole="img"on the same shape; this was the one place it was dropped. Testing-library'sgetByTextreads text content rather than the computed accessible name, which is why nothing caught it.noHexColors.test.tscaught the controller writing a hex triplet inside a comment. Working exactly as intended.
Decisions taken during the run
- Malformed
loggedis rejected, not clamped. The app saves back what it loaded, so truncating a too-long array would delete a recorded set and persist the deletion. The precedent already existed:cyclePositionreports rather than clamps. The cost is that a hand-edit typo in a display-only field blocks training until repaired — left open for the user, since it cuts against "arrive with the answer already made". - The service accepts any
schemaVersion, unchanged. It never gated on one, not for 3-vs-2 either; migration ownership already sat with the client.server/**gained tests and comments recording that this is the design working, and no functional change. noHexColors.test.tssurvived rather than being retired as the direction round predicted. Tailwind v4 is CSS-first, so the palette stays intokens.cssand the test keeps working — it now also catches arbitrary-value classes likebg-[#123456].contrast.test.tsgrew to 352 assertions (22 pairs × 16 palettes). Building it found a real defect in the reference artifact: its accent switcher writes an inline style ondocumentElement, overriding both theme blocks, so its light mode painted dark-mode mint on white at 1.8:1. The light eight were re-derived at ~6:1; the dark eight are the artifact's, verbatim. No threshold was lowered and no pair dropped.
Deleted, and why nothing replaced them
noDatesInUi.test.ts and timeInvariance.test.tsx enforce rules that no longer exist.
Deleted rather than weakened — a test outliving its rule tells the next reader something
false. The half of time-invariance that survived the reversal was re-tested, though:
screens.test.tsx now asserts the same session is prescribed after a fortnight away as
after a night's sleep. The rotation still advances on training and never on the calendar;
only the screen's description of you changed.
app.css, Screen.tsx, Notices.tsx and the twelve-alias token shim are gone.
Open
Brief 23 is still mid-flight and is the only thing in todo/. The rig is authored and
tested; the crossfade it replaces is still what renders.
[2026-09-06] decision | the phone pass, and an exercise reference that relicensed the repo
Two unrelated pieces of work on the same day. The first was owed; the second changed the licence of the whole repository.
The phone pass, finally
status.md had carried "the white theme has not been looked at on a phone" since
2026-07-30. Driven at 402x874 with 24 seeded sessions, both themes, all eight
accents. Two composition defects that only exist at that width:
- Today put the session below the fold. 513px of band against 844px of content — the first paint showed the ring, three tiles, the heatmap and one of three exercises. The shipped docstring defended this ("the primary is a fixed-position button, so a training user never reads any of it"), and the defence is wrong: the button being reachable is not the session being knowable, and the app's first principle is that it arrives with the answer already made. Plan first now; history under its own heading.
- The stop rule truncated mid-clause. It was already above the cues, which is what brief 27 specified and what its test asserts — but the comparison strip sat between the numeral and it, and the sentence cut at "...your chest stops reaching a fist off the" while still looking complete. A safety line that stays legible right up to the point where it stops being legible is worse than one plainly below the fold, because nothing tells the reader to scroll. Comparison yields; it is the least urgent thing on that screen.
Both orderings now have tests asserted by document order, not pixels, so they hold at every width, and both were verified to fail against the old order.
The generalisable finding: presence tests and ordering tests are different claims, and neither is a fold test. Brief 27 asserted the stop rule was above the cues and that assertion stayed green while the line was unreadable.
The exercise reference, and the AGPL
The user asked for openGym's exercises. The repository is now AGPL v3.0
because of it — see ../NOTICE.md and
decisions.md.
The concern was raised before any code moved and the user reaffirmed the request, which is recorded here because the reasons not to do it did not go away:
- openGym is AGPL v3.0 with a network clause. sports-app is served over a network, so §13 attaches to the whole repo, including code with nothing to do with the import.
- openGym does not own the data. Its
NOTICE.mdattributes MuscleMap for body geometry and is silent on the exercises, which are shaped like ExerciseDB (id: "0001",gif: "0001-2gPfomN.gif") — distributed commercially. There is no clean chain of title, and an AGPL grant cannot convey rights the grantor lacks. Recorded in NOTICE.md rather than papered over. - The clean substitute, if this is ever revisited: free-exercise-db, 876 exercises, 188 bodyweight, public domain (Unlicense), images in-repo. It would remove both the obligation and the uncertainty.
What was filtered, and why it is not negotiable: 325 of 1,324 entries are bodyweight; the other 999 need barbells, dumbbells, cables or machines. Zero equipment was not among the decisions reversed on 2026-09-04, so importing them would have contradicted a live invariant. Image and animation fields were dropped: openGym names assets its own repository does not ship, and the user asked for no images in the tree. No binary was copied.
scripts/import-library.mjs regenerates the module, so the filters are auditable
rather than arriving as an 800KB paste. The reference is a route reached from
/account, deliberately not a fifth tab — a tab would make browsing a primary
destination and contradict "there is nothing to browse on the way to a set" — and
it is lazily loaded, so its 190KB chunk never enters the critical path of the
screen that has to paint fast on a floor.
The structural guard is the important part: library.test.ts asserts by import
graph that nothing in domain/ imports the library, so "the reference now feeds
the engine" trips before anyone can write the line that reads it.
A content bug the screenshots hid: upstream repeats the major muscle inside the secondary list, so a 3/4 sit-up read "Hip Flexors · Hip Flexors · Lower Back". Deduped, with a test — which itself had to match the lowercase record text, because the list capitalises in CSS and a screenshot cannot tell the two apart.
[2026-09-06] decision | the reference swaps to free-exercise-db, and the AGPL becomes optional
One commit after the openGym import, at the user's direction. library.ts is now
derived from free-exercise-db (public domain, Unlicense), which removes both
problems the previous source carried: the copyleft obligation, and the fact that
openGym could not convey rights in ExerciseDB data it does not own.
It is also the better dataset, which was not the reason for the swap but is the
reason not to regret it. 186 usable entries against 325 — but each carries
force (push / pull / static), category and level, which are the axes the
five ladders are built on. openGym gave a body-part string that mapped onto
nothing here. Fewer rows, and every row says something the programme can agree
with.
Two upstream entries ship with no instructions at all — Side_Bridge and
Side_Jackknife — and are dropped at import. A reference entry that cannot tell
you how to do the movement is not a reference entry, and an empty disclosure is
worse than an absent one because the row invites a tap that returns nothing. This
is a third filter in all but name, and it is asserted rather than described: the
count test says 186, so a re-import that loses either filter fails.
The image-stripping changed character and the test says so. openGym named assets its repository did not ship, so dropping the fields was a repair. free-exercise-db does ship its images, so the same code is now a choice — which makes it likelier to be undone by a well-meaning re-import, and worth a comment at the assertion rather than only at the filter.
The AGPL is no longer required, and was deliberately not removed
LICENSE is still in the tree. The obligation is discharged — but deleting a
file does not remove 4d93f47 from history, and that commit contains
openGym-derived data. Moot while the repo is unpublished and unpushed; not moot
the moment it is distributed.
Two closures are recorded in wiki/licensing.md: rewrite the one unpushed commit out of history and go back to unlicensed, or keep AGPL v3.0 on purpose. The user's copyright, so the user's call — and staying over-restrictive is the safe direction to wait in, which is why nothing was removed pre-emptively.
The generalisable bit: a licence acquired from a dependency does not leave when the dependency does. It leaves when the history does.
[2026-09-06] correction | the licence is dropped, and "unpushed" was wrong
LICENSE and the license field are removed. The current tree carries no
openGym-derived material, so it needs no AGPL, and the project is back to
unlicensed — all rights reserved, as before the import.
The correction is the part worth keeping. The offer to drop it was made on the
grounds that the openGym commit was "a single unpushed commit, so it's cheap right
now". That was false. git status reported the upstream as gone and the
controller inferred unpushed from it; git ls-remote shows the project's
public GitHub remote already at the current tip. The commit had been distributed before the swap replaced it.
So the decision changed shape after the user had already answered it, and the
honest move was to say so rather than proceed on consent given for a cheaper
action. What was safe and non-destructive (removing the licence going forward) was
done; what is outward-facing and irreversible (force-pushing a public repo to
purge 4d93f47) was left for an explicit call, with the trade written up in
wiki/licensing.md.
A tracking ref is not the remote. origin/main is a local cache and
git status's "upstream is gone" says something about configuration, not about
what the server holds. "Unpushed" is a claim to verify with ls-remote, not to
infer — and it is exactly the claim that makes a history rewrite sound cheap.
Second finding, same shape as the first: this repository is public and is being pushed to by a parallel session. Anything committed here is distributed within minutes and without a review step. That is worth knowing before the next import.
[2026-09-06] change | sports-app moves to Ward, and gains the per-user boundary it never had
This is the app whose cutover changed the most, because it is the one that had the
least. SPORTS_APP_SYNC_SECRET, the x-sync-secret header, POST /api/login,
?user= and the client's login screen are all gone.
What was actually true before, restated because it is what changed. The shared
secret authenticated the deployment, never a person: one string for every caller,
with ?user= naming whose stream a request was about. Anyone holding it could read
or write anyone's training history by editing a query parameter. The service said so
in its own file header and technical-decisions.md called it "a nameplate, not a
boundary" — honest, and correct for a personal deployment on loopback.
The stream key is now the session's subject. That is the whole change. ?user= is
removed rather than kept-and-ignored, because a parameter that still exists looks like
it still selects something, and stateEndpoint takes no username at all. A caller reads
their own stream because it is the only one they can name — there is no target left to
corrupt, which also deletes a whole class of bug the client used to defend against by
percent-encoding a hand-editable name.
The document-versus-target check on PUT survived and is stronger. It used to
compare two client-supplied values, so it caught a confused client but could not catch a
malicious one. One side is the session now, so it refuses a caller writing into somebody
else's stream as well.
Three failures, three codes, and the 503 is the one worth naming: a sync client that
read "signed out" for an unreachable Ward would drop its session rather than retry.
401 is no session, 403 is a live session with no sports-app grant — which prm's open
registration makes an ordinary thing to receive here.
Offline: the claim narrowed honestly. Signing in now needs the network, because it
needs Ward, and /login became a hand-off rather than a form. The app still opens
offline for an established session, which was the property that mattered. The cached
username in session.ts is now explicitly a display cache rather than an identity — the
service decides whose document a request touches and that value cannot influence it,
which is a stronger statement than the old module could make.
One loose end, left deliberately. settings.sync.secret is still in the document
schema. Nothing sends it, the Settings field is gone, and the screen tells anyone with
an old value that it is inert — but removing it is a schema version bump, and putting
two irreversible migrations in one release is how a bad afternoon happens. The test
that asserts the secret never travels is scoped to headers and the URL, and says in a
comment that the body still carries it, rather than looking stronger than it is.
1114 tests pass across server, client and shared; typecheck clean. Nothing has been run against a real browser or a deployed Ward.
[2026-09-06] done | A documentation site at /sports-app/docs
docs/ — Astro + Starlight, built by npm run docs -w @sports-app/docs-site,
deployed at the estate's /<project>/docs convention.
Three authored pages, plus the sixteen corpus pages rendered on every build: an orientation page, the four routes (with the five things Fastify does by default that this service is not allowed to do, each pinned by a test), and state and sync (offline-first as a structural property, whole-document snapshots rather than normalised tables, and why the snapshot cap is a correctness-of-scale limit rather than a tuning knob).
Reference is TypeDoc over shared/ — the TypeBox declarations that are
simultaneously the AJV schema, the client's types and the service's guard. One
declaration, two entry points into it.
One archify diagram: the client, the state service, and what Ward changed — drawn so the dashed sync edge and the "device" boundary make the offline-first claim visible rather than asserted.
The docs are an instrument too. wiki/design-system.md's doctrine is
enforced rather than quoted: box-shadow: none globally (shadow-on-white is
named there as the most recognisable template look, and Starlight uses it by
default on cards and the search box), no gradients, Archivo Variable rather than
Inter, tabular numerals on every table, and one theme, and it is light — the
toggle is removed rather than disabled. Doctrine 2 is honoured in prose as well
as in numbers: nothing on the site uses colour to mark something as bad, and
--warn is the only non-accent colour. One deliberate extension is stated in
the stylesheet rather than smuggled in — the accent additionally carries links,
because documentation needs them distinguishable.
A lint regression was caught and fixed rather than shipped. eslint . at the
root picked up the docs build output — Astro's type cache, TypeDoc's bundled
viewer scripts, archify's artifacts — taking the repo from 6 errors to 393. Those
are third-party build products, so they are now ignored by path; docs/'s own
hand-written files are not ignored and do lint, joining the existing
scripts/**/*.mjs Node-globals block rather than getting a new one. Back to the
6-error baseline exactly.
1114 tests pass, typecheck clean. docs added to the root workspaces array.
Pre-existing and untouched: those 6 lint errors are unused imports left in
server/ by the Ward cutover — createHash and timingSafeEqual are no longer
called now that the shared secret is gone, and SECRET is still referenced in a
test. npm run check was already red before this change and still is.
[2026-09-27] change | Local dev runs against a local Ward; the sign-in loop it exposed is not fixed
On the owner's call, for every Ward app at once: npm run dev serves the client at
/sports-app/ (the root .env now carries SPORTS_APP_BASE), and the client dev server
proxies /ward and /ward-api to WARD_PUBLIC_ORIGIN beside the existing /api proxy,
so the browser sees one origin as it does behind Caddy. Locally that is Ward's container
in wzd_auth/infrastructure/local, whose seed.mjs registers sports-app, grants the
owner account and writes WARD_APP_KEY. The proxy rewrites Origin to Ward's only for
requests from a page on the dev server, which is what Ward's same-origin check on
/refresh and /logout needs. npm run server and the client's dev script now load
the root .env with Node's --env-file-if-exists; the deploy starts
server/state-server.mjs directly, so it is unaffected. New .env.example, un-ignored
with !.env.example; server/README.md's "Running it" follows.
Checked against the local Ward on a scratch SPORTS_APP_DB: through the dev server,
/api/state answers 401 without a session and, signed in through the proxied Ward,
404 "no state has been stored yet for this user", so the Ward integration holds.
1114 tests pass and typecheck is clean. npm run lint fails on six errors that predate
this change, all in server/state-server.mjs and its test (an undefined SECRET,
unused imports left from the Ward move).
Found, not fixed: in a browser, sign-in loops. The route guards in plan.tsx and
account.tsx send anyone without a cached username to /login, and /login always
hands off to Ward with next set to itself. But nothing calls setCurrentUsername
outside tests, and the service has no endpoint that says who is signed in, so after
Ward's sign-in the browser lands on /sports-app/login and is sent straight back to
Ward. The 2026-09-06 entry noted nothing had been run in a real browser; this is what
that hid, and it holds in the deploy as well. The fix needs a way for the client to
learn the signed-in person (an /api/me on the service, like prm's) and a /login that
checks it before handing off. Left for the owner to decide.
[2026-10-02] done | Brief 23: the figures are rigs, and they move
The crossfade is gone. Each of the five figures is a rig (one skeleton, a length
per bone, two angle sets), drawn by one renderer as nested bone groups and
animated by per-bone @keyframes that motion.ts solves once per rung from the
unchanged timeline. Bone length is invariant by construction and asserted against
the declared lengths at every stop. Planted hands and feet drift at most 0.82
units between stops. foreshorten is deleted: squat was redrawn side-on, so every
figure shares one projection.
Two findings beyond the brief:
- Four of the five movement arrows were drawn through the body, which a dissolve hid. They are moved, and a test holds them clear.
getFigurecould resolve prototype keys such asconstructor.
Question 4 revisited, as the brief asked. The note said the crossfade's blur
was what made a 2-second pause legible, and that a true morph would weaken it.
Measured at 132px in frozen frames: true, a paused rung no longer snaps into
focus. It does stop dead on a body that was moving at a constant rate, and the
static AngleArc overlay names the hold on its own, so the blur was a redundant
third signal. Not yet watched live on a phone; R3 waits for that look. Full
outcome on the brief.
[2026-10-06] docs | The state service's prose catches up with Ward
Closed the todo state-server-header-predates-ward (captured 2026-10-02; the file is
retired, git has it). The header of server/state-server.mjs was rewritten from the
code: three routes, a "Who the caller is" section (the session subject is the stream
key; 401, 403 and 503 and why they differ), guarantee 2 restated as the session check,
guarantee 3 as subject-versus-document. The SPORTS_APP_SYNC_SECRET /
timingSafeEqual Auth section, the "not a security boundary" paragraph and the empty
"login body" section are gone.
The same drift was in server/README.md (login section, routes table, x-sync-secret,
?user= in validation and in the migration note, test list), the docs site's routes
page (renamed "The three routes"), docs/.../state.mdx (which claimed ?user= is still
sent and checked; the client sends none and the server ignores one), the header of
client/src/persistence/sync.ts, and comments in shared/api.ts, shared/username.ts
and wiki/architecture.md. Comments and docs only; no behaviour changed. 1118 tests
pass, lint and typecheck are clean, and the docs site builds.
[2026-10-07] decide | The last open questions, answered
Asked one at a time. Question 7: the owner chose in-between rungs at the three
big steps (push 3→4, hinge 4→5, squat 5→6), over a gentler range or only rewording.
Written as brief 28, which carries a v4 → v5 migration because position is stored as
sessionsDone, and inserting a rung would otherwise move people back one exercise.
Questions 8 and 9 were already answered in code (brief 27's <HonestNote>;
brief 24's stopRule and brief 27's <StopRule>); the page had not caught up.
R3: the figure's turnaround stays linear; recorded in design-system.md, and the
figure-animation todo has nothing left open.
[2026-10-07] done | Brief 28: three in-between rungs, and schema v5
Question 7 is built. Each of the three big steps got a rung, chosen for a beginner:
push-03a-3s-down-knee-press (lower a full push-up over three seconds, press up from
the knees), hinge-04a-sliding-curl-half-range (the two-legged slide, heels halfway
out) and squat-05a-split-hand-on-wall. Why each, and the full ladder tables, are in
programme.md. Ids never change, so an
inserted rung takes its lower neighbour's number plus a letter. The rung after each
now names the new one in its cues. Every startRungIndex still names the same rung.
The v4 → v5 step adds 14 to a counter that sat at or above an insertion on the v4
ladders, so nobody changes exercise or target. It uses frozen v4 numbers, and the
service still migrates nothing, so the step runs once. midProgram is now a migrated
document (push 44). 1144 tests pass (1118 before); typecheck, lint and build clean.
Code in b09773d.
Found on the way and not fixed: milestones replay history on today's ladders, so a
document that was past an insertion when it migrated lists the new rung as reached.
Captured as todos/milestones-after-a-rung-insertion.md.
Corpus: question 7 deleted from open-questions.md, the decision and its rejected options
recorded in decisions.md. decisions.md was at its 200-line cap, so the two
"SUPERSEDED — moved" pointers that repeated the link in the section above them were
removed to make room. Closed the todo figure-animation-from-game-engine (captured
2026-07-30; nothing was left open after R3 was decided; the file is retired, git has
it). Its links in design-system.md and in brief 23 are now plain text, the only edit to
that brief.
[2026-10-07] decision | Milestones after a rung insertion: left as is
The owner chose to leave the display gap that brief 28 found. Milestones replay history
on today's ladders, so a document that was past an insertion when it migrated (push 14,
hinge 42, squat 56 sessions) lists the new rung as reached. No real document was that far
along, and the fix (replay by rungId) would shift every milestone one session later for
everyone. Recorded in progression-engine.md.
The todo milestones-after-a-rung-insertion is retired (git has it); its link in brief 28
is now plain text, the only edit to that brief.
[2026-10-09] capture | briefs 29 and 30 filed; overview and product pages refreshed
Two bugs found during the README refresh are now briefs, not fixed. 29: every route
guard needs sports-app.session.v3, nothing writes it after Ward's sign-in
(setCurrentUsername has no caller, the service has no /api/me), so sign-in loops;
found by reading code and not yet reproduced. 30: the account screen's "Total work
ever" note still says the app never learns what you did, which stopped being true on
2026-09-04; the totals themselves still sum the prescription.
Pages brought up to date against the code: wiki/overview.md and the docs site's
index.mdx and Starlight description (no longer "measures nothing", dates are
displayed, identity is Ward, the service has three routes), PRODUCT.md (/plan not
/week, the screen list, the dates bullet, the stale test count dropped), and
docs/diagrams/architecture.json ("three routes", diagram rebuilt with archify).
Left alone and still stale: wiki/status.md and wiki/adherence.md still say "measures
nothing" / "no dates", and wiki/architecture.md still lists /week; the Login bullet
in PRODUCT.md still describes the pre-Ward login.
[2026-10-13] build | brief 25: local accounts and "Sign in with Ward"
The state service has its own accounts now, on the vendored ward-auth 0.2.0
(server/vendor/ward/ for the plain .mjs service, client/vendor/ward/ for the React
hooks). server/ward.mjs is replaced: the hand-written JWKS and introspection client is
gone with jose, and what is left is configuration (the browser-side API prefix, the
public origin, the five WARD_OIDC_* values) and one app rule, that a username must fit
shared/username.ts. state-server.mjs registers wardAuth first and puts the two state
routes in a child scope so the raw-string JSON parser does not reach the library's routes;
the stream key is request.auth.user.username. db.mjs hands over its DatabaseSync.
New: GET /api/auth/session (the call the client was missing), server/seed-users.mjs
(npm run seed), a real login page (username, password, an optional Ward button, no
register link), and a sign-in section on /account (link and unlink Ward, set or change
the password, log out, log out of Ward too). The dev server's /ward proxy is gone.
Decision: decisions-identity.md.
Brief 29's sign-in loop is fixed by the same change (the login page writes the cached
username whenever /api/auth/session says signed in) and is covered by a test; the brief
file is the controller's to move. Data: snapshots stay keyed by username. Streams keyed by
a Ward subject (what the key was from 2026-09-06 to now) get a linked local account of the
same name at boot (linkWardStreams), so no history is orphaned; the person's displayed
name is the hex string until renamed by hand. Streams keyed by a name (local, pre-Ward)
are read again once npm run seed creates an account with that exact name, and the service
names them at startup. Found: the library cannot reshape the first username of a Ward user,
so a Ward name outside this app's rule (Alice) is refused with unsupported_username
instead of being signed in. Left alone: the architecture diagram still says "verify +
introspect", and wiki/status.md still lists brief 29 as todo.
[2026-10-18] todo | Brief 31 filed: the docs site moves from Starlight to Docusaurus
The owner's call (2026-10-18), one brief in every repo with a docs site. 31 keeps the URLs and the light-only look, and teaches eslint.config.js the new layout. Building the corpus found three links into wzd_auth that Starlight turned into 404s, and one anchor into a decision replaced on 2026-09-04. The deploy waits on vps-deploy brief 11.
[2026-10-19] build | brief 29: the sign-in loop, verified fixed and closed
Nothing to build: Ward brief 25 (2026-10-13) had already fixed the loop with
GET /api/auth/session and the write in login.tsx, so the brief's /api/me would
have duplicated a library route. Verified in a fresh browser with a local account: one
sign-in lands on / with sports-app.session.v3 set, a reload stays, a live cookie with
no cached name is written back on one pass through /login, the service-worker build
opens offline, and a log-out stays logged out after a reload. The real Ward round trip
was not run: the local Ward's published port reset every connection, then Docker left
WSL. Two tests added (a log-out survives a reload; Ward's access_denied lands on the
login page with no session). docs/getting-started.md lost the loop section and the
/ward proxy, api.mdx lists the session routes, and the architecture diagram no longer
says "verify + introspect" or names the production domain. Left open: sign-in always lands
on /, because the guards drop the requested path.
[2026-10-19] build | brief 30: the total-work note no longer says the app cannot know
Option 1, copy only, since the owner had not chosen. The note under "Total work ever"
says the totals are the schedule's, that logged sets are not counted, and that the
player shows them the next time you do that exercise. The six "measures nothing"
comments, plus two "never learns" notes in domain/types.ts and persistence/codec.ts,
now describe the 2026-09-04 reversal. totalWork still sums the prescription. Counting
logged work (option 2) stays open for a grill with the owner.
[2026-10-19] build | brief 31: the docs site is on Docusaurus
Same URLs (the route list is the old one plus /search/), still light only, built with
the corpus-docs-site skill's v0.31.0 files. The corpus sync now discovers pages (the
same 16), sends the links into wzd_auth's corpus to the ward-auth repo on GitHub, and
the build throws on a broken link. The one stale anchor, in progression-engine.md, now
points at the 2026-09-04 heading that replaced the old governing decision. eslint
ignores the generated output and lints the new TypeScript files. Not deployed: the
owner deploys after vps-deploy brief 11 flips the stack's asset check.
[2026-10-23] todo | Brief 32: sign-in returns to the screen that was asked for
Promoted from the todo of 2026-10-19. The five route guards pass the asked-for path as
next, /login checks it is a path inside the app and goes there, and the Ward button
sends returnTo: <base>login?next=… so /login stays the one place that writes the
cached username. Brief 32.
[2026-10-27] build | brief 32: a sign-in goes on to the screen that was asked for
A signed-out visit to /plan now signs in to /plan. That closes what brief 29's entry
left open ("sign-in always lands on /"). The five guards send next and /login goes
there with replace. The Ward button asks for a return to <base>login?next=…, so
/login is still the one place that writes the cached username. Found: the router
spreads a route's validated search over the raw one, so validateSearch has to set an
unsafe next to undefined; leaving it out let //evil.example through, and the tests
caught it. Live under /sports-app/ with a password and a throwaway account: the plan
showed and Back did not return to /login. A next of //evil.example signed in to
/. The real Ward round trip was not run: the local Ward refused connections, and its
redirect URI is on port 5173, which another session was using. Ward's return is pinned
by a test instead. Also: next is lost after a Ward failure, because the library lands
failures on a bare /login. The todo the brief came from is deleted, and the brief's
link to it became a plain path.
[2026-10-27] todo | A Ward retry keeps the asked screen
From brief 32's outcome: after a refused Ward sign-in the library drops next,
so a retry lands on /. The owner chose a library fix in wzd_auth and
adoption here once it is released. Captured as
ward-retry-keeps-the-asked-screen,
blocked on that release.
[2026-10-27] todo | The Ward retry fix is released
ward-auth 0.7.0 (wzd_auth brief 42) carries the return path through a
refused sign-in as ward_return_to, read through useWardSignIn().returnTo.
ward-retry-keeps-the-asked-screen
now says how to adopt it and is ready to promote.
[2026-10-28] todo | Brief 33: a Ward retry returns to the asked screen
The todo ward-retry-keeps-the-asked-screen became
brief 33. It re-vendors
ward-auth at 0.7.0 (both copies are at 0.3.1), passes allowRename: false so
0.4.0's rename route stays off, lets 0.6.0's migration 4 run, and has /login
pass the same returnTo again after a refused Ward sign-in. Not built.
[2026-10-28] build | brief 33: a Ward retry returns to the asked screen
Both vendored copies of ward-auth went from 0.3.1 to 0.7.0, written by
wzd_auth's vendor script, and that repo was left clean. 0.4.0's rename route
stays off (ALLOW_RENAME in server/ward.mjs, passed in state-server.mjs, where
wardAuth is actually registered), because a stream is keyed by the username. A
0.3.1 database copy booted under 0.7.0 ran migration 4, and a password sign-in and the
stored document worked. After a refused Ward sign-in, /login reads next back out
of useWardSignIn().returnTo, so a retry with Ward or a password goes on to the asked
screen. That closes the gap brief 32's entry left. The tests fake the service for the
round trip and send six bad returns that are not reused. Headless Chrome under
/sports-app/ checked the refusal landing and a password sign-in to /plan. The live
Ward round trip was not run, because the local Ward container was down, so it is an
owner check. The todo is deleted. Brief 33.
[2026-10-28] decision | ward-auth's rename and usernameFor stay off
After brief 33 adopted ward-auth 0.7.0, the owner took the recommended answer on
the two features it offers: no rename screen (allowRename: false stays, since
each user's history is stored under the username) and no usernameFor.
[2026-10-31] maintenance | README's run steps match local accounts; .env.example boots as copied
A README refresh pass with the readme-docs standard. The README's run section still said signing in and sync need Ward, and its diagram had the service check every session with Ward, the shared-cookie contract retired on 2026-10-13. It now starts the state service beside the app, makes an account with npm run seed, and draws Ward as the optional "Sign in with Ward". The link to the state page pointed at the old Starlight path; it points at docs/docs/state.mdx now.
Found while running it: a straight cp .env.example .env set WARD_OIDC_ISSUER with an empty client key, and the service refused to start; with those lines commented out it then refused for want of SPORTS_APP_PUBLIC_ORIGIN, which the example left commented because it was derived from the Ward redirect URI. The example now sets the origin to http://localhost:5173 and comments out the five Ward lines; Ward's seed.mjs still supplies them. docs/getting-started.md says so. Checked: npm install, npm run server (listening on http://127.0.0.1:8787, /api/health ok through the dev proxy), npm run dev on /sports-app/, and npm run seed against a scratch database. The images show the workout screens, which have not changed since 2026-10-09, and were kept.
[2026-11-02] maintenance | Briefs reset
Part of an estate-wide reset. The twenty-seven done briefs and the six
superseded ones are folded into the wiki and deleted; brief numbering restarts
at 01. The old briefs read like the grilling that fed the first corpus. The last
commit that held them is 038f6ff: read one with
git show 038f6ff:corpus/briefs/done/28-in-between-rungs.md. Brief numbers in
the entries above refer to that set.
wiki/status.md was a 2026-09-06 snapshot that still said nothing was committed and described the old pm2 deploy; it is now a dated line per area with what is open. architecture.md's "Multi-user, weakly" section, which said passwords are never checked, is now "Accounts and sign-in" as built, and the 2026-07-29 decision it came from points at its replacement in decisions-identity.md. The other pages cite dates instead of brief numbers. Code comments no longer cite brief numbers.