Skip to content

refactor(rules): tidy GooseRule paths type and drop dead excludeToolDir#2054

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-2051-goose-cleanup
Jun 25, 2026
Merged

refactor(rules): tidy GooseRule paths type and drop dead excludeToolDir#2054
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-2051-goose-cleanup

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Background

Follow-up to the PR #2049 review, which switched the goose rules target to the fold-into-root pattern. Three low-severity, non-blocking findings were captured in #2051. This PR resolves the two concrete refactoring findings (Findings 2 and 3).

Changes

  • Finding 2 — Define GooseRuleSettablePaths via Pick<ToolRuleSettablePaths, "root">, matching the grokcli precedent it documents itself as mirroring, so future refactors of ToolRuleSettablePaths propagate consistently.
  • Finding 3 — Drop the now-dead excludeToolDir option from GooseRule.getSettablePaths. Goose folds non-root rules into the root .goosehints and no longer calls buildToolPath, so the parameter was unused.

On Finding 1 (stale .goose/memories migration footgun)

Intentionally not addressed here. The issue itself concluded this is "acceptable and consistent with precedent" — grokcli/warp/deepagents share the exact same behavior and none clean their legacy memories dirs. A cross-tool cleanup mechanism would be a separate design decision, out of scope for this cosmetic cleanup.

Verification

pnpm cicheck passes (6546 tests, lint, typecheck, content checks).

Closes #2051

…nused excludeToolDir

Resolve the two non-blocking refactoring findings from the PR #2049 review:

- Define GooseRuleSettablePaths via Pick<ToolRuleSettablePaths, "root">, matching
  the grokcli/warp/deepagents fold-into-root precedent so future refactors of
  ToolRuleSettablePaths propagate uniformly.
- Drop the now-dead excludeToolDir parameter from GooseRule.getSettablePaths;
  goose folds non-root rules into the root .goosehints and no longer builds a
  tool-dir path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa dyoshikawa merged commit 11eb767 into main Jun 25, 2026
9 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

@dyoshikawa dyoshikawa deleted the resolve-scrap-issue-2051-goose-cleanup branch June 25, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow-ups from PR #2049 review: goose fold-into-root cleanup and stale .goose/memories migration

2 participants