aboutsummaryrefslogtreecommitdiff
path: root/todo.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-28 09:11:47 -0500
committerCraig Jennings <c@cjennings.net>2026-05-28 09:11:47 -0500
commit9f84ea2c7854e35ae30c0fb5fbd63f7b7115fb41 (patch)
treec6cd922c6286c5a6a0c6803ed8311683a3e538af /todo.org
parentbeb646e827802c0491b422ce03c7687eb66a717b (diff)
downloadrulesets-9f84ea2c7854e35ae30c0fb5fbd63f7b7115fb41.tar.gz
rulesets-9f84ea2c7854e35ae30c0fb5fbd63f7b7115fb41.zip
feat(sync-check): canonical/mirror drift detection + pre-commit hook
scripts/sync-check.sh diffs claude-templates/.ai/{protocols.org, workflows,scripts} against the .ai/ mirror. Exits 0 when clean, 1 with a diff report on drift, 2 outside a rulesets-shaped repo or git checkout. --fix mode rsyncs canonical -> mirror and re-checks, then prompts to re-stage. githooks/pre-commit wraps the script. Commits abort on drift so the issue surfaces at publish time, not at the next session's startup rsync. Two new Makefile targets: - make sync-check [FIX=1] runs the script (FIX=1 passes --fix through). - make install-githooks sets core.hooksPath=githooks (idempotent). scripts/tests/sync-check.bats holds 8 tests covering clean, drift-per-path, --fix, extra-file removal, missing canonical, and outside-git. All eight pass. This catches the exact drift I had to fix manually during this morning's audit pass. The mirror's open-tasks.org PROPERTIES drawer sat below a sub-heading because the mirror commit was older than canonical.
Diffstat (limited to 'todo.org')
-rw-r--r--todo.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/todo.org b/todo.org
index a15fe6c..0df9f6d 100644
--- a/todo.org
+++ b/todo.org
@@ -1323,7 +1323,8 @@ Teach startup/routing to read =Summary= only at routing time, then =Execution= o
After the pilot, evaluate: did the savings show up in real session token use? Did the structure constrain the workflow expressiveness too much? If yes to savings and no to constraint, expand to the next-largest workflows. If not, document why and stop. Don't templatize universally — shorter workflows don't need tiering.
-** TODO [#C] Canonical/mirror drift detection via pre-commit hook or =make sync-check= :feature:quick:solo:
+** DONE [#C] Canonical/mirror drift detection via pre-commit hook or =make sync-check= :feature:quick:solo:
+CLOSED: [2026-05-28 Thu]
:PROPERTIES:
:CREATED: [2026-05-28 Thu]
:LAST_REVIEWED: 2026-05-28