Skip to content

The dungeon world file, v1: ten guarded floors down to a boss - #371

Open
calebl wants to merge 1 commit into
mainfrom
fm/ta-floors-s4-world
Open

calebl wants to merge 1 commit into
mainfrom
fm/ta-floors-s4-world

Conversation

@calebl

@calebl calebl commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Dungeon plan stage 4, the dungeon world file, v1: the smallest first playable slice, on top of stages 1–3 (limits, floor layout, guards and monster level), which are already on main.

Do not merge before the owner has read the words. Every prose field in the file is read by a model. All of them, word for word and grouped, are in the task's words.md for him to read first. Nothing has been seeded into any running database.

What the file is

db/seeds/worlds/the-dungeon.yml (C6 (a)):

  • The landing. A hand-written, realized opening room above floor 1. Old Hesk, the lamp-keeper, stands there, so turn one has somebody to talk to. The checked-in-world tests require that.

  • Ten floors, kind: warren, each a stub the engine lays out on first entry:

    Floor 1 2 3 4 5 6 7 8 9 10
    Rooms 160 80 40 20 10 6 4 3 2 1
    Monster level 1 1 1 2 2 2 3 3 3 4
    Danger uneasy uneasy dangerous dangerous dangerous dangerous dangerous dangerous dangerous dangerous
    • The room counts are the C1 schedule the C2 reports used (floors shrink; the last is one room with the boss and no way down).
    • Danger and monster level are from plan section 1.5. Hazard is none on every floor.
  • Nine stair guards, one per floor 1–9 (guards:).

    • Each is absent: true and hostile, with hand-set stats about two levels above that floor's monsters: L3, L3, L3, L4, L4, L4, L5, L5, L5, all d10.
    • Each carries the key its floor's stair down is locked with (barrier: keyed).
    • Brask uses plan section 4.2's draft word for word.
  • The boss, Gorrath the Undermost, L10 d10 (64 HP, plan section 1.5), posted to the one-room bottom floor. With no way down, the engine stands him in its only room.

  • Story limits people: 400, things: 2000 (C3).

  • The arc, required of every checked-in world: hold the first stair key, then the fifth, then Gorrath's iron crown. The second ending is slower_than three days.

  • Not in the file: the keys of later stages (countdown, levelling, healing, safe rooms, rest). The loader does not read them yet. C4 (b) is a room-writer prompt change for a later stage, and C5 (a) needs nothing here.

Tests

  • SeededWorldsTest: the dungeon seeds as ten guarded floors, each smaller, down to its boss. The file also passes every existing checked-in-world test: doctor clean, round-trips through the exporter, an arc that can be finished, somebody to talk to on turn one.

  • Sweep the-dungeon-down-to-the-first-stair:

    • from the landing onto floor 1, which is laid out on that turn to 160 rooms;
    • then 27 moves along the shortest way to the way-down room (room 136), each room written from a fixed reply;
    • there it finds Brask hostile and whole at 22 HP beside the stair to the second floor;
    • the stair is refused as locked.

    Its golden and checks are written from the pinned engine (engine:parity, engine:checks), and engine:rust_gates passes on it.

  • Two existing guards are narrowed, because each was written when every seeded world was flat and in the classifier corpus:

    • Eval::Classifier::PointerTest now checks the training vocabulary only against the seeded worlds the classifier corpus stands in. The dungeon is not one of them, and its names (Ida, stair, landing, key) would otherwise collide.
    • The layout-step test in RustEngineExtensionTest no longer asks a floor place for a room's box.

Known red: engine:vendored

The repo vendors every sweep script and golden from the engine's parity/, so CI's engine:vendored step fails until an engine PR adds three files and this PR pins it:

  • parity/scripts/the-dungeon-down-to-the-first-stair.yml (the stripped script);
  • parity/goldens/the-dungeon-down-to-the-first-stair.json;
  • parity/worlds/the-dungeon.sql, plus a PASSING line.

All four are staged in the task's engine-half/ directory. With them added to a copy of the pinned engine's parity/, parity --check agrees on this script step for step (105 of 109 scripts agree; the other 4 are the existing reseed: scripts the engine does not play on its own).

Checks run (both provider keys unset)

  • bin/rails test: 5448 runs, 0 failures, 0 errors.
  • bundle exec rubocop: no offenses.
  • bin/rails zeitwerk:check: all good.
  • bin/brakeman --no-pager: no warnings.
  • bin/rails engine:rust_gates on the new script: passed.
  • bin/rails engine:vendored: fails as described above.

Dungeon plan stage 4, the smallest first playable slice: a hand-written
landing above ten engine-drawn floors (160, 80, 40, 20, 10, 6, 4, 3, 2, 1
rooms; the owner's C1), each with a stair guard posted to its way down and
carrying the key that stair is locked with, and Gorrath posted to the
one-room bottom floor. The story's limits are 400 people and 2,000 things
(C3). It goes in db/seeds/worlds (C6). No key of a later stage (countdown,
levelling, healing, safe rooms, rest) is set: the loader does not read them.

A seeded-worlds test pins that it seeds as written, and a sweep script walks
the landing onto floor 1 and along the shortest way to its way-down room,
where Brask stands beside the locked stair. Its golden and checks are
written from the pinned engine; the engine's parity/ does not carry the
script yet, so engine:vendored fails until an engine PR adds it.

Two guards narrowed to what they guard: the pointer vocabulary check reads
only the seeded worlds the classifier corpus stands in, and the layout-step
test does not ask a floor place for a room's box.
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