mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
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#957
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/413
Author: @kolacheee
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @kolacheee
Base:
staging← Head:feat/pixelforge-npc-schedules📝 Commits (9)
ba6b1b0feat(pixelforge): 0.7.0 — NPC daypart schedules and a slower package clock6299de2fix(pixelforge): make NPCs actually walk, stop them stacking, drop door-less interiorsd7df41dfeat(pixelforge): playtest fixes and two QoL controls for 0.7.0f77ca75fix(pixelforge): stop scheduled NPCs stacking, and free the narration class on teardowna4f179dMerge remote-tracking branch 'origin/staging' into feat/pixelforge-npc-schedules6605d3bfix(pixelforge): search the zone when a schedule box overflows, instead of dumping on spawn607e6a7fix(pixelforge): take the collapsed narration panel out of the tab orderac7a407fix(pixelforge): validate the last-resort placement tile instead of assuming ita00e4bftest(pixelforge): enforce the floor invariant walkableIn's totality rests on📊 Changes
11 files changed (+1765 additions, -89 deletions)
View changed files
➕
artifacts/pixelforge-0.7.0.zip(+0 -0)📝
packages/pixelforge/client.js(+533 -43)📝
packages/pixelforge/manifest.json(+3 -3)📝
packages/pixelforge/src/00-prelude.js(+4 -1)📝
packages/pixelforge/src/20-world.js(+67 -20)➕
packages/pixelforge/src/25-schedule.js(+159 -0)📝
packages/pixelforge/src/30-sim.js(+147 -14)📝
packages/pixelforge/src/60-save.js(+21 -3)📝
packages/pixelforge/src/70-hud.js(+131 -3)📝
packages/pixelforge/test-brief.mjs(+699 -1)📝
scripts/build-pixelforge-package.mjs(+1 -1)📄 Description
Linked issue
Closes #412
Why this change
Pixelforge NPCs stood at one anchor forever: the smith was at the forge at midnight, the square was as busy at 3am as at noon, and the inn filled up with nobody. The
standingaxis shipped in 0.6.x gave every NPC a predictable rest spot; this makes them use it, so the settlement reads as a place with a daily rhythm rather than a diorama.Two of the fixes below are older bugs this work exposed rather than caused — most notably that NPCs have never actually moved, in any released version.
What changed
Schedules (
src/25-schedule.js, new). A sparsekind × standingtable maps each daypart to a location handle. The compiler bakes the handles onto each NPC as_schedduring the cast loop, where the buildings/stalls/zones are still in scope:postis the working anchor,homethe sleep node when it differs. A combo with nothing interesting to do names onlypostand behaves exactly as before, and any handle an NPC lacks falls back topost, so a template can never strand someone.Clock (
src/00-prelude.js,src/30-sim.js). 1.2 → 5 seconds per game minute, advancing only while walking. NPCs keep breathing during dialogue but time does not pass, which also prevents a daypart boundary from relocating the NPC mid-conversation. NewwaitUntil(daypart)jumps to the next boundary and re-places everyone.Relocation (
src/30-sim.js). Resolution fires on daypart boundaries (~4×/day): in-zone moves swap the wander box and snap only when the NPC is outside it; cross-zone moves splice between zone arrays. The movement timer is dropped on every move or its cached float position drags the token back to the old box.Zero new save fields.
_schedis runtime-only likefacing/stepPhase, and placement is a pure function of the already-saved clock.simFromSavedre-resolves afterclockMin/dayare restored — the world is built by the constructor against the default 08:00, so without that call a chat reopened at midnight showed a town going about its morning.Player controls (
src/70-hud.js). A Wait… menu (dawn/morning/dusk/night) and a Hide narration toggle. The latter collapses the host's narration panel through thesurfaceClassthe host provides for exactly this purpose, and force-expands in dialogue because the turn input lives inside that panel.Fixes
stepNpcssnapped when the token was "near any integer", but NPCs always start on an exact tile and the shipped fixed 1/60s step covers 0.027 tiles — inside the 0.05 band. Every move was cancelled on its first frame; three in-game days produced zero frames with a live direction. The snap now tests the remembered destination tile. Pre-existing since the prototype port.publichandle by day and a household shares onehome, and both placement helpers returned the box centre — so up to six NPCs landed on one plaza tile, and because talk-targeting picks the nearest with a strict<, everyone under the top sprite was unreachable. Placement now starts from a stable per-NPC hash inside the box; a private, meaningful placement opts out viaspread:falseso a stall merchant still stands at their counter.Package and security impact
pixelforgeonly.Validation
node scripts/validate-catalog.mjspasses locally —Catalog valid: 35 packages (24 agents, 11 features), lanesv2=35, v3=35git diff --checkpasses locallyclient.jssha256 verified against the manifest at each commitCONTRIBUTING.mdManual verification notes
Validated against the committed content in a clean
core.autocrlf=falseworktree (a Windows checkout inflates byte sizes and false-fails the catalog validator, unrelated to this PR): catalog valid,test-brief.mjsall cases pass, Prettier and ESLint clean on everypackages/pixelforge/src/*.jsand the build script.Both new regressions were verified to fail without their fix, not merely to pass with it:
Measured against the reviewers' own baselines: wander went from 0 frames with a live direction in three in-game days to 2,629, with every NPC reaching a new tile within two in-game hours; shared-box hiding went from 1089/1915 (56.9%) to 0/1600; stranded door-less zones from 515 instances across 3,000 worlds to 0 across 600.
A 16-agent adversarial review (correctness, regression, brute-force placement) raised 13 findings, of which 4 were confirmed and fixed and 9 were refuted on inspection. New harness cases 14–14h cover handle integrity, daypart thresholds, per-kind day/night behaviour, the cross-zone splice with a no-duplication check, no-solid-spawn and no-doorway occupancy at every daypart, idempotent resolution, the GM hold seam, portal-graph reachability for every compiled zone, wandering at the real fixed timestep, and a rebuild-at-the-same-clock equality that pins the zero-save-fields property.
Live-playtested in a running Engine across two generated worlds (a cozy village and a sci-fi colony); every fix above except the save-restore one came from that playtest.
Still owed by a human: an install/update pass through the Engine package browser and a modes/restart/uninstall sweep (boxes left unchecked above).
Documentation impact
docs/brief-schema.mddescribes the sealed brief contract, which is unchanged; schedules add no brief fields.UI evidence (if applicable)
The feature is world simulation rather than UI chrome. Screenshots of the seeded colony (stall by day, the same NPCs bedded down at the inn after dark) can be added after the human install pass if wanted.
Summary by CodeRabbit
New Features
Bug Fixes
Release
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.