Skip to content

Never leave a town street under its stand-in name; tell writers lots and unnamed streets by kind - #105

Merged
calebl merged 2 commits into
mainfrom
fm/ta-town-names-fix
Dec 4, 2026
Merged

calebl merged 2 commits into
mainfrom
fm/ta-town-names-fix

Conversation

@calebl

@calebl calebl commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The town walk's street-naming measurement found streets left under "Thornwick room 4" (which the player then read: "You arrive at Thornwick room 4."), the square copying "the well square", and a lot's stand-in name ("Thornwick workshop 1") in a street's prose. This takes the approved fix and its words, and nothing else.

What changes

G1: a town room is never left under its placeholder (turn/told/realize.rs, town.rs)

  • When a street's or square's answer has no name the engine keeps (left out, refused, or already taken), the same request is sent once more. No new words, one extra call.
  • If that answer fails too, or the call fails, the room takes the first free name from a closed list. The list depends on the room's direction, which is the larger offset of its centre from the town's centre (north/south wins a tie):
    • streets: the {dir} street, lane, row, way, alley, walk, then the second {dir} street to the twenty-fifth {dir} street
    • the square: the square, the town square, the open square
  • "Free" means the same test the engine already applies to a model's name. That test now lives in one place, realization::name_refused, which room_name also uses.

G2: unnamed neighbouring streets told by kind and direction

  • Street writer (plan.rs): a street to the east instead of to the east, Thornwick room 2. A named street keeps to the {wall}, {name}.
  • Arrival ways out: (arrival.rs) and narration Ways out of here: (moment.rs), through town::way_out_name: a street to the south for an unnamed street, and a workshop for a lot.

G3 (option ii): lots named from a closed table as they are dealt (turn/town.rs)

  • A kind dealt once is the {kind}. A kind dealt more than once runs the first {kind} to the twelfth {kind}.
  • A name the same test refuses moves to the next ordinal. For example, the only smithy-named lot beside The Smithy becomes the first smithy.
  • A kind dealt more than twelve times falls back to the old {town} {kind} {n}. The table runs out there, and no other words are approved.

Wording 1.1 + 2B (schemas.rs, realization.rs)

  • When NAME THIS is asked, name is required. Its description is 1.1's text with 2B's -- this shows the form only; never use it. added.
  • When NAME THIS is not asked (a street the world file named), the field and its description are unchanged.
  • The NAME THIS line keeps all three examples and adds -- these show the form only; never use one., with 2B's line breaks exactly.
  • The optional 1.2 line is not added.

Wording 3 (plan.rs)

  • Lots are introduced to the street writer as a shop, which fronts it on the … side.
  • A building is treated as a lot only if it is a town building of a lot kind, carries the engine's lot teaser, and still has a dealt name. A world-seeded building such as The Smithy keeps its name.

Every approved string is used byte for byte from the approved wording file.

Sweep files re-vendored (only the town walk moved)

a-town-laid-out-before-it-is-written:

  • parity/scripts/…yml: three prompt_includes follow G2 and wording 3:
    • the square's Its ways out: line now has a street to the east; a street to the south
    • Thornwick shop 1, which fronts it on the → a shop, which fronts it on the
    • Thornwick house 1 / Thornwick smithy 1, which fronts it on the → a house / a smithy, which fronts it on the
  • parity/goldens/…json: the lot names in exits move (G3): the shop, the house, the first smithy, the second smithy. Because of that, the house sorts later in one exits list.
  • parity/records/…json: the requests change for G2, wording 3, 1.1 (required gains name) and 2B; the lot rows are renamed (G3).

parity --write left the other 111 scripts byte-identical, and the kept-request vectors are unchanged. Every non-town request stays as it was.

Tests

tests/town.rs:

  • A walk where the square's first answer leaves the name out and its second answer is refused (contains "Thornwick"), one street repeats a taken name twice, one street leaves the name out and its retry call fails, and one street is named on the retry. The rooms end as the square, the east street, the south street and the inn street. Each step asks exactly twice with an identical request. Each facts paragraph says You arrive at {name}. with no placeholder, and no request carries another room's placeholder or a lot stand-in.
  • A taken name moves a lot to the next ordinal (the first house).
  • Narrators are told unnamed streets and lots by kind.
  • A street the world file named is not asked its name, and its schema is the old optional one.

town.rs unit tests cover the closed tables, the direction rule and legacy lot names.

Gate (offline, no paid call, provider keys unset): cargo fmt --check and cargo clippy -D warnings are clean; cargo test --workspace passes 554 tests with 0 failures; parity --check agrees on 112 of 116 (the other 4 are the runner-only scripts, as before); fight --check agrees on 10 of 10. The game's doctor and audit run in the runner job below.

Left as it is (needs its own words to change)

  • The street writer's own ## The Place block still says name: Thornwick room N: the name it is asked to replace, next to NAME THIS. Nothing approved replaces that line. The test leaves that one line out and checks everything else.
  • The player's exits panel still lists unwalked streets as Thornwick room N until they are walked. G3 covers lots only.
  • A building entered without walking its street first (for example, a story that starts inside an anchor) would still have the street's placeholder in its entry room's a way out to … clause. G2 approves no wording for that clause.

What the game (renderedstep/server) needs

  1. In lib/engine_sweep/scripts/a-town-laid-out-before-it-is-written.yml, make the same three prompt_includes changes as parity/scripts/ here, keeping its why: notes. Then copy this repository's golden, records and script for that walk, and move the engine pin.
  2. Re-check test/engine_parity/a-town-laid-out-before-it-is-written.checks.json, since the lot names moved, and the town street cases in eval:realization_digest and engine:kept_requests if either covers a town street. The NAME THIS line and the outdoor schema changed for town streets only.
  3. The runner job here plays the game's own copy of that script at SERVER_COMMIT, so it fails until SERVER_COMMIT points at a server branch carrying (1). SERVER_COMMIT is not moved here.

The re-measure on Mistral Medium 3.5 is not part of this change.

…rs lots and unnamed streets by kind

A street or square whose answer has no name the engine keeps (left out,
refused, or already taken) is asked the same request once more; failing
that it takes the first free name of a closed list by the side of the town
it lies on ("the east street", "the east lane", ... "the square").

The street writer's ways out, the arrival narrator's and the narrator's
tell a street nobody has named as "a street to the east" and a lot as
"a workshop". Lots are dealt names from a closed table ("the house",
"the first smithy") in place of "Thornwick house 1".

When the writer is asked to name a street or square, the schema's name is
required and says ", as the instructions above ask"; the naming examples
there and in NAME THIS say they show the form only.

The town walk's script, golden and records move with it; no other walk
or request changes.
@calebl
calebl force-pushed the fm/ta-town-names-fix branch from cd5b4c0 to 05fcf61 Compare December 4, 2026 17:12
calebl added a commit to renderedstep/server that referenced this pull request Dec 4, 2026
…left under its stand-in name, and lots and unnamed streets are told by kind

The town walk's three prompt_includes follow the engine's: the square's ways out
name its unnamed streets as 'a street to the east/south', and the street writer
meets lots as 'a shop', 'a house', 'a smithy'. The golden is the engine's copy,
and rake engine:parity reproduces it byte for byte. The checks file is unchanged,
kept_requests pass, and eval:realization_digest still matches: neither covers a
town street.
calebl added a commit to renderedstep/server that referenced this pull request Dec 4, 2026
@calebl
calebl merged commit 377b7ac into main Dec 4, 2026
4 checks passed
calebl added a commit to renderedstep/server that referenced this pull request Dec 4, 2026
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