| Wire element | Value | Meaning |
|---|---|---|
| Section type | 12 | Canonical vfs-monk-neural-attachment JSON. |
| Required capability | bit 3, value 8 | A reader must understand the attachment contract. |
| Manifest domain | NEURAL\0 | The attachment digest contributes to source identity and image UUID. |
| Integrity | ordinary section record | SHA-256 covers exact stored bytes. |
Reader invariants
- Section and capability must either both exist or both be absent.
- Section 12 cannot exist without Monk section 11.
- The JSON must be canonical UTF-8 and schema version 1.
- The immutable authority contract must be present and unmodified.
- The stored Monk fingerprint must equal the parsed canonical Monk profile fingerprint.
Writer invariants
The Python writer accepts a typed MonkNeuralAttachment, never an arbitrary byte blob. The Perl writer validates canonical JSON through MonkLoom. Both reject orphaned and misbound attachments before serialization.
Mutation preservation
Python MutableImage and Pure-Perl V2Transaction snapshot the canonical attachment and pass it into bottom-up rebuilds. A normal file write changes the image generation while retaining the same attachment fingerprint. Accepting an adaptation is a separate explicit configuration change.