chore: sync local alignment guidance and managed hooks #6
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/align-local-forge"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updates declaration-check guidance for Align's local command and regenerates managed hooks and review configuration from Align #809. Interrupted hooks clean up their snapshots, and the updated review wrapper retains the zero-failed-unit gate.
Merge after Align 13 is published and verified.
Review
01M5N1NX7G4415EMQRMX4GDEJA— headae059a8165fbfd963e7a650746343f7f9d2a842eReview — j4k-oss/worktree-add @
77fbdc0dd5Scope: diff against base tree
f56cdec3b805Review finished: 10 succeeded, 0 failed
Triage: settled
Facts: current review-wide projection
Computed under:
Findings (1)
medium — The watcher deletes the snapshot without stopping an in-progress checkout
01M5N1VH5EBX27851N1CJCSKCT.githooks/commit-msg(snippet)01M5N1W7PW2D3YKSDJKW12HXWA· valid: The exact-grounded excerpt confirms that checkout runs directly with descriptor 6 closed. The reviewer supplies the remaining mechanism: only run_step registers a process group, so hook-only SIGKILL produces watcher EOF during checkout with no group to terminate, and removal races the surviving Git process and smudge filter. The reported Linux probe observed both surviving owned work and checkout failures after removal; these are reported evidence, not an independently reproduced result. Successful cleanup during supervised install does not protect checkout. SIGKILL being untrappable does not excuse this race in the surviving watcher. This supports a medium cancellation/cleanup defect under ERR4; supervise and register checkout, then stop its children before removing the snapshot.01M5N1VH6E9S0VKTHH60CT0DWT(aposd-plain)Other claims
01M5N1VH6E9S0VKTHH60CT0DWTmedium — The watcher removes the snapshot while its checkout process keeps running →01M5N1VH5EBX27851N1CJCSKCTCoverage
Coverage pass: 01M5N1P60JNM81538N919J1148
Accounting: complete (all slots terminal; see slot results for failures)
Slot health: healthy
@ -146,2 +205,3 @@exec 6> >(set -m; watch_snapshot <&0 > /dev/null &)# Relative worktree paths would upgrade the repository format; post-checkout hooks must not run here.git --git-dir="$git_common_dir" -c worktree.useRelativePaths=false -c core.hooksPath=/dev/null worktree add --quiet --detach "$snapshot_dir" "$snapshot_commit"git --git-dir="$git_common_dir" -c worktree.useRelativePaths=false -c core.hooksPath=/dev/null worktree add --quiet --detach "$snapshot_dir" "$snapshot_commit" 6>&-medium — The watcher deletes the snapshot without stopping an in-progress checkout
lens
general-bug· armdefault· tally 1 valid / 0 invalid / 0 uncertainclaim
01M5N1VH5EBX27851N1CJCSKCTof review01M5N1NX7G4415EMQRMX4GDEJADeclining this hardening change for the owned-repository migration at
ae059a8165. I traced the direct worktree-add call and the watcher: checkout does not register a process group, so the reported hook-only SIGKILL ordering is a plausible cleanup gap. I am not claiming it is fixed or disproved. The reported experiment adds a blocking smudge filter that these tracked files do not use. Git attribute inspection found no assigned filter on any of this repository’s 94 tracked paths. The user explicitly limited this migration to our actual repositories and asked us to avoid expanding tooling for unusual edge cases. We retain that scope and accept this limitation; no follow-up PR or broader cleanup guarantee is claimed.