ADR 0004 phase 6: unify reasoning and directed protocol compatibility

Abierto
#10,296 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
api, backend, testing

Línea de trabajo

Start with the Phase 4 eligibility integration in containers/api-proxy/reasoning-effort-validation.js, model-api-mapping.js, and model-resolver.js; inspect the routing, classifier, translator, and #10030 exact-model fixtures named in the issue. First confirm Phase 4 (#10294) is complete, then trace how the current paths resolve reasoning and protocol support. Done means the acceptance criteria pass, including directed compatibility tests and shadow comparisons before activation.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Objective and dependencies

Implement ADR 0004 Gate 6. Parent: #10290. Reconciled on 2026-11-10 UTC against merged PRs, AWF v0.29.11, and trusted live-smoke artifacts. Shared reasoning and directed compatibility are implemented and released; broader exact-model coverage and compiler/downstream integration must not be inferred from that delivery. Avoid taking ownership of pricing logic.

Delivered implementation and release boundary

#10317 supplies canonical/staged records; #10681, #10763 and #10878 supply shared identity, bounded recovery and scoped eligibility/re-evaluation. Reuse these foundations.

  • #11320 delivers shared immutable exact-model reasoning decisions for direct validation and automatic routing. Runtime evidence precedes maintained evidence within its exact scope; unknown direct support retains existing pass-through behavior, while automatic choices require understood support. Raw future efforts, provenance and request pins are preserved.
  • #11325 delivers six executable directed translator contracts with per-feature conditions, implementation hashes and actual request/response fixtures. Native support, request translation and return-response directions are distinct; known semantic losses are characterized, not declared lossless.
  • #11328 wires actual-request compatibility assessment into automatic fallback/recovery and exposes captured accepted/skipped/exhausted decisions through existing /reflect. Incompatible or unverified automatic candidates are conservatively skipped; existing direct/native behavior and policy/budget authority remain.
  • #11334 activates reviewed exact-native GPT-5.4 mini/snapshot and Opus 4.6/4.7/4.8 reasoning/context corrections. #11332 adds narrowly scoped Decisions compatibility evidence; it does not establish unsuffixed Copilot support.
  • #11312 adds reviewed accounting families. Those families are not reasoning, capability, availability or replacement evidence.

These slices are included in AWF v0.29.11. gh-aw v1.2.2 pins that AWF release; #11412 upgrades this repository's compiled workflows. A compiler version bump does not establish end-to-end diagnostics acceptance.

Live agent utilization acceptance

#11371 introduces the real Copilot/Claude/Codex smoke; #11429 adds bounded sanitized failed-assertion/request-shape evidence; #11431 fixes the request-only initial handoff and clarifies correction versus permanent denial. The latter harness fixes postdate v0.29.11.

Run 42904995184, at 6454ec273f0289ed5788475495d22a42c606ff15, passed the provider-free gate and all six real-agent Docker scenarios:

  • Each recovery: exact initial HTTP 400 unsupported_reasoning_effort -> successful GET /reflect containing that rejection -> effort-only correction -> HTTP 200; exactly two target POSTs, one target upstream request and verified nonce-derived result.
  • Each denial: exact HTTP 403 model_policy_violation -> successful GET /reflect containing policy_denied -> explicit blocked report with retry: false; one target POST and zero upstream requests.

This establishes observable diagnostic utilization with real pinned CLIs, production proxy/diagnostics and a deterministic challenge upstream. It is not proof that /reflect was causally necessary, that real upstream models support every capability, or that the released gh-aw/AWF pair was exercised: the smoke builds the exact source SHA and invokes agents outside compiler-generated execution. Earlier failed runs remain historical evidence, not the current acceptance verdict. Raw historical request payloads and Claude's historical stop cause remain unproven.

Remaining integration and coverage boundaries

#10030 remains open. Do not equate the reviewed #11334 subset with complete coverage of all specialized GPT, Fable/Mythos or Haiku variants. Governed imports and source retrieval do not establish native/Copilot support.

