[engine-b] v1.1 ruleset: DEFAULT_RULESET = RULESET_V1_1 + §12.1 golden test #36

Merged
claude merged 22 commits from night/engine/v1-1 into night/2026-11-16 2026-11-17 06:01:45 +00:00
22 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 fab4833105 game: DEFAULT_RULESET = RULESET_V1_1 (BALANCE.md v1.1 re-run: ship DESIGN #32 as is)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:45:35 -05:00
claude 6ae0dbc6ec Merge remote-tracking branch 'origin/night/2026-11-16' into night/engine/v1-1 2026-11-17 00:45:18 -05:00
claudeandClaude Opus 5.5 193b1b2af8 Merge night/2026-11-16 (#29 squash, #22 modes) into v1-1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:35:23 -05:00
claude 4a0dbd01d6 Merge branch 'night/engine/preview-pool' into night/engine/v1-1 2026-11-17 00:11:53 -05:00
claudeandClaude Opus 5.5 4e53a54264 ruleset: cultureKeyword defaults to 'faction' so stored pre-v1.1 rulesets still parse (night-review)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:11:50 -05:00
claudeandClaude Opus 5.5 9f5fca0049 game: RULESET_V1_1 (DESIGN #32) + §12.1 golden test; derivation defaults follow DEFAULT_RULESET; unit tests pinned to v1.0
DEFAULT_RULESET stays v1.0 until the balance report confirms v1.1.
The full game suite also passes with DEFAULT_RULESET = RULESET_V1_1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:00:19 -05:00
claudeandClaude Opus 5.5 e04ee31788 game: export RULESET_V1_0 (frozen) and pin the §12 golden test to it; DEFAULT_RULESET = current version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:57:24 -05:00
claudeandClaude Opus 5.5 fa662a8a0c Merge night/2026-11-16 (#33) into preview-pool
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:56:31 -05:00
claudeandClaude Opus 5.5 954bdfcdfc game: pin all 48 §2.1 starter pageIds from council-data (#28)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:56:12 -05:00
claudeandClaude Opus 5.5 691fc4a2a3 Merge night/2026-11-16 (#27, #28, #24); card-data from the final 236-card sample and council-data's published percentiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:48:42 -05:00
claudeandClaude Opus 5.5 407a56e2fa game: v1.1 config hooks (default = v1): viral.base, encyclopedic.sides, cultureKeyword
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:37:27 -05:00
claudeandClaude Opus 5.5 f8e13cec87 ENGINE_API.md: starter decks, previewPool, derivation; CardInput trust boundary; obscure not masked yet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:25:57 -05:00
claude 5ddc0f4e97 Merge branch 'night/engine/keywords-v1' into night/engine/preview-pool 2026-11-16 23:25:06 -05:00
claudeandClaude Opus 5.5 49f1bf22b2 Merge night/2026-11-16 (#25 squash) into keywords-v1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:25:03 -05:00
claudeandClaude Opus 5.5 b46049bc72 game: previewPool from frozen starter-cards.json, derived via §1 against the card-sample percentile table
scripts/game-card-data.mjs embeds docs/game/{card-sample,starter-cards}.json
as shared/game/card-data.ts (the engine does no I/O).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:20:55 -05:00
claudeandClaude Opus 5.5 ab561cf4a3 Merge night/engine/core e0ac157; port keywords/Portals to the final hook contract (atScoring, ctx.power, seq); golden §12 passes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:17:17 -05:00
claudeandClaude Opus 5.5 044424b630 game: §2.1 starter decks (pinned loaners), trendDown -200, derive pinned support
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:14:54 -05:00
claudeandClaude Opus 5.5 e0ac157ee1 Engine: trendDown -200 default; nullable loaner pageId counts copies per cardId (DESIGN #23/#24)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:14:51 -05:00
claudeandClaude Opus 5.5 ec24437838 Engine core: implement frozen DESIGN v1 (PR #17) and publish ENGINE_API.md
Interleaved reveal, alternating initiative, energy carry, onTopicBonus by cost,
consensus tie-break, hidden Portals with visible stats, laneCapacity 3, Portal
capacity/canPlay/atScoring/allOnTopic hooks, keywordsEnabled dispatch, §10.3
default Topic pool, global reveal seq. KEYWORDS/PORTALS left to engine-b.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:13:14 -05:00
claudeandClaude Opus 5.5 0f2363199b game: v1 keywords and Portals (DESIGN cf2fceb §10), card derivation (§1, §10.1), unit/property/golden tests
- keywords.ts: viral, rising, local, encyclopedic, nostalgic, translated (v1);
  edition, obscure, wildcard (off by default); §10.3 Portals with capacity,
  allOnTopic and topicBonus hooks; isOnTopic, keywordEnabled, hiddenFrom
- ruleset.ts: §10.3 default Topic pool, keyword/portal param defaults
- starter.ts: placeholder loaners carry their faction keyword (§10.1)
- derive.ts: percentile -> fame -> cost -> power, home, trend, keyword choice
- tests: game-keywords, game-derive, game-property, game-golden (§12, todo
  until core implements the frozen §3-§7 rules)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:12:38 -05:00
claudeandClaude Opus 5.5 f3b6097640 Engine core: align with DESIGN.md draft (Edit War)
mulberry32 uint32 seed with the §4 draw order, Topics with stats and Portals,
staggered reveal, initiative and underdog rules, queue/undo/commit/timeout
actions, §9 flat RulesConfig with zod bounds, viewFor hidden info, replay.
cards.ts left to engine-b; placeholder loaners in starter.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:55:51 -05:00
claudeandClaude Opus 5.5 7c86ed35f5 Game engine scaffold: seeded RNG, types, Ruleset schema, core loop
Pure deterministic off-chain engine in shared/game: createMatch, legalActions,
applyAction, isOver, result, viewFor, serialize/deserialize, replay. Placeholder
Snap-style lanes rules until DESIGN.md v1; keyword hook registry for engine-b.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:50:45 -05:00