English
alta.universe/0.1: universe packs
Generated from docs/standards/alta-universe-0.1.md · npm run docs:gen
Code: core/universe/pack.ts (and core/universe/contract.ts for the Universe the game plays). Tests: tests/contracts.test.ts, tests/universes.test.ts, tests/purity.test.ts.
Status: alpha. This format can still change before its 1.0; a change follows the versioning rules of the project and is announced in the changelog.
A pack is data only: manifest (id, name, distinctive words, at least 4), copy (its texts), onboarding and cinematics (optional, same beats and quests as the neutral guide), and an art direction (alta.art/0.1: ground style and particles, a glyph per neutral entity kind and state from a closed list of shapes, link style, palette tokens, a font from FONTS: grotesk, serif, mono, rounded). No code, no URL, at most MAX_PACK_BYTES.
checkPack(p, { questUids, neutralTokens, otherNames, denylist }) refuses: a missing concept, an unknown shape or token, an URL anywhere, a name already taken or denied, a pack too big, and any distinctive word that is a neutral word (neutralTokens = every word of core/, content/, client/).
The neutral index is written at build: npm run build → dist/neutral-words.json ({ schema: "alta.neutral-words/0.1", layers, words[] }, by scripts/neutral-words.mjs, same tokenizer as words() in the pack module; tested equal).
universeFromPack(p, makeRenderer) makes a playable Universe from a valid pack (the parametric renderer is lot W).