Skip to content

repo-fleet-hygiene: ackUnavailable config to demote known-inaccessible GitHub identities from UNKNOWN to acknowledged INFO #1100

Description

@kyle-sexton

Parent

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

What to build

In a 25-repo fleet run, 12 findings were UNKNOWN github-identity-unavailable — all foreseeable 404s: upstream repos made private/deleted, and repos owned by a different GitHub account than the authenticated gh user (personal-org repos on a work machine with a single work login). The script's refusal to infer anything from a 404 is correct and must stay. But there is no mechanism to record "this identity is known-inaccessible from this machine; stop re-reporting it at UNKNOWN prominence", so half the report is permanent noise on every run.

Add a config surface:

[fleet]
    ackUnavailable = github.com/owner/repo   # repeatable

Semantics: when github_identity fails with a 404/403 for an acknowledged identity, demote the github-identity-unavailable finding to an acknowledged/INFO line — never suppress it entirely, and never let the acknowledgment affect non-404/403 evidence (a successful API response that reveals a rename still reports HIGH; a network error on an acked repo still reports UNKNOWN with its real reason). Multi-account gh support is explicitly out of scope — the acknowledgment is the cheap, honest fix.

Implementation notes: the script's git_probe_allowed allowlist restricts readable config keys — extend it for fleet.ackUnavailable (--null --get-all shape, mirroring fleet.root/fleet.repo). Normalize acked keys lowercase like canonical keys. Document the key in the setup skill's configuration grammar and in setup check (INFO listing acked identities).

Acceptance criteria

  • ackUnavailable entries demote matching 404/403 github-identity-unavailable findings to an acknowledged/INFO presentation that names the ack source
  • Acked findings still appear (never fully suppressed); summary counts reflect the demotion (not counted as UNKNOWN)
  • Non-404/403 failures and successful-response evidence are unaffected by acks
  • Allowlist extended narrowly; config grammar documented in setup + audit reference
  • Tests cover ack-hit, ack-miss, and non-404 failure on an acked identity
  • Plugin version bump + CHANGELOG entry

Blocked by

None — can start immediately.

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

Metadata

Metadata

Assignees

Labels

status: ready

Fields

No fields configured for Feature.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions