delimit_ledger_done
Mark a ledger item as completed with one call, supporting optional notes and automatic ship proof extraction from PR URLs or commit SHAs for verified audits.
Instructions
Mark a ledger item as done (convenience wrapper).
When to use: to close out a ledger item with one call instead of using delimit_ledger_update with status="done". When NOT to use: to change other fields (use delimit_ledger_update) or create new items (delimit_ledger_add).
Sibling contrast: delimit_ledger_update changes any field; this is the close-out shortcut.
Side effects: writes status="done" + optional note via ai.ledger_manager.update_item. LED-1408 Phase 1: when commit_sha or pr_url is provided (or a PR URL is detected in the note), attaches a ship_proof block to the event with verified=True. Future audits use this flag to distinguish trustworthy-done from marked-done-but-never-verified. Phase 2 will tighten enforcement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | Ledger item id (e.g. "LED-001"). Required. | |
| note | No | Optional completion note. If the note contains a GitHub PR URL, it will be auto-extracted as ship proof. | |
| venture | No | Project name or path. Empty = auto-detect. | |
| commit_sha | No | LED-1408: optional merge-commit SHA proving the fix shipped. Recorded as ship_proof on the event; verified=True flag set on the item. | |
| pr_url | No | LED-1408: optional GitHub PR URL proving the fix shipped. Parsed into pr_owner/pr_repo/pr_number; verified=True flag set on the item. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||