web/AGENTS.md

11 KiB

DuneRealms default working instructions

These are the user's default preferences for future DuneRealms work. Apply them unless the user changes them.

Production release rules

  • Owner direction, 29 November 2026: unimatrix/web:main is website-only production; unimatrix/plugins:main owns plugins, resource packs and game-server deployment. This supersedes the historical combined-repository instruction. dev/MC remains a development reference until separately migrated. Preserve uncommitted work when reconciling checkouts.
  • Keep at most one open pull request per repository. Reuse it for follow-up commits. Direct pushes to main are prohibited. Merge completed changes only after successful CI and explicit owner authorization.
  • Every plugin change goes through a build from a recorded Git commit. Record each JAR filename, plugin version and SHA-256 in the release manifest. Roll out the exact tested artifacts and verify their hashes against the installed JARs.
  • Treat any mismatch between the production source, the build manifest and the installed plugins as release drift. Reconcile the source and retest before a replacement rollout. Avoid manual edits or class overlays on live JARs.

Tools and access

  • Prefer the connected Composio Gitea/Forgejo integration for DuneGit repository reads, pull requests, workflow dispatch, CI status, and deployment actions.
  • Discover the actual tools and schemas before use. Do not assume that a GitHub tool targets DuneGit.
  • Use local Git for local edits, diffs, commits, and efficient pushes of tested local changes. This does not require SSH access to the server.
  • Use direct SSH only for server operations that repository/CI tools cannot perform. Keep SSH use minimal. Do not require Gateway when it is unavailable or its quota is exhausted.
  • Never save passwords, private keys, tokens, or credential-bearing URLs in instructions, commits, logs, or PR descriptions.

Small batches through CI

  • Implement, check, commit, and publish small coherent batches as work progresses. Do not hold all completed work until the entire feature is finished.
  • Reuse existing infrastructure, permissions, audit records, and payment/voting mechanisms wherever possible.
  • Run checks appropriate to each batch. Fix failures caused by the change before publishing. Report any existing unrelated failures accurately.
  • Push changes to the current development branch. Update the existing pull request until the agreed scope is complete.
  • Deploy verified batches through the established website CI and deployment pipeline. A workflow dispatch being accepted, or an artifact being uploaded, does not establish that production is updated.
  • Follow CI and deployment through completion, then verify the live release and affected behavior before claiming it is live.
  • If a dispatch reports an error after HTTP 204, or a write times out, inspect the resulting run/remote state before retrying. Avoid duplicate writes or deployments.

Protect existing progress

  • Inspect the working tree and remote branch heads before changing branches or publishing. Preserve unrelated edits and work in progress.
  • Explicitly fetch the intended remote branch ref into its tracking ref when needed, and verify it matches the remote head. Do not assume a plain fetch refreshed an old tracking branch.
  • Never restore an old release, force-push, hard-reset, replace live files from an old backup, or resolve conflicts by discarding newer work merely to make deployment pass.
  • Stop and diagnose unexpected ancestry, missing files, or modify/delete conflicts. Preserve the current state; do not force a merge or push.
  • Keep backups outside the source tree and do not copy credentials into ordinary build artifacts.
  • Do not run broad cleanup, destructive migrations, or financial transactions unless the user has authorized the actual action.

Collaboration and product behavior

  • Continue authorized work without repeated permission questions or handoffs. Do not switch to Work mode.
  • Give concise progress updates describing results, blockers, and the next useful step.
  • Preserve existing working voting and banking behavior. Personal voting rights are absolute; organisation voting changes must not transfer personal votes.
  • Place new features in the existing navigation structure when an item already exists. Avoid duplicate menus.
  • Use the established CP design, readable colors, gold framing, and appropriate original Dune/Minecraft-inspired artwork. Company CP uses the Vaerkring/Spacing Guild-inspired palette.
  • Clearly mark unfinished features as coming soon. Do not display invented records, offers, payments, or completed actions.

