Repository navigation
feat: add first visible LLM invasion - #9
Merged
Merged
Conversation
christopherjnelson
marked this pull request as ready for review
August 14, 2026 05:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Server-owned simulation
Visible World Lab
Real OpenRouter provider
google/gemini-3.7-flashwith no fallback modelmax_tokens: 1024, low reasoning effort, andexclude: trueprovider.require_parameters: trueandstream: falseanyOfaction union and single-value discriminator enumsEnvironment and deterministic seams
.envfor both normal Game API startup andpnpm smoke:openrouter.envprovider values authoritative over stale exported values while loading only the provider variables in the shared override helper.env.exampleas the committed template and never exposes the API key to browser codeWhy
This is Roadmap PR 2: the first browser-observable LLM invasion. It delivers a genuine model-backed vertical slice while keeping world authority deterministic and deferring persistence, autonomous scheduling, player systems, and later-roadmap social mechanics.
The correction passes also addressed retained-history turn-number reuse, non-atomic world mutation, unbounded world events, response-body timeout coverage, invisible H3 expressions, false overlay readiness, Next.js MapLibre worker loading, Gemini parameter/schema compatibility, safe provider diagnostics, and inconsistent root environment loading.
Validation
The repository owner reported the complete local validation sequence green, including formatting, lint, type checking, unit/integration tests, production build, and Playwright. The owner also ran the explicitly opted-in
pnpm smoke:openroutercall successfully againstgoogle/gemini-3.7-flashand confirmed normalpnpm devstartup with repository-root.envconfiguration.The real-provider smoke remains separate from default tests, Playwright, and CI because it incurs third-party cost.
Security and operating notes
OPENROUTER_API_KEYremains server-only.