mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1902] [MERGED] Prepare scene backgrounds, reuse saved locations, and ground protagonist voice #2020
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#2020
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/1902
Author: @SpicyMarinara
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/otome-background-preparation📝 Commits (10+)
c75928fReserve Otome background preparation and persona voice lanea07223cIntegrate the validated Otome 0.1.15 candidate before background preparation work8ac2708Prepare current scene backgrounds reuse saved places and ground protagonist voice82b7cb0Merge remote-tracking branch 'origin/staging' into fix/otome-background-preparationd05929bPreserve recovery fallback and seen-line progress across background preparationecdefe8Build Otome Hearth 0.1.16 background readiness and persona voice improvements82268bcAccept omitted place references and align background browser fixtures with Engine UIeba5393Rebuild Otome Hearth with optional saved-background reference normalizationf314c99Keep registered scene reads off the generation queue and preserve place repair reasons6674dfcRebuild Otome Hearth with reviewed scene queue and repair fixes📊 Changes
29 files changed (+1557 additions, -438 deletions)
View changed files
➕
artifacts/otome-forge-0.1.16.zip(+0 -0)📝
catalog/preview/catalog.json(+8 -8)📝
catalog/preview/notes.json(+6 -6)📝
catalog/preview/v2/catalog.json(+8 -8)📝
catalog/preview/v2/notes.json(+6 -6)📝
catalog/preview/v3/catalog.json(+8 -8)📝
catalog/preview/v3/notes.json(+6 -6)📝
packages/otome-forge/CHANGELOG.md(+6 -0)📝
packages/otome-forge/README.md(+5 -3)📝
packages/otome-forge/client.js(+192 -192)📝
packages/otome-forge/manifest.json(+5 -5)📝
packages/otome-forge/server.mjs(+108 -107)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts(+86 -20)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/reader-state.ts(+1 -2)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json(+2 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx(+41 -22)➕
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/places.ts(+12 -0)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/expressions.ts(+7 -1)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/art/places.ts(+37 -29)📝
packages/otome-forge/src/engine/packages/server/src/services/otome-forge/schemas/player.ts(+1 -1)...and 9 more files
📄 Description
Linked issue
Closes #1900. Closes #1901. Owner: @SpicyMarinara (Codex).
Why this change
Scene backgrounds can appear after their lines have already started, and repeated visits with different scene labels can repaint the same location. The protagonist's dialogue and choices also need explicit grounding in the selected persona, alongside the existing complete writing instructions.
What changed
Otome Hearth 0.1.16 prepares the automatically painted current-location background before reading starts. Scene-art registration finishes before the first scene response; paid painting still runs outside the foreground lock. The reader waits for the current image to decode, with a quiet Continue without background action. Future locations, CGs and expressions do not delay reading. Ask/review, missing connections, failed/stopped painting and unavailable images leave reading available. Once a place has opened, a manual repaint does not interrupt it. Leaving during preparation preserves only lines actually seen. Reopening a stored scene whose places already need no registration returns without waiting behind lookahead generation; places needing a write still use the foreground queue and are saved before the scene response.
The existing scene writer receives the saved-location catalog and can reuse a validated saved place key. Mainline and choice-branch labels become consistent before storage/painting; existing artwork is retained. Blank optional references are omitted, valid keys are trimmed, and invalid types or unknown keys are rejected. Distinct numbered rooms/floors remain distinct. There is no extra lookup generation, persisted alias field or automatic paid retry.
Existing whole, refreshed persona Description, Personality, Backstory and Appearance now explicitly guide protagonist dialogue, thoughts, reactions, choice intents/labels and performed selections. Options remain distinct and accepted choices remain authoritative. Scenario, greetings and example dialogue stay excluded. The full How it's written setting already reaches the planners, scene writer and choice writer; it remains intact. Guidance applies to new writing, without rewriting saved scenes.
Package and security impact
otome-forgeonly. Rebuilt client/server payloads, manifest, ZIP, preview catalogs and release notes.Validation
Machine results for head
6674dfc190da2f1ebafe595549d8b8679d394dd6:npm run check, strict package types (78 server/shared and 131 client files), all catalog/localization/release-note checks andgit diff --checkpassed. ESLint reports zero errors and 815 existing warnings.eba5393e, plus two separate inspected settled screenshots. Coverage includes automatic paint/decode, guarded progress/audio, manual settings, explicit bypass, failure recovery, stale callbacks and seen-line resume. All four positive paint/decode cases were rerun successfully across the four profiles with the final installed server at6674dfc1; both runtime snapshots and all six payloads match the final artifact. Server queue and error propagation changes additionally have direct route/normalizer regressions.Review repairs and control evidence
Dottore's initial review found two valid LOW defects. Both were reproduced before repair: a held-foreground route test proved stored registered scenes waited unnecessarily, and a confrontation test proved invalid reuse reported an unrelated opening-segment error. The repairs add a read-only fast path for existing, unretagged, automatic-keep records, and preserve the specific place-validation reason through the existing segment-list interface. Negative cases retain queued registration for missing, waiting-consent-with-Ask-off and retagged places; ready/live-pending cases return while the foreground task stays held. Unknown keys, missing names and conflicting aliases retain their exact errors; valid reuse and the null list contract remain intact.
Both reply schemas retain nested
reusethroughplaces: z.unknown().optional(); JSON parsing and schema validation precede normalization. The catalog uses the existing 400-place limit and serializes only saved key/name/tags. Writer prompts retain the visual-only rule and existing knowledge boundary; event/choice/ledger filtering stays separate. All saved place descriptions are model-visible, so this is a prompt-enforced knowledge boundary, not technical audience isolation of location descriptions. The persona regression captures real chapter/beat route messages and checks all four fresh authored fields, whole writingStyle, choice/content rules and a card edit after planning; it proves routing, not generated prose quality.The cancelled prior-head hosted browser run recorded one Caring Message cache assertion across UTC midnight. Its retained trace shows the pre-click screenshot crossed midnight and the unchanged daily expiry guard withheld the prior-day cache. The same test body passed on mobile with its original real clock, assertions and 150-second budget after normally dismissing Engine's holiday greeting; the initial greeting-blocked replay is also preserved. No caring-message code or test assertions were changed. The broader hosted browser job for the current head remains in progress; it is not counted as passed here.
Manual verification notes
Browser image/text/voice paths use controlled fixtures. Physical-device behavior, actual provider timing and generated prose quality are not proven by these checks.
Documentation impact
Updated the package README and 0.1.16 changelog; generated preview release notes match. Two new reader labels use canonical English localization keys with existing fallback behavior.
UI evidence
Final installed-bundle browser traces and desktop/phone preparation/settled screenshots are retained with the local validation receipts. The original failing traces and test-harness corrections are preserved; no runtime assertions or time budgets were weakened.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.