mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #949] [MERGED] feat(ruleset-5e-2014): class resources keep their own maximum (0.4.0) #1206
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#1206
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/949
Author: @kolacheee
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-5e-scaled📝 Commits (5)
4f449c4feat(catalog): check the scaled columns a ruleset catalog keepsc31dafbfeat(ruleset-5e-2014): class resources keep their own maximumbe029dabuild(ruleset-5e-2014): 0.4.0 against the Engine commit that merged scaled catalog values5f80d45docs(ruleset-5e-2014): say which class resources the sheet keeps, and the one-level ceiling2fe1510fix(ruleset-5e-2014): the counter maximum has room for Lay on Hands at level 20, and the build checks every kept counter fits📊 Changes
20 files changed (+906 additions, -115 deletions)
View changed files
📝
CONTRIBUTING.md(+2 -0)📝
README.md(+1 -1)➕
artifacts/ruleset-5e-2014-0.4.0.zip(+0 -0)📝
catalog/preview/catalog.json(+11 -11)📝
catalog/preview/notes.json(+6 -0)📝
catalog/preview/v2/catalog.json(+11 -11)📝
catalog/preview/v2/notes.json(+6 -0)📝
catalog/preview/v3/catalog.json(+11 -11)📝
catalog/preview/v3/notes.json(+6 -0)📝
packages/ruleset-5e-2014/CHANGELOG.md(+8 -0)📝
packages/ruleset-5e-2014/README.md(+38 -16)📝
packages/ruleset-5e-2014/catalogs/features.json(+142 -18)📝
packages/ruleset-5e-2014/locales/en.json(+1 -1)📝
packages/ruleset-5e-2014/manifest.json(+8 -8)📝
packages/ruleset-5e-2014/ruleset.json(+23 -2)📝
scripts/build-5e-srd-catalogs.mjs(+238 -28)📝
scripts/build-ruleset-packages.mjs(+8 -8)📝
scripts/ruleset-package-checks.mjs(+168 -0)📝
scripts/tests/ruleset-package.regression.mjs(+215 -0)📝
scripts/validate-catalog.mjs(+3 -0)📄 Description
Pull request
Linked issue
Closes #948
Why this change
What changed
ruleset-5e-20140.4.0, Capability API 1.23, rulesetversion4,builtAgainst.engineCommit1c160153fbe69f395ba940a0cf65d5e70e26cb9e.scaled.maxon their counter row, withvalues.maxholding the starting number:srd_barbarian_rages,srd_monk_ki-points,srd_sorcerer_sorcery-points). The build fails when a column is missing or not numeric. Rage's "Unlimited" cell at 20th level is an explicit, checked opt-in: the counter stops at 6 and the row's notes say so.max(1, Charisma modifier)and1 + Charisma modifier), and a new Lay on Hands counter follows a derivedlevel x 5.scripts/ruleset-package-checks.mjsgainsassertRulesetScaled, wired into the builder andvalidate-catalog.mjs: the Engine's own rules restated (1 to 4 keys, each a number column of the row's list, a valid reference, the row is the entry's only row for its list,valuesstill holds a starting number, a well-formed step table, 1.23 declared), with regression cases.CONTRIBUTING.mdsay which resources the sheet keeps and name the ceiling: the sheet has one Level field, so a multiclass character's resources follow the total level, and a player can delete the picked row and type their own.ruleset.json, the manifest hashes, the locale,artifacts/ruleset-5e-2014-0.4.0.zipand the preview overlay entries. The package stays staging-only.Package and security impact
ruleset-5e-2014stagingat or after 47985ac56). An older Engine refuses the update cleanly and keeps 0.3.0.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Commands run locally by the agent, all passing:
node scripts/validate-catalog.mjs,node scripts/tests/ruleset-package.regression.mjs,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locale-keys.mjs, the generatedAt determinism and release notes regressions,npm run check(0 errors),git diff --check, the converter run twice from the committed tree with byte-identical output, andnpm run build:rulesets. Two complete local CodeRabbit reviews were run before opening. The first found one real bug, fixed: Lay on Hands is 100 at level 20 and the sheet's counter maximum column stopped at 99, so the Engine would have fitted it down. The column now has room (999), every counter that follows a derived value declares the highest it can reach, and the build fails when a kept counter cannot fit its column (mutation-tested). The second review made two suggestions, both declined for the same reason: they would makeassertRulesetScaledstricter than the Engine it restates (refusing a step-table value outside the column's bounds, which the Engine fits to the column by design, and checking the values of an enum thatabilityModFromFieldreads, which the Engine does not check). The 5e data's own fit is guarded by the new build check instead.Proof against the Engine's own code (its shared package built from staging 1c160153f):
parseRulesetDefinitionacceptsruleset.json,parseRulesetCatalogFileaccepts all three catalogs (spells 319, features 208 with 9 scaled rows, weapons 36), andrecomputeScaledRowsgives Rage 4 at level 6 and 6 at level 20, Ki 5 at level 5, Sorcery Points 12 at level 12, Channel Divinity 2 at 6 and 3 at 18, Action Surge 2 at 17, Indomitable 3 at 17, Bardic Inspiration 3 at Charisma 16 and 1 at Charisma 8, Divine Sense 4 at Charisma 16, Lay on Hands 25 at level 5 and 100 at level 20. A hand-typed Rage row is left alone, and a settled sheet comes back as the same object. The converter's guards were mutation-tested: a drifted typed threshold, a misplaced "Unlimited" level, a wrong starting value and a scaled text column each fail the build with a readable message.Still to verify by hand:
Documentation impact
The root README row, the package README and changelog, and
CONTRIBUTING.mdare updated. The Engine side is documented in Pasta-Devs/Marinara-Engine#6362 (the authoring guide's scaled values).UI evidence (if applicable)
None: the package ships no UI.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.