Function: isMergeable()
Makaio Framework / contracts/session / isMergeable
Function: isMergeable()
Section titled “Function: isMergeable()”isMergeable(
kind):boolean
Defined in: ../../../packages/contracts/src/session/utils/branch-kind.ts:140
Branches that can be merged back to parent.
branch: Parallel work that can merge backsubagent: Spawned worker within current context
fork, compress, rewrite, coordinator, and aside are NOT mergeable.
fork and rewrite are independent/edited lineages; compress is a
context-reset continuation; coordinator is an orchestration node;
aside is an ephemeral Q&A session that cannot contribute back to parent history.
null and undefined represent legacy sessions without a branch kind;
use the individual predicates directly for those cases rather than
getBranchBehavior.
Parameters
Section titled “Parameters”"fork" | "branch" | "aside" | "subagent" | "compress" | "rewrite" | "coordinator" | null | undefined
Branch kind to check
Returns
Section titled “Returns”boolean
True if the branch supports merging back into the parent session