Repository navigation
fix(KEN-3935): anchor new worktree link exclusions to the root - #4976
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Exclusion-write failures are discarded, allowing setup or repair to report success without applying the migration.
1 open finding
What changed in this PR
Anchors worktree exclusions at the repository root and migrates legacy patterns.
Changes:
- Writes anchored exclusions while preserving file modes.
- Adds migration, nested-path, and mutation-control tests.
- Updates help, render, and changelog files.
| File | Description |
|---|---|
skills/worktree/scripts/lib/links.sh |
Implements anchored exclusions and migration. |
skills/worktree/scripts/lib/help.sh |
Documents exclusion behavior. |
skills/worktree/tests/worktree_exclude_tracked_paths.sh |
Expands exclusion tests and controls. |
skills/worktree/tests/worktree_path_safety.sh |
Updates expected anchored patterns. |
.agents/skills/worktree/scripts/lib/links.sh |
Updates the tracked script render. |
.agents/skills/worktree/scripts/lib/help.sh |
Updates the tracked help render. |
changelog.d/worktree/fixed/root-excludes.md |
Records the user-visible fix. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Design contract: each exclusion caller retains the writer result.
The table states the result of the exclusion operation. Other operations in the same caller must also succeed before the caller returns
The final production round checks the writer's reads and writes and all direct caller returns against this table. Tests use the real commands and isolate the replacement and read failures. They retain the calls when removing the checked returns for a must-fail control. If the migration still fails after this round, the authorized scope cut keeps anchored new entries and removes the legacy migration. A proposal will record the migration symptom and how a user reaches it. |
|
Dispositions at 0a313f1 review:5506118711 - Tracked: KEN-4001. The missing-source create migration failure is verified and moves to the follow-up issue. Legacy migration is being removed from this pull request. Missing-source fix-links reports failure. The healthy repair path does not invoke the writer under the posted design. |
Address PR review
Address PR comments
Address PR comments
Address PR comments
Address CI failure through the authorized first-write scope cut.
Address PR review
ddebea7 to
44d8757
Compare
Completed issue
Created issue
Validation
Review changes
Recorded review cycles: 2. No post-merge box remains. |


Summary
git add -A.Done when
fix-linkshelp section states/<path>and!/<path>/.Test plan
027produces mode640. Both retained-call controls fail their rows, including a write that leaves no exclusion file.Created issues
Merge decision
Prepared head:
44d87570abeb18fa40b1dd9c6e30cab9f9b4f545.Attempt:
--expected-head 44d87570abeb18fa40b1dd9c6e30cab9f9b4f545, exit75,merge-route: queue cause=queue-occupied. The feature review is retained because its files are byte-identical after the base update. Copilot approved this head in review5509185778. Required CI and current-head approval passed again after the merge-group failure tracked in KEN-4024. The overseer authorized a retry on this unchanged head. The latest exact-head merge attempt returned exit 75 and queued this pull request again. Merge-group validation is pending.Closes KEN-3935