#10294, #11091, #11092 and #11068 are now closed. Their state alone does not establish every acceptance criterion: the Phase 4 body still contains unchecked compiler/overlay criteria, and github/gh-aw#70728 remains open without linked implementation/round-trip acceptance in its body. Verify that handoff before assigning duplicate work or claiming completion. The Docker diagnostics pass does not establish NVX, KVM or actual Kubernetes ARC acceptance, per-enclave attribution, or opaque-session evidence.

User-confirmed supported targets: cloud-hypervisor, nvx, docker, and arc/dind only. ARC/DinD is a Docker deployment topology, not a separate runtime backend. sbx is unsupported; historical enum/backend names (including runc/gVisor/Kata) are not additional product support targets. Do not count sbx coverage toward phase completion or plan new sbx work.

Scope

Make routing, direct-request validation, and reflection-facing data use the same resolved reasoning/capability record. Preserve raw provider efforts while mapping only understood values into selectable router choices; unknown values survive ingestion/export with a non-selectable reason. Resolve exact-model capability refinements over family defaults and preserve explicit unknown/unsupported/conditional states.

Model protocol support separately from translation: native, AWF-translatable, lossy, unsupported, unknown. Declare each directed source→target protocol pair, per-feature conditions, and translator capability revision. Connect enforcement rejections to declared requirements; endpoint availability alone proves neither lossless translation nor reverse-direction support.

Entry points: containers/api-proxy/{reasoning-effort-validation.js,model-api-mapping.js,model-resolver.js}, routing/classifier modules and request/response translators, Phase 4 eligibility, and #10030 exact-model fixtures.

Acceptance criteria

  • Supporting identity and bounded-recovery integration uses canonical names and rejects unknown feature support in recovery candidates. #10681/#10763. This does not satisfy the broader reasoning/translation criteria below.
  • Shared scoped eligibility/re-evaluation decision and reasons are available to reasoning consumers. #10878; this does not complete their reasoning/translation migration or backend observation coverage.
  • Direct validation and automatic routing consume shared exact-model reasoning decisions with scoped evidence and request pins. #11320. Direct unknown-support pass-through remains intentional; automatic selectability requires known understood support. Complete all-runtime harness enforcement is not inferred.
  • Preserve raw future efforts and provenance while excluding unknown efforts from selectable automatic choices. #11320.
  • Exact positive/negative fixtures cover the ADR's specialized GPT variants, GPT-5.4 Mini, Opus 4.6 vs 4.7/4.8, Fable/Mythos vs Mythos Preview, and Haiku 5.5; do not infer support from family/endpoint names.
  • Executable directed feature contracts cover the six implemented translator directions and explicitly characterize conditions, rejections and known losses. #11325. These are not universal native-model or reverse-direction support claims.
  • Automatic fallback/recovery assesses the actual request against directed contracts, skipping incompatible/unverified candidates with explicit evidence. #11328. Broader translator/native semantics remain bounded by the characterized implementations.
  • Preserve existing direct/native translator behavior rather than silently promising losslessness; automatic substitutions are admitted only under the reviewed compatibility assessment. #11325/#11328.
  • Shared decisions and compatibility assessment are active with regression-backed direct/routing/fallback coverage. #11320/#11328. Do not reintroduce an indefinite old-authoritative shadow migration as a prerequisite for already reviewed activation.
  • Existing /reflect exposes sanitized current metadata and captured request reasoning/compatibility outcomes. #11323/#11328; no /reflect/v2.
  • Real Copilot, Claude and Codex each pass recovery and denial utilization in the source-built Docker smoke. Run 42904995184; #11371/#11429/#11431.
  • Establish equivalent release-pinned, compiler-generated workflow acceptance; do not relabel the source-built direct-CLI pass as that evidence.
  • Verify remaining compiler-overlay/downstream integration and the exact-model coverage still tracked by #10030 before closing the broader phase.

Non-goals / handoff

No new model-selection policy, marketing-name inference, raw provider export, or duplicate capability tables. Keep transitional adapters for Phase 9; give export consumers the shared resolved contract.

Lenguaje dominante
TypeScript
Estrellas
169
Forks
89
Merge medio
5 h 18 min
PR fusionados (30 d)
450

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-aw-firewall

Todos los issues de github/gh-aw-firewall

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.