@raytrace-cli/cli 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +155 -123
  2. package/bin/raytrace.mjs +110 -22
  3. package/dist/dashboard/assets/dm-sans-latin-400-normal-BwCSEQnW.woff +0 -0
  4. package/dist/dashboard/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2 +0 -0
  5. package/dist/dashboard/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2 +0 -0
  6. package/dist/dashboard/assets/dm-sans-latin-500-normal-Dr3UlScf.woff +0 -0
  7. package/dist/dashboard/assets/dm-sans-latin-600-normal-Aqo67rzb.woff2 +0 -0
  8. package/dist/dashboard/assets/dm-sans-latin-600-normal-BmdmIIQ2.woff +0 -0
  9. package/dist/dashboard/assets/dm-sans-latin-700-normal-CUSSCpQX.woff +0 -0
  10. package/dist/dashboard/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2 +0 -0
  11. package/dist/dashboard/assets/dm-sans-latin-ext-400-normal-BjWJ59Pq.woff +0 -0
  12. package/dist/dashboard/assets/dm-sans-latin-ext-400-normal-BtiwyxMk.woff2 +0 -0
  13. package/dist/dashboard/assets/dm-sans-latin-ext-500-normal-BJfUCQsA.woff2 +0 -0
  14. package/dist/dashboard/assets/dm-sans-latin-ext-500-normal-DR84L5F-.woff +0 -0
  15. package/dist/dashboard/assets/dm-sans-latin-ext-600-normal-4vooXBpG.woff2 +0 -0
  16. package/dist/dashboard/assets/dm-sans-latin-ext-600-normal-DRtaDpgU.woff +0 -0
  17. package/dist/dashboard/assets/dm-sans-latin-ext-700-normal-BLI3TTWz.woff +0 -0
  18. package/dist/dashboard/assets/dm-sans-latin-ext-700-normal-CJIcxD6K.woff2 +0 -0
  19. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  20. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  21. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  22. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  23. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
  24. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
  25. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  26. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  27. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  28. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  29. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
  30. package/dist/dashboard/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
  31. package/dist/dashboard/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  32. package/dist/dashboard/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  33. package/dist/dashboard/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  34. package/dist/dashboard/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  35. package/dist/dashboard/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  36. package/dist/dashboard/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
  37. package/dist/dashboard/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  38. package/dist/dashboard/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  39. package/dist/dashboard/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  40. package/dist/dashboard/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  41. package/dist/dashboard/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
  42. package/dist/dashboard/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
  43. package/dist/dashboard/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  44. package/dist/dashboard/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  45. package/dist/dashboard/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  46. package/dist/dashboard/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  47. package/dist/dashboard/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
  48. package/dist/dashboard/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
  49. package/dist/dashboard/assets/index-Dc3LTk8b.js +38 -0
  50. package/dist/dashboard/assets/index-DtV3UdEB.css +1 -0
  51. package/dist/dashboard/index.html +2 -2
  52. package/package.json +4 -1
  53. package/proxy/agent-intent-schema.test.mjs +142 -0
  54. package/proxy/call-assessment.mjs +385 -0
  55. package/proxy/call-assessment.test.mjs +167 -0
  56. package/proxy/call-category.mjs +461 -0
  57. package/proxy/capture.mjs +38 -0
  58. package/proxy/capture.test.mjs +49 -0
  59. package/proxy/claude-code-adapter.mjs +65 -3
  60. package/proxy/claude-code-hook.mjs +3 -1
  61. package/proxy/codex-config.mjs +5 -0
  62. package/proxy/codex.mjs +3 -2
  63. package/proxy/evidence-schema.test.mjs +233 -0
  64. package/proxy/evidence-store.mjs +704 -33
  65. package/proxy/evidence-store.test.mjs +304 -0
  66. package/proxy/exec-narrative.mjs +625 -0
  67. package/proxy/exec-narrative.test.mjs +262 -0
  68. package/proxy/execution-correlation.mjs +185 -0
  69. package/proxy/execution-correlation.test.mjs +146 -0
  70. package/proxy/execution-runner.test.mjs +38 -0
  71. package/proxy/experiment-engine.mjs +7 -4
  72. package/proxy/experiment-engine.test.mjs +93 -0
  73. package/proxy/explanations.test.mjs +20 -0
  74. package/proxy/failure-signature.mjs +56 -0
  75. package/proxy/gvisor-forwarder.mjs +454 -0
  76. package/proxy/gvisor-forwarder.test.mjs +368 -0
  77. package/proxy/init-evidence-db.mjs +166 -12
  78. package/proxy/local-sandboxes.mjs +94 -0
  79. package/proxy/local-token.mjs +30 -0
  80. package/proxy/playground-recovery.test.mjs +130 -0
  81. package/proxy/playground.mjs +439 -0
  82. package/proxy/prompt-context.mjs +12 -7
  83. package/proxy/prompt-traces.mjs +6 -0
  84. package/proxy/prompt-traces.test.mjs +32 -0
  85. package/proxy/providers.test.mjs +76 -0
  86. package/proxy/proxy.integration.test.mjs +135 -0
  87. package/proxy/raytace-proxy.mjs +512 -188
  88. package/proxy/request-metrics.test.mjs +19 -0
  89. package/proxy/request-policy.mjs +45 -0
  90. package/proxy/request-policy.test.mjs +47 -0
  91. package/proxy/run-recap.mjs +139 -0
  92. package/proxy/runtime-attribution.mjs +110 -0
  93. package/proxy/sandbox-bridge.mjs +49 -0
  94. package/proxy/schema/EVIDENCE_DATABASE.md +276 -0
  95. package/proxy/schema/auxiliary.sql +48 -1
  96. package/proxy/schema/classification.sql +89 -0
  97. package/proxy/schema/file_context.sql +53 -0
  98. package/proxy/schema/runtime_evidence.sql +201 -0
  99. package/proxy/schema/search.sql +66 -0
  100. package/proxy/search.mjs +418 -0
  101. package/proxy/search.test.mjs +161 -0
  102. package/proxy/smoke.test.mjs +93 -0
  103. package/proxy/step-attribution.mjs +380 -0
  104. package/proxy/step-lab.test.mjs +38 -0
  105. package/proxy/summaries.test.mjs +69 -0
  106. package/proxy/tool-metadata.mjs +36 -0
  107. package/proxy/tool-metadata.test.mjs +38 -0
  108. package/proxy/trace-view.mjs +308 -0
  109. package/proxy/trace-view.test.mjs +72 -0
  110. package/proxy/typesafe.mjs +63 -0
  111. package/proxy/typesafe.test.mjs +39 -0
  112. package/src/claude-code.mjs +38 -1
  113. package/src/commands.mjs +133 -20
  114. package/src/config.mjs +16 -7
  115. package/src/export.mjs +200 -0
  116. package/src/lima.mjs +176 -0
  117. package/src/local-sandbox.mjs +339 -0
  118. package/src/paths.mjs +8 -8
  119. package/src/proxy-process.mjs +45 -3
  120. package/src/sandbox.mjs +37 -9
  121. package/src/upload.mjs +198 -0
  122. package/worker/sandbox/Dockerfile +8 -0
  123. package/worker/sandbox/SYSCALL_CATALOG.md +197 -0
  124. package/worker/sandbox/claude-hook.mjs +364 -0
  125. package/worker/sandbox/collector.py +357 -0
  126. package/worker/sandbox/dns_forwarder.py +255 -0
  127. package/worker/sandbox/engine.py +940 -0
  128. package/worker/sandbox/file_scan.py +491 -0
  129. package/worker/sandbox/lima.yaml +29 -0
  130. package/worker/sandbox/network.py +90 -0
  131. package/worker/sandbox/projects.py +679 -0
  132. package/worker/sandbox/setup.py +159 -0
  133. package/worker/sandbox/syscall_catalog.sql +985 -0
  134. package/worker/sandbox/transcript-delivery.test.mjs +153 -0
  135. package/worker/sandbox/viewer.py +151 -0
  136. package/dist/dashboard/assets/index-BQ9_JxGq.js +0 -27
  137. package/dist/dashboard/assets/index-L5cUAvhE.css +0 -1