J.A.R.V.I.S. data-operation workflow (2026-11-18)

  • Use Git, reviewed batches and CI for changes to files, code, schemas and action implementations.
  • Perform supported user/domain data changes through validated J.A.R.V.I.S. actions and instruments. Do not use ad hoc SQL/manual database editing as an operational shortcut.
  • Special dev keys are server/CLI-only overrides bound to an exact action manifest, environment, authorised developer identity and short validity. Never expose their issuance, secrets or execution through website routes, dropdowns or web APIs, including Big 4 accounts.
  • An ordinary code is not authority. Revalidate identity, action scope and domain conditions on execution. Keep irreversible actions explicit in the manifest.
  • Record issuance ID/hash, actor, manifest hash, each result, failures and completion; never log a secret key. Enforce once-only execution and safe retries/rollback.
  • Existing supported data actions require no PR/deployment per execution. New action logic still requires tests, Git and publication.
  • Never call a verifier-only test a successful live operation. Report local, simulated, staged and executed states accurately.
  • Seasonal changes use an explicit versioned dev batch. Preserve/reset decisions are per-season configuration, not automatic consequences of every deploy.
  • Honour the approved reset exclusions: official/protected organisations and the owner's clan/company rosters; no broader reset unless explicitly requested. No Minecraft code or deployment in this web/backend batch.

Current priority: implement and test the server-only dev-key executor, starting with the authorised clan-reset batch. Keep special dev tools outside the website package.

Masterkey reuse before new code

  • Before implementing a page or action, read website/control-panel/public/jarvis-master-keys.mjs and its existing domain adapter. Reuse an existing action rather than duplicating its flow.
  • Register every new key-backed action in that catalogue in the same change, with version, typed fields, domain rules, authority and execution status. Never claim a catalogue entry is executable before its adapter is connected.
  • The website generator cannot generate or modify developer keys, including for owner/Big 4 accounts. This is a fixed server boundary, not an assignable permission. An issued devkey can only be used through its separately permitted execution route. Developer issuance remains outside the website package.

Chat-requested keys must update web keygen

  • Whenever the user requests a key here in the development chat, find its mastertemplate and execution flow first. If absent, add the versioned template, typed fields and validated domain adapter, then update/publish the web generator as part of fulfilling that request. Reuse existing flows when present.
  • This trigger is a chat request, not website-submitted arbitrary flow code. The website cannot create new execution logic from user input.
  • Developer keys remain an absolute exception to web issuance: keygen must never generate or modify them, including for owner/Big 4. Devticket requests may collect a requested action and approval; developer issuance remains in the separately authorised development flow.

Developer keys are the last resort

  • For every requested operation, first search the masterkey catalogue and existing domain actions for a normal scoped key that achieves the same authorised result. Prefer it over a developer key.
  • Do not broaden an ordinary key, bypass its permission checks, or disguise developer capabilities as a normal template to avoid this boundary. If no suitable ordinary flow exists, a separately approved developer ticket/key may be considered through the developer-only route.

User-requested batch tracking (24 November 2026)

  • Before starting each implementation batch, create one Development task ticket through the existing validated private support workflow. The user explicitly authorises automatic approval of these batch tickets.
  • Group at least three genuine user requests in a batch; do not count individual technical edits as separate requests. War is one request, POL missions and POL decisions are the other two requests in the current batch.
  • Include the scope checklist, verification plan, PR/commit and actual live-release evidence in that ticket. Update its progress and complete it only when its stated scope is actually live and verified.
  • Placeholder pages must be explicitly marked as previews and include all appropriate DuneRealms artwork. Preserve working actions while the remaining consumers are built.

Latest owner direction: portal and control-panel redesign (24 November 2026)

  • The owner said “negeer tickets”: skip ticket creation; it must not block work.
  • Current priority is the public portal preview before further CP redesign. The owner explicitly wants to keep the current site if unsatisfied: do not replace the live homepage before design acceptance.
  • Use the supplied green/gold portal image as inspiration, not an immutable layout. Preserve the existing logo, seals, awards and avatars. Other layouts, menus and artwork may be redesigned, including the CPs.
  • Reduce the number of control panels and unify their design, but do not cram everything into one panel. Personal services, organisation management and staff need distinct, understandable workspaces.
  • The POL backend can retain its existing service contracts independently of presentation changes. The tested political-war backend batch remains on PR 563, separate from this design preview.
  • Existing hostnames are sufficient for this preview. Discuss a new hostname only if implementation actually needs it.

Accepted full-site scope (24 November 2026)

  • Portal design accepted. Apply the approved shared style throughout the site, Exchange and control panels, then finish the backend.
  • User comfort takes priority: short navigation, readable labels, accessible mobile controls and clear back paths.
  • Consolidate clan/company/POL presentation in an organisation workspace; personal and staff remain separate. Preserve all domain permissions and deep links.
  • Latest bans and appeals belong on a separate Community page. Keep original logos, seals, awards, avatars and the approved travel picker.

Backend integration after design acceptance

  • Preserve the accepted site redesign. Continue the authorised war, POL missions and POL decisions through their existing service contracts.
  • Ticket creation remains skipped by the explicit owner override.