Rules & Capabilities Matrix

Filter all 8 deterministic AST rules (RH001–RH008), 5 MCP tools, resources, prompts, and CLI subcommands.

Showing 20 of 20 capabilities
ID / Symbol Category Severity / Scope Deterministic Behavior
RH001Guard ASTWeight 0.95Test Deletion or Skip/XFail Injection (@pytest.mark.skip, xfail, removed test_* functions).
RH002Guard ASTWeight 0.90Assertion Weakening, Removal, or Tautology (assert True, altered expected comparison AST nodes).
RH003Guard ASTWeight 0.80Broad Exception Swallowing (bare except: or except Exception: pass handlers).
RH004Guard ASTWeight 1.00Python Syntax / AST Parse Failure across any candidate Python file in the patch.
RH005Guard ASTWeight 0.95Forbidden Dangerous Primitive (eval, exec, os.system, subprocess(..., shell=True)).
RH006Guard ASTWeight 0.65Debug Breakpoint or Forced Exit Leftover (breakpoint(), pdb.set_trace(), sys.exit()).
RH007Guard ASTWeight 0.60Excessive Patch Blast Radius exceeding max_files_touched (5) or max_lines_changed (250).
RH008Guard ASTWeight 0.90Protected File or CI Config Modification (.github/*, pyproject.toml, .env*, lockfiles, conftest.py).
audit_unified_diffMCP ToolHosted + LocalParse & audit multi-file unified diffs against RH001–RH008; optionally emit Nexus Aegis G5 leaf.
localize_faultMCP ToolHosted (Inline)Rank suspect functions from traceback text via Stack-Trace + AST Call-Graph + BM25 inside token_budget.
verify_patch_integrityMCP ToolHosted + LocalCompare original_files vs patched_files or unified diff against RH001–RH008.
inspect_ast_symbolsMCP ToolHosted (Inline)Query AST symbol table & bidirectional callers/callees by symbol name or (file_path, line_number).
apply_transactional_patchMCP ToolLocal Stdio OnlyApply patch inside SHA-256 snapshot sandbox with automatic rollback on violation or test failure.
patchpilot://rules/catalogMCP Resourceapplication/jsonMachine-readable catalog of RH001–RH008 codes, descriptions, and severity weights.
patchpilot://stats/overviewMCP Resourceapplication/jsonServer version (1.2.0), fault algorithms, and rollback safety guarantees.
diagnose-and-repairMCP Prompttraceback_textGuided root-cause workflow instructing agents to localize AST slices before proposing fixes.
audit-git-diffMCP Promptunified_diffStructured code review checklist verifying zero RH001–RH008 test-cheating patterns.
patchpilot demo / benchmarkCLI--jsonRun interactive billing bug rollback demo or reproduce p50/p95 AST & guard benchmarks.
patchpilot audit-diff / export-aegisCLIstdin / fileFail CI (`exit 1`) on diff violations or export RFC 6962 Nexus Aegis G5 leaf JSON.
patchpilot serve-stdio / serve-httpCLIJSON-RPC 2.0Serve full workspace MCP tools over stdio or Streamable HTTP/SSE (`mcp` alias supported).