AGENTS.md@website ยท diff

git:20261110.dda94dd to git:20261112.434aead

16 added, 13 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

# hippo website: rules for agents
Static Astro + Tailwind v4, deployed to Cloudflare Pages as hippo-memory.com. `DESIGN.md` holds
the design rules and `README.md` the dev and deploy commands. Read both before a change.
## Rules
- **Wording is locked.** A layout, docs or accuracy task changes no visible text. A text change
needs the owner's ask. `npm run build` compares each page with `text-snapshot/` and fails on a
difference. When the owner asked for the change, run `npm run snapshot` and commit the result.
- **No eyebrow, tagline, helper text or secondary label.** If a screen needs one to make sense,
fix the layout.
- **The README is the source** for the comparison table and the FAQ. Edit them there, never here.
- **No new client JavaScript** without a line in `DESIGN.md` that says why. The site ships one
- Preact island, the layout script (copy, scroll fade, reveal), the hero typing script and the
- background canvas script.
- - **Tokens** live in `src/styles/global.css`: `accent`, `accent-light`, `warn`, the tinted `zinc`
- scale, `--duration-fast`, `--duration-medium`, `--ease-standard`, `--leading-display`,
- `--measure`, `--section-y`. Use them; do not write a hex or a duration in a component.
- Two files draw outside CSS and carry their own hexes: `src/components/DecayCurve.tsx` and
- `scripts/make-images.mjs`. Change them with the token.
+ Preact island, the layout script (copy, scroll fade), the hero video player and the card-cabinet
+ figure's inline script. three.js renders the hero video at build time and never ships to the page.
+ - **Tokens** live in `src/styles/global.css`: `paper`, `paper-2`, `paper-3`, `ink`, `ink-2`, `ink-3`,
+ `accent`, `accent-deep`, `warn`, `rule`, `rule-strong`, `text-body`, `--duration-fast`,
+ `--duration-medium`, `--ease-standard`, `--leading-display`, `--measure`, `--section-y`. Use them;
+ do not write a hex or a duration in a component. Files that draw outside CSS carry their own
+ hexes: `src/components/DecayCurve.tsx`, `scripts/hero/cabinet.js` and `scripts/make-images.mjs`.
+ Change them with the token.
- **A copy button** goes only on a command block a reader can run as shown (`<Cmd copy>`).
Example blocks get none.
## Components (`src/components`)
- - `Nav`, `Footer`, `BackgroundFx`: on every page. `Nav` reads build-time stats from `src/lib/stats.ts`.
+ - `Nav`, `Footer`: on every page. `Nav` reads build-time stats from `src/lib/stats.ts`.
- `PageIntro`: the h1 and lead of a content page. `Section`: one titled block; its id is the
- slug of its title (`src/lib/slug.ts`).
+ slug of its title (`src/lib/slug.ts`), and `split` puts the heading in a left column from lg up.
- `Cmd`: a terminal or config block. `CopyCommand`: one command in a row with a copy button.
`CopyButton`: the button both use; the click handler is in `src/layouts/Base.astro`.
- `VsTable`: hippo against one system, from the README table. `Faq`: a pick of README answers.
- - `RepeatMistakes`: the Z0 round 3 card. `DecayCurve.tsx`: the only Preact island.
- - Home only: `Hero`, `Terminal`, `Problem`, `HowItWorks`, `GetStarted`, `LocalFirst`, `Receipts`,
- `Compare`, `InstallCta`.
+ - `RepeatMistakes`: the three Z0 round 3 bars, with no words of its own. `DecayCurve.tsx`: the only Preact island.
+ - `HowItWorks`: the three stores and the decay curve on /how-it-works/. `CardCabinet`: the figure beside that page's intro, generated by `scripts/figure/build-cabinet.mjs`. That folder is the anatomy skill's MIT kit plus a driver written to the kit's API (its `shapes` field), so oxlint skips it.
+ - Home only: `Hero`, `HeroScene` (the cabinet), `Problem`, `Session`, `TheTest`, `HomeHow`, `Different`,
+ `HomeBench` (public tests and the two public-test losses), `HomeTeams`, `LocalFirst`, `Compare`, `GetStarted`.
+ /benchmarks/ states every loss in its own copy.
## Checks before a PR
```bash
npm --prefix website ci
npm --prefix website run build # README guard, astro build, then scripts/check-build.mjs
```
`check-build.mjs` fails on a word glued to a link or inline code, a duplicate id, a `DESIGN.md`
- colour the code does not use, and visible text that differs from `text-snapshot/`. After a
+ colour the code does not use, an American spelling, and visible text that differs from `text-snapshot/`. After a
deploy, run Lighthouse on the changed pages: every page scores 100 in each category today.