'+(x.protocol_pass?'交付协议通过':'交付协议未通过 · 保留生成结果供检查')+'
'+(candidate?.preview_mp4?'':'尚无可播放候选
')+'完整详情'+(x.trace?' · 完整脱敏 Trace':'')+'
(()=>{ const HF='https://huggingface.co/datasets/HuggingFriends/PixelWorld/resolve/main/analyses/flash/'; let cohort=new URLSearchParams(location.search).get('cohort')||'confirmation_native24',report,exampleCase='0047',liveOrigin,originChecked=0; const $=id=>document.getElementById(id),esc=x=>String(x??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); const fmt=(x,n=2)=>typeof x==='number'?x.toFixed(n):'—',tok=x=>typeof x==='number'?(x/1000).toFixed(1)+'k':'—'; async function load(){const path=cohort+'.json';if(Date.now()-originChecked>300000){originChecked=Date.now();liveOrigin=null;try{const r=await fetch('https://huggingface.co/datasets/HuggingFriends/PixelWorld/resolve/main/live/catalogue.json?t='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(6000)});const c=await r.json();if(c.live_origin&&new URL(c.live_origin).protocol==='https:')liveOrigin=c.live_origin}catch(e){}}let urls=[HF+path];if(liveOrigin)urls.unshift(new URL('flash_'+path,liveOrigin).href);if(!document.body.dataset.liveBase)urls.unshift('flash_'+path);let error;for(const url of urls){try{let r=await fetch(url+'?t='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(12000)});if(!r.ok)throw Error('HTTP '+r.status);return await r.json()}catch(e){error=e}}throw error} function chart(arms){const pts=arms.filter(a=>a.expected_cases>=20&&a.scored_cases===a.expected_cases&&typeof a.mean_cost_normalized70==='number'&&typeof a.mean_v1==='number');if(!pts.length){$('chart').innerHTML='
等待完整匹配评分。这里不展示占位分数。
';return}const W=850,H=340,L=70,T=25,R=30,B=55,xmax=Math.max(...pts.map(a=>a.mean_cost_normalized70))*1.15,ymax=Math.max(.3,...pts.map(a=>a.mean_v1))*1.2;let s='';$('chart').innerHTML=s} function render(){const arms=report.arms||[];$('scope').textContent=report.scope;$('sync').textContent='更新:'+new Date(report.updated_utc).toLocaleString();$('condition').textContent='质量采样:'+(report.quality_scoring_fps||4)+' FPS / '+(report.quality_scoring_frames||20)+' 帧 · '+(cohort!=='legacy'?'工作中的视觉工具 · 20 个独立场景 · 正式 Flash 版本待确认':'旧开发条件:附带首帧,但输出图片工具因 helper 校验失败而不可用。此处数据不作为完整 Vision 主评测。');$('rows').innerHTML=arms.map(a=>{let c=a.counts||{},q=a.paired?.v1,e=a.paired_economics;return'首个候选对照只在匹配的原生 24 FPS 评分中展示。
';return}let s=''+r.matched_cases+' 个配对案例 · '+r.changed_tensor_cases+' 个保存的 tensor 文件发生变化
| 指标 | 首个有效候选 | 最终候选 | 变化的 95% 区间 | 改善 / 降低 / 持平 |
|---|---|---|---|---|
| IoU '+key+' | '+fmt(r.first_mean?.[key],4)+' | '+fmt(r.final_mean?.[key],4)+' | '+(q?.ci95?'['+fmt(q.ci95[0],4)+', '+fmt(q.ci95[1],4)+']':'—')+' | '+(q?q.wins+' / '+q.losses+' / '+(r.matched_cases-q.wins-q.losses):'—')+' |
'+u.measured_cases+' 个案例的逐请求 usage 与最终记录一致。首个有效候选保存后,报告了总 input 的 '+fmt(u.input_fraction_reported_after*100,1)+'%、总 output 的 '+fmt(u.output_fraction_reported_after*100,1)+'%;此后平均运行 '+fmt(u.mean_seconds_after/60,1)+' 分钟。
';s+='这是已有轨迹的描述性比较。保存后的消耗包含检查、修订和验证,不能全部算作浪费,也不证明提前停止会保持质量。
';$('refinement').innerHTML=s} async function showExamples(){if(cohort==='legacy'){$('examples').textContent='旧开发条件单独保留,不与当前示例混排。';return}const playing=$('examples').querySelector('video');if(playing&&!playing.paused)return;try{const response=await fetch(HF+(cohort.startsWith('prompt_')?'prompt_examples.json':cohort.startsWith('boundary_')?'boundary_examples.json':cohort.startsWith('submission_')?'submission_examples.json':'examples.json')+'?t='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(12000)});if(!response.ok)throw Error('HTTP '+response.status);const data=await response.json(),rows=data.examples||[],ids=[...new Set(rows.map(x=>x.case))].sort();if(!ids.length)return;if(!ids.includes(exampleCase))exampleCase=ids[0];const labels=Object.fromEntries((report.arms||[]).map(a=>[a.key,a.label]));$('examples').innerHTML=''+(x.protocol_pass?'交付协议通过':'交付协议未通过 · 保留生成结果供检查')+'
'+(candidate?.preview_mp4?'':'尚无可播放候选
')+'完整详情'+(x.trace?' · 完整脱敏 Trace':'')+'
'+esc(d.model||'GPT-5.6-Luna')+' · '+esc(d.case)+' · Attempt '+esc(d.attempt||1)+' · '+esc(d.status)+(d.active?' · 进程已核验运行中':'')+'
'+(d.valid_delivery?'1 / 1 有效交付':'0 / 1 有效交付')+' · '+esc(d.submission_tool_calls||0)+' 次提交工具调用 · '+esc(d.attempt_records||0)+' 次原始记录
Input '+tok(d.input_tokens)+' · Output '+tok(d.output_tokens)+(d.scored?' · Native24 IoU '+fmt(d.score.v1,4)+' / '+fmt(d.score.v2,4):' · 原生评分待完成')+'
单例机制 smoke,不能证明省 token 或质量保持。
';return}catch(e){}}$('submission-probe').textContent='正在等待实际 smoke 记录。'} async function poll(){try{report=await load();render();renderRefinement();showExamples();showSubmissionProbe()}catch(e){$('sync').textContent='报告同步等待:'+e.message}}document.querySelectorAll('[data-cohort]').forEach(b=>b.onclick=()=>{cohort=b.dataset.cohort;poll()});poll();setInterval(poll,30000) })();