MC/AGENTS.md
2026-11-16 05:36:29 +01:00

3.9 KiB

DuneRealms default working instructions

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

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 user's current feature/PR branch. Keep the ongoing feature PR open until the entire agreed scope is finished; PR #337 is the ongoing Alpha 1.0.0.9 PR until the user changes this.
  • 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 deployment requires main while the umbrella PR must stay open, use a separate release branch/PR containing only the completed batch, based on freshly fetched current main. Do not merge or close the umbrella PR prematurely.
  • 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.