resolveProtectedBranches coerces a string "" to [""], protecting nothing #219
Labels
No labels
already-shipped
bug
documentation
duplicate
enhancement
external-review
good first issue
help wanted
in progress
invalid
needs-decision
proposal
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: crenshawdev/cadence-archived#219
Loading…
Add table
Add a link
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?
Verified live 2026-08-18:
resolveProtectedBranches({protected_branches: ""})returns[""].A config that looks set unprotects every branch. The empty string is the one value where the string form, which all four readers honor (D-08, phase 3), produces a list whose only member matches no branch. The guard then passes for
main.Decide: warn and fall back to the default list, or refuse the value at validate time. Falling through silently is the one option that should be off the table, since the failure is permissive.
cadence-core/bin/lib/protected-branches.mjs. Pre-existing in git-guard/git-publish; adjudicated pre-existing-to-range at a phase-3 risk_surface fire and carried in the capture queue since.Closed by v3.5.5 (GRD-01, verified against the shipped tree).