## KernelDB.verify_against_server()


Compare each local kernel of a metakernel against the server.


Usage

``` python
KernelDB.verify_against_server(
    mk_path, mission=None, *, check_hash=False, check_spice=False
)
```


[check](check.md#spice_kernel_db.check) only asked whether a file of each name existed, so a local file holding the wrong content counted as present. On juice_crema_5_2_v473_20260819_001.tm that reported "Found locally: 102/102" while 10 files differed from the server, one of them a 245 MB DSK present locally as 11 MB (#15).

The checks, cheapest first:

- size - one HEAD per kernel. A size mismatch already PROVES the files differ, so this alone catches every case in the issue.
- hash - only with *check_hash*, and only for kernels whose size matched, since a mismatch is already decided. Downloads each kernel, so it is opt-in.
- spice - with *check_spice*, furnsh each local kernel in an isolated kernel pool and report what SPICE refuses to read. Needs spiceypy.

Returns `{'entries': [...], 'ok': int, 'bad': int, 'unchecked': int}`. Status is one of ok, SIZE_MISMATCH, HASH_MISMATCH, UNREADABLE, NO_REMOTE or MISSING_LOCAL.
