Aprender Package Resource (.apr) model format.
Per spec Section 4.1: The .apr format is a compact, portable container for trained AI behaviors that can be hot-swapped like trading cards.
File Structure
┌─────────────────────────────────────────────────────────────┐
│ .APR File Structure │
├─────────────────────────────────────────────────────────────┤
│ Magic Number: "APNR" (4 bytes) │
│ Version: u16 (2 bytes) │
│ Checksum: CRC32 (4 bytes) │
├─────────────────────────────────────────────────────────────┤
│ Metadata (CBOR encoded): │
│ - name, version, author, license │
│ - difficulty_levels, input_schema, output_schema │
├─────────────────────────────────────────────────────────────┤
│ Model Data (compressed): │
│ - weights: [f32; N] │
│ - biases: [f32; M] │
│ - architecture: string │
└─────────────────────────────────────────────────────────────┘