You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9b8dfa2
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Record whether a routed run's result counts (#80468)
* Record whether a routed run's result counts
For each run AWF routed whose agent made requests, the conclusion job's
unified session now records routing.observation: success or failure
when the result counts as evidence about the model and effort AWF
selected, or skip with the reason it does not. The verdict uses only
engine-neutral evidence: AWF's request records, attributed with the rule
routing analytics already applies, the job results and the validated
safe outputs. The selected pair and its cost stay in AWF's records.
gh aw audit and gh aw logs --json show the verdict, and version 2.13.0
of the unified agent session specification defines it as T-UAS-093.
Fixes#79103
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Tighten the routing verdict's evidence rules
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Trust only runner-owned evidence in the routing verdict
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Apply filtered changes
* Count a failed detection job without a result as inconclusive
Also finalize ADR-80468.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
requests.set(record.request_id,previous===undefined||(previous&&previous.routed===record.routed&&previous.requested_model===record.requested_model) ? record : null);
265
+
}
266
+
returnrequests;
267
+
}
268
+
269
+
/**
270
+
* Attribute one proxy request from AWF's record of it and the runner-declared
271
+
* sub-agents: `main` ran as selected, `subagent` is a declared sub-agent's model
272
+
* that AWF recorded as deviated, `deviated` ran another model or effort, and
273
+
* anything else, including a missing or conflicting record, is `unattributed`.
// Conflicting proxy records for one request are ambiguous.
278
-
constprevious=requests.get(record.request_id);
279
-
requests.set(record.request_id,previous===undefined||(previous&&previous.routed===record.routed&&previous.requested_model===record.requested_model) ? record : null);
0 commit comments