Repository navigation
[Fork] OpenCode V2 experimental private exclusive execution - #7
Conversation
已完成 fork merge / prerelease本 PR 已 normal merge: Main 再次 doctor 1021 passed / 0 failed,92.67% coverage;conformance 8/8;真实 pinned V2 session/auth smoke 通过(无 model prompt);default/opt-in focused tests 36 passed。Recorded V1/V2 model-backed acceptance 的生产 source digest 与 main 精确一致,没有把复用记录说成新跑完整 live matrix。V1 default、V2 double opt-in 及完整 private operator boundary 不变。 已发布 1.4.1rc1+fork.v2exclusive:OpenCode V2 2.0.28 — experimental private exclusive execution。GitHub-only;非 #2/#3 按明确 fork delivery reconciliation 关闭;#1/#4/#5/#6 保留原广义/upstream DoD,保持 open;#8/#9 保持 open。Upstream stack 的 patch-equivalent ancestry gaps 不为 cosmetic graph 改写,现状与后续验证顺序记录在 #1。Upstream contribution PR 仍待审,不代表 upstream 已发布支持。 |
Fork 合并验收(最终授权)
本 PR 现在用于合并到 tbrandenburg/opencode-a2a:main;不是要求合并 upstream stack。用户已明确授权在验收通过后 normal merge,保留历史与贡献分支。
da51304fbfd15298e1b82f1a4311057dad1246c2;fork base5d4700204445ce658361010cbda2fd344bc60dec。1.18.19/ V22.0.28live acceptance 精确一致:ecd2b57cfab3506704aeabacb8acdc58d4ddc9e6f4bd578be691536e8cf3bef8。本轮没有把历史 live evidence 说成新执行的 live run。OPENCODE_API_VERSION=v2+OPENCODE_V2_EXECUTION=exclusive。Private network/credentials/workspace、fresh upstream state、单 gateway/upstream pair 等部署前提不变。下面保留先前 Draft 阶段的实现/审查记录;其中“未 merge / 等待 maintainer”描述当时状态,fork 最终合并状态以本节及 merge event 为准。Upstream Intelligent-Internet#551–Intelligent-Internet#555 继续待审。
集成参考,不是可独立合并的 upstream PR
关联 #1、#2、#3、#4、#5、#6;保留本 PR 的既有历史与 Draft 状态,没有 force-push 或 merge。
本轮用户授权先完成 private / gateway-exclusive / single-flight profile。原始非独占 shared-session 验收没有被静默改成完成,另见 #9。V1 仍为默认;
OPENCODE_API_VERSION=v2单独选择仍 fail closed,只有额外的OPENCODE_V2_EXECUTION=exclusive才启用明确受限的执行路径。已实现的受限 profile
/api/eventsubscriber,等待server.connected,复用现有 HTTP client、A2A coordinator、renderer、ownership、task store 和 callback registry。a2a_call、unary interventions 与 transparent replay/restart recovery 仍不可用。实际证据
bash ./scripts/doctor.sh:1021 passed,0 failed,92.65% coverage;typing/lint/format、critical-file coverage、build 和 built-wheel smoke 通过。bash ./scripts/conformance.sh:8/8 passed。bash ./scripts/live_opencode_v2_session_smoke.sh:默认 V2 session-only transport、Basic-auth rejection、info/location/session routes 通过,无 model prompt。openai/gpt-6-luna-fast:真实 REST/JSON-RPC stream/unary、follow-up、parallel sessions、same-session serialization、local queued cancellation、active cancellation、read allow/reject、string/multiselect form、invalid/stale/cross-owner callbacks 均通过。期望输出只从 assistant artifacts 重建,不从用户回显匹配。一次 positive matrix 14 admissions / 1 global SSE。完整的 sanitized record:
docs/evidence/v2-exclusive-acceptance.json。部署条件、normal/gap/unsupported paths 和可复现命令:
docs/v2-exclusive-execution.md。Review 修复
已修复 split PR 中遗漏的两个 HIGH typed-outcome / duplicate-send regressions,并追加到 Intelligent-Internet#551/Intelligent-Internet#552。受限实现独立 review 进一步发现并修复:delayed cancel 误伤 successor、poisoned lease 仍可 callback、lifetime session cap、active-work capacity、queued waiter 释放别人的 lock、SDK cancel settlement/deadlock、V1 canceled 被 late FAILED 覆盖、SSE readiness reader retention、lost intervention resolution、multiselect metadata 与不诚实的 extension activation/OpenAPI examples。最终 scoped review 没有待处理 HIGH/CRITICAL;不是“代码无任何 bug”的保证。
上游审查顺序
65c15e9,exact-head doctor 841 passed。cc8470d,exact-head doctor 890 passed;仍 stacked Draft。没有 PR 被自动合并,没有 tracking issue 被关闭。当前结果是受限实现与其验收完成,不是 upstream 已发布完整 V2 支持。需要 maintainer 审查 stack、明确接受 restricted scope,再决定原 epic 的最终处置。