[PR #1630] [MERGED] feat(gacha-forge): write soundtrack briefs and repair achievement progress #1633

Closed
opened 2026-10-25 04:02:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/gacha-audio-errors-and-level-progress


📝 Commits (10+)

  • bc251a5 test(gacha-forge): reproduce hidden generation failure status
  • a3d66ee feat(gacha-forge): write soundtrack briefs and repair achievement progress
  • 68b5635 build(gacha-forge): include reproducible 1.12.0 archive
  • 1f527c3 fix(gacha-forge): cancel paid generation after audio settings change
  • 492a509 fix(gacha-forge): distinguish provider text from fallback notice
  • c6d9da7 fix(gacha-forge): preserve music prompt language and provider debug logging
  • 48db8ec fix(gacha-forge): trace shared musical briefs without duplicate calls
  • 71224ef Merge branch 'staging' into fix/gacha-audio-errors-and-level-progress
  • 63b631b fix(gacha-forge): group soundtrack and achievement edits in one release
  • 4e50b7c Merge remote-tracking branch 'origin/fix/gacha-audio-errors-and-level-progress' into fix/gacha-audio-errors-and-level-progress

📊 Changes

23 files changed (+1280 additions, -136 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+2 -0)
➕ artifacts/gacha-forge-1.12.0.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+10 -0)
📝 packages/gacha-forge/README.md (+6 -0)
📝 packages/gacha-forge/bundle-patches.json (+63 -0)
📝 packages/gacha-forge/client.js (+104 -41)
📝 packages/gacha-forge/manifest.json (+5 -5)
📝 packages/gacha-forge/server.mjs (+102 -5)
➕ packages/gacha-forge/src/achievement-progress.mjs (+26 -0)
📝 packages/gacha-forge/src/audio-client.mjs (+94 -38)
📝 packages/gacha-forge/src/audio-en.mjs (+6 -0)
➕ packages/gacha-forge/src/audio-prompts.mjs (+67 -0)
📝 packages/gacha-forge/src/browser-presentation.mjs (+2 -1)
➕ tests/gacha-forge-achievements.regression.mjs (+299 -0)

...and 3 more files

📄 Description

Pull request

Linked issue

Closes #1628, closes #1629, closes #1631.

Why this change

Gacha Forge hides audio failures, sends a fixed world-description prompt instead of a model-written musical brief, and counts XP-feeding actions rather than the levels gained. Existing worlds can therefore show an incomplete level achievement even with several level-20 units.

What changed

  • Release Gacha Forge 1.12.0 with original soundtrack briefs written by the world’s narration connection for Home, battles, bosses, three story moods and Character Stories. Save each brief in the existing world session and reuse it; validate model output before submitting an audio request.
  • Show HTTP status, with a bounded provider reason when supported by the host, and preserve stock music on failure. Cancelled or failed brief generation cannot submit a subsequent paid audio request.
  • Count actual unit/relic levels and gained facets, including Tower-shop duplicates. Repair only lifetime progress provable from current owned items, preserving higher historic counters, claimed rewards and pass progress.
  • Rebuild the package, English catalog, artifact and all three catalogs/notes. Add maintained regressions to CI.

Package and security impact

  • Affected package ID: gacha-forge.
  • Engine compatibility: capability API 1.381 retained. Final host pin and browser evidence will be updated after Engine #8223 lands.
  • Permissions/entrypoints: no new permissions or top-level entrypoints; one package route reuses the existing narration pipeline and optimistic session persistence.
  • Update/restart: update the installed package and restart Engine. Existing world data and already-claimed rewards are preserved. Uninstall follows existing package cleanup.
  • Generated audio remains opt-in and uses provider credits. New musical briefs use the configured narration model. No API keys are included in the package or proof.

Validation

Human checklist, intentionally unchecked:

  • Manually verify audio errors and the new brief generation in browser.
  • Manually verify existing achievements and claimed rewards after updating.
  • Manually verify package update, restart, offline behavior and uninstall cleanup.
  • Read and followed CONTRIBUTING.md.

