# 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. ## 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.