AIP Logic integrates with Foundry Branching to enable safe, isolated development of Logic functions. This documentation covers how to work with Logic on branches, including adding and modifying resources, cross-application compatibility, rebasing, and the approval process.
For general information on Foundry Branching concepts and workflows, refer to the Foundry Branching documentation.
To add a Logic function to a branch:
To remove a Logic function from a branch, use the bottom right sidebar and select Remove from branch.
To modify a Logic function on a branch, make any change and save, just as you would on the main branch.
You can publish a Logic function on a branch by following the same process as on main. Once you have successfully published your function on the branch, you can use the new function version on your branch in Workshop and function-backed actions. This function version is labeled with the Branched pre-release tag. Note that functions published on your branch will not be accessible from other branches, including main.
Branched Logic functions can be used with:
Before a Logic function can be deployed, it must:
You can protect your main branch to disable direct edits to Logic functions on main. When protection is enabled, all changes must be made on a branch, reviewed, and merged through the proposal process.
To protect a branch, navigate to the resource in Compass and select Branch protection > Protect with project policy.
To protect all Logic files in a project by default, enable protection at the project level. Any new Logic file created in that project will automatically be protected.
Once a proposal is created, reviewers can be added to the Logic file in the Foundry Branching application. Users who are added as reviewers will get an email requesting their review with a link to the proposal.
From there, reviewers can:

main vs. branch changes.
Rebasing is required when the main branch has been modified since your branch was created or was last rebased. If your Logic function requires rebasing, you will see a notification at the top of the Logic file.
Navigate to the Logic function that needs rebasing and select the Rebase option.
Review the changes in the split-screen comparison view. The left side shows the current main version, and the right shows your branch version.
Make necessary changes to your branch, potentially incorporating changes from main if there are merge conflicts.
Finish rebasing by selecting Finish.
main. You cannot create branches from other branches.main into your branch version, resolving any conflicting modifications before completing the rebase.