"""Source-only proposed post-Solaris paths. Reads fixed map assets/frozen128 evidence, writes work proposals only. Never imports executable input entry points or reads a live save. Special edges are installed763 bridge/Waterfall events; paths are not authorized blind input queues.""" import sys,json,copy,heapq,re from pathlib import Path sys.path.insert(0,str(Path(__file__).resolve().parent)) import nav,surface_plan as sp nav.ROOT=Path('/private/tmp/source-planner-no-state');sp.ROOT=nav.ROOT R=Path(__file__).resolve().parent.parent F=json.load(open(R/'notes/Void-Hypno-won-128-navigation.json')) raw=json.load(open(R/'work/post-solaris-map-grids-static.json')) F['variables']['391']=54;F['switches']['988']=True;F['switches']['989']=True;F['switches']['999']=False F['self_switches']['763,48,A']=True D={'up':(0,-1),'down':(0,1),'left':(-1,0),'right':(1,0)} def model(mid,pos,ama=False): v=copy.deepcopy(raw[str(mid)]);v['position']=list(pos);v['mounted']=False;events={} for eid,e in v['events'].items(): for p in e['pages'][::-1]: c=p['condition'];ss=F['self_switches'].copy() if ama:ss['763,134,A']=True if c['switch1_valid'] and not F['switches'].get(str(c['switch1_id'])):continue if c['switch2_valid'] and not F['switches'].get(str(c['switch2_id'])):continue if c['variable_valid'] and F['variables'].get(str(c['variable_id']),0)