@@ -0,0 +1,135 @@
1
+ import { gzipSync } from 'node:zlib';
2
+ import test from 'node:test';
3
+ import assert from 'node:assert/strict';
4
+ import { createServer } from 'node:http';
5
+ import { spawn } from 'node:child_process';
6
+ import { once } from 'node:events';
7
+ import { mkdtemp, readFile, rm, stat } from 'node:fs/promises';
8
+ import { readToken } from './local-token.mjs';
9
+ import { tmpdir } from 'node:os';
10
+ import { join } from 'node:path';
11
+
12
+ for (const mode of ['native', 'openrouter']) test(`${mode}: HTTP capture → async trials → persistence; streams/settings preserved and writes origin-gated`, { timeout: 20000 }, async (t) => {
13
+ const directory = await mkdtemp(join(tmpdir(),'raytace-trials-'));
14
+ t.after(() => rm(directory,{recursive:true,force:true}));
15
+ const received = [];
16
+ const upstream = createServer(async (req,res) => {
17
+ let body = ''; for await (const part of req) body += part;
18
+ const payload = JSON.parse(body); received.push({payload,authorization:req.headers.authorization,url:req.url,headers:req.headers});
19
+ const kept = Array.isArray(payload.input) && payload.input.some((item)=>item.content === 'Search result: auth.ts');
20
+ const result = { id:'fixture-response',status:'completed',output:[{type:'function_call',name:kept?'read_file':'search',arguments:kept?'{"path":"auth.ts"}':'{"query":"login"}'}] };
21
+ if (payload.instructions?.startsWith('You analyze a captured model action')) {
22
+ const source = JSON.parse(payload.input).earlier_context_excerpts[0];
23
+ result.output = [{ type: 'message', content: [{ type: 'output_text', text: JSON.stringify({hypotheses:[{evidence_id:source.evidence_id,title:'A context reference guided the action',explanation:'The prior context provided this reference.',excerpt:source.text.slice(0,40)}]}) }] }];
24
+ }
25
+ res.writeHead(200,{'content-type':'text/event-stream','content-encoding':'gzip'});
26
+ res.end(gzipSync(`event: response.completed\ndata: ${JSON.stringify({type:'response.completed',response:result})}\n\n`));
27
+ });
28
+ upstream.listen(0,'127.0.0.1'); await once(upstream,'listening');
29
+ t.after(()=>{upstream.closeAllConnections();upstream.close();});
30
+ async function launch() {
31
+ const child = spawn(process.execPath,['--disable-warning=ExperimentalWarning','proxy/raytace-proxy.mjs'],{env:{...process.env,RAYTACE_PORT:'0',RAYTACE_PROVIDER:mode,OPENROUTER_API_KEY:'router-secret',RAYTACE_OPENROUTER_MODEL:'coder',RAYTACE_OPENROUTER_UPSTREAM:`http://127.0.0.1:${upstream.address().port}/api`,RAYTACE_DATA_DIR:directory,RAYTACE_STORE:join(directory,'events.jsonl'),RAYTACE_OPENAI_UPSTREAM:`http://127.0.0.1:${upstream.address().port}`},stdio:['ignore','pipe','pipe']});
32
+ const exited = once(child,'exit');
33
+ t.after(async()=>{ if(child.exitCode===null)child.kill('SIGTERM'); await exited; });
34
+ const url = await new Promise((resolve,reject)=>{
35
+ child.stdout.on('data',(data)=>{const match=String(data).match(/http:\/\/127\.0\.0\.1:\d+/);if(match)resolve(match[0]);});
36
+ child.stderr.on('data',(data)=>reject(new Error(String(data))));
37
+ child.on('exit',(code)=>reject(new Error(`Proxy exited: ${code}`)));
38
+ });
39
+ return {child,exited,url};
40
+ }
41
+ const first = await launch();
42
+ const token = readToken(directory);
43
+ const fetch = (address,init={}) => globalThis.fetch(address,{...init,headers:{authorization:`Bearer ${token}`,...init.headers}});
44
+ // Nothing recorded, and no key, without the token or the session it signs in.
45
+ const outsider = {host:'127.0.0.1',authorization:''};
46
+ for (const path of ['/raytace/traces','/raytace/traces?scope=history','/raytace/prompt-context/x','/raytace/runtime?sandbox=x','/raytace/snapshots/rtp-00000000000000000000000000000000/files?commit=x','/raytace/models','/raytace/viewer/','/raytace/viewer/events']) {
47
+ assert.equal((await fetch(`${first.url}${path}`,{headers:outsider})).status,401,path);
48
+ }
49
+ assert.equal((await fetch(`${first.url}/raytace/version`,{headers:outsider})).status,200);
50
+ assert.equal((await stat(join(directory,'api-token'))).mode & 0o777,0o600);
51
+ assert.equal((await stat(directory)).mode & 0o777,0o700);
52
+ const {ticket} = await (await fetch(`${first.url}/raytace/session`,{method:'POST'})).json();
53
+ const signIn = await globalThis.fetch(`${first.url}/raytace/session?ticket=${ticket}`,{redirect:'manual'});
54
+ assert.equal(signIn.status,302);
55
+ const cookie = signIn.headers.get('set-cookie').split(';')[0];
56
+ assert.match(signIn.headers.get('set-cookie'),/HttpOnly; SameSite=Strict/);
57
+ assert.equal(cookie.includes(token),false);
58
+ assert.equal((await globalThis.fetch(`${first.url}/raytace/session?ticket=${ticket}`,{redirect:'manual'})).status,403);
59
+ assert.equal((await globalThis.fetch(`${first.url}/raytace/traces`,{headers:{cookie}})).status,200);
60
+ assert.equal((await globalThis.fetch(`${first.url}/raytace/traces`,{headers:{cookie,origin:'http://localhost:3000'}})).status,401);
61
+ if (mode==='openrouter') for (const headers of [{cookie},{authorization:'Bearer wrong'}]) {
62
+ assert.equal((await globalThis.fetch(`${first.url}/v1/responses`,{method:'POST',headers:{'content-type':'application/json',...headers},body:'{"model":"coder","input":[]}'})).status,401);
63
+ assert.equal(received.length,0);
64
+ }
65
+ const headers = {'content-type':'application/json','x-raytace-experiment':'1',origin:'http://localhost:3000'};
66
+ let res = await fetch(`${first.url}/raytace/experiments`,{method:'POST',headers:{...headers,origin:'https://untrusted.example'},body:'{}'});
67
+ assert.equal(res.status,403);
68
+ res = await fetch(`${first.url}/raytace/experiments`,{method:'POST',headers:{'content-type':'application/json'},body:'{}'});
69
+ assert.equal(res.status,403); assert.equal(received.length,0);
70
+ const payload = {model:'fixture-model',stream:true,reasoning:{effort:'medium'},tools:[{type:'function',name:'read_file'}],input:[{type:'message',role:'user',content:'Search result: auth.ts'},{type:'message',role:'user',content:'Fix login'}]};
71
+ res = await fetch(`${first.url}/v1/responses`,{method:'POST',headers:{'content-type':'application/json',...(mode==='native'?{authorization:'Bearer fixture-secret'}:{})},body:JSON.stringify(payload)});
72
+ assert.equal(res.status,200); assert.match(await res.text(),/response.completed/);
73
+ const traces = await fetch(`${first.url}/raytace/traces`).then((r)=>r.json());
74
+ const trace = traces.traces[0]; const snapshot = JSON.parse(trace.events[0].raw);
75
+ assert.equal(snapshot.replay_reason,null);assert.equal(trace.provider,mode === 'native' ? 'openai' : 'openrouter');
76
+ const config = {exchange_id:snapshot.exchange_id,evidence_id:trace.evidence[0].id,repetitions:2,target:{type:'tool_contains',name:'read_file',contains:'auth.ts'}};
77
+ res = await fetch(`${first.url}/raytace/experiments`,{method:'POST',headers,body:JSON.stringify(config)});
78
+ assert.equal(res.status,202); assert.equal(res.headers.get('access-control-allow-origin'),'http://localhost:3000');
79
+ let job = await res.json();
80
+ for (let i=0; i<100 && ['running','queued'].includes(job.status); i++) { await new Promise((resolve)=>setTimeout(resolve,20)); job=await fetch(`${first.url}/raytace/experiments/${job.id}`).then((r)=>r.json()); }
81
+ assert.equal(job.status,'completed'); assert.equal(job.trials.length,4);
82
+ assert.equal(job.summary.baseline.rate,1); assert.equal(job.summary.intervention.rate,0);
83
+ assert.equal(received.length,5);
84
+ for(const item of received) {assert.equal(item.payload.stream,true);assert.deepEqual(item.payload.reasoning,payload.reasoning);assert.equal(item.authorization,mode === 'native' ? 'Bearer fixture-secret' : 'Bearer router-secret');assert.equal(item.payload.model,mode === 'native' ? 'fixture-model' : 'qwen/qwen3-coder');assert.equal(item.url,mode === 'native' ? '/v1/responses' : '/api/v1/responses');}
85
+ // Persistence completes after the final progress update. Everything now lands
86
+ // in SQLite, so scan the database bytes directly: that also proves no
87
+ // credential reached disk through any table, blob, or journal.
88
+ const onDisk = async () => (await Promise.all(['evidence.db','evidence.db-wal','evidence.db-journal']
89
+ .map((name)=>readFile(join(directory,name),'utf8').catch(()=>'')))).join('');
90
+ let saved=''; for(let i=0;i<100;i++){saved=await onDisk();if(saved.includes('"status":"completed"'))break;await new Promise((r)=>setTimeout(r,20));}
91
+ assert.match(saved,/"status":"completed"/);
92
+ assert.equal(saved.includes('fixture-secret'),false);
93
+ assert.equal(saved.includes('router-secret'),false);
94
+ first.child.kill('SIGTERM'); await first.exited;
95
+ const second = await launch();
96
+ const archivedStepResponse = await fetch(`${second.url}/raytace/steps/${snapshot.exchange_id}/0`);
97
+ assert.equal(archivedStepResponse.status, 200);
98
+ const archivedStep = await archivedStepResponse.json();
99
+ assert.equal(archivedStep.decision.calls[0].name, 'read_file');
100
+ assert.ok(archivedStep.evidence.length > 0);
101
+ assert.match(archivedStep.replay_reason, /Saved log/);
102
+ assert.equal(received.length, 5); // Inspection never invokes a provider.
103
+ const history = await fetch(`${second.url}/raytace/experiments`).then((r)=>r.json());
104
+ assert.equal(history.experiments[0].status,'completed');
105
+ res=await fetch(`${second.url}/raytace/experiments`,{method:'POST',headers,body:JSON.stringify(config)});
106
+ assert.equal(res.status,409); assert.equal(received.length,5);
107
+ await fetch(`${second.url}/v1/responses`,{method:'POST',headers:{'content-type':'application/json',...(mode==='native'?{authorization:'Bearer fixture-secret'}:{})},body:JSON.stringify(payload)});
108
+ const fresh = await fetch(`${second.url}/raytace/traces`).then(r=>r.json());
109
+ assert.equal(fresh.traces.length,1);
110
+ const allRuns = await fetch(`${second.url}/raytace/traces?scope=history`).then(r=>r.json());
111
+ assert.equal(allRuns.traces.length,2);
112
+ assert.ok(allRuns.traces.some(t=>t.id===trace.id));
113
+ assert.ok(allRuns.traces.some(t=>t.id===fresh.traces[0].id));
114
+ assert.equal(received.length,6); // Reading history makes no upstream calls.
115
+ const selected = fresh.traces[0].events.find(event=>event.output_index === 0);
116
+ assert.ok(selected?.exchange_id);
117
+ const step = await fetch(`${second.url}/raytace/steps/${selected.exchange_id}/0`).then(r=>r.json());
118
+ assert.equal(step.decision.calls[0].name,'read_file');
119
+ res = await fetch(`${second.url}/raytace/step-runs`,{method:'POST',headers:{...headers,origin:'https://untrusted.example'},body:'{}'});
120
+ assert.equal(res.status,403);
121
+ res = await fetch(`${second.url}/raytace/step-runs`,{method:'POST',headers,body:JSON.stringify({exchange_id:selected.exchange_id,output_index:0,evidence_id:step.evidence[0].id,context:'No search result',model:mode === 'native' ? 'fixture-model' : 'coder',mode:'decision',repetitions:2,max_requests:1})});
122
+ assert.equal(res.status,202); let stepJob = await res.json();
123
+ for(let i=0;i<100 && ['queued','running'].includes(stepJob.status);i++){await new Promise(r=>setTimeout(r,20));stepJob=await fetch(`${second.url}/raytace/experiments/${stepJob.id}`).then(r=>r.json());}
124
+ assert.equal(stepJob.status,'completed');assert.equal(stepJob.summary.baseline.rate,1);assert.equal(stepJob.summary.intervention.rate,0);
125
+ if(mode === 'openrouter') {
126
+ const before = received.length;
127
+ const explain = () => fetch(`${second.url}/raytace/explanations`,{method:'POST',headers,body:JSON.stringify({exchange_id:selected.exchange_id,output_index:0})});
128
+ const generated = await explain(); assert.equal(generated.status,200); assert.equal((await generated.json()).hypotheses.length,1);
129
+ assert.equal((await explain()).status,200); assert.equal(received.length,before+1);
130
+ assert.equal(received.at(-1).payload.model,'qwen/qwen3-coder');
131
+ const reopened = await fetch(`${second.url}/raytace/steps/${selected.exchange_id}/0`).then(r=>r.json());
132
+ assert.equal(reopened.explanation_generated,true);assert.equal(reopened.hypotheses.length,1);
133
+ }
134
+
135
+ });