Invert Standard Book
invert_standard_bookTurns one Standard Books document back into the standard documents a workspace ingests to reproduce it: the chart; a statement for each bank, card or cash register, made from the entries that post to it; the invoices, bills, receipts and credits it records; and a declaration for each entry no document carries. Supply the book by transfer handle (a sealed book package, a book body, or {book, annotations}), or a small one inline as book; it is authenticated when sealed and admitted under book law first.
Every document comes back sealed, each behind its own multi-read handle, in submit_batches: pass each batch to register as its items, the chart first, then submit and post. Nothing is registered here and no model runs. An entry the inversion can neither document nor declare is named in unresolved_entries; a statement submit would refuse — an identity the book does not hold (an account with no institution or number, or one the book filled in itself, which the chart then does not claim), or a document whose own law fails (a receipt whose items do not sum to its amount) — is named in withheld with the reason and left out of the batches, which submit would otherwise refuse whole. Either way the documents do not reproduce the book, and status is needs_information. report_handle names the whole inversion: how each entry was routed, and every finding with its evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | No | A small book inline: a sealed book package, a book body, or {book, annotations}. Exclusive with handle. | |
| handle | No | Workspace-scoped transfer handle (upload:N or download:N) naming the book: a sealed book package, a book body, or {book, annotations}. The usual path, e.g. create_standard_book's handle. | |
| workspace_tag | Yes | Active workspace id (the workspace_tag create_workspace and list_workspaces return). Scopes the call and the handles it returns. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | Yes | Which book was inverted: identity, chart_identity, name, reporting_currency and its counts, as verify_standard_document reports them. | |
| engine | Yes | Stamped engine build/version identity for the tool result. | |
| report | Yes | Download descriptor for the inversion report. | |
| status | Yes | inverted (every entry is documented or declared and every document can be submitted) or needs_information (unresolved_entries or withheld name what the batches do not carry). | |
| withheld | Yes | Statements left out of the batches because submit would refuse them: statement, reason (why, as submit words it: an incomplete identity or a violated document law), missing (the identity fields the book does not hold; empty when the reason is the law), entries (the journal entries they carry). | |
| entry_routes | Yes | Journal entries per route: registers, obligation, chart_residual (declared), unresolved. | |
| finding_codes | Yes | The inversion's findings per code; each is in the report with its evidence. | |
| report_handle | Yes | Multi-read download:N handle naming the whole inversion: each entry's route and outputs, the documents' traces, and every finding. | |
| workspace_tag | Yes | Workspace scoped by the tool call. | |
| submit_batches | Yes | Batches of at most 100 register items, each {kind: handle, handle}; the chart is first. | |
| document_counts | Yes | Sealed documents made: charts, statements (registers and obligations), itemizations (receipts and refunds), declarations. | |
| unresolved_entries | Yes | Journal entry ids the documents do not carry. |