Fix #457: provenance maintenance #468
No reviewers
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!468
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-457"
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?
Child of #449 (F3 + F8). (1) Child delete sweeps its parent meta/forks.json row (pulls.UnlistFork, CAS, Version++ only on removal) + decrements the social counter exactly then (social.DecForks, CAS, floor 0, absent stays absent); hooked post-linearization in serving RepoRegistry.Delete via buildCollab (wal core untouched, law 8); GC-safe by order (row goes second: 404-skip or never-probed) — existing #451 parent-delete e2e still passes. (2) merged_upstream_at: WRITE — stamped on cross-fork merges next to the merged event (same instant as pr merged_at), same-repo merges pay zero trips; no reader added (N-trip cost). Tests: table-driven unlist/dec/sweep/stamp suites + e2e child-delete sweep (row gone, counter 1→0), all -race; pulls 95.9% / social 99.5% coverage; gofmt/vet clean; docs 03 §7+decisions, 07 §6 (law 12); no new deps; no browser (backend-only change).