finish_build
Verify every built component and save the build as a reusable example only if all shapes are valid and counts match; otherwise, report the specific reason.
Instructions
Close out a build: re-verify every claimed component, and save it as a reusable example if it actually checks out.
Call this after begin_build and after you believe the build is
complete. Every name in component_names is re-measured with `measure`
(never trusted from a prior tool's self-reported success) — the build
is only exported to the corpus if every one of them is a valid shape
AND the count matches what begin_build declared as expected. A build
that's missing pieces or has an invalid shape is reported back to you
with the specific reason, but not saved.
Args:
doc_name: The document passed to begin_build for this build.
component_names: Names of every component you built (should match,
in count, what you declared in begin_build's expected_components).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_name | Yes | ||
| component_names | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |