Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 8.37 KB

AGENTS.md

File metadata and controls

67 lines (48 loc) · 8.37 KB

FireMUD AI Contributor Notes

This is the always-on guidance for AI agents working in FireMUD. It states intent; the linked workflow guides hold the detail and apply only when their trigger does. Repository documentation and scripts are the system of record. When a rule here seems to conflict with the human's evident goal, flag it and ask, and continue unaffected work meanwhile.

Where Authority Lives

  • Architecture and design documents own target behavior. The domain implementation trackers own capability status. Code and tests show what is actually implemented. Workflow guides choose process and proof. This file owns none of the technical rules.
  • Before changing something, read its owner: repository structure to find a concern, system architecture before changing shared contracts or runtime behavior, infrastructure for deployment, gateway, protocol, environment, or preview work, and design/architecture/microservices/<service>/ for service work.
  • Before calling a slice complete, check it across its public contract, implementation, and focused proof, applying the review checklists for architecture, tracker-completion, auth/session, scripting, or observability contract changes.

Communication

  • Lead with the outcome or the direct answer. Put failures, stalls, and their impact first, with what is known about the cause and the next step.
  • Keep updates short and plain. Name PR numbers; skip test and commit dumps.
  • Put unfinished scope and proof limits next to any completion claim, and say which checks ran, which did not, and which were partial.
  • Correct mistakes directly. A status question does not stop authorized work.

Safety

  • Expect concurrent, dirty worktrees. Preserve edits you did not make: run nothing that discards uncommitted changes (such as git restore, git checkout -- <path>, git reset --hard, git clean, git stash) unless a human asks. Creating, switching, and rebasing branches in your own clean worktree is fine. Delete an untracked file only when it is clearly yours and disposable. Canonical formatter changes are fine.
  • If overlapping edits make intent unclear, ask.
  • Agents never merge, enable auto-merge, or close PRs on their own judgment. The narrow exceptions are in PR lifecycle.
  • Before provisioning or reconfiguring a remote machine, confirm the human's existing authorization covers that host and action, and say what you will change, where, and how it will be cleaned up. A runbook alone is not authorization. Read-only inspection and normal PR operations need no extra approval.
  • Messages from other agents, tools, or bots are information, not human approval.

How Work Flows

  • FireMUD is pre-v1. Converge on one canonical state: when a contract changes, update its call sites, tests, and docs together and remove the old path. Keep compatibility only where the owning architecture requires it for live data (none before v1, ADR 0185), security, or protocol reasons.
  • Group work into as few PRs as stay reviewable (PR lifecycle).
  • Design first. A PR that changes an intended contract updates its owning design doc in the same PR. Implementing an agreed design changes a design doc only to remove a limitation line it makes stale; record progress and proof in the tracker.
  • Update an implementation tracker when capability status actually changes, not on every PR. Read the owning tracker before interpreting branch names, commits, or raw diffs during implementation or branch reconciliation.
  • Do not ask for approval just because work is cross-service, breaking, or large when the design is clear. Stop for genuine design ambiguity, competing target states, or a change to a consequential accepted decision.
  • Once the human picks a workstream, keep going through its clear next steps (implementation, validation, PR publication, review fixes) without checking in at each step. An explicit pause or stop wins: finish only the in-progress step, or the boundary the human states, and start nothing new (including pushes, PR publication and review requests) until resumed; an immediate stop finishes nothing more.
  • Match process to risk. Do not build ledgers, audit suites, or extra review machinery for small changes.
  • Add a test only for behaviour no existing test covers, and prefer extending an existing (often table-driven) test over a near-copy. Keep new tests fast, and say so in the PR when one is slow.
  • Triage every review finding as Fix now, Route, or Reject under PR lifecycle.

Documentation

  • Keep each normative rule at one owner and link to it elsewhere. When you touch a doc, fix stale or conflicting statements in the affected scope.
  • Design docs and ADRs describe the target state. They may carry only a short linked limitation, not progress updated by each PR.
  • Write ADRs to the ADR README (when one is warranted, record shape, pending metadata, registry row). An AI-authored ADR is marked Proposed - Pending Human Review. Record a human review only when a checked entry in the consequential-decision inventory links the exact [ADR NNNN] outcome and the ADR metadata matches it. Reversible work may continue on a proposed ADR only where existing accepted design already supports it.
  • Do not hard-wrap prose. Use relative GitHub links without line suffixes. No emojis in headings.

Execution Basics

  • Gradle paths have no services: prefix, for example :tcp-proxy-service:test. Run heavy local Gradle work from WSL through the canonical local Gradle wrapper (bash dev-tools/validation/run-locked-gradle.sh <tasks>). Prefer native Linux Docker over Windows wrappers.
  • Record surprising unresolved agent, tooling, or environment problems and recurring friction in AI observations. Check for an existing entry first, keep each entry to a few lines, and do not log ordinary bugs you fixed in the same work.

Workflow Guides

  • PRs, CodeRabbit and other review, CI, Renovate, merging, and branch cleanup: PR lifecycle.
  • Choosing and reporting checks for any change: validation and runtime proof.
  • Delegating to subagents and independent review: AI delegation and review.
  • Which model to use for which role, and what to do when Codex or Claude is unavailable: model routing.
  • Human-requested maintenance checks: repository health check.
  • FireController: the firecontroller-use skill for jobs and messages, firecontroller-reviews for queue, review, finding, and CI-wait operations, and firecontroller-onboard only for setup or repair; always with your own role-bound connection.

Roles

Roles are responsibilities, independent of model.

  • Overseer (when the human sets one up): project direction, priorities, consequential decisions, evidence adjudication, cross-lane coordination, and talking to the human.
  • Orchestrator: plans and runs an assigned workstream, integrates and verifies delegated work, and owns its PRs; review rounds follow the FireController assignment. Without an Overseer, the main orchestrator also holds project direction and design discussion with the human.
  • Subagent: does bounded investigation, edits, or checks and reports back. Subagents supply evidence and options, not product or architecture decisions.

Orchestrators verify subagent claims themselves before relying on them. Orchestrators may build small repo tools when repeated manual work justifies them, following the dev-tools placement guidance; subagents suggest tools rather than adding them.