deterministic
v0.4.1Deterministic IR/IR-LINT validation, policy packs, drift vs exports (archrad).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
archrad_validate_ir Validate IR — structural (IR-STRUCT-*) + architecture lint (IR-LINT-*) + PolicyPack
Architecture-as-code validation: run this when you need to check whether an IR graph is valid or to list violations before export or drift checks. Keywords: validate IR, architecture lint, IR-STRUCT, IR-LINT, policy pack, blueprint graph, nodes and edges. Runs in one call: 1) Structural validation — graph shape, references, IR-STRUCT-* errors. 2) Architecture lint — design rules (auth, dead nodes, DB access, sync chains, etc.). 3) Optional PolicyPack rules — pass policiesDirectory to load YAML/JSON packs from disk. Returns irStructuralFindings, irLintFindings, and combined (sorted by…
| Parameter | Type | Description |
|---|---|---|
ir | Inline IR graph as a JSON object. Use for small graphs only. | |
irPath | string | Absolute or relative path to an IR JSON file. Preferred for large graphs. |
policiesDirectory | string | Path to a directory of PolicyPack YAML/JSON files. Optional — omit if you have no custom rules. |
archrad_lint_summary Lint summary — plain-text counts and top findings
Human-readable summary of validation results: error/warning counts and up to 20 top findings (plain text). Keywords: summary, PR comment, explain violations, readable lint output. Use when you need a short narrative or comment, not structured JSON. For machine-actionable findings, use archrad_validate_ir instead. Same inputs as archrad_validate_ir: ir or irPath, optional policiesDirectory. Provide only one of ir or irPath.
| Parameter | Type | Description |
|---|---|---|
ir | Inline IR graph as a JSON object. | |
irPath | string | Absolute or relative path to an IR JSON file. |
policiesDirectory | string | Path to a directory of PolicyPack YAML/JSON files. Optional. |
archrad_suggest_fix Suggest fix — static remediation for a built-in finding code
Look up curated remediation steps and documentation URL for one built-in rule code (e.g. IR-LINT-MISSING-AUTH-010, IR-STRUCT-*, DRIFT-*). Keywords: remediation, how to fix, rule code, docs link, IR-LINT, IR-STRUCT. Does not return generated code patches or IR edits — only static guidance. PolicyPack and org-specific rule ids are not covered; see your YAML packs. Call archrad_list_rule_codes to list codes that have static guidance.
| Parameter | Type | Description |
|---|---|---|
findingCode * | string | The finding code to look up, e.g. "IR-LINT-MISSING-AUTH-010". |
archrad_list_rule_codes List rule codes — built-in codes with static guidance
Returns the sorted list of built-in IR-STRUCT-*, IR-LINT-*, and DRIFT-* codes that archrad_suggest_fix can explain. Keywords: catalog, all rules, rule list, documentation index. Use before suggest_fix to confirm a code exists. Excludes PolicyPack custom ids. No arguments.
archrad_validate_drift Validate drift — IR blueprint vs on-disk export (python | nodejs)
Compare the architecture IR to generated code under exportDir and report drift (files that no longer match deterministic export). Keywords: drift, CI, codegen diff, FastAPI, Express, Node, Python, validate export, architecture vs implementation. Requires: ir or irPath, exportDir (absolute path to the export tree), and target. target must be "python" or "nodejs" (use "nodejs" for Node/TypeScript; do not use "node"). Optional: policiesDirectory, skipIrLint (true to skip IR-LINT and only check drift). Returns driftFindings plus IR structural and lint findings from the same engine as CLI valid…
| Parameter | Type | Description |
|---|---|---|
exportDir * | string | Absolute path to the on-disk export directory to compare against the IR. |
target * | string | Export target language. Use "nodejs" for Node.js/TypeScript, "python" for Python. |
ir | Inline IR graph as a JSON object. | |
irPath | string | Absolute or relative path to an IR JSON file. |
policiesDirectory | string | Path to a PolicyPack directory. Optional. |
skipIrLint | boolean | Set to true to skip IR-LINT checks and only check for drift. Default: false. |
archrad_policy_packs_load Load PolicyPack — compile and validate packs (dry run, no IR)
Validate PolicyPack YAML/JSON without running against a graph: syntax, rule ids, and compilation. Keywords: policy pack, YAML rules, validate policies, org rules, offline check. You usually do not need this before archrad_validate_ir or archrad_validate_drift — those accept policiesDirectory and load packs internally. Use this tool to debug pack files in isolation. Provide either directory (folder path) or files (array of { name, content }), not both.
| Parameter | Type | Description |
|---|---|---|
directory | string | Path to a directory of PolicyPack YAML/JSON files. |
files | array | In-memory file list. Use when you have policy content as strings rather than on-disk files. |