RustFS Agent Rules

An S3-compatible object storage system written in Rust.

On this page

Overview

RustFS states which instructions win, what actions need permission, and how much verification each change requires before reaching storage rules. Reviews need evidence, with stricter steps for adversarial validation and focused references for specific tasks.

Documents

├── AGENTS.md — The nearest scoped AGENTS.md
├── 
├── .agents
│   ├── references
│   │   ├── 
│   │   ├── 
│   │   └── 
│   └── skills
│       ├── *
│       │   └── SKILL.md — Task-matching repository skills
│       └── rustfs-logging-governance
│           └── 
├── .github
│   ├── 
│   └── 
├── crates
│   ├── audit
│   │   └── 
│   ├── config
│   │   └── 
│   ├── e2e_test
│   │   └── 
│   ├── ecstore
│   │   └── 
│   ├── iam
│   │   └── 
│   ├── kms
│   │   └── 
│   ├── notify
│   │   └── 
│   ├── object-capacity
│   │   └── 
│   ├── policy
│   │   └── 
│   ├── targets
│   │   └── 
│   └── 
├── docs
│   ├── architecture
│   │   └── 
│   └── testing
│       └── 
├── rustfs
│   └── src
│       ├── admin
│       │   └── 
│       └── storage
│           └── 
└── 

Patterns in this file

01 / Nested instruction files

Keep local invariants distinct from shared workflow

The nearest instruction file wins on domain invariants, but scoped guidance cannot replace the root verification tiers with a generic workspace gate. The file also says that skills cannot expand user authorization.

Source excerpt starting at line 13.
Nested instructions add to ancestor rules; they do not discard non-conflictingrules. A skill cannot expand the user's requested scope or grant authorization.

02 / Verification by change type

Scale verification to the final diff

Documentation, non-behavioral source edits, localized behavior changes, and broad cross-module changes have different checks. Broader gates are conditional, and successful umbrella checks should not be duplicated.

Source excerpt starting at line 68.
Select checks from the final task-owned diff. Scoped `AGENTS.md` files may add aconcrete path-specific check, but must not replace this tiering with a genericfull-workspace gate.

03 / Behavioral framing

Permit a review with no findings

The review guidance rejects a finding quota and requires checking callers, invariants, and tests for counterevidence. Missing tests are described as verification gaps rather than proof of a runtime defect.

Source excerpt starting at line 123.
A review has no finding quota; `No findings` is a complete outcome. A request tofind problems is not evidence that a defect exists. Before reporting a candidate,

04 / Hard prohibitions

Keep transient plans out of the durable knowledge base

One-shot plans and benchmark snapshots are distinguished from architecture, operations, and testing references. A named script enforces the boundary, making documentation placement an operational rule.

Source excerpt starting at line 61.
Do not commit one-shot plans, trackers, migration ledgers, benchmark snapshots,or agent scratch notes. Durable architecture belongs under `docs/architecture/`,

05 / Router files

Attach logging changes to a dedicated skill

The root defines level semantics, reusable fields, and restrictions on sensitive data. It sends logging edits to a specific governance skill for the detailed workflow.

Source excerpt starting at line 159.
Use `.agents/skills/rustfs-logging-governance/SKILL.md` for logging changes.

Ideas for your repo

  1. Write precedence separately for local invariants and shared workflow.
  2. Match verification to the effect of the final diff.
  3. Allow no-findings reviews and require counterevidence checks.
  4. Define which working notes belong outside the durable documentation.
Sponsored byModem

Give your agents the whole story.

These instructions explain how to work in RustFS. Modem shows your agents what customers said, who is affected, and what changed.

See how Modem works