Canonical npm run check and the exact 62-command package CI matrix pass on integrated source 4e50b7cf6. Catalog lanes, package locales/keys, release notes, reversible bundle rebuild, choices, 21 audio controls, actual narration-route/cache/reload/failure controls, and 22 achievement ladders/214 thresholds passed. A hosted ascending-release-ledger failure was reproduced and fixed by combining ten edits into one 1.12.0 entry, preserving both executable bundles, manifest, artifact and catalogs byte-for-byte. The strict reverse/rebuild invariant remains unchanged. Initial local sparse-fixture failures and the successful hydrated replay are both retained.

Explicitly authorized live ElevenLabs testing used the actual Engine provider function: an original 10-second brief succeeded and decoded, a representative 60-second shipping Gacha prompt naming a reference game returned HTTP 400 with a Terms-of-Service rejection, and the same 60-second request succeeded when only its world description changed to an original fantasy adventure. Both successful MP3s decode. This does not inspect the maintainer’s actual Docker request or prove every generated prompt will be accepted. Testing ended and the maintainer was told to revoke the temporary key.

Local CodeRabbit completed a substantive full review and a follow-up review. Each found one minor issue: notice wording was corrected, and a joining debug caller now receives its prompt trace while sharing the existing billable generation. Independent controlled execution confirmed one model call and one save; no duplicate generation was added. The first three full-review submissions were rate-limited before acceptance. Final actual-host lifecycle/browser validation, host pin, current-head hosted gates and Dottore review remain merge blockers.

Sanitized validation logs and review dispositions: published proof. Initial published raw files were downloaded and verified byte-for-byte; later source-validation receipts have been appended. Final merged-host/browser evidence is still pending.

Documentation impact

Updated package README, package changelog, in-app release notes and catalog release notes. No Engine user-documentation changes.

UI evidence (if applicable)

Pending final package browser proof on the exact merged Engine host. Existing mobile/desktop layout and stock fallback are preserved; no physical-device claim.


🔄 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/1630 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gacha-audio-errors-and-level-progress` --- ### 📝 Commits (10+) - [`bc251a5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bc251a51d97779bb8d3274965066dcc68ea8de7c) test(gacha-forge): reproduce hidden generation failure status - [`a3d66ee`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a3d66eeee3c234458daa7bccc83abcf96fb70164) feat(gacha-forge): write soundtrack briefs and repair achievement progress - [`68b5635`](https://github.com/Pasta-Devs/Marinara-Agents/commit/68b5635a99cc2da3ae431d463d579b5ec3e13b5d) build(gacha-forge): include reproducible 1.12.0 archive - [`1f527c3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1f527c388853c89518def2bfcca7e3ddd9f32d2c) fix(gacha-forge): cancel paid generation after audio settings change - [`492a509`](https://github.com/Pasta-Devs/Marinara-Agents/commit/492a509335d763dc5fd976e12a1e93a333827a12) fix(gacha-forge): distinguish provider text from fallback notice - [`c6d9da7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c6d9da7f92d4c846a542bd35b1ec6de7b1e315bf) fix(gacha-forge): preserve music prompt language and provider debug logging - [`48db8ec`](https://github.com/Pasta-Devs/Marinara-Agents/commit/48db8ecaf25086131e7822d536a1ac0d862e92cd) fix(gacha-forge): trace shared musical briefs without duplicate calls - [`71224ef`](https://github.com/Pasta-Devs/Marinara-Agents/commit/71224ef0ac93a0149575b784a79e9c0fb95059cb) Merge branch 'staging' into fix/gacha-audio-errors-and-level-progress - [`63b631b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/63b631b4976d8a2c8f319f5c17ca9005a65a0d34) fix(gacha-forge): group soundtrack and achievement edits in one release - [`4e50b7c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4e50b7cf668aba9d4afda5f41d2cfb919c70bdb5) Merge remote-tracking branch 'origin/fix/gacha-audio-errors-and-level-progress' into fix/gacha-audio-errors-and-level-progress ### 📊 Changes **23 files changed** (+1280 additions, -136 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+2 -0) ➕ `artifacts/gacha-forge-1.12.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+10 -0) 📝 `packages/gacha-forge/README.md` (+6 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+63 -0) 📝 `packages/gacha-forge/client.js` (+104 -41) 📝 `packages/gacha-forge/manifest.json` (+5 -5) 📝 `packages/gacha-forge/server.mjs` (+102 -5) ➕ `packages/gacha-forge/src/achievement-progress.mjs` (+26 -0) 📝 `packages/gacha-forge/src/audio-client.mjs` (+94 -38) 📝 `packages/gacha-forge/src/audio-en.mjs` (+6 -0) ➕ `packages/gacha-forge/src/audio-prompts.mjs` (+67 -0) 📝 `packages/gacha-forge/src/browser-presentation.mjs` (+2 -1) ➕ `tests/gacha-forge-achievements.regression.mjs` (+299 -0) _...and 3 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1628, closes #1629, closes #1631. ## Why this change Gacha Forge hides audio failures, sends a fixed world-description prompt instead of a model-written musical brief, and counts XP-feeding actions rather than the levels gained. Existing worlds can therefore show an incomplete level achievement even with several level-20 units. ## What changed - Release Gacha Forge 1.12.0 with original soundtrack briefs written by the world’s narration connection for Home, battles, bosses, three story moods and Character Stories. Save each brief in the existing world session and reuse it; validate model output before submitting an audio request. - Show HTTP status, with a bounded provider reason when supported by the host, and preserve stock music on failure. Cancelled or failed brief generation cannot submit a subsequent paid audio request. - Count actual unit/relic levels and gained facets, including Tower-shop duplicates. Repair only lifetime progress provable from current owned items, preserving higher historic counters, claimed rewards and pass progress. - Rebuild the package, English catalog, artifact and all three catalogs/notes. Add maintained regressions to CI. ## Package and security impact - Affected package ID: `gacha-forge`. - Engine compatibility: capability API 1.381 retained. Final host pin and browser evidence will be updated after Engine #8223 lands. - Permissions/entrypoints: no new permissions or top-level entrypoints; one package route reuses the existing narration pipeline and optimistic session persistence. - Update/restart: update the installed package and restart Engine. Existing world data and already-claimed rewards are preserved. Uninstall follows existing package cleanup. - Generated audio remains opt-in and uses provider credits. New musical briefs use the configured narration model. No API keys are included in the package or proof. ## Validation Human checklist, intentionally unchecked: - [ ] Manually verify audio errors and the new brief generation in browser. - [ ] Manually verify existing achievements and claimed rewards after updating. - [ ] Manually verify package update, restart, offline behavior and uninstall cleanup. - [ ] Read and followed `CONTRIBUTING.md`. Canonical `npm run check` and the exact 62-command package CI matrix pass on integrated source `4e50b7cf6`. Catalog lanes, package locales/keys, release notes, reversible bundle rebuild, choices, 21 audio controls, actual narration-route/cache/reload/failure controls, and 22 achievement ladders/214 thresholds passed. A hosted ascending-release-ledger failure was reproduced and fixed by combining ten edits into one 1.12.0 entry, preserving both executable bundles, manifest, artifact and catalogs byte-for-byte. The strict reverse/rebuild invariant remains unchanged. Initial local sparse-fixture failures and the successful hydrated replay are both retained. Explicitly authorized live ElevenLabs testing used the actual Engine provider function: an original 10-second brief succeeded and decoded, a representative 60-second shipping Gacha prompt naming a reference game returned HTTP 400 with a Terms-of-Service rejection, and the same 60-second request succeeded when only its world description changed to an original fantasy adventure. Both successful MP3s decode. This does not inspect the maintainer’s actual Docker request or prove every generated prompt will be accepted. Testing ended and the maintainer was told to revoke the temporary key. Local CodeRabbit completed a substantive full review and a follow-up review. Each found one minor issue: notice wording was corrected, and a joining debug caller now receives its prompt trace while sharing the existing billable generation. Independent controlled execution confirmed one model call and one save; no duplicate generation was added. The first three full-review submissions were rate-limited before acceptance. Final actual-host lifecycle/browser validation, host pin, current-head hosted gates and Dottore review remain merge blockers. Sanitized validation logs and review dispositions: [published proof](https://gist.github.com/SpicyMarinara/f20945cb1b0d55f2a206be067e095379). Initial published raw files were downloaded and verified byte-for-byte; later source-validation receipts have been appended. Final merged-host/browser evidence is still pending. ## Documentation impact Updated package README, package changelog, in-app release notes and catalog release notes. No Engine user-documentation changes. ## UI evidence (if applicable) Pending final package browser proof on the exact merged Engine host. Existing mobile/desktop layout and stock fallback are preserved; no physical-device claim. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:02:19 +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#1633
No description provided.