run_close
Close a financial period by matching, verifying, and posting balanced journals from verified proofs, recording the outcome in the decision log.
Instructions
Close one period: match, verify, post, record.
Note what this does not take. There is no policy argument, no tolerance, no rule set and no chart of accounts — a caller picks which loop and which period and nothing else, and everything that decides whether an answer is permitted is loaded from the loop's own signed bundles. You cannot widen a tolerance through this tool because there is no parameter through which to try.
Every posting it writes descends from a proof that was re-derived from raw records before anyone saw it; a match that fails re-derivation is dropped and its refusal recorded. The return value is read back out of the decision log the close just wrote, so what you see is what an auditor holding that file would see.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | Yes | ||
| source_set | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||