[PR #1897] [MERGED] Protect Affection levels and prevent early portrait reveals in Otome #2019

Closed
opened 2026-11-07 16:38:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1897
Author: @SpicyMarinara
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/otome-affection-level-floors


📝 Commits (7)

  • c6758ab Reserve Otome Affection level-floor gameplay lane
  • efd9337 Integrate current Otome Snapshot and Album candidate for Affection work
  • d98cc5c Apply replay-safe Affection losses above permanent level floors and move the Ease off feather
  • 12abf4a Merge branch 'fix/otome-snapshot-art' into fix/otome-affection-level-floors
  • b7cf713 Stop future portrait previews and place the warning feather inline after its sentence
  • 8b0ccd6 Merge remote-tracking branch 'origin/staging' into fix/otome-affection-level-floors
  • 42ffa54 Rebuild Otome 0.1.15 with the narration and inline warning repairs

📊 Changes

25 files changed (+364 additions, -174 deletions)

View changed files

➕ artifacts/otome-forge-0.1.15.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 (+8 -0)
📝 packages/otome-forge/README.md (+2 -1)
📝 packages/otome-forge/client.js (+6 -5)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+95 -95)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/reader-state.ts (+2 -6)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ContentTagsCard.tsx (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts (+1 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+2 -1)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/state/relationship.ts (+25 -5)
📝 packages/otome-forge/src/engine/packages/server/src/services/otome-forge/state/rewards.ts (+3 -2)

...and 5 more files

📄 Description

Linked issue

Closes #1896. Closes #1898. Closes #1899. Owner: @SpicyMarinara (Codex).

Why this change

A harmful choice should cost Affection progress while every unlocked level stays permanent. The reader also showed Pantalone from the beginning of an escape scene because it looked ahead to his later speaking turn. The pre-chapter Ease off feather should follow its guidance sentence inline.

What changed

  • Canonical first-play Story/Date choices and Confrontation effects can lose 15 points once per harmed LI when they lower trust or add a genuinely new LI-held grievance. Multiple effects in one pick do not stack the deduction. Tension alone and repeated unresolved grievance text do not trigger it.
  • Loss stops at the current reached level’s floor, using the existing 300-point level math. No new high-water field or migration. Normal positive rewards, relationship stages, daily earning totals/caps, wallet, firsts and progress keep their existing rules; losses do not refund the earning cap. Existing canonical replay protection prevents repeat deductions.
  • Opening narration no longer scans forward to a future LI speaker. Current and past established LI portraits remain supported, alongside existing other-speaker/persona/thought/identity and cleanup behavior. Existing saved chapters use the display repair without regeneration.
  • The unchanged pre-chapter warning sentence is followed by its decorative feather in inline text flow, at 13×13 pixels, including on phones.
  • Ships the supported Otome Hearth 0.1.15 rebuild, generated catalogs/release notes and updated Affection/reader guidance.

Package and security impact

Package-owned relationship state and reader presentation only. Engine minimum 2.5.1, Capability API 1.386, permissions, entrypoints, host APIs, providers and saved formats are unchanged. No new model output field, dependency, paid generation or output-token cap. Restart after updating.

Validation

  • All 433 Otome regressions pass: 428 source plus five rebuilt-bundle cases. Strict types pass for 78 server/shared and 130 client files. Formatting/lint pass with zero errors and 815 existing warnings. Catalog lanes, locales, catalog/archive and release notes pass.
  • Affection RED/GREEN covers thresholds through level10, floors immediately after reaching a level, per-LI/pick deduplication, replay, existing grievances, tension-only choices, normal route/read rewards and no daily-cap refund. Actual Confrontation walkout route coverage passes. No old earned levels are reduced.
  • The exact published0.1.13 reader selector reproduces the look-ahead behavior. A packaged baseline shows Pantalone on the first narration in the supplied sequence structure. The retained regression now verifies a blank opening stage, his portrait on the reached speaking turn, and retention during later narration.
  • All 16 focused packaged browser cases pass across desktop/mobile Chromium and WebKit: four new narration cases and twelve adjacent identity/late-response/404/cleanup-error cases. Two additional standalone visual probes confirm unchanged warning text, inline feather placement after the final period and exact 13×13 geometry in desktop Pearl and phone Midnight. They are visual probes, not extra regression-suite cases.
  • Local CodeRabbit reviewed the whole Affection/initial warning change with zero findings, then the final committed narration/inline-layout/package delta with zero findings. Original RED traces and the pre-inline-layout visual probe remain preserved.
  • Independent audit verifies all six payload pins, safe unique seven-member ZIP contents/CRCs, all preview lanes and both installed runtime profiles. All non-Otome catalog/notes entries and Gacha 1.27.5 payload/manifest/archive pins are unchanged.

Receipts: /tmp/otome-015-final-*.log, /tmp/otome-015-reader-final-proof.json, /tmp/otome-015-warning-final-probe/proof.json, /tmp/otome-015-unrelated-scope.json and /tmp/otome-015-coderabbit*.log. No physical-device or live-provider proof is claimed.

Manual verification

  • Manually verify harmful choices and Confrontation outcomes during a normal playthrough, including existing saves and replay.
  • Manually verify the escape scene opens without a future portrait on a physical iPhone.
  • Manually verify the pre-chapter warning in other interface languages and phone orientations.

Documentation impact

Updated package README, package changelog, English Affection hint and generated release notes. No Engine user-document paths changed.


🔄 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/1897 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-affection-level-floors` --- ### 📝 Commits (7) - [`c6758ab`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c6758ab784e6d648c9e52b8982b86691863ead61) Reserve Otome Affection level-floor gameplay lane - [`efd9337`](https://github.com/Pasta-Devs/Marinara-Agents/commit/efd933791e3ff6d10e13d588ed37b6357eb2fef9) Integrate current Otome Snapshot and Album candidate for Affection work - [`d98cc5c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d98cc5c194eb2ff7305a275039030ce4be4fede2) Apply replay-safe Affection losses above permanent level floors and move the Ease off feather - [`12abf4a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/12abf4a97c76033ba754a9e70c4ede3886e0f6f3) Merge branch 'fix/otome-snapshot-art' into fix/otome-affection-level-floors - [`b7cf713`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b7cf7135c807b6c94927662b59775f5560e59807) Stop future portrait previews and place the warning feather inline after its sentence - [`8b0ccd6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8b0ccd65c44770435a912d23c53ac1361143f0c0) Merge remote-tracking branch 'origin/staging' into fix/otome-affection-level-floors - [`42ffa54`](https://github.com/Pasta-Devs/Marinara-Agents/commit/42ffa545610f80d022e6e8d60a91af4a4f625842) Rebuild Otome 0.1.15 with the narration and inline warning repairs ### 📊 Changes **25 files changed** (+364 additions, -174 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.1.15.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` (+8 -0) 📝 `packages/otome-forge/README.md` (+2 -1) 📝 `packages/otome-forge/client.js` (+6 -5) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+95 -95) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/lib/reader-state.ts` (+2 -6) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ContentTagsCard.tsx` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/api-types.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/shared/economy.ts` (+1 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+2 -1) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/state/relationship.ts` (+25 -5) 📝 `packages/otome-forge/src/engine/packages/server/src/services/otome-forge/state/rewards.ts` (+3 -2) _...and 5 more files_ </details> ### 📄 Description ## Linked issue Closes #1896. Closes #1898. Closes #1899. Owner: @SpicyMarinara (Codex). ## Why this change A harmful choice should cost Affection progress while every unlocked level stays permanent. The reader also showed Pantalone from the beginning of an escape scene because it looked ahead to his later speaking turn. The pre-chapter Ease off feather should follow its guidance sentence inline. ## What changed - Canonical first-play Story/Date choices and Confrontation effects can lose 15 points once per harmed LI when they lower trust or add a genuinely new LI-held grievance. Multiple effects in one pick do not stack the deduction. Tension alone and repeated unresolved grievance text do not trigger it. - Loss stops at the current reached level’s floor, using the existing 300-point level math. No new high-water field or migration. Normal positive rewards, relationship stages, daily earning totals/caps, wallet, firsts and progress keep their existing rules; losses do not refund the earning cap. Existing canonical replay protection prevents repeat deductions. - Opening narration no longer scans forward to a future LI speaker. Current and past established LI portraits remain supported, alongside existing other-speaker/persona/thought/identity and cleanup behavior. Existing saved chapters use the display repair without regeneration. - The unchanged pre-chapter warning sentence is followed by its decorative feather in inline text flow, at 13×13 pixels, including on phones. - Ships the supported Otome Hearth 0.1.15 rebuild, generated catalogs/release notes and updated Affection/reader guidance. ## Package and security impact Package-owned relationship state and reader presentation only. Engine minimum 2.5.1, Capability API 1.386, permissions, entrypoints, host APIs, providers and saved formats are unchanged. No new model output field, dependency, paid generation or output-token cap. Restart after updating. ## Validation - All 433 Otome regressions pass: 428 source plus five rebuilt-bundle cases. Strict types pass for 78 server/shared and 130 client files. Formatting/lint pass with zero errors and 815 existing warnings. Catalog lanes, locales, catalog/archive and release notes pass. - Affection RED/GREEN covers thresholds through level10, floors immediately after reaching a level, per-LI/pick deduplication, replay, existing grievances, tension-only choices, normal route/read rewards and no daily-cap refund. Actual Confrontation walkout route coverage passes. No old earned levels are reduced. - The exact published0.1.13 reader selector reproduces the look-ahead behavior. A packaged baseline shows Pantalone on the first narration in the supplied sequence structure. The retained regression now verifies a blank opening stage, his portrait on the reached speaking turn, and retention during later narration. - All 16 focused packaged browser cases pass across desktop/mobile Chromium and WebKit: four new narration cases and twelve adjacent identity/late-response/404/cleanup-error cases. Two additional standalone visual probes confirm unchanged warning text, inline feather placement after the final period and exact 13×13 geometry in desktop Pearl and phone Midnight. They are visual probes, not extra regression-suite cases. - Local CodeRabbit reviewed the whole Affection/initial warning change with zero findings, then the final committed narration/inline-layout/package delta with zero findings. Original RED traces and the pre-inline-layout visual probe remain preserved. - Independent audit verifies all six payload pins, safe unique seven-member ZIP contents/CRCs, all preview lanes and both installed runtime profiles. All non-Otome catalog/notes entries and Gacha 1.27.5 payload/manifest/archive pins are unchanged. Receipts: `/tmp/otome-015-final-*.log`, `/tmp/otome-015-reader-final-proof.json`, `/tmp/otome-015-warning-final-probe/proof.json`, `/tmp/otome-015-unrelated-scope.json` and `/tmp/otome-015-coderabbit*.log`. No physical-device or live-provider proof is claimed. ## Manual verification - [ ] Manually verify harmful choices and Confrontation outcomes during a normal playthrough, including existing saves and replay. - [ ] Manually verify the escape scene opens without a future portrait on a physical iPhone. - [ ] Manually verify the pre-chapter warning in other interface languages and phone orientations. ## Documentation impact Updated package README, package changelog, English Affection hint and generated release notes. No Engine user-document paths changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38: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#2019
No description provided.