lucy / bootstrap
AGENTS.md58 starsChanged 8 days agoApache-2.0View on GitHub
Prepares runnable server trees inside an installation staging directory.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- artifact/AGENTS.mdAGENTS.md
- catalog/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- document/AGENTS.mdAGENTS.md
- e2e/AGENTS.mdAGENTS.md
- install/AGENTS.mdAGENTS.md
- operation/AGENTS.mdAGENTS.md
- receipt/AGENTS.mdAGENTS.md
- resolve/AGENTS.mdAGENTS.md
- upstream/AGENTS.mdAGENTS.md
- workspace/AGENTS.mdAGENTS.md
The file
Files
bootstrap
Prepares runnable server trees inside an installation staging directory.
Responsibilities & Boundaries
- Prepares locked server products (
PrepareLocked) by dispatching on the lock'sbootstrapmethod:vanilla,paperclip,fabric,quilt, andforge. An empty or unknown method is invalid. - Staging role: populates the server directory inside a caller-supplied staging root (
stage/server.directory). Never writes to live workspace paths and makes no ownership or receipt publication claims; staging cleanup, verification, commit, and rollback belong to callers ininstall. - Runtime launch contracts: provides start commands and MCDR log handlers (
LaunchFor), declared runtime outputs (Outputs), and superseded core file detection (SupersededCore).
Invariants & Behavior
- Input extraction: places each locked input with
InputPathfrom the method. Maven libraries go tolibraries/<maven path>, the Mojang server jar goes toserver.jar(Paperclip readscache/mojang_<minecraft>.jar), and server mappings go toserver-mappings.txt.PrepareLockedreceives the local file of each input by lock position; an input can also name a file embedded in a Forge installer, addressed by the installer digest. Placement paths are validated (SafeRelativePath). Missing locked inputs fail preparation. - Bootstrap methods:
vanilla: copies the core artifact asserver.jar.paperclip: copies core JAR asserver.jarand runs Paperclip in patch-only mode (-Dpaperclip.patchonly=true). Requires a working Java runtime (ErrNoJava).fabric: places loader JAR into Maven layout (libraries/), generates launch scripts (run.sh,run.bat), launcher properties, and shim JAR (fabric-server-launch.jar).quilt: places the Quilt loader JAR into Maven layout (libraries/), copies the pinned profile libraries, and generates the launcher JAR (quilt-server-launch.jar) withQuiltServerLauncherand an embeddedquilt-server-launch.propertiesselectingKnotServer, plusquilt-server-launcher.propertieswithserverJar=server.jar. It starts withjava -jar quilt-server-launch.jar nogui.forge: reads the Forge or NeoForge installer's server profile, runs its processors with the locked inputs, and verifies output hashes against expected digests using Java. Both products share the installer profile format.
- Failure handling: bootstrap method errors or process execution failures return an error without touching workspace state; any staging directory cleanup is owned by the caller.
- Adoption compares existing files with the locked recipe's runtime image, restored from a snapshot or built offline in a private stage.
Relevant Tests
- Exercised via the install pipeline:
go test -count=1 ./install -run TestLockedReplay
- Quilt generation and image comparison:
go test -count=1 ./bootstrap -run TestQuilt
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

