mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #922] [MERGED] feat(ruleset-5e-2014): 5e (SRD 5.1) ruleset package and the ruleset kind #1194
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#1194
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/922
Author: @kolacheee
Created: 9/18/2026
Status: ✅ Merged
Merged: 9/18/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-5e-2014📝 Commits (3)
5f50c6ffeat(ruleset-5e-2014): add package skeleton74a7357feat(ruleset-5e-2014): publish the 5e ruleset to the staging tier and teach the tooling the ruleset kindff51cc3fix(ruleset-5e-2014): make the ruleset kind exclusive in the catalog validator📊 Changes
26 files changed (+1970 additions, -69 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+5 -0)📝
CONTRIBUTING.md(+8 -2)📝
README.md(+2 -0)➕
artifacts/ruleset-5e-2014-0.1.0.zip(+0 -0)➕
artwork/agent-covers/ruleset-5e-2014.png(+0 -0)➕
catalog/preview/catalog.json(+55 -0)➕
catalog/preview/notes.json(+15 -0)➕
catalog/preview/v2/catalog.json(+55 -0)➕
catalog/preview/v2/notes.json(+15 -0)➕
catalog/preview/v3/catalog.json(+55 -0)➕
catalog/preview/v3/notes.json(+15 -0)📝
package.json(+1 -0)➕
packages/ruleset-5e-2014/CHANGELOG.md(+5 -0)➕
packages/ruleset-5e-2014/LICENSE-SRD.md(+3 -0)➕
packages/ruleset-5e-2014/README.md(+47 -0)➕
packages/ruleset-5e-2014/locales/en.json(+11 -0)➕
packages/ruleset-5e-2014/manifest.json(+39 -0)➕
packages/ruleset-5e-2014/ruleset.json(+1109 -0)📝
schemas/package-manifest.schema.json(+5 -1)➕
scripts/build-ruleset-packages.mjs(+128 -0)...and 6 more files
📄 Description
Pull request
Linked issue
Closes #921
Why this change
stagingcan now run a game on a ruleset (Capability API 1.20, package kindruleset), but it ships none, so there is nothing to pick until a package exists. This adds the first one, 5e from SRD 5.1.What changed
ruleset-5e-20140.1.0: kindruleset, Game Mode only, one data file (ruleset.json, byte-identical to the Engine's reference file), no Agent, no code, no permissions, no restart. It moves from the incomplete tier to the staging-only tier, so it is published in the preview overlay (catalog/preview/**) and the stable lanes are untouched (no entry,generatedAtunchanged).schemas/package-manifest.schema.json:rulesetjoins thekindenum, andcontributionsis now a known key (the schema refused every shipped manifest that declares contributions; nothing reads the schema, so this is documentation drift, fixed minimally).scripts/ruleset-package-checks.mjs(new) andscripts/validate-catalog.mjs: a ruleset package is checked as what it is. The reserved asset and the kind go together in both directions;ruleset.jsonmust be a declared file; noserver,clientoragentsentrypoint; no permissions;restartRequired: false; manifest v2 with Capability API 1.20 or newer; the asset parses and carriesid, an integerversionandname. The Engine owns the fullruleset.jsonschema and validates it on install, so it is not copied here. The agent-definition block applies to every other package exactly as before. Counts gain a third bucket so a ruleset is never miscounted as an agent.scripts/build-ruleset-packages.mjs(new): re-derivesfiles[]from the declared asset, writes the manifest only when it changed, builds the ZIP with the shared deterministic zip helper, and writes throughwriteCatalogFamily, so both tiers are honoured.locales/en.jsonin sync, a README row, package README and changelog, and the CONTRIBUTING checklist now says a ruleset package shipsruleset.jsoninstead of an Agent definition.buildEnglishPackageLocaleomits theagentsblock when a package has no agents.artwork/agent-covers/ruleset-5e-2014.pngis a programmatic placeholder (a d20 on the house medallion). It does not follow the illustrated house style and the owner may want to replace it.scripts/tests/ruleset-package.regression.mjs, wired into the PR checks.Package and security impact
ruleset-5e-2014(new, staging-only tier).stagingtoday.engine.min2.4.6. An older Engine refuses the install rather than installing something that does nothing.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Commands run locally by the agent, all exit 0:
npm run check,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-package-locale-keys.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-generatedat-determinism.regression.mjs,node scripts/tests/catalog-release-notes.regression.mjs,node scripts/tests/ruleset-package.regression.mjs,git diff --check. The ZIP was built twice with the same sha256. The built artifact was also checked against the Engine's own code on Enginestaging: its manifest parses withcapabilityPackageManifestSchema, the declared hash and size match,ruleset.jsonparses withparseRulesetDefinition, the catalog entry parses,getCapabilityPackageInstallIssuereturns nothing, and the artifact URL is the canonical one for the official staging catalog.NOT done: a real install through the Engine. The Engine downloads packages over HTTPS only, so the artifact cannot be served to it from a local machine before it is hosted here.
Still to verify by hand, after this merges to
staging:stagingbranch, open the agent catalog, find 5e (SRD 5.1) (kind badge Rules), install it, and confirm no restart is asked for.main) Engine does not list the package.Documentation impact
UI evidence (if applicable)
None. The package has no UI of its own.
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.