Skip to content

Function: isMergeable()

Makaio Framework


Makaio Framework / contracts/session / 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 back
  • subagent: 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.

"fork" | "branch" | "aside" | "subagent" | "compress" | "rewrite" | "coordinator" | null | undefined

Branch kind to check

boolean

True if the branch supports merging back into the parent session