Skip to content
Public template

About

Formatting, style, and engineering standards

Topics

Resources

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

833 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

small_manifest_logo

English | Русский

CI Version MSRV License Docs

A Rust review engine where no finding is a matter of taste.

RustManifest records facts about your code — call edges, reads and writes, outside-world effects, value provenance — and derives every finding from those facts. Each result carries a rule id, a severity, an exact location, and a rustmanifest:// rationale URI that resolves to the methodology section behind it, plus the engine's own reasoning trace. You can verify every claim, or you did not get it from this engine.

Why it is different

  • Facts, not opinions. Rules are executable checks over a recorded fact base (AST, module graph, type graph, behavioral and value facts), not regexes over source text.
  • No clippy duplication. Where clippy is strictly better, the engine delegates (check --delegate-clippy) instead of reimplementing.
  • Every finding is traceable. trace shows the fact/reason chain; explain RM-SEC-001 prints the severity, tier, and methodology excerpt.
  • Built for agents. A stdio MCP server and a Claude Code skill expose the same understanding to LLM clients — findings, facts, overviews, intents — with the same rationale URIs.

Quick start

Not on crates.io yet; install from source:

cargo install --git https://github.com/RAprogramm/RustManifest --bin rustmanifest --bin rustmanifest-mcp
rustmanifest check src/ --format tty
rustmanifest overview src/
rustmanifest explain RM-SEC-001

Exit codes: 0 clean, 1 findings present, 2 operational error, 3 question refused because facts are insufficient — check is CI-shaped out of the box (--format sarif for code scanning).

What the CLI knows

Command Answers
check run the rules pack over a path (--fix, --format json/sarif/tty)
explain full derivation of a rule: severity, tier, rationale URI, excerpt
overview everything the engine knows about a path in one report
report everything the engine knows about the program in one pass
meaning what the program does for an observer outside the process
ask step-by-step effect inference: ask main net, ask load fs
facts per-function behavioral facts as JSON (reads, writes, calls, effects)
graph module or type dependency graph
prescribe the canonical form the rule asks for, and what it buys
coverage how much of the code the fact base actually resolved
learn conventions learned from the codebase itself
audit orchestrate tier-3 external verification tools (pr / nightly profiles)
versions check version synchronisation across the workspace (--fix for ra_ap alignment)
document emit the compiler documentation index for the workspace
resolve produce a resolution overlay for type/call-aware analysis

MCP server

rustmanifest-mcp speaks JSON-RPC over stdio and reads paths inside its workspace root. Add it to any MCP client:

{
  "mcpServers": {
    "rustmanifest": { "command": "rustmanifest-mcp" }
  }
}

Thirteen tools: review_file, review_path, check_rule, lint_structure, explain_rule, project_overview, function_facts, suppressions, deduce_trait, derived_intents, whence_value, why_kept, learn_conventions.

Claude Code skill

Install the bundled review skill through the plugin marketplace:

/plugin marketplace add RAprogramm/RustManifest
/plugin install rustmanifest-review@rustmanifest

The skill drives the engine for reviews, effect tracing, blast-radius analysis, boundary gates, intent backlogs, store audits, onboarding tours and structural fact lookups — every answer cites engine output you can re-run.

Editors

An LSP server (rust-manifest) is available in crates/rustmanifest-lsp; integrations for VS Code and RustRover live in editors/. The LSP crate is currently a skeleton, so editor support is still evolving.

Documentation

Workspace crates

rustmanifest-schema — canonical JSON Schemas and Rust types

Version MSRV License docs.rs

Rule, Finding, Config, MethodologyResource. Release-plz: enabled.

rustmanifest-rules-core — default rules pack and fixtures

Version MSRV License docs.rs

Rules parsed from the methodology and bundled with fixtures. Release-plz: enabled.

rustmanifest-engine — tiered analysis engine

Version MSRV License docs.rs

Pattern, AST, and semantic analysis tiers. Release-plz: enabled.

rustmanifest-config — rustmanifest.toml loader and resolver

Version MSRV License docs.rs

Profiles, overrides, and pragmas. Release-plz: enabled.

rustmanifest-report — output renderers

Version MSRV License docs.rs

JSON, SARIF 2.1.0, and TTY renderers. Release-plz: enabled.

rustmanifest-mcp — MCP server

Version MSRV License docs.rs

Exposes the engine as MCP tools, resources, and prompts. Release-plz: enabled.

rustmanifest-lsp — LSP server (skeleton)

Version MSRV License docs.rs

Editor integration over LSP. Release-plz: enabled.

rustmanifest-cli — command-line frontend

Version MSRV License docs.rs

The rustmanifest binary. Release-plz: enabled.

rustmanifest-ci — CI generator

Version MSRV License docs.rs

Generates per-platform CI configuration. Not currently listed in release-plz.toml.

rustmanifest-eval — evaluation harness (internal)

publish = false. Evaluation harness for corpus runs, baselines, and performance budgets.

rustmanifest-learn — interpretable learning layer

Version MSRV License docs.rs

Tsetlin clauses over the behavioral fact base. Release-plz: enabled.

rustmanifest-resolve — resolution overlay

Version MSRV License docs.rs

Name and type resolution overlay from a loaded cargo workspace. Not currently listed in release-plz.toml.

rustmanifest-workspace — workspace discovery and publish order

Version MSRV License docs.rs

Cargo workspace discovery, publishability, and dependency-first publish order. Release-plz: enabled.

rustmanifest-fixture — test fixture support (internal)

publish = false. Compiler-settled test fixture support.

Quality

Hardened CI: MSRV gate, clippy at deny (all/pedantic/nursery/cargo), cargo-audit/cargo-deny, miri, sanitizers, cargo-careful, fuzzing, cargo-geiger, plus self-analysis of this repository by the engine itself. MIT licensed, REUSE 3.x compliant.

About

Formatting, style, and engineering standards

Topics

Resources

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Sponsor this project

Contributors

Languages