Add the task-startup gate: precheck/task-start/task-sync/task-finish and local hooks #1

Merged
weichen merged 3 commits from feature/delivery-mechanism into main 2026-09-30 03:13:07 +00:00
3 Commits
Author SHA1 Message Date
weichen 951417f600 Record the sync checkpoint 2026-09-30 03:12:18 +00:00
weichen f31fd5f62d Add the task-startup gate scripts and local hooks
Why: agents skipped triggered reading and wrote into shared checkouts holding
other tasks' in-flight changes; the 2026-09-30 empty-list incident session
found 24 overlapping in-flight files only by accident at first write.
Evidence: positive/negative suite in a real scratch repo passed 19/19
(precheck READY/BUSY/SYNC_REQUIRED, start refuse/establish, hook main/badname/
longsubject refusals, sync checkpoint, finish recycle and abandon double-
confirm); the suite caught three real defects (pipefail empty-grep abort,
worktree gitdir COMMIT_EDITMSG resolution, message checks in the wrong hook
phase).
Impact: make setup enables pre-commit/commit-msg hooks; make precheck/task-
start/task-sync/task-finish provide the governed path; no existing workflow
removed. AGENTS.md carries the resident gate rules.
Refs: Development-Guidelines 0.1.0-draft.7; task card .task/delivery-mechanism.md
2026-09-30 03:11:58 +00:00
weichen 8349c633b0 Pin the delivery-mechanism guidelines revision
Why: the task gate workflows reference the new precheck trigger, task-card
template, workspace recycling rule, and history-migration exception, which
only exist as of Development-Guidelines 0.1.0-draft.7 (d9576ed).
Evidence: PR weichen/Development-Guidelines#1 merged into main (d9576ed);
gitlink materialized locally via submodule update.
Impact: consumer repo now pins the draft.7 behavior revision; no code change.
Refs: task card .task/delivery-mechanism.md
2026-09-30 03:11:58 +00:00