# Fuji development Use English for code, identifiers, documentation, tests and source UI strings. - Node 24+, pnpm workspace, TypeScript strict, Svelte 5 runes. - Run `pnpm check` before commits; run simulation when changing state transitions. - Apply moves to a clone and validate before returning. Invalid actions must leave the input state and RNG counter unchanged. - All gameplay randomness uses the seed and counter in engine state. Never use `Math.random` in the engine. - Never expose seed, counter, deck order, private roll history or hidden dice through viewer state, logs or helpers. The local hot-seat harness is intentionally separate from the BGS bundle. - Rules data comes from the supplied production files. Record uncertain interpretations in `docs/rules-status.md`; do not silently invent rule data. - Keep source assets separate from the source-code license. Do not upload the original production PDFs to the repository. - Match BGS's emitter contract; do not implement a second postMessage bridge. Uplink payloads must be plain serializable values. - The beta is not ready for publication until the platform clock and cooperative result concerns in `docs/bgs-integration.md` are resolved or explicitly bounded for a private test. ## BGS publication and Git delivery Whenever changes are published to BGS, commit the corresponding source, tests, dependency/lockfile changes and version bumps, then push them to this repository's `main` or `master` release branch in the same task. A BGS upload or a push only to a feature branch does not complete delivery. This is standing authorization to commit and push published changes without asking for separate confirmation. Fetch and integrate the latest release-branch changes, run the relevant repository checks, and push without force. Update any public mirrors required by this repo's existing workflow too. Keep credentials, generated artifacts excluded by the repo, and unrelated unfinished work out of the commit. Verify the remote branch contains the delivered commit and report any blocker instead of claiming delivery.