Repository navigation
Commit 60814a8
authored
feat(evaluators): send authenticated execution context to runners api (#278)
## Summary
- Add Galileo `execution_context` to the existing `POST
/api/v1/scorers/invoke` request.
- Map the authenticated Agent Control context to Galileo fields:
`namespace_key` → `organization_id`, `caller_id` → `user_id`, trusted
extension `project_id` → `project_id`, and supported target ID →
`run_id`.
- Emit optional context values as `null`; preserve legacy requests when
no runtime extensions are present.
## Scope
- User-facing/API changes: Galileo scorer invocation includes the
additive `execution_context` object.
- Internal changes: Context translation stays inside the Galileo
evaluator package. `run_id` is set only for `log_stream` and
`agent_stream` targets.
- Out of scope: Generic Agent Control models/auth, scorer-grant flows,
record serialization/factory, and record normalization.
## Risk and Rollout
- Risk level: low
- Rollback plan: Revert the Galileo package changes; callers without
runtime context continue using the legacy request shape.
## Testing
- [x] Added or updated automated tests
- [x] Ran Galileo package tests: 172 passed
- [x] Ran Galileo Ruff: all checks passed
- [ ] Ran `make check` (package Makefile targets could not resolve
`hatchling` because the configured package index returned HTTP 401;
equivalent package-local test and Ruff commands passed from the existing
virtualenv)
- [ ] Manually verified behavior
## Checklist
- [ ] Linked issue/spec (if applicable)
- [ ] Updated docs/examples for user-facing changes
- [ ] Included any required follow-up tasks1 parent 097338b commit 60814a8
3 files changed
Lines changed: 125 additions & 36 deletions
File tree
- evaluators/contrib/galileo
- src/agent_control_evaluator_galileo/luna
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
| 239 | + | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
262 | 254 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | 255 | | |
268 | 256 | | |
269 | | - | |
270 | | - | |
| 257 | + | |
| 258 | + | |
271 | 259 | | |
272 | 260 | | |
273 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
249 | 266 | | |
250 | 267 | | |
251 | 268 | | |
| |||
1064 | 1081 | | |
1065 | 1082 | | |
1066 | 1083 | | |
1067 | | - | |
| 1084 | + | |
| 1085 | + | |
1068 | 1086 | | |
1069 | 1087 | | |
1070 | 1088 | | |
| |||
1077 | 1095 | | |
1078 | 1096 | | |
1079 | 1097 | | |
1080 | | - | |
| 1098 | + | |
1081 | 1099 | | |
1082 | 1100 | | |
1083 | 1101 | | |
| |||
1106 | 1124 | | |
1107 | 1125 | | |
1108 | 1126 | | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1112 | 1133 | | |
1113 | 1134 | | |
1114 | 1135 | | |
1115 | 1136 | | |
1116 | 1137 | | |
1117 | 1138 | | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1118 | 1179 | | |
1119 | 1180 | | |
1120 | 1181 | | |
1121 | 1182 | | |
| 1183 | + | |
1122 | 1184 | | |
1123 | 1185 | | |
1124 | 1186 | | |
1125 | 1187 | | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
1126 | 1224 | | |
1127 | | - | |
| 1225 | + | |
1128 | 1226 | | |
1129 | 1227 | | |
1130 | 1228 | | |
| |||
0 commit comments