from http_common import * manager=login('manager');p=plan(manager);check('candidate_routing_restored',p['installed']) r,_=operation(manager,'import');check('final_code_private_import_zero_new_refs',not r['changed'] and len(r['reused'])==15) r,_=operation(manager,'publish');check('final_code_publication_zero_duplicate_mutations',not r['changed'] and len(r['reused'])==15) (out/'FINAL-OPERATIONAL-PLAN.json').write_text(json.dumps(plan(manager),ensure_ascii=False,indent=2),'utf-8') print(json.dumps({'checks':len(proof['checks']),'events':len(proof['events']),'code_hash':p['code_hash']}))