Skip to content

Require a Retire Gap When the Hub Deletes a Carried File Outright #4251

Closed

Description

@ptr727

Problem

A hub change that deletes a carried file outright, and drops it from spec/files.json, leaves every downstream copy unreported unless the same change adds a retire entry for it to spec/divergences.json gaps. No rule, gate, or test requires that entry.

spec/audit.py check_hubonly_carried derives its deletion set from the hub's tracked paths minus the manifest, plus the ledger's retire paths. A file the hub deleted is in neither half unless the ledger names it. spec/validate.py checks only that a gap path is not also a manifest unit.

.github/workflows/build-datebadge-task.yml is a case that already happened. It carried a retire entry while the hub no longer tracked it, so before the retired_paths change on the feature/retire-claude-md-4074 branch the audit never reported a downstream copy. A future deletion with no row at all would still go unreported after that change.

Done when

A path that spec/files.json declared at some point, that the hub no longer tracks, and that no retire gap names, fails a check. That could be spec/validate.py or a test reading the manifest's history. Or the rule for dropping a carried file states the obligation where the drop is made, and a check enforces it.

Found by a local strict review pass on the CLAUDE.md pointer-file retirement, part of #4074.

Activity

  1. added
    pre-existing
    on Nov 17, 2026
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

    pre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions