MC/docs/CODING-AGENT-HANDOVER.md
2026-11-27 23:43:05 +00:00

9.8 KiB

DuneRealms coding agent handover

Verified on 28 November 2026. Use production unimatrix/MC:main as the release baseline. Develop in the restored dev/MC fork.

Source and exact commits

Reference Meaning
2e0df25736236378415d1f292bfeda992687ed95 Verified canonical main at handover. CI publishes all plugin JARs, including the DuneKits companion.
f100733d Adds the canonical plugin build workflow.
88ff96791d691826357cbb660e9538a1107a3123 Website recipe book, player manual and workspace release.
47e42ba64bd11a067f688e1b06048e1882ecf691 POL source checkpoint. Already an ancestor of canonical main.
eee0265c314112960158e0379438690014f31ea0 War/Beta launch source checkpoint. Already an ancestor of canonical main.
2bec0e6a Historical fork-only CI experiment. The canonical plugins.yml already covers the fleet.

Canonical remote: https://www.dunerealms.com/git/unimatrix/MC.git. Use the retained DuneGit account dev with its approved repository credential for feature-branch pushes. The dev/MC fork was restored from verified production commit 2e0df257. Set origin to the fork and upstream to production. Inspect git remote -v before pushing. Preserve any uncommitted work in other checkouts.

git clone https://www.dunerealms.com/git/dev/MC.git DuneRealms-MC
Set-Location DuneRealms-MC
git remote add upstream https://www.dunerealms.com/git/unimatrix/MC.git
git fetch --prune origin
git switch -c work/my-task origin/main
git status --short
git rev-parse HEAD

Compile a single plugin

The canonical CI uses Java 21 and Gradle 9.2.1. Set JAVA_HOME to your Java 21 installation. Run Gradle from the repository root and use -p to target the module. The dependency cache must be populated for --offline; omit the flag on a fresh environment with repository access. Install Gradle and Java 21 through the authorised workstation setup if the local paths below are unavailable.

# From the development repository root, with Java 21 and Gradle 9.2.1 configured.
gradle --no-daemon -p DuneRealmsGUI test jar
Get-FileHash DuneRealmsGUI/build/libs/DunerealmsGUI.jar -Algorithm SHA256

On Linux, from the repository root with Java 21 and Gradle 9.2.1 installed, run gradle --no-daemon -p DuneRealmsGUI test jar. Replace the module for other plugins. GUI compilation and tests were rerun successfully at 2e0df257. The local output SHA-256 was 80639ec86dd0d8ac7a73334a9f3b23c299e715b89f31869d068e391efef6d310. Record the hash of each build you hand off.

Module Output in that module's build/libs/
DuneEss DuneRealms-Essentials.jar
DuneKits (retired in cleanup branch) Historical output DuneKits-3.0.0.jar and DuneAtelierCompat-3.0.0.jar at baseline 2e0df257
DuneLobby DuneRealms-Lobby.jar
DuneNPC DuneRealms-NPC.jar
DuneRealms-minecraft-only DuneRealms-Core.jar
DuneRealmsGUI DunerealmsGUI.jar
DuneTerrain DuneRealms-Terrain.jar
JarvisConnector jarvistranslator.jar

.forgejo/workflows/plugins.yml built eight modules at the baseline and builds seven after merging the DuneKits cleanup on the DuneGit runner. The DuneRealms-Plugins artifact contains the JARs, SOURCE_COMMIT and SHA256SUMS. Compare the artifact commit with the reviewed commit. A compile check and an isolated Paper runtime check are separate steps. Use the exact installed server and dependency versions for runtime acceptance.

Access and tools

  • DuneGit is Forgejo at https://www.dunerealms.com/git/. unimatrix is the owner/admin account. dev is retained for coding. Use the OS Git credential helper or an owner-provisioned repository credential. The existing helper is keyed to git/dev/MC.git. Use the development remote for all coding pushes. Never embed bearer tokens in a URL or commit.
  • Composio has an authorised Gitea connection for DuneGit. Discover the exact supported tool and schema and verify the connected account before doing a write. Use Gitea tools for PRs and metadata, and Git for source. The owner-level Composio connection does not change the scope on the workstation's dev token. A repository-level admin response does not prove a token has write:user, write:issue or read:admin.
  • Gateway is the managed server-access path. Use list_servers, match the intended host, inspect server_capabilities, and follow any job ID through completion. Use stored values for secrets and Gateway's privilege approval when needed. Choose a typed tool where it fits, and use scoped SSH commands for application-specific work.
  • Credentials come from the owner, approved workstation helper, Composio connection or Gateway stored values. Keep key material, plaintext credentials, private bridge values and tokens out of Git, chat and build output. Keep the host and account details in this private handover.

Publishing flow

  1. Start in a clean checkout of dev/MC based on verified production main. Preserve uncommitted work before reconciling repositories. Confirm the pending PR before creating a work branch.
  2. Produce and test the smallest useful change. Stage only intended paths and review git diff --cached. Commit locally with a descriptive message. Push the task branch to dev/MC and reuse the existing development PR for its updates. Run builds and CI in development.
  3. The owner's policy is at most one open PR per repository. Use one coordinated build per release. Identify the relevant Forgejo Actions workflow and inspect overlapping push triggers before merging. Publish or deploy only when the task authorises it.
  4. Check the exact merged revision, Actions result, package names and checksums. A standalone JAR request ends with the requested JAR, source hash and build result. A publication request also needs the appropriate release workflow and verification.
  5. For an authorised native rollout, compare installed JARs/config with the reviewed release, preserve live-only patches and world data, and stage an isolated Paper test when runtime behavior changes. Roll out to the affected servers and confirm service readiness and the scenario itself. Release packs by immutable URL and expected hashes. Leave worlds and persistent data alone during JAR replacement.

Production main blocks direct pushes, including from admins, and only unimatrix can merge. Merge a complete update only after successful development CI and explicit owner authorization. The one-open-PR rule applies to both repositories. Server-side PR-cap enforcement is pending. The owner requested this cleanup without creating a backup.

How J.A.R.V.I.S. works

J.A.R.V.I.S. is DuneRealms' project-specific authority and action framework. The website defines rules, validates keys and actors, stores authoritative records and drives rewards. Minecraft GUIs and NPCs display the same information and submit typed actions. The Java translator bridges approved actions into native game adapters and returns verified results.

  1. Define the action in the existing domain. Find the relevant master action, request domain, quest definition, decision policy or war action. Reuse its input schema, permission model, purpose and owner. For quest dialogue, add role-specific metadata on the versioned definition. The GUI reads those fields and shows matching art when dialogue is absent.
  2. Resolve identity and permission centrally. Match the website actor and linked Minecraft UUID or authorised system identity. Resolve current memberships, offices and functional rights on each sensitive action. A portrait, NPC click, client request or position in a list never grants authority.
  3. Validate and redeem the typed key. Validate identifiers, scope, expiry, current eligibility and any usage limits against the central record. The internal PluginKey maps a validated domain action to fixed native commands and fields. Players do not supply arbitrary console commands.
  4. Execute with existing services. NPCs, GUIs, web forms and rosters use the same underlying actions. Native systems still own gameplay. The bridge uses existing server identity and private credentials. Each game server has its own native storage and receives projections needed for that server.
  5. Record actual proof and apply rewards once. Record genuine game events, item surrender, verified arrivals or posted settlements at the corresponding authority. A dispatch acknowledgement alone does not establish a completed delivery. Bind receipts to actor, action and source event, and preserve replay protection. The website and game read the resulting record.

Where to read the source

  • docs/audits/JARVIS-KEYGEN-20261119.md and the module JarvisConnector/README.md explain key and native adapter design. Some README omissions describe older rollout states. Cross-check the current implementation.
  • website/node/jarvis-master-generator.mjs, jarvis-master-generator-api.mjs, jarvis-key-validation.mjs, jarvis-request-domains.mjs, jarvis-identity.mjs and jarvis-web-key-boundary.mjs cover definitions, routing, identity and validation.
  • website/node/progression-pol-runtime.mjs and corresponding POL quest definitions implement quest progress and claims. The in-game adapters are in JarvisConnector and the NPC/quest views are in DuneRealmsGUI. Search the checked-out source for the exact quest ID and metric.
  • For POL: use the existing authority, ballot, ledger, native verification and eligibility modules. Keep government decisions and player quests distinct. For War: the website roster is authoritative, and the game reads/updates the same team registration. Apply the existing J.A.R.V.I.S. key to the intended team and verify capacity and duplicate acceptance centrally.
  • A feature can compile while its live adapter, pack or configuration is still pending. Check live JAR versions and route/receipt tests before declaring a runtime flow complete.