File size: 15,758 Bytes
95054ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
{
  "model_id": "ARO-Lang/aro-coder-6bit",
  "hub_commit": "c44151a91cb64bade628fc6f7625fd91519190e3",
  "version": null,
  "validated_at": "2026-08-10T07:28:42.812565+00:00",
  "prompt_source": "bundled aro_system_prompt.txt",
  "passed": true,
  "breaches": [],
  "gates": {
    "reply_rate_min": 0.5,
    "empty_think_max": 0.2,
    "syntax_pass_min": 0.4,
    "tool_leak_max": 0.02,
    "url_contam_max": 0.05
  },
  "metrics": {
    "reply_rate": 1.0,
    "empty_think_rate": 0.0,
    "syntax_pass_rate": 0.8181818181818182,
    "tool_leak_rate": 0.0,
    "url_contam_rate": 0.0,
    "qa_answer_rate": 0.625,
    "total": 26,
    "with_code": 22,
    "syntax_pass": 18
  },
  "results": [
    {
      "idx": 1,
      "mode": "code",
      "cat": "repl_oneliner",
      "prompt": "Write a single ARO line that logs 'Hello, World!' to the console.",
      "reply": "```aro\nLog 'Hello, World!' to the <console>.\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": false,
      "check_error": "main.aro:",
      "check_error_class": "other",
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 2,
      "mode": "code",
      "cat": "repl_block",
      "prompt": "Write ARO statements that create a list of three numbers and log its length.",
      "reply": "```aro\n(Application-Start: Example) {\n    Create the <numbers> with [1, 2, 3].\n    Log <numbers> to the <console>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 3,
      "mode": "code",
      "cat": "application",
      "prompt": "Write a minimal ARO application that logs Hello World and exits.",
      "reply": "```aro\n(Application-Start: Example) {\n    Log \"Hello, World!\" to the <console>.\n    Return an <OK: status> for the <startup>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 4,
      "mode": "code",
      "cat": "application",
      "prompt": "Write an ARO Application-Start that starts an HTTP server and keeps running with Keepalive.",
      "reply": "```aro\n(Application-Start: Server) {\n    Log \"Starting...\" to the <console>.\n    Start the <http-server> with <contract>.\n    Keepalive the <application> for the <events>.\n    Return an <OK: status> for the <startup>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 5,
      "mode": "code",
      "cat": "application",
      "prompt": "Write an ARO Application-End: Success handler that logs a shutdown message.",
      "reply": "```aro\n(Application-End: Success) {\n    Log \"Shutting down...\" to the <console>.\n    Return an <OK: status> for the <shutdown>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 6,
      "mode": "code",
      "cat": "http_api",
      "prompt": "Write an ARO feature set named getUser that retrieves a user by ID from the user-repository and returns it as an OK response.",
      "reply": "```aro\n(getUser: User API) {\n    Extract the <id> from the <pathParameters: id>.\n    Retrieve the <user> from the <user-repository> where id = <id>.\n    Return an <OK: status> with <user>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": false,
      "check_error": "main.aro:",
      "check_error_class": "other",
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 7,
      "mode": "code",
      "cat": "http_api",
      "prompt": "Write an ARO feature set named createOrder that extracts the request body, stores a new order, and returns a Created status.",
      "reply": "```aro\n(createOrder: Order API) {\n    Extract the <data> from the <request: body>.\n    Store the <order> into the <order-repository>.\n    Return a <Created: status> with <order>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 8,
      "mode": "code",
      "cat": "http_api",
      "prompt": "Write an ARO feature set named listProducts that retrieves all products and returns them.",
      "reply": "```aro\n(listProducts: Product API) {\n    Retrieve the <products> from the <product-repository>.\n    Return an <OK: status> with <products>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 9,
      "mode": "code",
      "cat": "event_handler",
      "prompt": "Write an ARO event handler that sends a welcome email when a UserCreated event is received.",
      "reply": "```aro\n(Send Email: UserCreated Handler) {\n    Extract the <user> from the <event: user>.\n    Send the <welcome-email> to the <user: email>.\n    Return an <OK: status> for the <notification>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 10,
      "mode": "code",
      "cat": "event_handler",
      "prompt": "Write an ARO feature set that emits an OrderPlaced event with the order data.",
      "reply": "```aro\n(Application-Start: Order API) {\n    Log \"Starting Order API...\" to the <console>.\n    Start the <http-server> with <contract>.\n    Keepalive the <application> for the <events>.\n    Return an <OK: status> for the <startup>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 11,
      "mode": "code",
      "cat": "repository",
      "prompt": "Write an ARO feature set that observes the user-repository and logs every change.",
      "reply": "```aro\n(Application-Start: User Observer) {\n    Log \"Starting User Observer...\" to the <console>.\n    Start the <user-repository: observer> for the <events>.\n    Return an <OK: status> for the <startup>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 12,
      "mode": "code",
      "cat": "repository",
      "prompt": "Write an ARO feature set that stores a new record in the sessions-repository and emits a SessionCreated event.",
      "reply": "```aro\n(StoreSession: Session API) {\n    Extract the <session-data> from the <request: body>.\n    Store the <session> into the <sessions-repository>.\n    Emit a <SessionCreated: event> with <session>.\n    Return an <OK: status> with <session>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 13,
      "mode": "code",
      "cat": "iteration",
      "prompt": "Write an ARO for-each loop that logs each item in a list of names.",
      "reply": "```aro\n(LogNames: Example) {\n    Create the <names> with [\"Alice\", \"Bob\", \"Carol\"].\n    For each <name> in <names> {\n        Log <name> to the <console>.\n    }\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 14,
      "mode": "code",
      "cat": "conditional",
      "prompt": "Write an ARO feature set with a When guard that only returns OK when the user role is \"admin\".",
      "reply": "```aro\n(getUser: User API) {\n    Extract the <id> from the <pathParameters: id>.\n    Retrieve the <user> from the <user-repository> where id = <id>.\n    Return an <OK: status> with <user>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": false,
      "check_error": "main.aro:",
      "check_error_class": "other",
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 15,
      "mode": "code",
      "cat": "computation",
      "prompt": "Write an ARO feature set that computes the total price from price and quantity and returns it.",
      "reply": "```aro\n(Compute Total: Pricing) {\n    Extract the <price> from the <request: price>.\n    Extract the <quantity> from the <request: quantity>.\n    Compute the <total> from <price> * <quantity>.\n    Return an <OK: status> with <total>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 16,
      "mode": "code",
      "cat": "user_action",
      "prompt": "Define an ARO user-defined action named DoubleValue that doubles a number.",
      "reply": "```aro\n(DoubleValue: Action takes <number>) {\n    Extract the <n> from the <input: number>.\n    Compute the <doubled> from <n> * 2.\n    Return an <OK: status> with { doubled: <doubled> }.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 17,
      "mode": "code",
      "cat": "debugging",
      "prompt": "Fix this ARO code so it passes aro check:\n\n```aro\n(listUsers: User API) {\n    Retrieve the <users> from the <user-repository>.\n    Return an <OK: status> with <users>.\n```",
      "reply": "```aro\n(listUsers: User API) {\n    Retrieve the <users> from the <user-repository>.\n    Return an <OK: status> with <users>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 18,
      "mode": "code",
      "cat": "file",
      "prompt": "Write an ARO Application-Start that reads a config file and logs its contents.",
      "reply": "```aro\n(Application-Start: Config Loader) {\n    Read the <config> from the <file: \"config.yaml\">.\n    Log <config> to the <console>.\n    Return an <OK: status> for the <startup>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 19,
      "mode": "qa",
      "cat": "explain",
      "prompt": "What is the difference between Extract and Compute actions in ARO?",
      "reply": "Extract retrieves data from an external source like the request or the file system. Compute derives a new value from existing data.",
      "empty_think": false,
      "has_code": false,
      "aro_check_pass": null,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 20,
      "mode": "qa",
      "cat": "explain",
      "prompt": "How do I emit a custom event in ARO and handle it in another feature set?",
      "reply": "```aro\n(Application-Start: Example) {\n    Emit a <UserCreated: event> with <user>.\n    Return an <OK: status> for the <startup>.\n}\n\n(Send Email: UserCreated Handler) {\n    Extract the <user> from the <event: user>.\n    Send the <email> to the <user: email>.\n    Return an <OK: status> for the <notification>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 21,
      "mode": "qa",
      "cat": "explain",
      "prompt": "How does the Publish action work in ARO? Give an example.",
      "reply": "The Publish action makes a value visible under a new name. Here's an example:\n```aro\n(Feature Name: Business Activity) {\n    Extract the <result: qualifier> from the <source: qualifier>.\n    Compute the <output> for the <input>.\n    Return an <OK: status> for a <valid: result>.\n    Publish as <alias> <variable>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": false,
      "check_error": "main.aro:",
      "check_error_class": "other",
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 22,
      "mode": "qa",
      "cat": "explain",
      "prompt": "Why are ARO variables immutable and how do I update a value?",
      "reply": "```aro\n(ImmutableVars: Example) {\n    Create the <total> with 10.\n    Compute the <updated: total> from <total> + 5.\n    Return an <OK: status> with <updated>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 23,
      "mode": "qa",
      "cat": "explain",
      "prompt": "What does the Keepalive action do and when do I need it?",
      "reply": "The Keepalive action maintains the application's activity to keep it alive and processing events. Use it when you need to keep the application running even when there are no incoming events or requests.",
      "empty_think": false,
      "has_code": false,
      "aro_check_pass": null,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 24,
      "mode": "qa",
      "cat": "explain",
      "prompt": "How does contract-first HTTP routing work in ARO?",
      "reply": "```aro\n(Application-Start: Example) {\n    Log \"Starting...\" to the <console>.\n    Start the <http-server> with <contract>.\n    Keepalive the <application> for the <events>.\n    Return an <OK: status> for the <startup>.\n}\n```",
      "empty_think": false,
      "has_code": true,
      "aro_check_pass": true,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 25,
      "mode": "qa",
      "cat": "edge",
      "prompt": "Does ARO have error handling? Explain the error philosophy briefly.",
      "reply": "Yes. The section says: \"Application-End handlers process events in order (shutdown, error, success).\"",
      "empty_think": false,
      "has_code": false,
      "aro_check_pass": null,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    },
    {
      "idx": 26,
      "mode": "qa",
      "cat": "edge",
      "prompt": "What is a .store file in ARO and when is it writable?",
      "reply": "Every feature set ends with a Return or Throw \u2014 the result never leaks.",
      "empty_think": false,
      "has_code": false,
      "aro_check_pass": null,
      "check_error": "",
      "check_error_class": null,
      "tool_leak": false,
      "url_contam": false
    }
  ]
}