[repo] Workspace: Review Phase 0 and record gaps, lessons and handover
Adversarial review with per-package counts and 13 reintroduced bugs, all caught. Fixes from the review: the trace geocell is capped at 6 characters (~1 km; 16 allowed centimetres), one forbidden-word hit per place, and an e2e guard that meta charset stays within the first 1024 bytes. CLAUDE.md §6.2 no longer contradicts itself about care acts; §2 and §3 say what Phase 0 actually built.
This commit is contained in:
@@ -110,7 +110,11 @@ feed of anything.
|
||||
|
||||
---
|
||||
|
||||
## 2. Repository layout (proposed — confirmed when Phase 0 scaffolds it)
|
||||
## 2. Repository layout
|
||||
|
||||
Phase 0 scaffolded `schema`, `engine`, `content`, `ui` and `apps/rosea`. `storage`, `identity`,
|
||||
`sync`, `services/lucerna`, `tools/art-prep` and `art/` arrive with their first feature, because an
|
||||
empty package has a test suite that runs nothing ([`phase0-workspace.md`](.agents/features/phase0-workspace.md) D1).
|
||||
|
||||
```
|
||||
pnpm-workspace.yaml
|
||||
@@ -192,27 +196,32 @@ Web first is the decision: the game must run from a link, on any phone, with no
|
||||
|
||||
---
|
||||
|
||||
## 3. Commands (proposed until Phase 0 scaffolds them)
|
||||
## 3. Commands
|
||||
|
||||
```bash
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm --filter @rosea/schema build # schema first, always
|
||||
pnpm install --frozen-lockfile # also installs the git hooks (§5.2)
|
||||
pnpm --filter @rosea/schema build # schema first, always (generates the contract types)
|
||||
|
||||
pnpm --filter @rosea/app dev # 127.0.0.1:5173 — never --host (§5.7)
|
||||
pnpm build # turbo: schema -> engine -> content -> ui -> app
|
||||
pnpm build # turbo: schema -> engine/content/ui -> app
|
||||
|
||||
pnpm lint # ESLint, incl. the engine-purity rule (§7)
|
||||
pnpm typecheck # tsc + svelte-check, every package plus e2e/ and scripts/
|
||||
pnpm test # vitest, all packages — quote counts per package
|
||||
pnpm --filter @rosea/engine test # incl. fast-check property tests and sun golden tests
|
||||
pnpm test:e2e # Playwright against the BUILT app
|
||||
pnpm test:offline # Playwright, network cut after first load
|
||||
pnpm --filter @rosea/engine test # incl. fast-check property tests (sun golden tests: later)
|
||||
pnpm test:e2e # builds, then Playwright against the BUILT app under /Rosea/
|
||||
pnpm test:offline # builds, loads once, CLOSES the server, reloads
|
||||
pnpm validate:library # every hope sentence; fixtures must FAIL
|
||||
pnpm lint:copy # forbidden words and names (§5.6)
|
||||
|
||||
# Not yet — they arrive with their first feature:
|
||||
pnpm art:prep # opens tools/art-prep on 127.0.0.1
|
||||
|
||||
cargo test --manifest-path services/lucerna/Cargo.toml # Phase 4 onward
|
||||
```
|
||||
|
||||
The build's base path is `/Rosea/` (GitHub Pages' project sub-path); `ROSEA_BASE=/x/` overrides it
|
||||
for the build and for both Playwright suites together.
|
||||
|
||||
> **The `pnpm test` trap, imported from Aeterna.** Exit code 0 says the command succeeded, not that
|
||||
> tests ran. A filter that matched nothing and a green run look identical. **Quote the counts per
|
||||
> package, or do not claim green.**
|
||||
@@ -421,9 +430,11 @@ player can send another player, and the sender picks one.
|
||||
|
||||
```jsonc
|
||||
{ "kind": "care", "ts": 1761500000000, "localDay": "2026-10-24",
|
||||
"from": "<pubkey>", "to": "<pubkey>", "act": "water" | "shade" | "wind" | "light",
|
||||
"from": "<pubkey>", "to": "<pubkey>", "act": "water" | "shade" | "weed" | "petals",
|
||||
"trace": "petal:<colour>", "messageId": "ps-23-4" | null, "clientVersion": "0.1.0" }
|
||||
// act: "water" | "shade" | "weed" | "petals" (own rose or another player's)
|
||||
// act applies to the player's own rose or another player's. (This example once
|
||||
// listed "wind" | "light"; §1's weeds and fallen petals won — phase0-workspace.md D5.)
|
||||
// Only "care" is in packages/schema so far; the other kinds wait for docs/GAMEPLAY.md.
|
||||
// other kinds: "sentence-opened", "sunset" (seen), "planet-step", "fox" (pet | brush | feed),
|
||||
// "harvest" (berry kind), "thanks", "lantern" (lit — never unlit)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user