From 3e3c333e35ac3f3a2d0589ed3a301e7d2fc92efc Mon Sep 17 00:00:00 2001 From: OpeItcLoc03 Date: Mon, 8 Jun 2026 13:03:04 +0000 Subject: [PATCH] meta(tasks): update [tdd-criteria-precommit-hook] in OpeItcLoc03/claude-skills --- .tasks/STATUS.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.tasks/STATUS.md b/.tasks/STATUS.md index 0469edf..115c667 100644 --- a/.tasks/STATUS.md +++ b/.tasks/STATUS.md @@ -140,7 +140,7 @@ fatal: Not possible to fast-forward, aborting. --- -## 🔴 [tdd-criteria-precommit-hook] — Optional pre-commit hook script that automates the bright-line checks from `tdd-criteria` Anti-loophole rules 1 and 4. Project owner opts in per-repo by symlinking / copying to `.git/hooks/pre-commit` (or via `husky` / `lefthook` integration if the project uses them). +## 🔵 [tdd-criteria-precommit-hook] — Optional pre-commit hook script that automates the bright-line checks from `tdd-criteria` Anti-loophole rules 1 and 4. Project owner opts in per-repo by symlinking / copying to `.git/hooks/pre-commit` (or via `husky` / `lefthook` integration if the project uses them). **Two checks** (both bright-line, both fail-closed): @@ -205,8 +205,17 @@ The skill is **policy** that lives in claude-skills and gets pulled into agent c Pre-commit hooks have `--no-verify`. Per `project-discipline` Rule 4 («never skip hooks unless user explicitly asks») agents must not use `--no-verify` — but humans can in emergencies. Each `--no-verify` use should be self-flagged in the commit body («bypassed pre-commit because: ...»). Not enforceable by the hook itself; this is a higher-level audit. -**Status:** active -**Where I stopped:** (not started) +**Status:** blocked +**Where I stopped:** workspace: pull --ff-only failed (diverged?): her: +hint: +hint: git merge --no-ff +hint: +hint: or: +hint: +hint: git rebase +hint: +hint: Disable this message with "git config set advice.diverging false" +fatal: Not possible to fast-forward, aborting. **Next action:** Решить, нужен ли hook (он опционален) — если да, написать `~/projects/claude-skills/scripts/tdd-criteria-precommit-hook.sh` по спеке в description, протестировать на `books` (Jest-конвенция `*.test.js`), задокументировать activation pattern. Если нет — закрыть как `wontfix` с пометкой что fence чисто социальная (commit subject visible в `git log`). **Branch:** master **Owner:** DESKTOP-NSEF0UK:claude-opus:35572