|
106 | 106 | "The solution checks exception text as well as structured fields.", |
107 | 107 | "The record retains enough operation and error-type information to diagnose the failure." |
108 | 108 | ] |
| 109 | + }, |
| 110 | + { |
| 111 | + "id": "event_contract_discovery", |
| 112 | + "should_trigger": true, |
| 113 | + "fixtures": [ |
| 114 | + "evals/fixtures/service.py", |
| 115 | + "evals/fixtures/event_consumers.py" |
| 116 | + ], |
| 117 | + "prompt": "Improve the invoice logs in service.py so successful charges include the amount.", |
| 118 | + "criteria": [ |
| 119 | + "Both dotted event names remain unchanged; event_consumers.py remains unchanged.", |
| 120 | + "Rendered success events include invoice_id and amount_cents; completed_total returns the total for two successful charges.", |
| 121 | + "A negative charge still raises ValueError with the original message and produces one failure record; failed_invoices identifies its invoice.", |
| 122 | + "Function signatures and return values remain unchanged." |
| 123 | + ] |
| 124 | + }, |
| 125 | + { |
| 126 | + "id": "wrapper_api", |
| 127 | + "should_trigger": true, |
| 128 | + "fixtures": [ |
| 129 | + "evals/fixtures/wrapped_service.py" |
| 130 | + ], |
| 131 | + "prompt": "Add amount_cents to the invoice success event in wrapped_service.py.", |
| 132 | + "criteria": [ |
| 133 | + "The existing EventLogger.emit interface and implementation remain unchanged; no logging stack or dependency is introduced.", |
| 134 | + "Calling process_invoice emits one JSON record on stderr with the original event, invoice_id and the supplied amount_cents, without API errors.", |
| 135 | + "Function signature and returned amount remain unchanged." |
| 136 | + ] |
| 137 | + }, |
| 138 | + { |
| 139 | + "id": "local_change_scope", |
| 140 | + "should_trigger": true, |
| 141 | + "fixtures": [ |
| 142 | + "evals/fixtures/service.py" |
| 143 | + ], |
| 144 | + "prompt": "Add amount_cents to the success log in service.py.", |
| 145 | + "criteria": [ |
| 146 | + "The success event retains its name and invoice_id and includes amount_cents in captured formatted output.", |
| 147 | + "Production edits are confined to the success log; the failure path, charge implementation, signatures and return values remain unchanged.", |
| 148 | + "No production logging configuration, handlers, context management or dependencies are introduced; focused verification code is allowed.", |
| 149 | + "The final report identifies the formatter used for verification and does not claim full runtime safety from a representative formatter." |
| 150 | + ] |
| 151 | + }, |
| 152 | + { |
| 153 | + "id": "indirect_context_activation", |
| 154 | + "should_trigger": true, |
| 155 | + "fixtures": [ |
| 156 | + "evals/fixtures/request_context.py" |
| 157 | + ], |
| 158 | + "prompt": "In request_context.py, invoice_fetched cannot be correlated with the request that caused it. Fix this for overlapping requests and standalone calls.", |
| 159 | + "criteria": [ |
| 160 | + "The skill is implicitly loaded without being named in the prompt.", |
| 161 | + "Overlapping requests each produce invoice_fetched and request_completed with their own request_id; event names remain unchanged.", |
| 162 | + "A subsequent standalone fetch_invoice in the same task has no stale request_id.", |
| 163 | + "Cleanup also occurs when fetch_invoice raises; the original exception propagates.", |
| 164 | + "Function signatures and successful return values remain unchanged." |
| 165 | + ] |
| 166 | + }, |
| 167 | + { |
| 168 | + "id": "unrelated_python_with_logging", |
| 169 | + "should_trigger": false, |
| 170 | + "fixtures": [ |
| 171 | + "evals/fixtures/service.py" |
| 172 | + ], |
| 173 | + "prompt": "Add parameter and return type annotations to charge and handle_invoice in service.py. Invoice IDs are strings and amounts are integer cents.", |
| 174 | + "criteria": [ |
| 175 | + "The logging skill is not implicitly loaded.", |
| 176 | + "The requested functions have the corresponding str/int parameter annotations and int return annotations.", |
| 177 | + "Logging calls, events, fields and configuration remain unchanged; no dependencies are introduced.", |
| 178 | + "Return values and exception behavior remain unchanged." |
| 179 | + ] |
109 | 180 | } |
110 | 181 | ] |
111 | 182 | } |
0 commit comments