agentleFS
mxsmmxsm/rocketmq-rust/AGENTS.md

rocketmq-rust

AGENTS.md1.5k starsChanged 5 months agoApache-2.0View on GitHub

- Direct user instructions take precedence over repository and skill guidance. - Root engineering rules apply throughout the repository. The nearest AGENTS.md selects local commands and exceptions; its validation profile replaces the root fallback rather than accumulating full profiles. - Apply only instructions relevant to the files and behavior being changed. Resolve routine choices within the authorized scope and continue; ask only when missing information materially changes the outcome. - If an instruction actually blocks authorized work, identify its file…

Trending

Quiet since March.thin dataabout the whole repository

Dec 2025: 1 mentionJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the mxsm/rocketmq-rust repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about mxsm/rocketmq-rust

The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 9

Talked about on GitHub and Bluesky (9 times).

On GitHub · 5

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

28 rules. About 0 are common, 17 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If an instruction actually blocks authorized work, identify its file and explain the specific conflict.

    line 10
  2. Distinctive:

    Before editing, inspect relevant files, the nearest guide, and git status --short.

    line 39
  3. Distinctive:

    Keep changes scoped. Follow existing modules, naming, error handling, and test style.

    line 41
  4. Very specific:

    Prefer rg / rg --files and patch-style manual edits.

    line 43
  5. Distinctive:

    Do not create commits, branches, PRs, releases, or remote changes unless the user asks.

    line 45
  6. Distinctive:

    Keep the repository's Apache 2.0 header on new Rust files.

    line 54
  7. Very specific:

    Keep features additive and optional dependencies explicitly gated.

    line 55
  8. Distinctive:

    Treat public APIs, request/response codes, headers, Serde fields/defaults, and persisted layouts as compatibility surfaces.

    line 57
  9. Distinctive:

    Prefer enums, config/request structs, builders, and newtypes over ambiguous booleans, numeric modes, or long positional APIs.

    line 59
  10. Very specific:

    Document non-obvious public invariants and applicable # Errors, # Panics, and # Safety contracts.

    line 62
  11. Distinctive:

    Use exhaustive matches for project-owned, compatibility-sensitive enums.

    line 63
  12. Very specific:

    Prefer native async trait methods.

    line 65
  13. Very specific:

    Use typed errors for recoverable input, I/O, network, storage, protocol, and lifecycle failures.

    line 68
  14. Very specific:

    Do not add todo!, unimplemented!, or recoverable-path panic/unwrap/expect.

    line 69
  15. Very specific:

    Keep unsafe regions minimal with an immediately preceding // SAFETY: explanation.

    line 71
  16. Very specific:

    Never hold synchronous lock guards across .await.

    line 77
  17. Very specific:

    Prefer #[tracing::instrument(skip_all, ...)] with explicit, low-cardinality fields.

    line 78
  18. Distinctive:

    Default completion means the affected code compiles, relevant behavior is verified, and intended Rust files pass a package-scoped format …

    line 86
  19. Distinctive:

    After relevant checks pass, finish the task.

    line 90
  20. Distinctive:

    Keep async tests deterministic with synchronization or virtual time, avoiding sleeps, fixed ports, and external services where practical.

    line 92
  21. Distinctive:

    Do not run a mutating workspace-wide formatter while unrelated Rust files are dirty.

    line 94
  22. Distinctive:

    No SHA, file hash, fingerprint, fixed checkout, clean-worktree, historical-baseline, or score requirement is part of routine development.

    line 95
  23. Distinctive:

    Do not kill unrelated Cargo/rustc processes.

    line 99
  24. Very specific:

    When useful for the change, run cargo clippy -p <package> --no-deps -- -D warnings with the affected features/targets.

    line 111
  25. Distinctive:

    Use current manifests to identify consumers when APIs, features, wire/storage contracts, or shared behavior change.

    line 120
  26. Distinctive:

    Keep paired Markdown/HTML artifacts aligned.

    line 134
  27. Very specific:

    Use the relevant project skill for issue generation, PR preparation, substantial Rustdoc, or English-to-Chinese translation under …

    line 139
  28. Distinctive:

    Keep the final response concise: what changed, relevant validation results, and any material limitation.

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Scope and precedence

  • Direct user instructions take precedence over repository and skill guidance.
  • Root engineering rules apply throughout the repository. The nearest AGENTS.md selects local commands and exceptions; its validation profile replaces the root fallback rather than accumulating full profiles.
  • Apply only instructions relevant to the files and behavior being changed. Resolve routine choices within the authorized scope and continue; ask only when missing information materially changes the outcome.
  • If an instruction actually blocks authorized work, identify its file and explain the specific conflict.

