Skip to content

follow/unfollow follow-ups: refuse bad --to before writing, --dry-run, undeclared unfollow, oplog on failure #403

Closed as not planned

Description

@runkids

Summary

Follow-ups for skillshare follow / unfollow (shipped in PR #390, see ai_docs/reports/274-follow-cmd.md "Deviations" and 274-review-fixes.md). None is a regression; each is a deliberate first-version limit.

Items

  1. follow --to pointing at an ancestor of the source or at an active target creates the link and writes the declaration, then reports cycle / target-overlap and exits 0. Refuse before writing instead, using the same overlap checks sourcewalk applies, so a bad --to leaves nothing behind.
  2. No --dry-run on follow / unfollow. enable has one; the commands already compute everything before writing, so a preview is cheap.
  3. unfollow <name> for an undeclared name is a no-op with a warning (exit 0) and never removes an undeclared link. Decide whether unfollow should remove an undeclared link when asked explicitly (or document that it never will).
  4. No oplog entry on failure. follow / unfollow log only successful changes; a partial failure (link created, declaration written, .gitignore refused) leaves no operations.log record. enable behaves the same today, so this is consistent, but backup/check record errors via statusFromErr and the follow commands change disk.
  5. Argument errors with --json (unknown flag, missing name) print plain text rather than the JSON error object, because fail is defined after parsing. Documented in follow.md / unfollow.md; fix if scripts need a stable shape.

References

Activity

  1. added
    feature
    on Oct 4, 2026
  2. runkids commented on Oct 5, 2026

    @runkids
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions