mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5144] No runtime API to add World Maps locations — Experiences cannot register their generated places #2843
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2843
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?
Originally created by @kolacheee on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5144
Originally assigned to: @kolacheee on GitHub.
The problem
Pixelforge 0.4.0 generates a world — a settlement, interiors, wilds — from the player's preferences. None of those places can be registered with World Maps, because there is no runtime write API for locations. The only mid-play definition write today is the GM's
[spatial_discover:]directive (one place, GM-initiated); the editor PUT is a full-replace UI flow. Pixelforge's World Brief spec had to mark its World Maps export "deferred" for exactly this reason, and its map bindings work only because the package binds zones to whatever locations already exist.Try it yourself
Create a Pixelforge game with the sci-fi theme and let generation finish: the compiled world has four zones, but Map shows only whatever the create-time map generation produced — the generated places (the bar, operations, the flats) are not locations, so travel and GM spatial context cannot reference them.
The ask
An additive location-add/update route, e.g.
POST /api/chats/:chatId/spatial-context/locationswith{ expectedRevision, locations: [...] }. Research notes for whoever implements:getServiceto call each other — an HTTP route is the contract Experience authors code against).spatialLocationSchema), whole-definition invariants (validateSpatialContextDefinition— parent existence, cycles, ≤500 locations), revision CAS with 409 like the editor PUT, and thedefinition_repairsnapshot tail.loc_<nanoid>allocation as the default, likespatial_discover.needs_review— by design; an add route accepts that.spatial_definition_updatedcapability event so the World Maps bundle and Experience surfaces can invalidate immediately (no such event exists today because the editor is the only writer).@kolacheee commented on GitHub (Aug 16, 2026):
Ownership: @kolacheee (agent-assisted). Implementation is up as Marinara-Agents draft PR Pasta-Devs/Marinara-Agents#387 (World Maps 1.4.0) — the route lives in the hierarchical-maps package per this issue's research notes (the engine core has no definition parser and packages cannot call each other server-side). Live-verified against engine staging: batch adds with in-batch subtrees, revision CAS, duplicate-id and missing-parent contracts all behave as specced. The
spatial_definition_updatedclient event remains deferred as noted (no server→client push channel exists outside generation; the response returns the full refreshed context instead). Next consumer: Pixelforge 0.5.x un-defers its World Brief §8 export onto this route.