Validate (parse + resolve + lint)
validateChecks an ArchLang plan in one pass (parsing, resolving, and linting) to catch issues before shipping; strict mode fails warnings, with optional graph and intent checks.
Instructions
Check a plan in one pass without returning a drawing (parse, resolve and lint): the gate a plan passes before it ships. strict:true makes advisory warnings fail too. Optional graph checks the plan's interior-door adjacency against an intended room graph ({ room: [neighbours] }); a mismatch fails. Optional intent (a brief's expectations, shaped as the archlang://intent-schema resource describes) is checked against the plan: a missed gating assertion (room count, existence, area, total area, windows) fails, while adjacency and reachability are advisory and only score. A malformed intent returns { ok:false, intentErrors } as data, never an exception. Returns { ok, diagnostics, graph?, intent? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | Intended interior-door adjacency: { room: [neighbour rooms] }. | |
| intent | No | A brief's intent JSON (shape: the archlang://intent-schema resource); gating assertions fail. | |
| source | Yes | ArchLang source. | |
| strict | No | Advisory warnings fail too. |