Add decisions_sync.py that parses decisions/*.md markdown headings, extracts metadata (type, domain, status, round, date), and upserts into SQLite. Two-pass approach: decisions first, then cross-references to avoid FK violations on forward references. Schema adds decisions table (52 rows) and decision_refs table (29 rows) with cascading deletes. Makefile gains decisions-sync, decisions-coverage, decisions-active, and decisions-orphan targets. Sync runs as part of make setup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 lines
187 B
Bash
Executable File
5 lines
187 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Sync decisions/*.md domain files into the SQLite database. Whitelistable command.
|
|
# Usage: decisions-sync
|
|
exec python3 "$(dirname "$0")/decisions_sync.py" sync "$@"
|