refactor(protocols): template rendering boundary (#7499)