"""Public-result framing with synthetic JSONL commands; no Ansible or remote calls.""" from dataclasses import replace import json,os,pwd,socket,struct,sys,threading,time from pathlib import Path import pytest from aim_webgui.config import Settings from aim_webgui.core.client import CoreClient from aim_webgui.core.executor import Executor from aim_webgui.core.jsonio import loads from aim_webgui.core.reports import encoded from aim_webgui.credentials import wire from aim_webgui.errors import WebError from evidence_fixtures import result,plan def large_fixture(tmp_path, *, full_budget=False): decl={'protocol':'aim_output_v1','schema':'synthetic_rows_v1','scope':'per_host','required':True,'sensitivity':'safe', 'max_bytes_per_host':1048576,'data_schema':{'type':'object','properties':{'rows':{'type':'array','maxItems':20000, 'items':{'type':'string','maxLength':8192}}},'required':['rows'],'additionalProperties':False}} hosts=['test'+str(i)+'.example' for i in range(16 if full_budget else 4)] rows=['\u2603'*2600]*128 if full_budget else ['synthetic-\u2603'*90]*500 final=result(decl,hosts,report_data={'rows':rows}) assert 1024*1024