fn enforce_resolution_registry_budget_with_limit( retained_bytes: u64, limit: u64, ) -> Result<(), CliError>
Apply the resolution staging bound with an explicit limit for deterministic tests.