You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
skillfollow: structural consolidation of FollowSet, walker errors, and the write boundary #405
The .skillfollow feature (PR #390) went through many review rounds that each added a guard at the call site. A /simplify pass applied the small, behavior-preserving cleanups (ai_docs/reports/274-simplify.md); the structural ones below were left for separate PRs because they change many signatures. None changes user-visible behavior.
Items
Store the logical source root in FollowSet.Follow(root, …) already receives the root but keeps only the canonical one, so every consumer passes (source, follow) as a pair: WriteBoundary(source, rel), PrunePauses(source), followScope, and about 33 function signatures. Adding LogicalRoot() lets followScope fold into FollowSet and removes the source/snapshot mismatch class by construction.
Let the walker return traversal errors.sourcewalk.Walk/WalkDir/ReadDir only return the declaration error; about 13 callers re-check follow.Err() afterwards, and TestFollowSnapshotGuard has an err-check rule to enforce that. Returning the walk errors added during the call removes both.
Give sourcefs.Root the write boundary. About 20 call sites pair WriteBoundary with a sourcefs write by hand, and 7 build a declaration-only snapshot (sourcewalk.Follow(dir, FollowOptions{})) just for that check. A boundary carried by the root (interface to avoid the import cycle) checks once in the write methods; the update-in-place exemption in install_apply.go becomes an explicit opt-out.
Non-nil empty snapshot semantics in install_apply.go.nil currently means both "no declaration" and "not computed", so followedDestError rebuilds a snapshot per installed skill in batch installs and update --all. Pass a built (possibly empty) snapshot instead.
Agents exemption at the rule level. 5 of the 8 follow_allowlist.json rows say "agents source, outside .skillfollow"; expressing Kind == "agent" in the ratchet rule removes them.
Closed with #390. The .skillfollow implementation is not being merged, so this follow-up no longer applies. If the need resurfaces against a new implementation, it will be filed fresh.
Activity
runkids commentedon Oct 5, 2026
Closed with #390. The
.skillfollowimplementation is not being merged, so this follow-up no longer applies. If the need resurfaces against a new implementation, it will be filed fresh.