Skip to content

Pin renderedstep/engine#102's merge commit: a seeded building's own kind decides how its inside is laid out - #398

Merged
calebl merged 2 commits into
mainfrom
fm/ta-town-s1-kind-server
Dec 3, 2026
Merged

calebl merged 2 commits into
mainfrom
fm/ta-town-s1-kind-server

Conversation

@calebl

@calebl calebl commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

The server half of renderedstep/engine#102 (items 1 to 4 of its "What the game needs"). A place whose own kind is a building word (Location::Kind::BUILDINGS) is now laid out as that building, whatever building the place call's place_kind names. A world file's The Shrine, kind: temple gets a temple's rooms even when the call answers warehouse. A place with no own kind, or with a room's word, follows the call as before.

  1. Location::Generator#realize!: the same change for the Ruby loop the tests still play. The place's own building word wins over the call's place_kind.
  2. The loader admits a building word on a place stub. WorldSeed::Loader#validate_kinds! admits KINDS + BUILDINGS on a location that has width and depth and no parent. A floor: still takes BUILDINGS, and every other location takes KINDS only. Location#a_building_word_is_a_floors now returns early for a place? too. The comments above validates :kind and validate_kinds! said only a floor carries a building word; they are reworded.
  3. Sweep: new world lib/engine_sweep/worlds/the-shrine-on-the-square.yml and new script lib/engine_sweep/scripts/a-seeded-temple-keeps-its-rooms.yml, both exactly as given in the engine PR.
  4. Pin: ext/renderedstep/Cargo.toml (and Cargo.lock) point at the engine PR's merge commit 1041056. Between the PR head (4a27bc8) and that commit only the engine's CI workflow changed. The golden test/engine_parity/a-seeded-temple-keeps-its-rooms.json is copied from that commit. The checks file was written with SCRIPT=a-seeded-temple-keeps-its-rooms bin/rails engine:checks and is identical to the one in the engine PR. The records and the world SQL are read from the pinned engine source; nothing else is copied into this repository.

Nothing a model is sent changes

No prompt, schema, narrator sentence or word of the three checked-in worlds changes. The place call is asked the same question either way; only its answer is set aside.

Tests

  • test/lib/world_seed/loader_test.rb: a kind: temple stub with a footprint and no parent loads, and its row keeps temple. The same word is refused on a room placed in a parent, and on a stub with no footprint.
  • test/models/location/generator_test.rb: a place seeded temple is laid out as a temple when the call answers warehouse, and its entry room is shrine, not office. A place whose own kind is square follows the call.
  • test/models/floor_test.rb: the old test said a place may carry a building's word only when it is a floor. It now checks four cases: a place and a floor are valid with a building's word; a placed room and a stub with no footprint are not.

Checks (offline, OPENROUTER_API_KEY and TYPESAFE_API_KEY unset)

  • bin/rails test: 5507 runs, 0 failures, 0 errors, 0 skips.
  • bundle exec rubocop: no offenses. bin/rails zeitwerk:check: all is good. bin/brakeman --no-pager: no warnings.
  • bin/rails engine:rust_gates: all 115 scripts pass (goldens, invariants, doctor and audit).
  • bin/rails engine:vendored: the goldens, scripts and vector portions match 1041056 byte for byte.

No post-update step is needed.

… kind decides how its inside is laid out

A place whose own kind is a building word (Location::Kind::BUILDINGS) is laid
out as that building, whatever building the place call names; a place with
no own kind, or a room's word, follows the call as before. Nothing a model is
sent changes.

- Location::Generator#realize! mirrors the engine's lay_out for the Ruby loop:
  the place's own building word wins over the call's place_kind.
- WorldSeed::Loader#validate_kinds! admits a building word on a place stub
  (width and depth, no parent) as well as a room's word; a room with a parent
  or a stub with no footprint still carries a room's word only.
- Location#a_building_word_is_a_floors returns early for a place too, and the
  comments that said only a floor carries a building word are reworded.
- Sweep: world the-shrine-on-the-square and script
  a-seeded-temple-keeps-its-rooms, golden vendored from the pin and checks file
  written with engine:checks.
- Tests: the loader admits a temple on a place stub and refuses it on a placed
  room and on a footprintless stub; the generator lays a seeded temple out as
  a temple when the call answers warehouse, and a non-building own kind
  follows the call; the floor test now covers a place, a placed room and a
  footprintless stub.
The engine PR merged; between its head (4a27bc8) and the merge commit only
the engine's own CI workflow changed, so no golden, script or vector portion
moves.
@calebl calebl changed the title Pin renderedstep/engine#102's head: a seeded building's own kind decides how its inside is laid out Pin renderedstep/engine#102's merge commit: a seeded building's own kind decides how its inside is laid out Dec 3, 2026
@calebl
calebl merged commit cb9ba2a into main Dec 3, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant