mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8063] [MERGED] feat(mari): let Professor Mari edit ruleset character sheets #8083
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8083
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-Engine/pull/8063
Author: @kolacheee
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-cpecc0📝 Commits (10+)
1c3f293feat(mari): let Professor Mari edit ruleset character sheets88dc6a4Merge branch 'staging' into claude/project-thread-cpecc00c44e21fix(mari): name refused rows by what a resend uses; live-read values40c83b7Merge remote-tracking branch 'origin/staging' into claude/project-thread-cpecc0e1709fdfix(mari): refuse a cleared value under an unknown sheet id786a72fMerge remote-tracking branch 'origin/staging' into claude/project-thread-cpecc01857b30fix(mari): tie the cleared-id table to the patch's own keysb9754a9fix(mari): key the cleared-id check by every clearable patch mapd312b97fix(mari): one record applies and checks every clearable map; name cleared unknown list columnsb42fbfcMerge remote-tracking branch 'origin/staging' into claude/project-thread-cpecc0📊 Changes
7 files changed (+778 additions, -2 deletions)
View changed files
📝
docs/characters/colors-and-stats.md(+2 -0)📝
docs/home/professor-mari.md(+1 -0)📝
packages/server/src/services/mari-db/mari-db.service.ts(+114 -0)➕
packages/server/src/services/mari-db/ruleset-sheets.ts(+339 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+8 -2)📝
packages/shared/src/schemas/ruleset.schema.ts(+15 -0)➕
scripts/regressions/mari/ruleset-sheets.regression.ts(+299 -0)📄 Description
Linked issue
Closes #8062
Why this change
persona.updateonly passes text fields, and a raw write ofpersonaStatsordata.extensionswould risk the bars, RPG stats and every other ruleset's sheet that share that object, with nothing checking the values.What changed
app_dataactions:persona.rulesetSheet.get|updateandcharacter.rulesetSheet.get|update. One patch shape works for every ruleset, because every ruleset is built from the same sheet primitives.getwithoutrulesetIdlists the stored sheets and installed rulesets. With it, it returns the sheet in the current layout, the numbers it works out to, and the layout of ids and limits a patch is written against.updatemergesabilities,skills,saves,bonuses,fields(nullclears a value back to its default) and list rows (update/remove/add, orsetto replace a list) into the stored build. A missing sheet starts blank. Every touched value is checked with the rule creature sheets already use, now exported asrulesetSheetBuildIssues, and every problem is listed at once. Only that ruleset's entry is written, and a stored sheet that cannot be read is never overwritten. Live state (current health, spent slots) is not written here.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
scripts/regressions/mari/ruleset-sheets.regression.tsdrives the realMariDbServiceagainst both docs example rulesets: Ember Roads on a persona and Gravewatch on a card. It covers listing and previews, every refusal leaving the stored sheet untouched (including cleared unknown ids such asabilities: { brawn: 2, luck: null }), list update/remove/add with refused rows named by their stored index after a removal,setbeside empty arrays, unreadable sheets never being overwritten, and Gravewatch's worked-outharm_leftinvalues.pnpm checkpassed; regression lanes mari 19/19, professor-mari 19/19, persona 6/6, game-ruleset 266/266, plus the new regression 1/1. No UI changes, so no manual click-through or container run beyond CI.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation): added to #7512UI evidence (if applicable)
No UI changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.