AI Handoff Kit v2.0 - actual helper source excerpts Prompt Outfitter LLC | https://www.promptoutfitter.ai/ai-handoff-kit READ-ONLY PREVIEW. These excerpts are copied verbatim from the shipped v2.0.0 Python helper. They omit supporting functions and are not a runnable program. They let an agent/operator inspect bounded ZIP checks and receipt construction before purchase. No API key, model call or network request is present here. The full paid kit includes supporting code, input contract, examples and agent instructions. This preview is not independent execution or a security audit. Hashes establish consistency, not approval, origin, truth or understanding. Full shipped helper SHA256: 44c9d2856b7c2a6f1457632894bc9ea1bca9e3d4d426692474afeae06daf51ef EXCERPT 1 - beginning of validate def validate(bundle): raw = read_regular(bundle, MAX_ARCHIVE) import io with zipfile.ZipFile(io.BytesIO(raw)) as z: infos = z.infolist() require(4 <= len(infos) <= MAX_FILES + 4, 'Invalid archive file count') names = [i.filename for i in infos] require(len(names) == len(set(names)), 'Duplicate archive entries') require(sum(i.file_size for i in infos) <= MAX_TOTAL + MAX_INPUT, 'Archive expands beyond total limit') for info in infos: safe_relative(info.filename) require(not info.is_dir() and not info.flag_bits & 1, 'Directories/encrypted entries are unsupported') mode = info.external_attr >> 16 require(not stat.S_ISLNK(mode), 'Archive symlinks are unsupported') require(info.file_size <= MAX_FILE, 'Archive entry exceeds size limit') blobs = {info.filename: z.read(info) for info in infos} # bounded; CRC checked; never extracted require('manifest.json' in blobs, 'Missing manifest') manifest = json.loads(blobs['manifest.json'].decode('utf-8')) require(isinstance(manifest, dict), 'Manifest must be a JSON object') require(manifest.get('version') == VERSION and manifest.get('product') == 'AI Handoff Kit', 'Wrong product/version') records = manifest.get('files') require(isinstance(records, dict) and set(records) == set(blobs) - {'manifest.json'}, 'Manifest inventory mismatch') for name, record in records.items(): require(isinstance(record, dict) and record == {'sha256': sha(blobs[name]), 'size_bytes': len(blobs[name])}, 'Integrity mismatch: ' + name) require({'handoff.json', 'handoff.md', 'current-draft.txt'} <= set(records), 'Missing required artifacts') EXCERPT 2 - receive (calls complete validate) def receive(bundle, receipt_path): result = validate(bundle) target = no_links(receipt_path) require(target.parent.is_dir(), 'Receipt parent must exist') receipt = {'product': 'AI Handoff Kit', 'version': VERSION, 'stage': 'receiver', 'status': 'needs_context' if result['gaps'] else 'received', 'bundle_sha256': sha(read_regular(bundle, MAX_ARCHIVE)), 'files_actually_verified': result['verified_files'], 'gaps': result['gaps'], 'safe_next_step': 'Review the actual draft and context, resolve task-dependent gaps, then follow current user instructions.', 'external_actions_authorized': False, 'semantic_review_required': True, 'limits': result['limits']} with target.open('xb') as f: f.write(json_bytes(receipt)) return receipt