#!/usr/bin/env bash # Decision ID management — claim, query, and validate decision IDs. # Usage: # decision sync Sync decisions/*.md into SQLite # decision show Show a decision with linked tickets + refs # decision next [D|Q|R] Show next available ID # decision claim [title] Claim next ID (reserves in DB) # decision check-dupes Check for duplicate IDs in markdown # decision orphan-tickets List tickets with invalid/missing decision_ref exec python3 "$(dirname "$0")/decisions_sync.py" "$@"