A repository protocol