Repository map

The root Cargo.toml [workspace].members list owns the main Cargo workspace. Standalone Cargo and Node projects require their own commands. Consult the matching local guide when working in these paths:

PathRole / local guide
rocketmq-dashboard/rocketmq-dashboard-common/Root workspace member; this guide
fuzz/Fuzz targets
rocketmq-example/Standalone examples
rocketmq-macros/tests/fixtures/renamed-consumer/Renamed dependency fixture
rocketmq-ai/rocketmq-mcp/Read-only MCP
rocketmq-ai/rocketmq-mcp-control/Isolated mutation control
rocketmq-ai/rocketmq-sre/Standalone SRE workspace
rocketmq-ai/rocketmq-sre/ui/SRE frontend
rocketmq-ai/rocketmq-sre/sdk/typescript/Read-only TypeScript SDK
rocketmq-dashboard/rocketmq-dashboard-gpui/Standalone native dashboard
rocketmq-dashboard/rocketmq-dashboard-tauri/Tauri frontend
rocketmq-dashboard/rocketmq-dashboard-tauri/src-tauri/Tauri backend
rocketmq-dashboard/rocketmq-dashboard-web/Web dashboard boundary
rocketmq-dashboard/rocketmq-dashboard-web/backend/Web backend
rocketmq-dashboard/rocketmq-dashboard-web/frontend/Web frontend
rocketmq-website/Docusaurus site
rocketmq-website/examples/first-message/Standalone first-message tutorial

Working agreement

  • Before editing, inspect relevant files, the nearest guide, and git status --short.
  • Preserve existing user changes. Do not overwrite, revert, or reformat unrelated work.
  • Keep changes scoped. Follow existing modules, naming, error handling, and test style; avoid incidental refactors, dependency upgrades, and configuration churn.
  • Prefer rg / rg --files and patch-style manual edits. Use normal generators and formatters for their outputs.
  • Complete authorized implementation and necessary verification without repeated permission requests. Do not create commits, branches, PRs, releases, or remote changes unless the user asks.
  • Missing optional tools or unrelated historical failures should not block independent work. Use a documented setup path when needed; do not change dependencies or lint/CI settings just to bypass a failure.

Rust engineering

  • Respect the selected toolchain, MSRV, rustfmt.toml, and .clippy.toml. Toolchain changes must keep affected manifests and CI aligned. Preserve each project's edition: the root defaults to Rust 2021, while rocketmq-tools/rocketmq-admin/rocketmq-admin-cli/ uses Rust 2024; fuzz/ remains Rust 2021.
  • Keep the repository's Apache 2.0 header on new Rust files.
  • Keep features additive and optional dependencies explicitly gated. Preserve default behavior and test the changed feature combinations; --all-features does not replace feature-absence tests.
  • Treat public APIs, request/response codes, headers, Serde fields/defaults, and persisted layouts as compatibility surfaces. Semantic changes need an explicit decision and migration approach.
  • Prefer enums, config/request structs, builders, and newtypes over ambiguous booleans, numeric modes, or long positional APIs. Keep modules private and exports intentional; preserve needed compatibility through narrow wrappers.
  • Document non-obvious public invariants and applicable # Errors, # Panics, and # Safety contracts. Use exhaustive matches for project-owned, compatibility-sensitive enums.
  • Scope new lint allowances narrowly and give a reason. No broad warning suppression. Prefer native async trait methods; do not add #[async_trait].
  • Roughly 500/800 effective lines are module review signals, not size gates. Split by behavior when useful; do not split unrelated code just to satisfy a count. Comments should explain invariants and decisions.
  • Use typed errors for recoverable input, I/O, network, storage, protocol, and lifecycle failures. Do not add todo!, unimplemented!, or recoverable-path panic/unwrap/expect. Production panic facades require a documented invariant or a fallible compatibility API; tests may use assertions and unwraps.
  • Keep unsafe regions minimal with an immediately preceding // SAFETY: explanation. Safe wrappers establish their own invariants; caller obligations require an unsafe API and safety contract.
  • Own background work through ServiceContext, TaskGroup, or an established lifecycle owner. Shutdown cancels and awaits owned work. Route blocking work through BlockingExecutor or an established top-level boundary; do not add detached tasks, ad hoc runtimes, nested block_on, or raw spawn_blocking. Explain any new ownership boundary in the change, without requiring a fingerprint/baseline ceremony.
  • Never hold synchronous lock guards across .await. Keep lock scopes and hot-path allocations small.
  • Prefer #[tracing::instrument(skip_all, ...)] with explicit, low-cardinality fields; attach existing spans at call sites only intentionally. Never log credentials, ACL/TLS material, tokens, message bodies, or entire request/config objects; avoid unsampled per-message spans.
  • Preserve the security and product boundaries defined in local MCP, MCP-control, SRE, and dashboard guides. Lighter development checks do not change runtime authorization, audit, or protocol behavior.

