Skip to content

repo-fleet-hygiene: fleet config silently ignored outside the project that wrote it — user-global fallback + consumed-config visibility #1099

Closed

Description

@kyle-sexton

Parent

Source: handoff-inbox item 20260723-014618-repo-fleet-hygiene-setup-audit-findings (Finding 1, primary), producer work-laptop (Windows/PowerShell), repo-fleet-hygiene 0.2.0.

What to build

The audit's config auto-load is project-scoped — "If --config is absent and ${CLAUDE_PROJECT_DIR}/.claude/repo-fleet-hygiene.conf exists, pass that file" — and setup apply writes to the same template-expanded default. A fleet config is inherently machine-scoped: the same user invoking /repo-fleet-hygiene:audit from any real project gets no auto-config, and the audit silently narrows to that single project — exactly the pre-config default the config was built to escape. Nothing in setup check, setup apply, or the audit report says the config was not consumed. (Reproduced: setup apply from one directory, audit from a different project → single-project report, no mention of the existing config.)

Three coordinated changes (producer's proposed fixes 1+2+3 together):

  1. User-global fallback in audit input resolution: if --config is absent and the project-scoped config does not exist, probe ~/.claude/repo-fleet-hygiene.conf before defaulting to current-project. Explicit --config stays the top override; the project-scoped file stays above the user-global one. This does not violate the "never guess a broader machine root" rule — an explicit user-global config file is recorded user intent, not guessing.
  2. Report visibility: the audit report header states which config file (if any) was consumed (e.g. Config: <path> / Config: none (current project default)), so silent non-consumption is visible. Script header change.
  3. Setup doc: setup check/apply output states the scoping rule explicitly — which locations the audit probes and in what order, and that a project-scoped config is consumed only when the audit runs with that same project directory.

Keep setup's default write target as-is (project-scoped) but document how to place a machine-global config (--config ~/.claude/repo-fleet-hygiene.conf).

Acceptance criteria

  • Audit resolution order: explicit --config > ${CLAUDE_PROJECT_DIR}/.claude/repo-fleet-hygiene.conf > ~/.claude/repo-fleet-hygiene.conf > current-project default — encoded in the audit SKILL.md and honored by the invocation flow
  • Audit report header names the consumed config path or states none was consumed
  • Setup skill text documents the scoping rule and the user-global placement option
  • Bundled audit-fleet.test.sh still passes; new coverage for the header line
  • Plugin version bump + CHANGELOG entry

Blocked by

None — can start immediately.

Activity

  1. added theissue type on Jul 23, 2026
  2. self-assigned this
    on Jul 23, 2026
  3. kyle-sexton commented on Jul 23, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  4. added
    status: ready
    on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: ready

Type

Fields

No fields configured for Bug.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions