Module branching

Module branching 

Source
Expand description

Safe File Application with Enterprise-Grade Branching Decision Engine APIs

Structs§

BranchingVote
Branching vote from a tool
FileChange
File change representation

Enums§

BranchColor
Branching vote colors

Functions§

apply_changes
Primary API — full branching resolution + telemetry
apply_changes_force_unchecked
Only forge core or dx apply --force
apply_changes_with_preapproved_votes
Fast path when tool knows its changes are safe
automatically_accept_green_conflicts
Auto-accept green conflicts
automatically_reject_red_conflicts
Auto-reject red conflicts
is_change_guaranteed_safe
True iff every voter returned Green
issue_immediate_veto
Hard block — highest priority Red vote
preview_proposed_changes
Dry-run with full diff, colors, and risk score
prompt_review_for_yellow_conflicts
Opens rich inline LSP review UI
query_predicted_branch_color
Simulate outcome without applying
register_permanent_branching_voter
ui, auth, style, security, check, etc.
reset_branching_engine_state
Called before cart commit or variant switch
revert_most_recent_application
Undo for cart removal or failed scaffolding
submit_branching_vote
Vote Green/Yellow/Red/NoOpinion on a FileChange