finalize_record
Confirm provenance fields to mark an asset record complete before the first push. Pass confirmations directly or prompt the author, then write a confirmation block and return the record.
Instructions
Mark the asset record complete, before the first push. Requires the
author's own confirmation of created_by, maintained_by and
model_access.mode -- pass them in confirmations (mode="conversation",
the default, after asking the author), or set mode="elicitation" to have
the client prompt the author directly, in which case confirmations is
ignored. Writes a confirmation block recording which fields were confirmed.
Returns {"record": , "missing": []} on success, or
{"error": "", ...} on rejection -- rejection writes nothing at all,
and happens when a confirmation is missing or blank or when the resulting
record would be invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | conversation | |
| directory | No | . | |
| confirmations | Yes |