Files
Investidor-V2/outputs/investmoz-audit-current-20261012/next-lot-baseline.py
T
nala 287e991486
tests / ci (push) Waiting to run
oportunidades 7
2026-10-13 11:40:29 +02:00

8 lines
2.4 KiB
Python

from pathlib import Path
from datetime import datetime,timezone
import hashlib,json
OUT=Path(__file__).resolve().parent;ROOT=OUT.parents[1];f=json.loads((OUT/'business-country-fixture.json').read_text(encoding='utf-8'));QA=Path(f['QA_source']);inv=json.loads((OUT/'next-lot-inventory-QA.json').read_text(encoding='utf-8'));assert inv['target']==f['target']and inv['target']['port']==55441
paths=['.env','config/inertia.php','config/portal.php','public/build/manifest.json','app/Services/OpportunityReviewMateriality.php','app/Http/Controllers/PartnershipExchangeController.php','app/Http/Controllers/InvestmentZoneController.php','app/Http/Controllers/InvestmentDiscoveryController.php','app/Http/Controllers/LandAssistanceController.php','app/Http/Controllers/VirtualDeskController.php'];sha=lambda p:hashlib.sha256(p.read_bytes()).hexdigest()
p=OUT/'next-lot-active-baseline.json';assert not p.exists();p.write_text(json.dumps({'at':datetime.now(timezone.utc).isoformat(),'active_files':{n:sha(ROOT/n)for n in paths},'QA_files':{n:sha(QA/n)for n in paths if n!='.env'},'target':inv['target'],'QA_source':str(QA),'active_writes_authorized':False},indent=2),encoding='utf-8')
diag={'case':'C135','at':datetime.now(timezone.utc).isoformat(),'attempts':['node_repl kernel reset','fresh @oai/sky import','sky.list_apps after reset','cua.rewriteDocumentation/getState','cua.createBrowserTab(iab,QA login)'],'results':['reset succeeded','import succeeded','native pipe unavailable, os error2','apps/browsers empty','Browser is not available: iab'],'repaired':False,'first_failure':'Host native IPC connection, before window selection','specific_host_process_cause':'unknown through supported APIs','portal_configuration_services_changed':False,'next_action':'Restore the supported host connector; its transport must advertise a QA window. No portal restart or browser test loop.','skill':'computer-use:computer-use','skill_path':'C:/Users/macbook/.codex/plugins/cache/openai-bundled/computer-use/26.1007.21434/skills/computer-use/SKILL.md','limit':'Do not spawn codex-computer-use.exe, search for the helper executable, or build a custom helper protocol client.','visual_criteria_open':True};(OUT/'connector-C135-reset-diagnosis.json').write_text(json.dumps(diag,indent=2),encoding='utf-8');print(json.dumps({'baseline_created':True,'actual_QA_target':inv['target'],'C135_client_reset_attempted':True,'C135_repaired':False,'active_changes':0}))