ADR 0004 phase 6: unify reasoning and directed protocol compatibility
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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/reflectcontaining 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/reflectcontainingpolicy_denied-> explicit blocked report withretry: 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
/reflectexposes 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.
- 主要语言
- TypeScript
- 星标
- 169
- 派生
- 89
- 平均合并
- 5 小时 18 分钟
- 30 天内合并 PR
- 450
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/gh-aw-firewall 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
github/gh-aw-firewall#12415 ·
维护者通常 1 天内回复
-
code-quality refactoring
难度 2/5 1-3 小时 新手友好度 76/100
github/gh-aw-firewall#12411 ·
维护者通常 1 天内回复
-
code-quality refactoring
难度 2/5 1-3 小时 新手友好度 78/100
github/gh-aw-firewall#12345 ·
维护者通常 1 天内回复
-
[Duplicate Code] Repeated lstat identity-swap stub and fixture setup in src/nvx/live-mount-policy.test.ts可能已有人在做 @lpcox 于 1 天前认领。 未关闭code-quality refactoring
难度 2/5 1-3 小时 新手友好度 65/100
github/gh-aw-firewall#12023 · 1 个 reaction · 已指派 2 人 ·
维护者通常 1 天内回复
-
awf-triage
难度 2/5 1-3 小时 新手友好度 72/100
github/gh-aw-firewall#11612 ·
维护者通常 1 天内回复
查看 github/gh-aw-firewall 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
ardia-browser/ardia#5810 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
SocialGouv/egapro#5329 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 69/100
activepieces/activepieces#17974 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
OHDSI/Data2Evidence#3777 ·
维护者通常 3 天内回复