Skip to content

repo-fleet-hygiene:setup verify step contradicts its own boundary; maxDepth unsettable; cross-volume relative-path gap #1801

Closed

Description

@kyle-sexton

Severity: IMPORTANT for item 1, SUGGESTION for the rest (assigned by an audit agent;
uncalibrated — not re-graded by a human).

Defects in the sibling repo-fleet-hygiene:setup skill, found while using it to persist a fleet scope.

1. Step 5 tells setup to do the one thing setup says it never does

setup/SKILL.md "What this skill does NOT do" states:

Run a fleet audit — that is /repo-fleet-hygiene:audit. check validates config only; it never
walks the fleet.

Its own apply step 5 ("Verify after remediation") then prescribes:

git config --file "<config-path>" --list >/dev/null
bash ".../skills/audit/scripts/audit-fleet.sh" --config "<config-path>"

The second command is the full fleet walk. Following step 5 as written violates the skill's own
boundary. On the audited fleet that is not a trivial contradiction — the collector issues per-repo gh
queries across 11 repositories and takes minutes, so a "verify my config parses" step silently becomes
a full network-bound audit run.

Fix: verify the config without walking the fleet — parse validity plus path resolution, which is
exactly what check already does. If an end-to-end proof is genuinely wanted, make it opt-in and say
it runs a real audit.

2. setup owns maxDepth but cannot set it

The config grammar setup documents includes maxDepth = 5, and the audit script implements
--max-depth (1..12). But setup's own argument grammar is:

check | apply [--config <path>] [--root <dir>]... [--repo <dir>]...
        [--canonical <github.com/owner/repo=path>]... [--ack-unavailable <github.com/owner/repo>]...

There is no way to set maxDepth through the skill that owns writing the config file. A consumer who
needs a non-default depth must hand-edit the file setup claims to manage. Relatedly, --max-depth is
implemented and documented in the audit skill's body but missing from its argument-hint.

3. The relative-path preference has no cross-volume form on Windows

setup prefers a path relative to the config file's directory, because "some consumer environments run
a write-time path-portability guard that rejects absolute paths in tracked config".

On Windows a fleet root frequently sits on a different volume from the config file. Here the config
resolves to C:/Users/<user>/.claude/repo-fleet-hygiene.conf and the fleet root is D:/repos. No
relative path exists between two volumes
, so the preferred form is unreachable and the absolute form
— the one the guard rejects — is the only option.

The Gotchas section documents the preference and the guard but names no cross-volume exception, leaving
a consumer to conclude they have done something wrong.

Fix: state the exception, and say what a consumer should do when the portability guard and a
cross-volume root conflict.

4. The project-vs-user-global gotcha is vacuous on a home-directory project

setup warns that a project-scoped config is invisible from other projects and that a fleet-wide config
belongs at the user-global path. On this machine the project directory is the home directory, so
both rungs resolve to the same file (~/.claude/repo-fleet-hygiene.conf) and the warning cannot apply.

This compounds with the substitution defect filed separately: CLAUDE_PROJECT_DIR is unset in the Bash
tool environment, so the project rung is not merely aliased — it is unreachable. Two of the three
documented ladder rungs therefore collapse or vanish on a common setup, while the docs present a
three-rung ladder.

5. A determinism claim with no deterministic component behind it

