mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #491] [MERGED] feat(pixelforge): settlements as populous as their rank #997
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#997
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/491
Author: @kolacheee
Created: 8/21/2026
Status: ✅ Merged
Merged: 8/22/2026
Merged by: @kolacheee
Base:
staging← Head:feat/pixelforge-room-zoning📝 Commits (10+)
24652edfix(pixelforge): a thriving city inn is an inn, not a bunkhousebdcd5cechore(pixelforge): open 0.10.0 and fold 0.9.1 into itbedb949test(pixelforge): instrument the harness before the partitioner moves15dd4c8feat(pixelforge): zones carry open spans, and a band returns its leftover96effd2feat(pixelforge): three guards that fire in a player's world, not just the harnessf673fd7style(pixelforge): wrap the overflow throw prettier wanted wrapped8dc6926feat(pixelforge): lay a street grid, and seal only what the ground can seata0ccfecfeat(pixelforge): a settlement is as populous as its rank, not as its cast4bb4e03feat(pixelforge): lay the grid straight, and give a settlement somewhere public88995f8feat(pixelforge): size follows program, so a town stops being one house repeated📊 Changes
12 files changed (+4352 additions, -391 deletions)
View changed files
➕
artifacts/pixelforge-0.10.0.zip(+0 -0)📝
packages/pixelforge/client.js(+1149 -78)📝
packages/pixelforge/docs/ROADMAP.md(+23 -13)📝
packages/pixelforge/docs/brief-schema.md(+54 -19)📝
packages/pixelforge/manifest.json(+3 -3)📝
packages/pixelforge/src/10-art.js(+41 -3)📝
packages/pixelforge/src/18-brief.js(+50 -13)📝
packages/pixelforge/src/20-world.js(+1031 -56)📝
packages/pixelforge/src/25-schedule.js(+14 -3)📝
packages/pixelforge/src/30-sim.js(+12 -2)📝
packages/pixelforge/test-brief.mjs(+1974 -200)📝
scripts/build-pixelforge-package.mjs(+1 -1)📄 Description
Linked issue
Closes #490
Pixelforge 0.10.0 — the density release.
Why this change
A Pixelforge city compiled to eighteen buildings and ten people on a 96x72 map,
whatever its brief said, and every rank looked like the same village at a
different zoom. Two causes: the sealed cast WAS the population (one house per
named household, then stop), and lots were laid on two hardcoded rows, so a
village offered six lots across 1320 tiles. Sparse maps were never a lot problem
— raising a cap would not have fixed them.
What changed
All inside
packages/pixelforge(packagepixelforge, 0.9.0 → 0.10.0;client.js,manifest.jsonand the 0.10.0 artifact are rebuilt outputs).The compiler grew a street-grid lot allocator, bigger maps, axis-derived
population with minted residents, and program-sized interiors with a hearth
in every dwelling; the paint contract now rides in
checkWorldso everyharness case enforces it. Detail by layer:
The world
Lots are a street grid, centred on their span rather than marching from one
end, so the remainder is split into a margin at both ends instead of banked
against the eastern trees. Claimed nearest-the-crossroad first, so a settlement
that cannot fill its grid grows outward from its centre.
Maps are sized so the grid has somewhere to put a street: 28x20 / 48x28 /
60x40 / 76x52 / 104x72, for 4 / 8 / 16 / 36 / 80 lots.
Population follows the axes. Households per rank (3 / 6 / 12 / 24 / 45)
leaned by prosperity, clamped to the lots left after places, trades and market.
backgroundPopulationmoves a settlement WITHIN its rank's band and can neverset the band — it is the brief's least constrained number, and the reservation
against letting it size geometry is honoured rather than deleted.
A rank seals only what it can seat, so an outpost stops promising four named
features it has no ground for and losing two in silence — and now says so in
repairswhen it truncates.Somewhere public. Lots nobody built on become kitchen gardens where a
settlement is loose and PARKS where it is dense, because a town does not have a
lawn around every door.
Size follows program. A house is sized by its household and a workplace by
its trade, so a town stops being one 6x4 box stamped out thirty times.
The interiors
A house is as big as its household.
INTERIOR_DIMSgave every dwellingfourteen columns, which fit two bedrooms, so a family of six fell past the
partitioner into the open plan — not because six people cannot have bedrooms but
because the shell they were handed had two. Capped at three bedrooms, so the ROOM
still absorbs the next body and the density rule stays live. A merged tenement
keeps the plain shell: a building holding five families IS a bunkhouse.
A hearth and a kitchen. The first two entries in the room vocabulary that are
neither a bed nor a surface. The kitchen is an open corner of the main room,
recorded as an area, because a cottage's kitchen is the main room.
A day has a shape. Dawn and dusk belong to the hearth. Measured on a thriving
village of 23: dawn 21 indoors, noon 22 out, dusk 20 indoors, night everyone in
bed. Before this, dawn and dusk were both
postand the only thing a whole daydid was empty the houses at noon.
Measured
Thriving, three named cast, seeds 7/8/9:
With the mint disabled the same ladder reads
4 4 4 4 4.Bugs fixed on the way
Compiler faults, all found and fixed inside this PR:
housed, so the town came out one house smaller per person who needed no house.
never reach.
sealPocketscloses them.h1also matchedh10— free atnine households, a false failure at forty.
hearth, the painterpatch missed its anchor, and the compiler placed an object no renderer could
draw while the entire harness passed. The art module now exports what it can
draw and the harness compares the two sets.
And five paint-contract faults, from an adversarial review of this branch
All five were live, and not one failed an assertion — invisible to geometry,
reachability and occupancy, and instantly visible to a player, because overhead
composites over actors. They share one shape:
put()overwrites without asking,and the newest painters are the first that cross ground another pass owns.
struggling, 10 atthrivingclearFootprintbefore the greens paintTwo were regressions of an earlier fix in this same PR: testing the GROUND for
pathis true only atmodestprosperity, andheadroom()never knew about thelot row eight tiles above it.
The contract now rides in
checkWorld, so all ~200 existing cases enforce itrather than one new case naming its own inputs — which is the kind of case that
missed these.
Test plan
node packages/pixelforge/test-brief.mjspassesnpx prettier --checkandnpx eslintclean on the touched sourcescityand confirm the streets read as inhabited and theplaza busy rather than mobbed
villageand confirm it no longer reads as grass betweensix houses
city(~120 NPCs), or sayso and the household table is one line to change
Not in this PR
City districts, per-trade workroom placement, and bath/water. Those continue on
this branch or follow it.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.