Trustabl Rulebook MCP Server

by trustabl• 51•• Scanned•Claim this listing•Request removal
Security & Testingadkanthropicautogenclaudecrewai

Agent reliability rulebook: the threat model and rationale behind each Agent Reliability Analyzer rule

Trustabl Rulebook is an open-source mcp server by trustabl, written mainly in Python, with 51 GitHub stars and the GPL-3.0 license. Its code was last updated Oct 29, 2026.

trustabl-rulebook

rulebook

Index and rationale docs for the trustabl static analyzer's policy ruleset. Canonical YAML rules live in trustabl/agent-reliability-rules — this repo links into them and explains the threat model behind each rule.

Coverage spans eight agent frameworks, a protocol-level rule family for the Model Context Protocol, and a family for Claude Skills:

What lives here

PathPurpose
POLICY_INDEX.mdMaster table of every shipped rule across all SDKs
<sdk>/POLICY_INDEX.mdPer-SDK rule index
docs/Policy/Paired rationale docs (threat model, detection, references)
docs/policy-rationale-doc-template-guide.mdAuthoring template for new rules + rationale docs

ID scheme

ID prefix denotes SDK; numeric range denotes scope.

RangeScope
NNNtool
1NNagent / subagent
2NNrepo

CSKILL-* is the exception: every rule in that family is skill-scope, so its numeric ranges group rules by topic rather than by scope.

Risk score = severity_weight × confidence × 100. Weights: critical=1.0, high=0.70, medium=0.40, low=0.15, info=0.05. Higher = worse.

Current totals

Counts are generated, not maintained here — that is what keeps them honest. POLICY_INDEX.md carries the per-family breakdown by scope and the full rule table; <sdk>/POLICY_INDEX.md carries the same for one family. Both are a pure projection of the shipped pack, regenerated by tools/gen_index.py and verified in CI by tools/gen_index.py --check.

Rationale coverage is likewise enforced rather than described: tools/check_rulebook.py --strict fails the build when a shipped rule has no rationale doc, when a doc's severity/confidence/scope (front-matter or rule heading) disagrees with the pack, or when a doc omits a required section, a rule heading or the **Rules:** header line. A green CI run means every rule in agent-reliability-rules is documented here.

Using the rulebook

This repo is documentation only — it contains no rule YAML and the trustabl engine never reads it. The engine resolves rules from trustabl/agent-reliability-rules: at scan time it clones the configured ref and caches it under os.UserCacheDir()/trustabl/rules/<sha>/. The rulebook exists so a human can look up why a rule fires (the threat model and references) without reading the engine source.

To run a scan against a different rules pack or pin a version, point the engine at an agent-reliability-rules repository/ref with --rules-repo / --rules-ref (or the TRUSTABL_RULES_REPO env var); --no-rules-update uses the local cache only. See the trustabl engine README for the full flag list.

Contributing a rule

A rule spans three repos. The YAML lives in agent-reliability-rules; the rationale doc lives here; the test mirror lives in the engine.

  1. Read the rule-authoring contract in agent-reliability-rules/CLAUDE.md — required fields, per-scope applies_to values, ID conventions, severity guidance.
  2. Add the YAML rule to agent-reliability-rules under <sdk>/<topic>.yaml.
  3. Copy the template from docs/policy-rationale-doc-template-guide.md, fill every section, and add the paired rationale here at docs/Policy/<sdk>/<topic>.md.
  4. Mirror the rule into the engine repo's testdata/rules-fixture/ with at least one fire case and one silent case (see the engine's testdata/rules-fixture/CLAUDE.md, "Add a rule for X").
  5. Open the PRs. The rule appears in POLICY_INDEX.md once the rulebook PR merges.

Companion repos

Trustabl Rulebook alternatives

View more →

Similar mcp servers in Security & Testing, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Trustabl Rulebook (this page)
trustabl
51GPL-3.0Oct 29, 2026Scanned, no flagged issues
Hexstrike AI
0x4m4
13kMITAug 3, 2026Scanned, no flagged issues
Viper
FunnyWolf
5.3kNone foundMay 31, 2026Not scanned yet
Open Ontologies
fabio-rovai
2.7kMITOct 30, 2026Scanned, no flagged issues
Qu1cksc0pe
CYB3RMX
2.1kGPL-3.0Sep 18, 2026Scanned, no flagged issues
Cve MCP Server
mukul975
1.7kApache-2.0Oct 1, 2026Scanned, no flagged issues