chore: move assert to pipe