16 lines
1.4 KiB
Python
16 lines
1.4 KiB
Python
from pathlib import Path
|
|
from hashlib import sha256
|
|
from datetime import datetime,timezone
|
|
from pypdf import PdfReader
|
|
import json
|
|
OUT=Path(__file__).resolve().parent;dest=OUT/'option-B7-franchise-license-gap.json';assert not dest.exists()
|
|
fixture=json.loads((OUT/'next-lot-PDF-fixture.json').read_text(encoding='utf-8'));p=Path(fixture['path'])
|
|
assert fixture['synthetic'] and sha256(p.read_bytes()).hexdigest()==fixture['sha256']
|
|
text=PdfReader(p).pages[0].extract_text();assert 'SEM VALIDADE JURIDICA'in text
|
|
proof={'at':datetime.now(timezone.utc).isoformat(),'position':'L1.5','scope':'read of already identified synthetic PDF only; no new upload or workflow replay',
|
|
'file_sha256':fixture['sha256'],'pages':1,'existing_scan_and_binary_recovery_proofs_reused':True,
|
|
'observed_content':'Generic simulation/disclaimer and operation label; no specific brand, licensor/holder identity or licensed territory/scope.',
|
|
'remaining_exact':'Prepare a specific coherent synthetic license evidencing the existing brand/holder/territory fields; preserve this original, then associate through the existing resource/review mechanism.',
|
|
'new_business_rule_or_legal_verification_required':False,'technical_closure':False,'browser_observed':False,'active_writes':0}
|
|
dest.write_text(json.dumps(proof,ensure_ascii=False,indent=2)+'\n',encoding='utf-8');print(json.dumps(proof,ensure_ascii=False))
|