First iteration: process metadata

Also validate input items that consume 0 items;