Dashboard › institutional-transition-lab › Distillation
a3b8d079-2646-49c4-8b59-aeeb5c55ac75["lore_tm_v1_9TZ5MXrpTHcxO2ce9dEdaMLmVT31F6AMgRHufSkpGlw"]
🟡 (04:24) Inspection of Python ZIP reading internals showed _read1(self, n) decompresses data and then truncates it with data = data[:self._left], decrements the declared remaining size via self._left -= len(data), and forces self._eof = True when self._left <= 0; thus output beyond the ZIP member’s declared uncompressed size can be discarded after decompression rather than returned to the caller. For ZIP_DEFLATED, it uses n = max(n, self.MIN_READ_SIZE), calls self._decompressor.decompress(data, n), and may append self._decompressor.flush() at decompressor EOF before the declared-size truncation.