@alexvegman/toolsmith-engine
v0.1.0
Published
A pure static rule engine and starter NAM/SCH rule set for Toolsmith, built on @alexvegman/toolsmith-core.
Readme
@alexvegman/toolsmith-engine
A pure static rule engine for Toolsmith — evaluates a ToolSurface (@alexvegman/toolsmith-core) against a catalog of rules and returns Finding[], deterministically (same IR + same config → byte-identical output).
What's in here
- Rule contract (
rule.ts) —id,phase,run(ctx). - Runner (
runner/runner.ts) — dispatches tool-scoped and surface-scoped rules, sorts output for determinism. - Starter rule set —
NAM-001..005(naming defects: empty/invalid/duplicate/near-duplicate tool names) andSCH-001,003,005,006,007,008,021(schema defects: missingproperties, norequired, danglingrequiredreference,additionalPropertiesnotfalse, empty schema, array withoutitems).
This is a first slice of a much larger check catalog — see docs/Architecture-check.md in the main repo for the full spec and what's intentionally not implemented yet (semantic/runtime/eval-phase rules, adapters, the fix loop).
Install
npm install @alexvegman/toolsmith-engineDepends on
Full documentation: github.com/AlexanderVegazo26/agent-guard.
