Does the code still match its declared architecture?
rrt_arch_checkValidate the repository tree against architecture rules and the findings baseline to surface new, baselined, or stale violations before adding modules, imports, or opening a PR.
Instructions
Check the tree against [tool.rrt.architecture] and its findings baseline.
Use before adding a module, a unit or a cross-unit import, and before a PR:
the rrt-arch-check hook runs the same check with strict=True. Each finding
is new (not in .rrt/architecture.baseline.toml), baselined, or stale
(recorded but resolved). exit_code matches rrt arch check. Pass
check_templates=True to also self-test every .rrt/templates/ kind. Read-only:
never writes the baseline or renders templates; rrt arch baseline and
rrt arch new stay CLI-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rrt_arch_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| strict | No | ||
| check_templates | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| root | No | ||
| error | No | ||
| strict | Yes | ||
| baseline | No | ||
| findings | No | ||
| exit_code | Yes | ||
| new_count | No | ||
| templates | No | ||
| stale_count | No | ||
| baselined_count | No |