Skip to content

Sheet Contract

André Borchert edited this page Aug 23, 2026 · 2 revisions

Sheet Contract

Design stage. The sheet's three tabs are not yet populated; this contract should be validated against real rows before anything is built around it.

Desired mod lists live in a Google Sheet, one tab per Minecraft version.

The one rule that matters

Humans and the system never write the same cells.

You own intent. The system owns observation. Collapsing both into a single "status" column is how these setups start lying — once a cell has been written by both sides, you can no longer tell what someone wanted from what actually happened, and every disagreement becomes unresolvable.

Columns

Column Owner Meaning
Name you Display name. Cosmetic only.
URL you Modrinth or CurseForge project page. The stable row key.
Category you Optional override; otherwise taken from the provider.
Want you yes · no · ban. Your intent, nothing else.
Pinned file system Exact resolved filename and version.
SHA-256 system Short hash of the file in the store.
State system resolved · unavailable · quarantined · deployed
In set system Digest of the modset this mod is currently part of.
Note system Why it is blocked: missing dependency, no 26.3 build, conflicts with X.
Checked system Timestamp of the last reconcile.

Handling rules

  • System columns are protected ranges in Sheets, so an accidental paste cannot corrupt state.
  • Rows are matched by URL, never by name. Renaming a mod in the sheet does not orphan its history.
  • The system never reorders or deletes your rows. Mods found on a server but absent from the sheet are appended at the bottom and flagged.
  • A tab is a Minecraft version. Tabs are discovered by reading the spreadsheet's sheet list and matching against the version table, never by a hard-coded list of names.
  • The engine creates the tab. version add issues a Sheets addSheet request with the header row and protected ranges already applied, so a new Minecraft version arrives with its tab ready rather than waiting on someone to build one.
  • Access is via a Google service account. You share the sheet with its generated address — no OAuth flow, no personal credentials on the VPS.
  • Polling every 10 minutes, plus pummelchen-engine sync for an immediate reconcile. Sheets has no change webhook worth depending on, and a 10-minute reconcile lag is immaterial for a process whose validation step takes hours.

The sheet is an input, not the source of truth

If the sheet and the database disagree about what is deployed, the database wins and the sheet is corrected.

A spreadsheet has no transactions, no validation and no atomicity. Treating it as authoritative state means a single bad paste can take down a live server. It is the right tool for expressing intent and a poor one for recording facts, so the design uses it for exactly the first and never the second.

Round trip

  1. You add a row: name, URL, Want = yes.
  2. Within 10 minutes the manager resolves it, writes back the pinned file, hash and State.
  3. If it cannot be used — no build for this version, missing dependency — State and Note say so, in the same row where you asked.
  4. Once a set containing it validates and deploys, In set and State reflect that.

The result is visible where you already work, without a second dashboard to check.

Clone this wiki locally