[PR #712] [MERGED] feat(pixelforge): 0.15 — the town starts knowing you #1103

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

📋 Pull Request Information

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

Base: staging ← Head: feat/pixelforge-015-relationships


📝 Commits (10+)

  • 3883dc1 chore(pixelforge): open 0.15.0
  • 6273a9c feat(pixelforge): the ladder moves, and only upward, and only when earned
  • b771099 feat(pixelforge): the friend register serves, at the rung that earns it
  • 68b7516 feat(pixelforge): the standing shows everywhere the person does
  • 7df7771 docs(pixelforge): 0.15 says what it is, everywhere a release has to
  • b4f0a55 style(pixelforge): one newline at EOF, which is what the whitespace gate counts
  • 9833460 fix(pixelforge): small talk gets you to acquainted and no further
  • a28281f fix(pixelforge): one sentence per event, so a rise cannot eat the receipt
  • 848c7c8 docs(pixelforge): 0.15 says what it does, not what it nearly does
  • 624918e fix(pixelforge): a rung is written only to the world the turn was said in

📊 Changes

15 files changed (+1700 additions, -205 deletions)

View changed files

➕ artifacts/pixelforge-0.15.0.zip (+0 -0)
📝 packages/pixelforge/CHANGELOG.md (+8 -0)
📝 packages/pixelforge/client.js (+421 -85)
📝 packages/pixelforge/docs/ROADMAP.md (+28 -3)
📝 packages/pixelforge/docs/brief-schema.md (+2 -1)
📝 packages/pixelforge/docs/player-state.md (+120 -0)
📝 packages/pixelforge/manifest.json (+3 -3)
📝 packages/pixelforge/src/30-sim.js (+16 -1)
📝 packages/pixelforge/src/58-player.js (+127 -3)
📝 packages/pixelforge/src/59-economy.js (+39 -12)
📝 packages/pixelforge/src/61-pack.js (+111 -48)
📝 packages/pixelforge/src/70-hud.js (+85 -11)
📝 packages/pixelforge/src/90-element.js (+42 -9)
📝 packages/pixelforge/test-brief.mjs (+697 -28)
📝 scripts/build-pixelforge-package.mjs (+1 -1)

📄 Description

Linked issue

Closes #711

Why this change

The relationship ledger has been storage without a game since 0.11: a four-rung
disposition ladder on every NPC row that nothing in the package ever moved.
Three shipped releases built consumers of it anyway — 0.13's quest rewards were
ruled "money and the giver's rapport" and the rapport landed as a bare tally,
0.14's talk window ships "always stranger" with 7 of every 12 generated
dialogue lines sealed
behind a rung nobody could reach, and the journal's
Standing panel counts a town of permanent strangers. Ruling 4 sealed the friend
register on its own sunset clause — a stopgap that guessed at friendship
"would be a promotion the player never earned" — so what was missing was the
earning.

What changed

Pixelforge 0.15.0: the town starts knowing you. Zero new save fields — the
block has carried all of this since 0.11.

The ladder moves, and only upward, and only when earned

One table and two rules (docs/player-state.md §13): a rung is earned when the
encounter count crosses its line — acquainted at 3, friendly at 10, close at 25
— with the weights at the verb sites: a talk turn, a purchase and a berth count
one, exactly as they always did, and a finished job counts three, which is
the reward ruling's rapport finally cashing out as movement.

Each site also declares a verb class, which is the maintainer's ruling:
saying good morning and asking after the rumors should not, over enough
mornings, make you somebody's best friend. Casual presses (the talk turn)
build the count forever and can never leave a row above acquainted;
meaningful ones — a finished job, and the two counters, which is what being
somebody's business partner means in a package with two shops — may cross any
line. The padding consequence is stated rather than discovered: casual
encounters do count toward the higher thresholds, so a hundred greetings leave a
row that one job lifts straight to friendly; what small talk cannot be is the
press that crosses. One knock-on worth naming out loud: the friend register
below is not reachable by talking at all.

And a press moves a row at most one rung. The explicit-d arm stays the
setter (S1's precise lane, pinned), and what the heuristic promises a future
demotion verb is rate-limited re-promotion, not none: a row demoted past
every line is never re-fought, while a row demoted below a line it can still
cross is climbed back one rung at a time and no further than acquainted until
the player does something real. Hostility still has no writer.

The friend register serves, at the rung that earns it

A speaker the ladder has reached friendly with serves both registers,
friend-first at every relaxation of the ask ladder — per speaker, so the
same bench answers a friend and a stranger differently in the same hour.
Everyone short of friendly meets 0.14's stranger-only window byte for byte —
in a town with no friends in it
: the served set is per branch and shared
across speakers, so once somebody is a friend their presses spend from the
same day's pool. That scope is now written into the docs and carries a
limitations row of its own. The generation guidance stops promising "a later
release" and says who reads a friend line now.

The standing shows everywhere the person does

The turn header (near: Alder Vance (hedge-mayor, friendly)), the window title
(· friendly, hostile outranking the rung), and a one-time rise on 0.12's
level-toast precedent. The toast surface is one node and one timer, so two
toasts in a tick is exactly one toast — the rise is therefore composed into
the receipt of the press that earned it
rather than said beside it:

Handed in to Alder — 6 coins · they know you now.
Done for Bett Marsh — 5 coins · they count you a friend now.
A berth is yours — 12 coins the night. · Mira knows you now.

rentBerth() and buyRod() were discarding bump()'s return entirely, so a
keeper who became an acquaintance over the counter said nothing at all; both now
hand back rose and keeper on every branch. A stranger costs every surface
nothing — the word for "no standing" is no word.

Docs and release

Roadmap 0.15 pass (P2 as-built, Ruling 4 retired on its own terms, the release
row), brief-schema §7's header contract, player-state §13 with the verb-class
table and the deferred-playtest questions, a 0.15 limitations table beside
0.12-0.14's, and the package changelog in its player-facing voice. The 0.15.0
artifact is built beside 0.14.0, never over it.

The ruling names a fourth progression verb — "special talk trees", 0.14's
escalation funnel — and it is recorded on the roadmap, not built: when the
funnel gains a completion signal it becomes a meaningful bump site beside the
job.

Validation

  • node packages/pixelforge/test-brief.mjs green at every commit; npm run check
    exits 0; prettier and eslint clean on every touched file
  • Every behavioural change proven fail-first, with the red quoted in the
    commit that fixed it: the promotion crossing, both halves of the
    friend-register serve, the header word, the window title, the verb-class
    ceiling, the one-rung cap, the toast composition (pinned on the live node as
    well as on the calls), the counters' rose, and the templated s line
  • Nine mutations were run against the new pins and each goes red on its own: the
    casual ceiling, the one-rung cap, the settle's class, the explicit-d gate,
    the composed sentence, the 90-element composer hand-off, both counters'
    returns, and the s-line template
  • The s line the giver remembers now names the board row's title. The
    constant it replaced was a line-cap flood: s lines are capped at 30 across
    the whole block and evicted oldest-first, so thirty completions filled every
    slot with one sentence and pushed out the berth and purchase lines
  • Stranger-path preservation, re-run against origin/staging: 11,520
    ask-press records
    over 5 seeds × 2 themes × 6 days × 4 dayparts × 4
    branches × 6 speakers, 0 mismatches
  • Zero new save fields, proven on the row itself: meaningful is a field of
    the call, and the row a meaningful bump writes carries 0.11's keys and no
    others

What needs manual verification (playtest)

  • Do the thresholds feel earned — acquainted in one hand-in, friendly after
    a second? The table is three numbers and the ceiling is one.
  • Does the casual ceiling feel right, or does a player who only ever talks
    feel shut out of the friend register? That is the ruling's own trade, and
    the playtest is where it gets tested.
  • Does the friend voice read as a change of standing in a real generated
    world, or does a thin pack just serve the same lines warmer?
  • Manually verify in the browser that the composed sentences fit the toast
    strip without clipping — a hand-in receipt plus a rise clause is the
    longest line that surface has ever been asked to show
  • Manually verify the rise toast, the window title word, and the header word
    in the browser
  • Confirm the GM actually uses the standing word in narration

Summary by CodeRabbit

  • New Features

    • Added NPC relationship progression from stranger to acquaintance, friendly, and close friend.
    • Dialogue now reflects earned trust, with friend-specific lines and fallback dialogue.
    • Added relationship standing to conversation headers and promotion notifications.
    • Conversations, quest completion, purchases, and rentals can improve rapport.
    • Hostile standing is displayed where applicable.
  • Documentation

    • Updated player guidance and roadmap details for relationship progression and dialogue behavior.
  • Compatibility

    • Existing worlds and saved games remain compatible.

🔄 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/712 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 9/4/2026 **Status:** ✅ Merged **Merged:** 9/5/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/pixelforge-015-relationships` --- ### 📝 Commits (10+) - [`3883dc1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3883dc1ca92b858213e9ea7b3c1192d61b7147c0) chore(pixelforge): open 0.15.0 - [`6273a9c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6273a9cc9d035e60532ef164442074c39fb53b1a) feat(pixelforge): the ladder moves, and only upward, and only when earned - [`b771099`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b7710992f1118904e5efd279018f12a814983667) feat(pixelforge): the friend register serves, at the rung that earns it - [`68b7516`](https://github.com/Pasta-Devs/Marinara-Agents/commit/68b7516ad2b6fc44f45c0aa543e765b2cad1dc54) feat(pixelforge): the standing shows everywhere the person does - [`7df7771`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7df77718c292076f6c0b63161b2e16165d28916d) docs(pixelforge): 0.15 says what it is, everywhere a release has to - [`b4f0a55`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b4f0a55eacba5b6a51ef487227c6f456b349cfb6) style(pixelforge): one newline at EOF, which is what the whitespace gate counts - [`9833460`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9833460b5e8c5c62f8e9598bc634605ef6df75b5) fix(pixelforge): small talk gets you to acquainted and no further - [`a28281f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a28281f09050577d1af08350bbd04f5ac96380e8) fix(pixelforge): one sentence per event, so a rise cannot eat the receipt - [`848c7c8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/848c7c8673f4f49507720aba1008ac2f7b2efd96) docs(pixelforge): 0.15 says what it does, not what it nearly does - [`624918e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/624918e4765ee969ead10ae5fdd5888f1d0dd5c7) fix(pixelforge): a rung is written only to the world the turn was said in ### 📊 Changes **15 files changed** (+1700 additions, -205 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/pixelforge-0.15.0.zip` (+0 -0) 📝 `packages/pixelforge/CHANGELOG.md` (+8 -0) 📝 `packages/pixelforge/client.js` (+421 -85) 📝 `packages/pixelforge/docs/ROADMAP.md` (+28 -3) 📝 `packages/pixelforge/docs/brief-schema.md` (+2 -1) 📝 `packages/pixelforge/docs/player-state.md` (+120 -0) 📝 `packages/pixelforge/manifest.json` (+3 -3) 📝 `packages/pixelforge/src/30-sim.js` (+16 -1) 📝 `packages/pixelforge/src/58-player.js` (+127 -3) 📝 `packages/pixelforge/src/59-economy.js` (+39 -12) 📝 `packages/pixelforge/src/61-pack.js` (+111 -48) 📝 `packages/pixelforge/src/70-hud.js` (+85 -11) 📝 `packages/pixelforge/src/90-element.js` (+42 -9) 📝 `packages/pixelforge/test-brief.mjs` (+697 -28) 📝 `scripts/build-pixelforge-package.mjs` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #711 ## Why this change The relationship ledger has been storage without a game since 0.11: a four-rung disposition ladder on every NPC row that nothing in the package ever moved. Three shipped releases built consumers of it anyway — 0.13's quest rewards were ruled "money and the giver's rapport" and the rapport landed as a bare tally, 0.14's talk window ships "always stranger" with **7 of every 12 generated dialogue lines sealed** behind a rung nobody could reach, and the journal's Standing panel counts a town of permanent strangers. Ruling 4 sealed the friend register on its own sunset clause — a stopgap that *guessed* at friendship "would be a promotion the player never earned" — so what was missing was the earning. ## What changed Pixelforge 0.15.0: the town starts knowing you. **Zero new save fields** — the block has carried all of this since 0.11. ### The ladder moves, and only upward, and only when earned One table and two rules (`docs/player-state.md` §13): a rung is earned when the encounter count crosses its line — acquainted at 3, friendly at 10, close at 25 — with the weights at the verb sites: a talk turn, a purchase and a berth count one, exactly as they always did, and **a finished job counts three**, which is the reward ruling's rapport finally cashing out as movement. Each site also declares a **verb class**, which is the maintainer's ruling: saying good morning and asking after the rumors should not, over enough mornings, make you somebody's best friend. **Casual** presses (the talk turn) build the count forever and can never leave a row above **acquainted**; **meaningful** ones — a finished job, and the two counters, which is what being somebody's business partner means in a package with two shops — may cross any line. The padding consequence is stated rather than discovered: casual encounters do count toward the higher thresholds, so a hundred greetings leave a row that one job lifts straight to friendly; what small talk cannot be is the press that *crosses*. One knock-on worth naming out loud: the friend register below is **not reachable by talking at all**. And **a press moves a row at most one rung**. The explicit-`d` arm stays the setter (S1's precise lane, pinned), and what the heuristic promises a future demotion verb is **rate-limited re-promotion, not none**: a row demoted past every line is never re-fought, while a row demoted below a line it can still cross is climbed back one rung at a time and no further than acquainted until the player does something real. Hostility still has no writer. ### The friend register serves, at the rung that earns it A speaker the ladder has reached friendly with serves both registers, friend-first at every relaxation of the ask ladder — per **speaker**, so the same bench answers a friend and a stranger differently in the same hour. Everyone short of friendly meets 0.14's stranger-only window **byte for byte — in a town with no friends in it**: the served set is per branch and shared across speakers, so once somebody *is* a friend their presses spend from the same day's pool. That scope is now written into the docs and carries a limitations row of its own. The generation guidance stops promising "a later release" and says who reads a friend line now. ### The standing shows everywhere the person does The turn header (`near: Alder Vance (hedge-mayor, friendly)`), the window title (`· friendly`, hostile outranking the rung), and a one-time rise on 0.12's level-toast precedent. The toast surface is **one node and one timer**, so two toasts in a tick is exactly one toast — the rise is therefore **composed into the receipt of the press that earned it** rather than said beside it: ``` Handed in to Alder — 6 coins · they know you now. Done for Bett Marsh — 5 coins · they count you a friend now. A berth is yours — 12 coins the night. · Mira knows you now. ``` `rentBerth()` and `buyRod()` were discarding `bump()`'s return entirely, so a keeper who became an acquaintance over the counter said nothing at all; both now hand back `rose` and `keeper` on every branch. A stranger costs every surface nothing — the word for "no standing" is no word. ### Docs and release Roadmap 0.15 pass (P2 as-built, Ruling 4 retired on its own terms, the release row), brief-schema §7's header contract, player-state §13 with the verb-class table and the deferred-playtest questions, a **0.15 limitations table** beside 0.12-0.14's, and the package changelog in its player-facing voice. The 0.15.0 artifact is built beside 0.14.0, never over it. The ruling names a fourth progression verb — **"special talk trees"**, 0.14's escalation funnel — and it is **recorded on the roadmap, not built**: when the funnel gains a completion signal it becomes a meaningful bump site beside the job. ## Validation - `node packages/pixelforge/test-brief.mjs` green at every commit; `npm run check` exits 0; prettier and eslint clean on every touched file - Every behavioural change proven **fail-first**, with the red quoted in the commit that fixed it: the promotion crossing, both halves of the friend-register serve, the header word, the window title, the verb-class ceiling, the one-rung cap, the toast composition (pinned on the live node as well as on the calls), the counters' `rose`, and the templated `s` line - Nine mutations were run against the new pins and each goes red on its own: the casual ceiling, the one-rung cap, the settle's class, the explicit-`d` gate, the composed sentence, the 90-element composer hand-off, both counters' returns, and the `s`-line template - The `s` line the giver remembers now names the board row's **title**. The constant it replaced was a line-cap flood: `s` lines are capped at 30 across the whole block and evicted oldest-first, so thirty completions filled every slot with one sentence and pushed out the berth and purchase lines - Stranger-path preservation, re-run against `origin/staging`: **11,520 ask-press records** over 5 seeds × 2 themes × 6 days × 4 dayparts × 4 branches × 6 speakers, **0 mismatches** - **Zero new save fields**, proven on the row itself: `meaningful` is a field of the call, and the row a meaningful bump writes carries 0.11's keys and no others ## What needs manual verification (playtest) - [ ] Do the thresholds feel earned — acquainted in one hand-in, friendly after a second? The table is three numbers and the ceiling is one. - [ ] Does the casual ceiling feel right, or does a player who only ever talks feel shut out of the friend register? That is the ruling's own trade, and the playtest is where it gets tested. - [ ] Does the friend voice read as a change of standing in a real generated world, or does a thin pack just serve the same lines warmer? - [ ] Manually verify in the browser that the composed sentences fit the toast strip without clipping — a hand-in receipt plus a rise clause is the longest line that surface has ever been asked to show - [ ] Manually verify the rise toast, the window title word, and the header word in the browser - [ ] Confirm the GM actually uses the standing word in narration <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added NPC relationship progression from stranger to acquaintance, friendly, and close friend. - Dialogue now reflects earned trust, with friend-specific lines and fallback dialogue. - Added relationship standing to conversation headers and promotion notifications. - Conversations, quest completion, purchases, and rentals can improve rapport. - Hostile standing is displayed where applicable. - **Documentation** - Updated player guidance and roadmap details for relationship progression and dialogue behavior. - **Compatibility** - Existing worlds and saved games remain compatible. <!-- 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:47 +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#1103
No description provided.