delimit_ledger_health
Run a one-shot ledger health check returning totals, P0 status, stale items, duplicates, garbage, and overall health with pre-formatted next actions for AI agents. Read-only, for session start or nightly review.
Instructions
One-shot ledger health check — totals + P0 + stale + duplicates + garbage.
When to use: at session start (orchestrator session ritual) or nightly review to get a traffic-light verdict on the ledger. When NOT to use: to apply changes (use delimit_ledger_bulk) or inspect a single item (delimit_ledger_query).
Sibling contrast: delimit_ledger_groom proposes archives; delimit_ledger_context returns top-5 open; this composes them into a one-shot health verdict with pre-formatted next_actions.
Side effects: read-only. Internally calls list_items + groom + P0 quota helpers.
LED-1145 capstone — closes the loop on the entire ledger-tooling refactor. Designed for nightly/weekly review or session-start status snapshot. Returns:
totals (unresolved / open / in_progress / blocked)
p0 (count vs quota + health)
stale (count >stale_days + health)
duplicates (group count + total items + health)
garbage_venture (count + health)
overall_health (worst-of: green / yellow / red)
next_actions: pre-formatted list of {reason, tool, args, follow_up}
All Phase 1+2 tools are referenced in the suggested actions, so the response is self-contained for an AI agent that wants to act on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venture | No | project name or path. Auto-detects if empty. | |
| stale_days | No | stale-detector threshold passed to groom_proposal. | |
| dup_min_count | No | duplicate-detector threshold passed to groom_proposal. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||