Development validation

  • Default completion means the affected code compiles, relevant behavior is verified, and intended Rust files pass a package-scoped format check. For behavior changes, reuse or add focused regression coverage.
  • Select the smallest useful target and actual feature set. A test or Clippy run that compiles the affected target can satisfy the compilation check; do not repeat cargo check solely to complete a checklist.
  • After relevant checks pass, finish the task. Broaden or repeat only for new edits, failures, or a concrete unresolved risk. Do not add tests that merely restate constants or mirror low-impact implementation details.
  • Keep async tests deterministic with synchronization or virtual time, avoiding sleeps, fixed ports, and external services where practical.
  • Do not run a mutating workspace-wide formatter while unrelated Rust files are dirty.
  • No SHA, file hash, fingerprint, fixed checkout, clean-worktree, historical-baseline, or score requirement is part of routine development. Do not demand all historical findings be cleared before delivering a fix.
  • Report actual results. Address regressions caused by this change; briefly record unrelated failures, missing optional tooling, and untested scope without claiming a pass or expanding into unrelated repairs.
  • Do not kill unrelated Cargo/rustc processes. Allow relevant work to finish within a reasonable task timeout.
  • Pure documentation/instruction changes need only relevant document/script checks. Run Rustdoc or example checks when executable examples or public documentation links could break; website content uses its guide.

Root-workspace commands to select from (replace placeholders; these are not an all-targets checklist):

cargo fmt -p <package> -- --check
cargo check -p <package>
cargo test -p <package> <test_name>

When useful for the change, run cargo clippy -p <package> --no-deps -- -D warnings with the affected features/targets. A routine final response or PR preparation does not automatically require full-workspace Clippy, all features, or every specialized suite. Existing CI runs retain their actual requirements.

For a standalone Cargo project without more specific commands, use cargo fmt --all -- --check, cargo check, and a focused cargo test <test_name> from its root, selecting only relevant work as above.

Shared changes and integration

  • Use current manifests to identify consumers when APIs, features, wire/storage contracts, or shared behavior change. Validate the directly affected consumers and scenarios; a local internal edit does not automatically trigger all standalone projects or fuzz targets.
  • Runtime ownership changes need relevant cancellation/shutdown/resource tests. Error mapping changes need relevant error/redaction tests. RocksDB and telemetry changes need their affected feature combinations.
  • Full-workspace Clippy, feature matrices, metadata consumer audits, long fuzzing, interoperability, performance, and deployment/fault tests belong to the corresponding integration, CI, or release task. Select them when the task requires that evidence.
  • See validation reference only when choosing specialist or integration checks; its command lists are not cumulative local gates.
  • For changes to project layout, AGENTS routing, or the routing scripts, run the lightweight .\scripts\check-agents-routing.ps1 or bash ./scripts/check-agents-routing.sh, plus git diff --check. The checker covers paths and instruction/workflow existence, not command wording or source identity. See the routing ADR.
  • Keep paired Markdown/HTML artifacts aligned. Do not commit build output, audit artifacts, logs, coverage, Node build directories, or other temporary validation output.

Project skills and reporting

  • Use the relevant project skill for issue generation, PR preparation, substantial Rustdoc, or English-to-Chinese translation under .agents/skills/. Read only the skill needed for the task; keep edited duplicate .agents/skills/** and .claude/skills/** copies aligned.
  • Keep the final response concise: what changed, relevant validation results, and any material limitation. Include command details needed to reproduce a failure; summarize routine successful checks. Mention unrelated worktree changes only when they matter.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.