B13 — Linear cascade rebase via dependency markers (close F5 — O(N²) churn) #429
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#429
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?
As an operator,
I want to mark some PRs as "depends on PR #M" so that rebases serialise instead of fanning out,
so that N PRs in a linear chain produce N rebases instead of N²/2.
Last night 8 PRs in flight produced 25 cascade rebase events. With explicit dependencies the same chain would produce ~7. Each unnecessary rebase costs an agent task + a CI run.
Acceptance criteria
Parser
Stacked on #MandDepends on #M(case-insensitive, both syntaxes accepted) in the description.pull_request.editedwebhook).pr_dependencies(pr_number, depends_on)table.Dispatch
Cycle detection
Cycle detected in dependency graph: <chain>. Ignoring stacked-on directive.Tests
#1 → #2 → #3, merge#1→ only#2rebases, not#3.#2rebased without merge →#3rebases too.Out of scope
References
docs/specs/automation-hardening.md§4 B13.apps/server/src/http/webhook.tspost-mergehandler.Stacked onbody marker.