Leibniz Layer Crypto Commit
dcl_commitCommit a final decision to the hash-chained audit ledger, returning a Merkle-proof receipt with chain depth for tamper-evident review.
Instructions
FINAL-STEP Leibniz Layer Crypto Commit ($0.01). Writes a trading/agent decision to the append-only Leibniz Layer audit chain and returns a Merkle-proof-style receipt: tx_hash (proof of this specific commit), chain_hash (the previous commit's hash, linking this one into the chain), and chain_depth (this commit's position in the chain). Unlike the evaluate_* tools, this call has no pass/fail verdict of its own — it always succeeds and simply seals the decision. Passing prior_checks is optional but recommended: it records which earlier pipeline steps (firewall/wallet/trade/MEV) this specific commit is downstream of, in one auditable record. Always run this LAST, after every other crypto-suite check has passed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Identifier of the agent whose decision is being committed. | |
| decision | Yes | The final trading/agent decision text to commit to the audit chain. | |
| payment_id | No | Optional payment identifier returned by a previous call when payment is required | |
| prior_checks | No | Optional dict of tx_hashes from earlier pipeline steps (e.g. {'prompt_firewall_tx_hash': ..., 'trade_verifier_tx_hash': ..., 'mev_compliance_tx_hash': ...}), linking this commit to the specific checks that passed before it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | Yes | Tamper-evident proof of this specific commit. | |
| timestamp | Yes | Unix timestamp when this record was sealed. | |
| chain_hash | Yes | Hash of the previous commit in the append-only chain that this one links to. | |
| input_hash | Yes | Hash of the committed decision text (raw content is never stored). | |
| chain_depth | Yes | This commit's position (index) in the chain. |