[codex major] Failed org creation leaves irrecoverable ownerless org #75
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#75
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[codex major] Failed org creation leaves irrecoverable ownerless org
internal/identity/orgs.go:86reservesorg.json, then:94createsmembers.json. A non-412 error at:96returns, leaving the namespace reserved; retries hit "org already exists" at:89with no recovery path — all owner-gated management is inaccessible, permanently.Fix
Make org creation atomic-or-recoverable: roll back the reservation on members failure (best-effort delete + return the original error), or complete the owner binding on retry when the org is ownerless (idempotent resume), or both. Deterministic regression test (fault-injected members write → retry succeeds, owner present). Coverage gate holds; doc Decisions entry (law 12).
Acceptance criteria
-race.Fixed by PR #84 (#84): atomic-or-recoverable org creation — rollback on members-seed failure + CAS resume healing ownerless reservations, with fault-injection regression tests. Not merging; review requested.
PR #84 review (branch fix/issue-75), verified in scratch worktree at
eb19e74.ONE REAL BUG FOUND AND FIXED (pushed as fix/issue-75-review, commit
55d9297— please fold into fix/issue-75):REST VERIFIED, no action needed:
MERGE RECOMMENDATION: blocked: fold fix/issue-75-review (rollback-under-winner fix + regression test) into fix/issue-75 first; with that in, ready to merge.
Fixed by PR #84 incl. review-found rollback-under-winner race fix, merged. Closing.