{
 "title": "QVTX ByteID - complete derivation, so you can reimplement and check us",
 "alphabet": {
  "A": "00",
  "T": "01",
  "G": "10",
  "C": "11",
  "note": "canonical Variant A. ACGT orderings are a known defect."
 },
 "constants": {
  "PHI": 1.618033988749895,
  "carrier_hz": 8825.0,
  "coherence": 0.882,
  "fib_kmer_ladder": [
   1,
   2,
   3,
   5,
   8,
   13,
   21
  ],
  "fib_fold_ladder": [
   1,
   2,
   3,
   5,
   8,
   13,
   21,
   34,
   55,
   89,
   144,
   233,
   377,
   610,
   987,
   1597
  ]
 },
 "express": "4 nucleotides per byte, MSB first: nt[k]=DECODING[(byte>>(6-2k))&3]",
 "suppress": "byte = (nt0<<6)|(nt1<<4)|(nt2<<2)|nt3",
 "complement": "A<->T, G<->C  ==  XOR 0b01 on the 2-bit value  ==  XOR 0x55 on a byte",
 "position_fold": [
  "out = bytearray(width)",
  "for i, c in enumerate(nt):",
  "    v       = ENCODING[c]",
  "    coef    = FIB16[i % 16]",
  "    slot    = (i*7 + v*11) % width",
  "    contrib = ((v+1) * (i+1) * coef) & 0xFF",
  "    out[slot]             ^= contrib",
  "    out[(slot+1) % width] ^= rol8(contrib, 1)"
 ],
 "framing": "framed = owner + \"|\" + category + \"|\" + freq.to_bytes(4,\"big\") + \"|\" + content",
 "byteid": "QVTX-{band}-{resonance}-{sig}-{harmonic}-{element}-{shield}",
 "no_hash": "the substrate contains zero hashlib. Same input, same ByteID, always.",
 "self_proving": "the fold is XOR and therefore self-inverse: re-applying the content's contributions returns it to all zeros. See /proof.",
 "reference_vector": {
  "content": "BIS Financial Stability Institute",
  "owner": "qvtx",
  "category": "observe",
  "freq": 8825,
  "expected": "QVTX-GTT-e1250c05-ddce4c61-b3e9-F-8fcb"
 }
}