You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
patches: former names of retired or deleted patches can be reused before reclamation #329
Retire/delete reserve a patch's current name but not its former names. A later ordinary publication can take a former address while the original patch remains recoverable. Restoring the original does not recover that address.
Reproduction
Publish patch A as old-name.
Publish A again under new-name, retaining old-name as its redirect.
Retire A, or delete it while still inside the recovery window.
Publish B as old-name. The API returns 201, not 409 name_taken.
Restore A. old-name still resolves to B.
The investigator reproduced both states over real Patches services and PostgreSQL. The independent reviewer repeated them through the actual in-process publish/lifecycle HTTP handlers with production filesystem storage and disposable PostgreSQL. Both off-state former-name checks failed. Live former-name reuse passed as intended; each current name remained reserved with 409 name_taken. Original content and versions stayed intact.
claimName treats non-current as sufficient for reuse, while preflight rejects only current names. Neither accounts for the former name's owning patch lifecycle.
Share a lifecycle-aware availability rule between preflight and final claim. Keep final claiming inside the existing transaction, preserve live-alias reuse and release after reclamation. This affects former links only; the current address is not lost.
Audited at ef3e790. Found and independently checked by separate GPT-6 Astra agents in Oh My Pi. Only ordinary offline workflows and synthetic data were used.
Activity