mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1205] [MERGED] fix(gacha-forge): 1.8.12 — a Character Story merges with the chapters around it, or with other Character Stories #1344
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#1344
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/1205
Author: @SonaGat3
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SonaGat3
Base:
staging← Head:feature/gacha-forge-1.8.12📝 Commits (1)
aa0cecefix(gacha-forge): 1.8.12 — a Character Story merges with the chapters around it, or with other Character Stories📊 Changes
12 files changed (+338 additions, -314 deletions)
View changed files
➕
artifacts/gacha-forge-1.8.12.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -0)📝
packages/gacha-forge/CHANGELOG.md(+4 -0)📝
packages/gacha-forge/README.md(+2 -0)📝
packages/gacha-forge/client.js(+187 -187)📝
packages/gacha-forge/manifest.json(+5 -5)📝
packages/gacha-forge/server.mjs(+98 -98)📄 Description
Linked issue
Closes #1204
Why this change
stagingcarries Gacha Forge 1.8.11. A player asked how to compress Character Stories further: chapters can be merged together, Character Stories never past their own compression. Merging was built over contiguous entries; Character Stories came later, got their own compression and were left out of the merge — the client even had a comment deciding it the other way ("A bond chapter is never folded"). So every Character Story's summary stays in the context for good, and a merge of chapters 3 to 6 still sends each story played in that stretch on its own.What changed
continuityRows), in the order the story happened: each Character Story after the chapter it followed, and several after the same chapter in the order they were opened. A part stampsopenedonce, when it is opened; parts opened before this change have none and keep the previous order, ahead of stamped ones. The panel draws these rows and the merge validates against these rows, so the two cannot disagree about what is next to what.POST /compress/merge { runId, rows }), rebuilds the rows and takes the run that starts at the first key. It refuses anything that is not the same contiguous run today (stale), a row not compressed (named), a chapter not played to the end (not-finished: a fight still owed is written later from the story so far, and a story merged into that chapter would be out of it), and a second merge in the same world while one runs (busy).bonds. A merge is anchored on the first chapter it holds, else on the first story's key;bondslists every story it swallowed, those already inside merged rows included, so a merge of merges keeps them. A stories-only merge carries no chapter range. Write, then delete — and the safety does not rest on the delete.absorbedBondsis built before any walk (a story can be swallowed by a merge anchored after the place it is read) and asked first by every reader: the context does not send it again — neither its summary nor its raw beats, which is what a story without a summary falls back to —/compressdoes not compress it again, and the panel does not draw it apart. A merged entry's heading names what it holds ("Chapter 4, including Mei's bond chapter").Generated outputs
packages/gacha-forge/client.js,server.mjs,manifest.json, the artifact zip, the catalog family and the release-notes sidecars were re-derived bynode scripts/build-gacha-forge-package.mjsfrom the committed payload bytes. Nothing was hand-edited; re-running the builder after the commit leaves the tree clean.Package and security impact
capabilityApi, theenginerange, permissions, contribution slots, assets,builtAgainstandrestartRequiredare unchanged. The only manifest field that moved isversion, verified by diffing against thestagingmanifest with the hash lines filtered out.POST /compress/mergechanges its body from{ from, to }to{ rows }; the only caller is the package's own client, shipped in the same payload.bondson a merged summary (the keys of the stories it swallowed) andopenedon each Character Story part when it is opened. Both are absent on older data, which reads as before.client.js1,436,506 → 1,438,795 bytes,server.mjs498,958 → 502,921, artifact 7,835,622 → 7,841,874. All art is byte-identical: 244 of 247 payload files are unchanged (onlyclient.js,server.mjsandmanifest.jsonmove).Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
origin/staging;git ls-files --eol | grep -c w/crlf→ 0;git diff --check "origin/staging...HEAD"clean; the build is reproducible.manifest.jsondiffers, which every installer rewrites.pull-request-checks.ymlatorigin/staging, so its 25 steps cannot go stale: 24 of 25 green. ⚠️npm run test:securityfails on Windows for a reason unrelated to this change (catalog-path-safety.regression.mjsexpects a POSIX path and getsD:\tmp\package\assets\icon.png); its log never names gacha-forge, and it failed identically on a cleanstagingcheckout for every earlier Gacha Forge PR./compressrefuses it; the context sends it once, inside the merge, with neither its old summary nor its raw beats; a merged text that leaves a story out is refused, says which, and deletes nothing; a merge of a merge keeps the stories it held; two stories merge alone, anchored on the first; a story and the chapter after it merge on the chapter, and the context does not send the story at its own place; a chapter with a fight still owed is refused; two merges at once answerbusy; a stale selection isstale; the name check by whole word (Spanish particles, a Japanese name, accents). Client: ticks on story rows, selection by position in both directions, a gap named, the rows posted in order, refusals said, a lost anchor andstalerestart the pick. Five existing merge checks were moved to the new request shape and pass unchanged; one that asserted the opposite rule ("a bond chapter offers no tick") was inverted.bonds, the merge prompt erasing whose story each part was, a name check that found "Ana" inside "semana", silent refusals, and a selection that could get stuck.Documentation impact
packages/gacha-forge/README.mdgains the 1.8.12 paragraph;packages/gacha-forge/CHANGELOG.mdgains 1.8.12. The repository README is unchanged.UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.