setup is pure prose — no allowed-tools, no script — yet claims a determinism property ("prefers the
portable relative form") that only a deterministic implementation could guarantee. As written, whether
the relative form is chosen depends on the model following prose. Either add a small writer script, or
soften the claim to guidance.

6. No --no-config escape hatch

--config requires an existing file (audit-fleet.sh:304), and there is no way to say "ignore config
entirely for this run". So a user-global config is silently additive to any CLI-supplied target: a
consumer who passes --repo X expecting a single-repo audit still gets every configured root walked,
with nothing in the output flagging the merge. Filed here because setup is what creates the persistent
config whose scope cannot then be suppressed.

Environment

  • repo-fleet-hygiene 0.7.0, marketplace install melodic-software
  • Claude Code on Windows 11 Pro 10.0.26200; project directory is the user's home directory
  • Config written this session to C:/Users/<user>/.claude/repo-fleet-hygiene.conf, fleet root on D:
  • Observed 2026-07-29/30

Activity

  1. added
    needs-triage
    on Jul 30, 2026
  2. self-assigned this
    on Jul 31, 2026
  3. kyle-sexton commented on Jul 31, 2026

    @kyle-sexton
    MemberAuthor

    Items 1-5 are delivered in #1861 (Refs #1801, deliberately not Fixes), so this issue stays open for item 6 alone:

    • 1 — step 5 contradicts the boundary. apply verification is now config-only (parse validity plus per-entry path resolution). An end-to-end run is an explicit handoff to /repo-fleet-hygiene:audit, stated as a real audit.
    • 2 — maxDepth unsettable. --max-depth added to setup's grammar, and to the audit skill's argument-hint, which was also missing it.
    • 3 — cross-volume relative paths. The exception is stated: no relative path exists between two Windows volumes, so the absolute form is written and the reason reported, rather than reading as consumer error.
    • 4 — vacuous project-vs-user-global gotcha. Now names the two cases that collapse it: a project directory that is the home directory (both rungs resolve to one file), and no project directory reaching the audit at all (the rung is unreachable, not merely aliased). The second case is now reachable-by-design — repo-fleet-hygiene: allowed-tools grant uses a variable not substituted there, and the project-config rung is unreachable #1798's fix passes --project-dir in, since CLAUDE_PROJECT_DIR is not in the Bash tool environment.
    • 5 — determinism claim with no deterministic component. Softened to guidance ("a default to justify departing from, not a guarantee") rather than adding a writer script. Adding one remains open as an alternative if the preference needs to be enforced rather than followed.

    Deferred — item 6, the --no-config escape hatch. Not done, and deliberately so: it is a feature add rather than a defect fix (new flag parsing, both SKILL.mds, argument-hint, test, eval), and it carries an unresolved semantic question — does --no-config suppress only the fleet.root/fleet.repo ladder, or also [canonical …] sections and fleet.ackUnavailable? That needs deciding before implementation.

    The additive behaviour item 6 complains about is now at least disclosed rather than silent: the report header carries a computed Scope: line naming every rung that contributed and its entry count, and setup gained a gotcha stating that a persisted config widens every later run with no way to suppress it for one invocation.

  4. kyle-sexton commented on Aug 12, 2026

    @kyle-sexton
    MemberAuthor

    Claiming items 1–3 for a focused setup-skill fix in branch cursor/fix-1801-fleet-setup-boundary-2ae1 (commit ff87dee5).

    Delivered in this change set:

    1. Verify boundary — apply step 5 now enumerates every config-only check probe (parse, path resolution, maxDepth, identity normalization) and explicitly forbids invoking the collector; end-to-end proof remains an opt-in handoff to /repo-fleet-hygiene:audit.
    2. maxDepth settable — body Argument grammar section documents --max-depth <1..12> alongside the frontmatter argument-hint.
    3. Cross-volume exception — gotcha names consumer remedies when a path-portability guard still rejects the only honest absolute path (colocate on one volume, exempt the file/path, or keep user-global config outside the guard's scan).

    Setup skill and evals only; audit-fleet.sh untouched. Plugin bumped to 0.12.0.

    Refs #1801 — item 6 (--no-config escape hatch) remains deferred per prior discussion.

  5. kyle-sexton commented on Aug 12, 2026

    @kyle-sexton
    MemberAuthor

    Branch rebased to origin/main; final commit is 62d801ce (replaces ff87dee5 after dropping an unrelated ancestor).

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

Metadata

Metadata

Assignees

Labels

needs-triage

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions