Repository navigation
Modset Model
Design stage. Nothing here is implemented.
The central modeling decision. Getting this wrong is what makes conflict testing unmanageable.
The instinct is to track mods and give each one a status. That is the wrong unit.
Mod A and Mod B might boot together perfectly. Add Mod C and all three crash. Whose status changed? None of them individually — the combination is what failed. A per-mod verdict cannot express this, and any system built on one will keep contradicting itself.
The set carries the verdict. It is the thing that gets tested, deployed and rolled back.
A modset is, for one Minecraft version:
- an ordered list of exact files — mod ID, filename, SHA-256, source URL
- the NeoForge build it targets
- the Minecraft version
Hash that list and you get a modset digest naming it: 26.2@a4f19c…. It behaves exactly like a lockfile.
| Property | Consequence |
|---|---|
| Verdicts attach to a digest | "26.2@a4f19c booted clean in 94 s" is a durable, re-checkable fact |
| Deployment is a statement | "26.2 is serving a4f19c" — unambiguous, and comparable against what is on disk |
| Rollback is a pointer move | Point current at the previous digest and restart |
| Changing one file changes the digest | The new set has never been validated — which is correct, because it hasn't |
That last row is the point. There is no way to quietly change a mod file and keep a validation verdict, because the verdict is bound to the exact bytes of the whole set.
Jars live once at /var/minecraftai/shared/store/<sha256>.jar. Every server mods/ directory and every test scratch directory is built from hardlinks into that store.
- Deduplicates mods that are byte-identical across Minecraft versions.
- A test directory materializes instantly and costs no disk.
- Retaining several previous validated sets for rollback is nearly free.
- The file's hash is its identity, so corruption and substitution are detectable by construction.
Every conflict the system proves becomes a durable edge:
sodium-extra@0.6.0is incompatible withoculus@1.8.0on Minecraft 26.2 — proven by run #418, evidence inruns/418/latest.log
This is the asset that compounds. A known-bad pair is never proposed together again and never costs another boot. After a few months of operation most conflicts are caught by graph lookup before a JVM starts, and the expensive tier is reserved for genuinely new combinations.
Edges are scoped to Minecraft version and to mod versions. A conflict between two mods at specific versions says nothing certain about their next releases — when either side is updated, the edge should be marked stale and the pair allowed to be tried again rather than blocked forever.
Per mod, per Minecraft version:
| State | Meaning |
|---|---|
listed |
Present in the sheet, nothing resolved yet |
resolved |
A concrete file exists for this version, downloaded and hashed |
unavailable |
No build for this Minecraft version — reported back to the sheet |
quarantined |
Bisection proved it breaks the set; excluded until cleared |
banned |
Operator decision; never install |
Per modset:
| State | Meaning |
|---|---|
candidate |
Proposed digest, not yet tested |
validated |
Booted clean and held; eligible to deploy |
deployed |
A server is currently serving it |
rejected |
Failed, with evidence and a bisection result attached |
flaky |
Verdict flipped between runs on the same digest — never treated as validated |
NeoForge mod load order is not guaranteed to be identical between runs. A marginal conflict can pass once and fail the next time.
Treating the first passing run as authoritative would deploy a set that fails intermittently in production — the worst possible outcome, because it looks like a server problem rather than a mod problem. Any digest whose verdict has ever flipped is marked flaky, re-run, and blocked from deployment until it is consistently green.
Design stage — not implemented
Design
Validation
Trust
Interfaces
Operations
Project
Reference