Understand: Verify Requirements
drawing_verify_requirementsMeasures CAD geometry against source requirements and reports pass, fail, unknown, unsupported, or ambiguous status with evidence, plus verifies saved artifacts or delivery manifests.
Instructions
Measure source requirements on the CAD geometry and say, per requirement, pass / fail / unknown / unsupported / ambiguous - with the evidence.
Each requirement is bound to the real feature (by handle, feature tag, arch
element, geometric predicate or DIMENSION; two equal candidates are
ambiguous, never a pick) and measured on the geometry read from the drawing
never on a label, a stored model or the numbers that were typed in. A row gives target, measured, delta, tolerance basis, status, handles and source;
countsgives the denominators (required = pass + fail + unknown + unsupported + ambiguous).statusispassonly when every requirement passes;acceptedalso needs fresh evidence and nodimension_mismatchfinding (a DIMENSION whose text or DIMLFAC disagrees with the geometry).
Modes:
requirements({"units": ..., "items": [typed requirements]}, or a legacy {"dimensions": {...}} that is carried read-only and verifies nothing) oruse_stored=True: measured on the current document.evidencerecords its id and content revision; a later revision makes the report stale.artifact_path: measured on that saved file, read fresh (a .dwg on a live seat through a private copy), each feature re-bound from the current document - by handle while handles are stable, then by feature tag, then by geometry, two candidates beingunknown- withrebindingand the before / aftercomparisonin the report. A count or absence is counted afresh on the file, never carried over; a DIMENSION not found again there is a blockingdimension_unverifiedfinding.provenancesays whether the current document can be the file's source (at least half of the entities match unchanged); when not, a blockingartifact_source_mismatchfinding, no comparison, and a handle-naming requirement isunknown.manifest_path: re-hashes a drawing_deliver bundle and lists every artifact whose sha256 no longer matches (stale) or that is gone (missing).
report_path writes the report as JSON (.json) or Markdown (.md); nothing
else is written, and the drawing never is.
Refused before any work: requirements together with use_stored
(invalid_args); neither of them without manifest_path
(missing_requirement); use_stored on a drawing that stores no
requirements (missing_requirement); requirements that do not parse
(invalid_args, the offending path named); a binding_policy other than
strict / lenient; manifest_path together with requirements, use_stored
or artifact_path; an artifact_path or manifest_path that does not
exist; a manifest that is not a delivery manifest; a report_path not
ending in .json or .md (only .json in manifest mode); a DWG artifact on the
headless engine (capability dwg). A quarantined document is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| use_stored | No | Verify the set drawing_plan(persist_requirements=True) stored in the drawing. | |
| report_path | No | Also write the report here: .json, or .md (Markdown; not in manifest mode). | |
| requirements | No | Typed requirements ({units, items: [{id, quantity, target, features, provenance, source, ...}]}) or a legacy {dimensions: {...}} carried read-only. | |
| artifact_path | No | A saved file of this drawing (.dxf; a .dwg only on a live seat) to measure instead of the open document - read fresh, never the model in memory. | |
| manifest_path | No | A drawing_deliver manifest.json: re-hash its artifacts and list the stale and missing ones. Its own mode. | |
| binding_policy | No | strict or lenient: how a requirement is bound to its feature. Two equal candidates are ambiguous under both. | strict |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||