chore: sync local alignment guidance and managed hooks #5
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
01M5N1PJ9DX7YQ64F5TWAR52QH— headd0037ddd9cf7508244f75fd1cf3d58182ac84fafReview — j4k-oss/worktree-remove @
764528f24fScope: diff against base tree
d12ab16f3acfReview finished: 10 succeeded, 0 failed
Triage: settled
Facts: current review-wide projection
Computed under:
Findings (1)
medium — The snapshot watcher leaves checkout processes running when the hook is killed
01M5N1W1TQ8ZYFJCMDFFZMRARZ.githooks/commit-msg(snippet)01M5N1XM47ZRX3ZKWEEQZNY73T· valid: The exact-grounded command closes descriptor 6 during worktree creation. The reviewer supplies a coherent static trace: only run_step reports a process group, so hook-only SIGKILL during this direct checkout gives the watcher EOF with no group to terminate, and cleanup deletes files still used by checkout. The reported Linux/Bash reproduction specifically observes surviving Git, filter shell and sleep processes after snapshot removal. This establishes surviving owned work and unsafe cleanup ordering under ERR4, rather than merely demanding a signal handler. Normal completion and install cleanup do not cover this checkout path; killing the entire process group is a different condition. Medium severity is supported. Supervise checkout and stop its owned processes before deleting the snapshot. The helper behavior and reproduction are reviewer-reported evidence, not independently inspected or rerun here.01M5N1X1V699YY0Q77ZCMDMV1P(aposd-plain)Other claims
01M5N1X1V699YY0Q77ZCMDMV1Pmedium — The watcher removes the snapshot while checkout can still be running →01M5N1W1TQ8ZYFJCMDFFZMRARZ01M5N1V9PZGRXZERGG6N1Z4J57medium — The recursion comment duplicates the wrapper's write inventoryCoverage
Coverage pass: 01M5N1PWSDQEEDC3PSVBF9WH54
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 snapshot watcher leaves checkout processes running when the hook is killed
lens
unix-cli· armdefault· tally 1 valid / 0 invalid / 0 uncertainclaim
01M5N1W1TQ8ZYFJCMDFFZMRARZof review01M5N1PJ9DX7YQ64F5TWAR52QHDeclining this hardening change for the owned-repository migration at
d0037ddd9c. 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 79 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.Review 01M5N1PJ9DX7YQ64F5TWAR52QH, head
d0037ddd9c: I inspected unadjudicated claim 01M5N1V9PZGRXZERGG6N1Z4J57, “The recursion comment duplicates the wrapper's write inventory.” The generated workflow explains why its event triggers cannot recurse and warns that widening them needs another check. This is explanatory text beside the trigger declaration, not another executable inventory. The report identifies duplication rather than an incorrect command or behavior. I am declining this optional prose consolidation under the requested bounded migration scope. No source change or follow-up PR is claimed.