Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions actions/setup/js/routing_observation.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ const INCONCLUSIVE_DETECTION_REASONS = new Set(["agent_failure", "parse_error",
// collector's driver_crash cause also covers unclassified nonzero exits, so a
// crash counts only through its own evidence: a crash signal or an interrupted attempt.
const INFRASTRUCTURE_FAILURE_CAUSES = new Set(["agent_startup_failure", "secret_redaction_failure", "engine_outage"]);
// Beside a confirmed limit these labels are the model's: the generic labels a guard's budget rejection can arrive
// wrapped in, and the transient API errors (HTML challenges) that harnesses labelled authentication_failed before.
const YIELD_TO_LIMIT = new Set(["authentication_failed", "api_proxy_guard_rejected", "transient_error"]);
// Beside a confirmed limit these labels yield to the model's limit: generic labels a guard's budget rejection can
// arrive wrapped in, transient API errors (HTML challenges) that harnesses labelled authentication_failed before,
// and model_policy_violation, which can coexist with confirmed behavioral limits in agent.execution.categories.
const YIELD_TO_LIMIT = new Set(["authentication_failed", "api_proxy_guard_rejected", "model_policy_violation", "transient_error"]);
const INFRASTRUCTURE_CATEGORIES = new Set([
"agentic_engine_timeout",
"authentication_failed",
Expand All @@ -50,7 +51,9 @@ const INFRASTRUCTURE_CATEGORIES = new Set([
"inference_access_error",
"mcp_policy_error",
"missing_model_pricing_error",
"model_endpoint_mismatch_error",
Comment thread
rabeckett marked this conversation as resolved.
Resolved
"model_not_supported_error",
"model_policy_violation",
"sandbox_runtime_crash",
]);
const INFRASTRUCTURE_CLASSES = new Set([
Expand Down
25 changes: 25 additions & 0 deletions actions/setup/js/routing_observation.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,21 @@ describe("routingOutcome", () => {
["an interrupted harness attempt", { agentResult: "failure", harness: { outcome: "interrupted", failureClasses: [] } }, skip("infrastructure")],
["a provider 5xx", { agentResult: "failure", execution: { categories: [], errorCodes: ["503"] } }, skip("infrastructure")],
["an authentication failure", { agentResult: "failure", execution: { categories: ["authentication_failed"], errorCodes: [] } }, skip("infrastructure")],
[
"a category-only model endpoint mismatch with no terminal output",
{ agentResult: "failure", output: output(["report_incomplete"], { collectorFailureCause: "missing_terminal_safe_output" }), execution: { categories: ["model_endpoint_mismatch_error"], errorCodes: [] } },
skip("infrastructure"),
],
[
"a category-only model policy violation with no terminal output",
{ agentResult: "failure", output: output(["report_incomplete"], { collectorFailureCause: "missing_terminal_safe_output" }), execution: { categories: ["model_policy_violation"], errorCodes: [] } },
skip("infrastructure"),
],
[
"a model endpoint mismatch beside a confirmed limit",
{ agentResult: "failure", output: output([]), execution: { categories: ["model_endpoint_mismatch_error", "effective_tokens_limit_exceeded"], errorCodes: [] } },
skip("infrastructure"),
],
["an API challenge the harness retries could not clear", { agentResult: "failure", output: output([]), harness: { outcome: "failure", failureClasses: ["transient_error"] } }, skip("infrastructure")],
["an incomplete report claiming an infrastructure error", { agentResult: "failure", output: summarizeAgentOutput({ items: [{ type: "report_incomplete", reason: "infrastructure_error" }], errors: [] }) }, skip("unknown_evidence")],
[
Expand All @@ -111,6 +126,16 @@ describe("routingOutcome", () => {
["a turn limit without agent output", { agentResult: "failure", output: undefined, harness: turnLimit }, { outcome: "failure" }],
["a turn limit beside an unclassified nonzero exit", { agentResult: "failure", output: output(["report_incomplete"], { collectorFailureCause: "driver_crash" }), harness: turnLimit }, { outcome: "failure" }],
["a credit limit wrapped as an authentication failure", { agentResult: "failure", output: output([]), execution: { categories: ["authentication_failed", "max_ai_credits_exceeded"], errorCodes: [] } }, { outcome: "failure" }],
[
"an effective token limit beside a model policy violation",
{ agentResult: "failure", output: output([]), execution: { categories: ["model_policy_violation", "effective_tokens_limit_exceeded"], errorCodes: [] } },
{ outcome: "failure" },
],
[
"a permission denial limit beside a model policy violation",
{ agentResult: "failure", output: output([]), execution: { categories: ["model_policy_violation", "permission_denied_limit_exceeded"], errorCodes: [] } },
{ outcome: "failure" },
],
["a turn limit beside a retried API challenge", { agentResult: "failure", output: output([]), harness: { outcome: "failure", failureClasses: ["transient_error", "max_turns"] } }, { outcome: "failure" }],
["a refusal that left no terminal output", { agentResult: "failure", output: output([]), refused: true }, { outcome: "failure" }],
["a refusal the agent recovered from", { agentResult: "failure", refused: true }, skip("unknown_evidence")],
Expand Down
35 changes: 21 additions & 14 deletions docs/src/content/docs/specs/unified-agent-session-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ spec: true
description: Draft contract for canonical traces, full unified artifacts, and bounded compact unified sessions.
sidebar:
order: 1365
version: "2.15.0"
version: "2.15.1"
status: Draft
publication_date: "2026-11-23"
publication_date: "2026-11-24"
editors:
- name: GitHub Agentic Workflows Team
organization: GitHub
---

# Unified Agent Session Specification

**Version**: 2.15.0<br>
**Version**: 2.15.1<br>
**Status**: Draft<br>
**Publication Date**: 2026-11-23<br>
**Publication Date**: 2026-11-24<br>
**Editors**: GitHub Agentic Workflows Team (GitHub)<br>
**This Version**: [unified-agent-session-specification](/gh-aw/specs/unified-agent-session-specification/)<br>
**Latest Version**: This document
Expand All @@ -31,7 +31,7 @@ This specification defines the session traces used by GitHub Agentic Workflows:

This is a **GitHub Agentic Workflows project specification**, written using W3C-inspired document conventions. It is **not an official W3C standard**, W3C publication, or W3C-endorsed recommendation.

Version 2.15.0 is a draft governed by the project's normal review process. It may be updated, replaced, or superseded. The accompanying implementation and regression suites exercise this contract, including the sampled CI sessions identified in Section 9.4. This is not a blanket declaration of conformance for every engine version or source format. Section 10 records historical pre-implementation gaps, not current defects. Approval and ongoing compliance testing remain project responsibilities.
Version 2.15.1 is a draft governed by the project's normal review process. It may be updated, replaced, or superseded. The accompanying implementation and regression suites exercise this contract, including the sampled CI sessions identified in Section 9.4. This is not a blanket declaration of conformance for every engine version or source format. Section 10 records historical pre-implementation gaps, not current defects. Approval and ongoing compliance testing remain project responsibilities.

The specification version belongs to this document. The unified file's leading
`session.format` record carries an independent numeric serialization-format
Expand Down Expand Up @@ -1199,16 +1199,18 @@ ran, reached a clean result. Rules apply in order:
2. For a run that did not succeed, `skip` with `infrastructure` for platform
failures: startup failures, interrupted harness attempts, crash signals, engine
outages and timeouts, a safe-output gateway that registered no tools,
authentication and policy rejections, provider 5xx responses that the engine or
AWF recorded for an agent request, and harness infrastructure failure classes.
authentication and policy rejections (including `model_policy_violation`),
model/endpoint incompatibilities (including `model_endpoint_mismatch_error`),
provider 5xx responses that the engine or AWF recorded for an agent request,
and harness infrastructure failure classes.
Then `skip` with `rate_limited` for such 429 responses and quota or rate-limit
categories and classes. A generic authentication or proxy-guard rejection, or a
transient API error such as an HTML challenge, beside a confirmed limit belongs
to the limit, not the platform. An incomplete report
whose reason claims an infrastructure error is neither the agent's own report nor
platform evidence, because runtimes use that reason for budgets and rate-limit
waits too and the agent can file it. A run that succeeded is not re-examined for
transient errors it recovered from.
categories and classes. A generic authentication or proxy-guard rejection
(including `model_policy_violation`), or a transient API error such as an HTML
challenge, beside a confirmed limit belongs to the limit, not the platform. An
incomplete report whose reason claims an infrastructure error is neither the
agent's own report nor platform evidence, because runtimes use that reason for
budgets and rate-limit waits too and the agent can file it. A run that
succeeded is not re-examined for transient errors it recovered from.
3. `skip` with `pair_mismatch` when an agent request ran another model or effort,
and `skip` with `unknown_evidence` when the requests cannot be attributed.
4. `skip` with `unknown_evidence` when threat detection flagged the output.
Expand Down Expand Up @@ -2871,6 +2873,11 @@ Native IDs can collide, timestamps can be out of order, and a trace can contain

## 13. Change Log (Informative)

### Version 2.15.1 - Draft (2026-11-24)

- Clarified that `routing.observation` treats `model_endpoint_mismatch_error` and `model_policy_violation` execution categories as infrastructure, with `model_policy_violation` yielding to a confirmed behavioral limit like a generic authentication or proxy-guard rejection (T-UAS-094).
- Retained serialization-format version 1.

### Version 2.15.0 - Draft (2026-11-23)

- Clarified T-UAS-090 to recognize the Azure `429 Token limit is exceeded` terminal signature.
Expand Down
Loading