[PR #739] [MERGED] feat(pixelforge): the GM verb table — weather and standing (Engine #5798) #1115

Closed
opened 2026-10-21 05:02:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/739
Author: @kolacheee
Created: 9/7/2026
Status: ✅ Merged
Merged: 9/7/2026
Merged by: @kolacheee

Base: staging ← Head: feat/pixelforge-gm-verbs


📝 Commits (7)

  • 23cc895 feat(pixelforge): the GM gets two verbs, and the manifest learns a second asset source
  • 47265e3 build(pixelforge): the fourth bake, and the art still has not moved
  • deb9295 fix(pixelforge): the two verbs name their words, and the gate finally gets run
  • 8c8294b feat(pixelforge): the GM can say where you stand, and the town hears it
  • b7aee14 build(pixelforge): the fifth bake, and the art still has not moved
  • f72b08f fix(pixelforge): the gate silences the refusal, and the ledger owns its sixth loss
  • 9f1e2ea Merge branch 'staging' into feat/pixelforge-gm-verbs

📊 Changes

10 files changed (+898 additions, -6 deletions)

View changed files

📝 artifacts/pixelforge-0.16.0.zip (+0 -0)
📝 packages/pixelforge/CHANGELOG.md (+2 -0)
📝 packages/pixelforge/client.js (+274 -1)
➕ packages/pixelforge/gm-verbs.json (+47 -0)
📝 packages/pixelforge/manifest.json (+9 -3)
➕ packages/pixelforge/src/62-gm.js (+224 -0)
📝 packages/pixelforge/src/70-hud.js (+38 -0)
📝 packages/pixelforge/src/90-element.js (+9 -0)
📝 packages/pixelforge/test-brief.mjs (+232 -0)
📝 scripts/build-pixelforge-package.mjs (+63 -2)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Base branch: this is stacked on feat/pixelforge-016-procedural-worlds because the version was already open at 0.16.0 when it was cut — baking off staging would have silently rewritten the released 0.15.0 artifact — and GitHub retargets it to staging automatically when the 0.16 pull request merges.

Linked issue

Closes #738

The work is the package half of Pasta-Devs/Marinara-Engine#5798 — the Engine feature request that gives a Game Master a short list of package-declared actions it can actually take. The Engine's two pull requests for that issue (the shared verb-table schema, then the runtime that renders, parses and executes the verbs) must merge before anything in this PR does anything at all; until then the table below is an inert JSON asset and the two verbs never reach a prompt.

Why this change

  • Pixelforge has two surfaces that are read-complete and have no writer, and this is what fills them. The weather override key has been read since 0.14 — the sky reconciler folds it, the town answers it, a reload restores it — and nothing in the game writes it; 0.14's own release notes said so and filed the Engine feature request alongside. The hostility flag on a standing row has had three readers and no writer since 0.15: the per-turn world header (whose own comment reads "Hostility, when something someday writes it, outranks the rung here"), the talk window's title, and the Standing sheet's separate hostile count. None of the four places the game bumps a standing passes it. The Engine's new channel is the writer both of them were waiting for.
  • What that buys a player, in one sentence each. The storyteller says the weather turned and the sky over the whole world turns with it, the town goes to its hearths, the fish bite. The storyteller says somebody has taken against you — or vouched for you — and that person's standing actually moves: the greeting changes, the window title changes, the world header the GM reads next turn says so.
  • Declaring the vocabulary is the package's half of the contract. The Engine may only act on verbs a package names, with the argument values a package enumerates, so the table is a closed list shipped and hash-pinned with the package rather than a convention the model is trusted to follow.

What changed

  • Affected package ID: pixelforge (catalog-excluded; the uncatalogued-manifest sweep validates it).
  • packages/pixelforge/gm-verbs.json (new, 1,338 bytes) — the closed verb table, two verbs, one of each shape the Engine executes:
    • weather is the state shape: its arguments are written wholesale into the existing pixelforgeWeather chat-metadata key, and the reconciler that already ships picks them up. The five sky words and the two intensities are read off the package's own shipped constants rather than invented, so the table cannot drift from what the fold accepts. Deliberately no day arguments: an absent "since" defaults to day one and would be retroactively true for the world's entire history, and the GM's only day anchor drifts stale across typed turns — that is a separate feature request, not a smaller version of one here.
    • standing is the event shape: no metadata key, no durable write, delivered live to the package. Its stance list is the package's shipped standing ladder verbatim plus hostile, which is the flag rather than a rung, so the mapping is an index lookup with no translation table free to drift.
  • scripts/build-pixelforge-package.mjs — the asset list stops being "whatever the art generator produced" and becomes two sources joined, because this is the first asset the package ships that nothing generates. Both flow through one payload loop, so the manifest, the zip and the lint below cannot learn about an asset one at a time. The table is JSON-parsed at build time (a table that is not JSON degrades at the Engine to a warning and an empty verb list — silent to the packager and the player both), and the rethrow keeps the original error as its cause, which is what tells a packager the difference between a malformed table and no table at all.
  • A pairing lint, in both directions, read off the generated manifest rather than off the lists that produced it. The Engine checks one direction: it refuses a declared asset that files[] does not hash-pin. The other direction is silent everywhere — a file hash-pinned but missing from contributions.assets.paths installs, verifies, sits on disk and resolves zero verbs forever with no diagnostic anywhere. That is exactly how a verb table ships dead, so the failure is loud here because it can be loud nowhere else. Entrypoints are subtracted by reading the manifest's own entrypoint map, so declaring a new one does not red the lint by surprise.
  • packages/pixelforge/src/62-gm.js (new) — the standing verb's consumption. src/90-element.js (+9 lines) routes the new event family off the front of the capability listener the package already binds, behind the same bind-once latch, package check and chat check. src/70-hud.js (+38) carries the one-sentence announcement through the shipped composer and adds the standing to the talk window's memo key, so an open window's title follows a verb that moves the row underneath it.
  • packages/pixelforge/test-brief.mjs (+232) — the lanes, driven at the window rather than at the applier: the block installs a shim that records listeners, re-arms the bind-once latch and dispatches envelopes shaped exactly as the Engine emits them, so the three checks in front of the applier are proved too.
  • packages/pixelforge/CHANGELOG.md: one sentence. 0.16.0's notes were already at 905 of the 1,000 characters the release-notes check enforces; the paragraph this wanted to be baked red at 1,320, and re-cutting somebody else's shipped release prose to make room was the wrong trade.
  • Generated outputs rebuilt and committed: client.js (1,407,424 bytes), manifest.json, and artifacts/pixelforge-0.16.0.zip (1,420,873 bytes).

And what the standing verb actually does in play, since a file list does not show it. The GM writes a tag in the narration naming a person and where the player now stands with them, optionally with the line that person remembers them by. The Engine strips the tag from the saved prose, validates the arguments against the table above, and delivers it live. Then, package-side:

  • The name is resolved against the live compiled world, and the world's spelling wins. People are moved between zones as their schedules run, so the resolver walks the whole world rather than one zone, and writes the row settlement-scoped exactly the way all four shipped writers key it — so "mira" from the GM and "Mira" from a face-to-face conversation are one row, not two.
  • An unknown name is refused outright, and that refusal is binding. Nothing is applied, the player is told in plain words, and the reason is logged. This is the one thing the event shape has that the state shape does not: nothing was committed on the Engine side, so a package's "no" is final. The weather verb's refusal could only ever be advisory, because its metadata row is already written by the time the package sees it.
  • All three refusals go silent while the loading gate holds. The write half already honoured the gate, but the unknown-name refusal fired before anything reached the writer — and under a hold the world standing behind the gate can be the placeholder rather than the one the narration was written against, so a name the GM took honestly from the story was being told this world does not have it.
  • The write is absolute in every field, which is the entire safety story and the reason standing is the first event verb rather than something that grants money. The rung is set, not added; the hostility flag is set or cleared; the remembered line is set, and a blank one is "the GM supplied none" rather than "erase it"; and nothing increments an encounter count. Regenerating the turn does not stack anything — the newest narration simply overwrites.
  • The sentence a player sees goes through the shipped composer, in the standing ladder's own words, so a GM-driven change reads exactly like one the player earned. The two words the composer had no case for are the two only a GM can reach: hostility, which nothing in the game writes, and a fall back to stranger, which no rise can be.

The dedupe set, honestly. A session-scoped set keyed on the Engine's own chat, message and swipe triple plus the verb name, capped at 64, oldest-first, never persisted. It is a belt, not the mechanism — the mechanism is that the write is absolute. It guards redelivery, which this channel structurally cannot do, and it does not guard regeneration, which does not need guarding. Including the edge that the plan, the design dossier and the first draft of this code all got wrong: deleting a swipe makes the Engine re-pack swipe indices, so delete a swipe, then regenerate re-mints an index the set already holds and that one delivery is dropped. It is a sixth way an effect is lost, it is caused by the package's own belt rather than by the channel, and it is now named as one in the module header instead of being contradicted there. The impact is a single dropped update: silent, absolute, no compounding, and self-healing on the very next verb.

Package and security impact

  • Affected package IDs: pixelforge only
  • Engine compatibility impact: capabilityApi deliberately stays at {1, 10}, and the supported engine range is unchanged. The verb table is an ordinary declared asset, so an engine without the new runtime sees a JSON file and ignores it — the package installs and plays on today's engine exactly as it does now, and gains the verbs when the Engine catches up. This is a soft seam by design; there is no manifest-key cliff and no install-range change.
  • New or changed permissions/entrypoints: none. The Engine's gate requires a package to declare chat-write, which this package already declares. No server entrypoint is added and no package server code runs.
  • Restart, storage, update, or uninstall impact: no new save fields and no new metadata keys of the package's own. The weather verb writes the pixelforgeWeather key 0.14 already reads. The standing verb writes nothing durable at all — it moves a row in the player block that the ordinary save flush already carries, which is also why a rewind past the narration undoes the standing change along with it. One security note worth stating rather than assuming: a declared asset is public over HTTP with no privileged guard, so a verb table must never hold anything sensitive; this one holds verb names, human-readable descriptions and enumerated argument values.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Boxes above are the human contributor's to-do list. What was agent-verified, exactly:

  • The verb-table half was reviewed and came back DO-NOT-SHIP on three blockers, all closed before this PR. Two were the repository's own gate: npm run check — the command CI runs on every pull request — was red twice over, and the branch had been reporting the catalog validator and the package harness as its evidence instead, neither of which is the gate. The third had teeth: both verb descriptions would have rendered to the GM without their closed vocabularies. A description is the only channel a table has for telling a model what words a value may take, and a wrong word is silent — the tag is stripped on a name match rather than on validation success, so the narration reads perfectly clean and the world simply never changed. Both descriptions now name their words in prose; headroom against the 200-character cap is 19 and 24 rather than 5 and 5.
  • Verified by running the Engine's own code, not by reading it. The table was parsed by the shared schema, by the package-scoped variant, and by the tolerant parser the Engine actually calls; both rendered prompt lines were printed and read; and all twelve enumerated values across the two verbs were round-tripped through the Engine's argument validator, the two-word stance included.
  • The consumption half was verified against the Engine envelope field-for-field on the Engine's committed runtime branch: every field the package reads is supplied, the verb name always arrives in the table's canonical spelling, and the one field that may legitimately be empty is handled by skipping the dedupe key rather than by colliding two deliveries onto one.
  • Mutation testing. Fifteen surgical mutations against the consumption, one at a time with the source reverted after each: thirteen went red on the assertion that names them, and the two that survived were the review's findings rather than a passing grade — one could not tell an absolute standing from a relative one, the other could not tell "the GM supplied no line" from "erase the line". Both now have a lane and both go red. The follow-up round re-ran three of the original reds unchanged.
  • The follow-up commit was itself reviewed and came back clean, and its scope is worth stating: five carried items, of which exactly one is an executable line of code — the gate check in front of the refusal. Everything else is comments, the two lanes, and the bake.
  • Build guards. Three rebuilds on this branch (the asset, the module, and the follow-up fix), each re-run to prove it lands on byte-identical output, with zero dirty files afterwards. The verb table's hash agrees in three places — the file on disk, the manifest row, and the copy inflated back out of the shipped zip — so the pin is on what actually ships rather than on what was read at build time. The deterministic art has not moved in any of them: both theme tile sheets, the atlas and all five sprite files carry the same hashes they carried before this branch was cut. The pairing lint was driven red in both directions and restored, and the artifact was rebuilt afterwards to prove the restore was exact rather than approximately exact. npm run check exits 0 with zero errors; the 69 remaining warnings are pre-existing and none of them is in this package or in scripts/.

Manually verify in the browser (nothing headless can prove these):

  • A GM turn that emits a standing tag on a Pixelforge chat: the sentence appears as a toast in the standing ladder's own words, the world-header standing and the talk-window title both change, and none of it needs a reload.
  • The hostility flag on all three surfaces it has been rendered on since 0.15 with nothing to write it — the per-turn world header, the talk window's title, and the Standing sheet's separate hostile count — now that something finally does.
  • An unknown name: no change, no toast beyond the plain refusal, and the tag still stripped from the prose so the narration reads clean.
  • Regenerating that turn: nothing stacks, and the newest narration's standing is the one that stands.
  • A weather tag: read the chat-metadata row directly before looking at the sky, then confirm the sky changes without a reload and a retried turn still updates it.
  • The toast's register beside a GM turn — it is the same one-sentence composer the game already uses, and whether a storyteller-driven change reads as narration or as a system message is a taste call.

Known limitations and shortcuts, named here rather than left for review to find:

  • The Engine already renders a competing stance verb one line away. The GM format reminder emits a [reputation: …] line on every Game Mode turn, consumed by the Engine's own relative reputation service against records Pixelforge never populates. A model handed two overlapping stance verbs in the same block will sometimes reach for the wrong one, and the reserved-name rules cannot fix that — only suppressing one of them can, which is not in this cut.
  • Six ways a standing effect is lost, all silent, none re-delivered: an aborted turn, a tab reloaded or closed mid-stream, a delivery that arrives before the package's first mount of the page's life, a chat the player has already switched away from, the loading gate, and the delete-a-swipe index reuse described above. They are listed in the module's own header rather than left to be discovered. The channel has no memory by design: one server frame, one synchronous dispatch, no queue, no replay, no acknowledgement.
  • The two halves genuinely differ on rewind, and that is not a bug in either. A standing change reverts with the story, because it lives in the player block a rewind replaces. A weather change does not, because a chat metadata row does not rewind — so a swiped-away turn's weather stays.
  • One instance of each verb per message, inherited from the Engine's command registry. Correct for both of these verbs; a real ceiling for any future verb where a repeat is meaningful prose.
  • A turn that is nothing but a verb tag is dropped entirely — no message, no write, no event — because the Engine's empty-response guard fires first.
  • Flat, single-line JSON payloads only.
  • The table is parsed but not schema-checked at build time. The shape is validated against the Engine's own schema, which lives in the Engine repository; a second copy of those rules maintained here would be a copy free to drift.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

(In-branch: packages/pixelforge/CHANGELOG.md gains its one sentence. The capability's own reference documentation — the state/event split, the delivery-and-durability contrast, the binding-versus-advisory refusal asymmetry, and the reserved filename — belongs to the Engine pull requests and ships there. If reviewers want the package README to describe the two verbs to players as well, say so and it lands in this PR rather than in a follow-up.)

UI evidence (if applicable)

  • The visible surfaces are the refusal toast, the standing announcement, the talk-window title and the Standing sheet's hostile count; screenshots need a real GM turn against a real connection, which is the browser list above. The harness drives all of it over its DOM shim through envelopes shaped exactly as the Engine emits them, but it cannot show what the sentence looks like beside the narration it came from.

Summary by CodeRabbit

  • New Features

    • The storyteller can now change your relationship with named characters, including making them friends or turning them hostile.
    • Relationship updates provide immediate on-screen feedback and refresh character conversation details without closing the conversation.
    • New weather and relationship actions are available for supported game events.
  • Bug Fixes

    • Repeated or invalid relationship updates are safely ignored, while valid updates correctly overwrite the latest relationship status.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/739 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 9/7/2026 **Status:** ✅ Merged **Merged:** 9/7/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/pixelforge-gm-verbs` --- ### 📝 Commits (7) - [`23cc895`](https://github.com/Pasta-Devs/Marinara-Agents/commit/23cc895b09cbd3c0a86681ba3189983670bdb3c5) feat(pixelforge): the GM gets two verbs, and the manifest learns a second asset source - [`47265e3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/47265e3ec0d411b8db0d189c36dd4b0f51737645) build(pixelforge): the fourth bake, and the art still has not moved - [`deb9295`](https://github.com/Pasta-Devs/Marinara-Agents/commit/deb929566a389ad651f2f065714565efea896021) fix(pixelforge): the two verbs name their words, and the gate finally gets run - [`8c8294b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8c8294bde6255c225d4e770d1eecd433c5c27e18) feat(pixelforge): the GM can say where you stand, and the town hears it - [`b7aee14`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b7aee14d4231640ccd0469789a188bca0e77e9cf) build(pixelforge): the fifth bake, and the art still has not moved - [`f72b08f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f72b08f8bf91dece31577cfc659e04efc3265a05) fix(pixelforge): the gate silences the refusal, and the ledger owns its sixth loss - [`9f1e2ea`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9f1e2eaee9dd9fca8eb6ca14a67911d517301aa9) Merge branch 'staging' into feat/pixelforge-gm-verbs ### 📊 Changes **10 files changed** (+898 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/pixelforge-0.16.0.zip` (+0 -0) 📝 `packages/pixelforge/CHANGELOG.md` (+2 -0) 📝 `packages/pixelforge/client.js` (+274 -1) ➕ `packages/pixelforge/gm-verbs.json` (+47 -0) 📝 `packages/pixelforge/manifest.json` (+9 -3) ➕ `packages/pixelforge/src/62-gm.js` (+224 -0) 📝 `packages/pixelforge/src/70-hud.js` (+38 -0) 📝 `packages/pixelforge/src/90-element.js` (+9 -0) 📝 `packages/pixelforge/test-brief.mjs` (+232 -0) 📝 `scripts/build-pixelforge-package.mjs` (+63 -2) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. > **Base branch:** this is stacked on `feat/pixelforge-016-procedural-worlds` because the version was already open at 0.16.0 when it was cut — baking off `staging` would have silently rewritten the released 0.15.0 artifact — and GitHub retargets it to `staging` automatically when the 0.16 pull request merges. ## Linked issue Closes #738 The work is the package half of **Pasta-Devs/Marinara-Engine#5798** — the Engine feature request that gives a Game Master a short list of package-declared actions it can actually take. The Engine's two pull requests for that issue (the shared verb-table schema, then the runtime that renders, parses and executes the verbs) **must merge before anything in this PR does anything at all**; until then the table below is an inert JSON asset and the two verbs never reach a prompt. ## Why this change - **Pixelforge has two surfaces that are read-complete and have no writer, and this is what fills them.** The weather override key has been read since 0.14 — the sky reconciler folds it, the town answers it, a reload restores it — and *nothing in the game writes it*; 0.14's own release notes said so and filed the Engine feature request alongside. The hostility flag on a standing row has had **three readers and no writer** since 0.15: the per-turn world header (whose own comment reads *"Hostility, when something someday writes it, outranks the rung here"*), the talk window's title, and the Standing sheet's separate hostile count. None of the four places the game bumps a standing passes it. The Engine's new channel is the writer both of them were waiting for. - **What that buys a player, in one sentence each.** The storyteller says the weather turned and the sky over the whole world turns with it, the town goes to its hearths, the fish bite. The storyteller says somebody has taken against you — or vouched for you — and that person's standing actually moves: the greeting changes, the window title changes, the world header the GM reads next turn says so. - **Declaring the vocabulary is the package's half of the contract.** The Engine may only act on verbs a package names, with the argument values a package enumerates, so the table is a closed list shipped and hash-pinned with the package rather than a convention the model is trusted to follow. ## What changed - **Affected package ID: `pixelforge`** (catalog-excluded; the uncatalogued-manifest sweep validates it). - **`packages/pixelforge/gm-verbs.json` (new, 1,338 bytes)** — the closed verb table, two verbs, one of each shape the Engine executes: - **`weather`** is the *state* shape: its arguments are written wholesale into the existing `pixelforgeWeather` chat-metadata key, and the reconciler that already ships picks them up. The five sky words and the two intensities are read off the package's own shipped constants rather than invented, so the table cannot drift from what the fold accepts. Deliberately **no day arguments**: an absent "since" defaults to day one and would be retroactively true for the world's entire history, and the GM's only day anchor drifts stale across typed turns — that is a separate feature request, not a smaller version of one here. - **`standing`** is the *event* shape: no metadata key, no durable write, delivered live to the package. Its stance list is the package's shipped standing ladder verbatim plus `hostile`, which is the flag rather than a rung, so the mapping is an index lookup with no translation table free to drift. - **`scripts/build-pixelforge-package.mjs`** — the asset list stops being "whatever the art generator produced" and becomes two sources joined, because this is the first asset the package ships that nothing generates. Both flow through one payload loop, so the manifest, the zip and the lint below cannot learn about an asset one at a time. The table is JSON-parsed at build time (a table that is not JSON degrades at the Engine to a warning and an empty verb list — silent to the packager and the player both), and the rethrow keeps the original error as its cause, which is what tells a packager the difference between a malformed table and no table at all. - **A pairing lint, in both directions, read off the generated manifest rather than off the lists that produced it.** The Engine checks one direction: it refuses a declared asset that `files[]` does not hash-pin. The other direction is silent everywhere — a file hash-pinned but missing from `contributions.assets.paths` installs, verifies, sits on disk and resolves zero verbs forever with no diagnostic anywhere. That is exactly how a verb table ships dead, so the failure is loud here because it can be loud nowhere else. Entrypoints are subtracted by reading the manifest's own entrypoint map, so declaring a new one does not red the lint by surprise. - **`packages/pixelforge/src/62-gm.js` (new)** — the standing verb's consumption. **`src/90-element.js` (+9 lines)** routes the new event family off the front of the capability listener the package already binds, behind the same bind-once latch, package check and chat check. **`src/70-hud.js` (+38)** carries the one-sentence announcement through the shipped composer and adds the standing to the talk window's memo key, so an open window's title follows a verb that moves the row underneath it. - **`packages/pixelforge/test-brief.mjs` (+232)** — the lanes, driven at the window rather than at the applier: the block installs a shim that records listeners, re-arms the bind-once latch and dispatches envelopes shaped exactly as the Engine emits them, so the three checks in front of the applier are proved too. - `packages/pixelforge/CHANGELOG.md`: one sentence. 0.16.0's notes were already at 905 of the 1,000 characters the release-notes check enforces; the paragraph this wanted to be baked red at 1,320, and re-cutting somebody else's shipped release prose to make room was the wrong trade. - Generated outputs rebuilt and committed: `client.js` (1,407,424 bytes), `manifest.json`, and `artifacts/pixelforge-0.16.0.zip` (1,420,873 bytes). **And what the standing verb actually does in play, since a file list does not show it.** The GM writes a tag in the narration naming a person and where the player now stands with them, optionally with the line that person remembers them by. The Engine strips the tag from the saved prose, validates the arguments against the table above, and delivers it live. Then, package-side: - **The name is resolved against the live compiled world, and the world's spelling wins.** People are moved between zones as their schedules run, so the resolver walks the whole world rather than one zone, and writes the row settlement-scoped exactly the way all four shipped writers key it — so "mira" from the GM and "Mira" from a face-to-face conversation are one row, not two. - **An unknown name is refused outright, and that refusal is binding.** Nothing is applied, the player is told in plain words, and the reason is logged. This is the one thing the event shape has that the state shape does not: nothing was committed on the Engine side, so a package's "no" is final. The weather verb's refusal could only ever be advisory, because its metadata row is already written by the time the package sees it. - **All three refusals go silent while the loading gate holds.** The write half already honoured the gate, but the unknown-name refusal fired *before* anything reached the writer — and under a hold the world standing behind the gate can be the placeholder rather than the one the narration was written against, so a name the GM took honestly from the story was being told this world does not have it. - **The write is absolute in every field**, which is the entire safety story and the reason `standing` is the first event verb rather than something that grants money. The rung is set, not added; the hostility flag is set or cleared; the remembered line is set, and a blank one is "the GM supplied none" rather than "erase it"; and nothing increments an encounter count. Regenerating the turn does not stack anything — the newest narration simply overwrites. - **The sentence a player sees goes through the shipped composer**, in the standing ladder's own words, so a GM-driven change reads exactly like one the player earned. The two words the composer had no case for are the two only a GM can reach: hostility, which nothing in the game writes, and a fall back to stranger, which no rise can be. **The dedupe set, honestly.** A session-scoped set keyed on the Engine's own chat, message and swipe triple plus the verb name, capped at 64, oldest-first, never persisted. It is a belt, not the mechanism — the mechanism is that the write is absolute. It guards redelivery, which this channel structurally cannot do, and it does not guard regeneration, which does not need guarding. **Including the edge that the plan, the design dossier and the first draft of this code all got wrong:** deleting a swipe makes the Engine re-pack swipe indices, so *delete a swipe, then regenerate* re-mints an index the set already holds and that one delivery is dropped. It is a sixth way an effect is lost, it is caused by the package's own belt rather than by the channel, and it is now named as one in the module header instead of being contradicted there. The impact is a single dropped update: silent, absolute, no compounding, and self-healing on the very next verb. ## Package and security impact - Affected package IDs: `pixelforge` only - Engine compatibility impact: **`capabilityApi` deliberately stays at `{1, 10}`, and the supported engine range is unchanged.** The verb table is an ordinary declared asset, so an engine without the new runtime sees a JSON file and ignores it — the package installs and plays on today's engine exactly as it does now, and gains the verbs when the Engine catches up. This is a soft seam by design; there is no manifest-key cliff and no install-range change. - New or changed permissions/entrypoints: **none.** The Engine's gate requires a package to declare `chat-write`, which this package already declares. No server entrypoint is added and no package server code runs. - Restart, storage, update, or uninstall impact: **no new save fields and no new metadata keys of the package's own.** The weather verb writes the `pixelforgeWeather` key 0.14 already reads. The standing verb writes nothing durable at all — it moves a row in the player block that the ordinary save flush already carries, which is also why a rewind past the narration undoes the standing change along with it. One security note worth stating rather than assuming: **a declared asset is public over HTTP with no privileged guard**, so a verb table must never hold anything sensitive; this one holds verb names, human-readable descriptions and enumerated argument values. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Boxes above are the human contributor's to-do list. What was agent-verified, exactly: - **The verb-table half was reviewed and came back DO-NOT-SHIP on three blockers, all closed before this PR.** Two were the repository's own gate: `npm run check` — the command CI runs on every pull request — was red twice over, and the branch had been reporting the catalog validator and the package harness as its evidence instead, neither of which is the gate. The third had teeth: **both verb descriptions would have rendered to the GM without their closed vocabularies.** A description is the only channel a table has for telling a model what words a value may take, and a wrong word is *silent* — the tag is stripped on a name match rather than on validation success, so the narration reads perfectly clean and the world simply never changed. Both descriptions now name their words in prose; headroom against the 200-character cap is 19 and 24 rather than 5 and 5. - **Verified by running the Engine's own code, not by reading it.** The table was parsed by the shared schema, by the package-scoped variant, and by the tolerant parser the Engine actually calls; both rendered prompt lines were printed and read; and all twelve enumerated values across the two verbs were round-tripped through the Engine's argument validator, the two-word stance included. - **The consumption half was verified against the Engine envelope field-for-field** on the Engine's committed runtime branch: every field the package reads is supplied, the verb name always arrives in the table's canonical spelling, and the one field that may legitimately be empty is handled by skipping the dedupe key rather than by colliding two deliveries onto one. - **Mutation testing.** Fifteen surgical mutations against the consumption, one at a time with the source reverted after each: thirteen went red on the assertion that names them, and the two that survived were the review's findings rather than a passing grade — one could not tell an absolute standing from a relative one, the other could not tell "the GM supplied no line" from "erase the line". Both now have a lane and both go red. The follow-up round re-ran three of the original reds unchanged. - **The follow-up commit was itself reviewed and came back clean**, and its scope is worth stating: five carried items, of which exactly **one** is an executable line of code — the gate check in front of the refusal. Everything else is comments, the two lanes, and the bake. - **Build guards.** Three rebuilds on this branch (the asset, the module, and the follow-up fix), each re-run to prove it lands on byte-identical output, with zero dirty files afterwards. The verb table's hash agrees in three places — the file on disk, the manifest row, and the copy inflated back out of the shipped zip — so the pin is on what actually ships rather than on what was read at build time. **The deterministic art has not moved in any of them**: both theme tile sheets, the atlas and all five sprite files carry the same hashes they carried before this branch was cut. The pairing lint was driven red in **both** directions and restored, and the artifact was rebuilt afterwards to prove the restore was exact rather than approximately exact. `npm run check` exits 0 with zero errors; the 69 remaining warnings are pre-existing and none of them is in this package or in `scripts/`. **Manually verify in the browser (nothing headless can prove these):** - **A GM turn that emits a standing tag on a Pixelforge chat**: the sentence appears as a toast in the standing ladder's own words, the world-header standing and the talk-window title both change, and none of it needs a reload. - **The hostility flag on all three surfaces it has been rendered on since 0.15 with nothing to write it** — the per-turn world header, the talk window's title, and the Standing sheet's separate hostile count — now that something finally does. - **An unknown name**: no change, no toast beyond the plain refusal, and the tag still stripped from the prose so the narration reads clean. - **Regenerating that turn**: nothing stacks, and the newest narration's standing is the one that stands. - **A weather tag**: read the chat-metadata row directly before looking at the sky, then confirm the sky changes without a reload and a retried turn still updates it. - **The toast's register beside a GM turn** — it is the same one-sentence composer the game already uses, and whether a storyteller-driven change reads as narration or as a system message is a taste call. **Known limitations and shortcuts, named here rather than left for review to find:** - **The Engine already renders a competing stance verb one line away.** The GM format reminder emits a `[reputation: …]` line on every Game Mode turn, consumed by the Engine's own relative reputation service against records Pixelforge never populates. A model handed two overlapping stance verbs in the same block will sometimes reach for the wrong one, and the reserved-name rules cannot fix that — only suppressing one of them can, which is not in this cut. - **Six ways a standing effect is lost, all silent, none re-delivered:** an aborted turn, a tab reloaded or closed mid-stream, a delivery that arrives before the package's first mount of the page's life, a chat the player has already switched away from, the loading gate, and the delete-a-swipe index reuse described above. They are listed in the module's own header rather than left to be discovered. The channel has no memory by design: one server frame, one synchronous dispatch, no queue, no replay, no acknowledgement. - **The two halves genuinely differ on rewind, and that is not a bug in either.** A standing change reverts with the story, because it lives in the player block a rewind replaces. A weather change does not, because a chat metadata row does not rewind — so a swiped-away turn's weather stays. - **One instance of each verb per message**, inherited from the Engine's command registry. Correct for both of these verbs; a real ceiling for any future verb where a repeat is meaningful prose. - **A turn that is nothing but a verb tag is dropped entirely** — no message, no write, no event — because the Engine's empty-response guard fires first. - **Flat, single-line JSON payloads only.** - **The table is parsed but not schema-checked at build time.** The shape is validated against the Engine's own schema, which lives in the Engine repository; a second copy of those rules maintained here would be a copy free to drift. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation (In-branch: `packages/pixelforge/CHANGELOG.md` gains its one sentence. The capability's own reference documentation — the state/event split, the delivery-and-durability contrast, the binding-versus-advisory refusal asymmetry, and the reserved filename — belongs to the Engine pull requests and ships there. If reviewers want the package README to describe the two verbs to players as well, say so and it lands in this PR rather than in a follow-up.) ## UI evidence (if applicable) - The visible surfaces are the refusal toast, the standing announcement, the talk-window title and the Standing sheet's hostile count; screenshots need a real GM turn against a real connection, which is the browser list above. The harness drives all of it over its DOM shim through envelopes shaped exactly as the Engine emits them, but it cannot show what the sentence looks like beside the narration it came from. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * The storyteller can now change your relationship with named characters, including making them friends or turning them hostile. * Relationship updates provide immediate on-screen feedback and refresh character conversation details without closing the conversation. * New weather and relationship actions are available for supported game events. * **Bug Fixes** * Repeated or invalid relationship updates are safely ignored, while valid updates correctly overwrite the latest relationship status. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:02:58 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1115
No description provided.