checkpointkit 0.1.4

Crash-resume checkpoint persistence with atomic writes and progress tracking
Documentation
# checkpointkit  -  Internal Spec

> This file is gitignored. It exists for agents and internal development. Never committed to public repos.

## Identity
Crash-resume checkpoint persistence with atomic writes and progress tracking.

## Purpose
Saves serializable state atomically to disk so long-running scans can resume after crashes, restarts, or intentional shutdowns.

## North Star
The checkpoint layer you'd trust for a week-long internet-scale scan  -  atomic, corruption-detecting, and O(1) overhead.

## Role in Ecosystem
- **Depends on:** (none internal)
- **Depended on by:** netshift, threatfeed, npmfeed, warpscan, warpscan-coord, warpscan-ingest
- **Relationship to warpscan:** Persists warpscan's scan progress so jobs can resume mid-flight without re-downloading or re-scanning completed work.
- **Standalone value:** YES  -  any project needing atomic JSON checkpointing can use it independently.

## Invariants
- `save()` writes to a temp file and atomically renames it to the target path.
- Temp files are always cleaned up on success or failure.
- `ProgressTracker` caps reported progress at `total` and never underflows.
- Corrupted checkpoint files fail fast with `CheckpointError::Serialize`.

## Boundaries
- Does not provide distributed consensus.
- Does not encrypt checkpoints.
- Does not manage schema migrations for checkpointed data.
- Does not guarantee durability beyond the host filesystem's `fsync` semantics.

## Quality State
- Tests: ~9 declared test targets (unit, concurrent, crash, integration, property, adversarial, extreme_scale)
- Lint preamble: yes
- #![forbid(unsafe_code)]: yes
- Doc coverage: ~85%
- Known issues: None from latest audit