refactor(orka): remove the harness v1 Orka protocol
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
Wait until orka-agents/orka#568 merges, then read the listed removal steps and inspect the shared callers with git grep before deleting helpers. Start with the Python runtime, Go CLI/catalog, CI scripts, and docs named in the issue; run the specified git grep check and the listed test, lint, and e2e commands. Done means the grep is empty, v1 startup is rejected, and the required checks pass.
索引モデルが issue の本文から書いたものです。
説明
Start after orka-agents/orka#568 merges. That issue removes harness v1 from Orka. Removing it here first would break anyone still running an Orka that uses v1.
Problem
AgentKit can run under Orka in two ways. Orka calls each way a "harness":
- Harness v1 (
AGENTKIT_PROTOCOL=orka). AgentKit runs its own HTTP server, and Orka sends it work over HTTP with server-sent events. The code isruntimes/common/agentkit_serve_common/orka.py, about 1,800 lines. - Harness v2 (
--protocol acp). Orka's supervisor starts AgentKit as a child process and talks to it over stdin and stdout using ACP, the Agent Client Protocol. The code isacp.py.
Orka is removing harness v1 completely, with no fallback (orka-agents/orka#568). After that, nothing calls AgentKit's v1 mode, but AgentKit will still:
- ship and test about 1,800 lines of code that nothing uses;
- explain how to set up v1 in the README,
docs/orka.mdandAGENTS.md, even though that setup fails against a current Orka; - offer
agentkit render --target orka-agentruntime, which writes acontractVersion: orka.harness.v1registration that Orka will reject; - run the
orka-v1-conformanceCI job (.github/workflows/ci.yml, around line 611). It runs Orka'sTestExternalAgentKitServetest, which orka-agents/orka#568 deletes. The job breaks the next time we update the pinned Orka revision intest/orka-harness-v2/orka-revision.
What
Remove harness v1 support. ACP mode (harness v2) becomes the only way to run AgentKit under Orka. AGENTKIT_PROTOCOL=orka should then fail at startup with the normal unknown-protocol error.
Keep these. They look related but are still in use:
acp.pyand everything it uses.tool_errors.py(orka_tool_error_details). Despite the name, the MAF adapter and the Foundry code use it.AGENTKIT_ORKA_OFFLINE_ECHO. ACP mode uses it too.scripts/orka-harness-v2-e2e.shand the v2 CI jobs.
Out of scope:
- A
rendertarget for v2 registrations. File it separately if we want one.docs/orka.mdalready explains the v2 setup. - ACP, Foundry, and the
openaiandagentsessionsprotocols. - Any compatibility layer that quietly maps
orkato something else.
Why
- AgentKit offers one supported way to run under Orka, the same one Orka supports.
- There is less to maintain: about 1,800 lines of runtime code plus its tests, parity checks, a CLI command and a CI job.
- The docs stop pointing people at a setup that no longer works.
How
Work through the list below. Before deleting a shared helper, git grep for its other callers.
Python runtime
- Delete
runtimes/common/agentkit_serve_common/orka.pyandruntimes/common/tests/test_orka_protocol.py. runtimes/common/agentkit_serve_common/cli.py: removeorkafrom_PROTOCOLS(line 60), thecreate_orka_appimport (line 54), theprotocol == "orka"branches (around lines 126, 140 and 185), and theorkaline in the module docstring.runtimes/common/agentkit_serve_common/parity.py: remove the v1 checks that import from.orka(around lines 343 and 362).runtimes/common/agentkit_serve_common/runtime.py: inoffline_orka_echo_enabled()(line 29), change{"acp", "orka"}to only"acp".
Go build and CLI
- Delete
pkg/agentkit/render/, whose only target isorka-agentruntime, and therendersubcommand incmd/frontend/main.go(line 16). pkg/agentkit/runtimes/catalog.go: removeCapabilityOrkaHarnessV1,CapabilityOrkaObservedToolsand the reservedCapabilityOrkaBrokeredTools(lines 41 to 49) and their uses. Removeorka-harness-v1andorka-observed-toolsfromruntimes/catalog/*.yaml. The catalog consistency test checks that the two stay in sync.pkg/agentkit2llb/agent/image.go: removeorkafromimageProtocols(line 19) and stop writing theai.orka.harness.versionimage label (lines 20 and 68). RemoveImageLabelOrkaHarnessVersionfrompkg/agentkit/config/labels.go. Orka never reads this label.
CI and scripts
.github/workflows/ci.yml: delete theorka-v1-conformancejob (around line 611). In theSmoke test built agent imagesstep of thecontainer-buildjob, remove theAGENTKIT_PROTOCOL=orkachecks (around lines 405 to 500) and keep the rest.scripts/parity-container-smoke.sh: remove the v1 request (around line 108).
Docs
README.md: remove theAGENTKIT_PROTOCOL=orkaexample (line 78), theorkarow of the protocol table (line 93), theagentkit renderexample and v1 JSON examples (lines 97 to 126), and the offline v1 smoke paragraph (around line 138). Keep the harness v2 paragraph. Update thedocs/orka.mdlink description (line 412).docs/orka.md: delete the v1 sections from "Harness v1 observed mode" (line 180) to the end of the file. Before deleting "Offline Orka conformance/demo mode", move any part that still applies to ACP mode into the v2 sections.- Remove v1 mentions from
docs/architecture.md(around lines 141 to 170),docs/runtime-adapters.md(lines 18 and 66) anddocs/runtime-capabilities.md(line 25). AGENTS.md: the "Orka harness protocol" section only describes v1 (/v1/turns,StartTurnRequest,contextRefs,input.env). Replace it with the rules that apply to ACP mode, checked againstacp.py, or with a short pointer todocs/orka.md.
To check that nothing is left, run this. It should print nothing:
git grep -n -iE 'orka\.harness\.v1|AGENTKIT_PROTOCOL=orka|orka-harness-v1|orka-observed-tools|create_orka_app|orka-agentruntime'
Done when
-
AGENTKIT_PROTOCOL=orkaand--protocol orkafail at startup with the unknown-protocol error. - The
git grepabove prints nothing. -
bash scripts/orka-harness-v2-e2e.sh offline <adapter>passes forpydantic-aiandmicrosoft-agent-framework.langgraphbehaves the same as before; its known failure is #47. -
uv run --directory runtimes/common --extra dev pytest -q,go test ./...,make lintandgo run github.com/rhysd/actionlint/cmd/[email protected] .github/workflows/*.ymlpass.
- 主要言語
- Python
- スター
- 7
- フォーク
- 5
- 平均マージ
- 3時間 39分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
orka-agents/agentkit のほかの issue
-
fix(pydantic-ai): CI fails with newest pydantic-ai (unexpected 'history' argument)対応中かも @gambtho が 30 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
orka-agents/agentkit#77 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
orka-agents/agentkit#76 · コメント 3 件 ·
-
area/build area/orka area/runtime enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
orka-agents/agentkit#68 ·
-
area/build enhancement testing
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
orka-agents/agentkit#65 ·
-
area/build enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
orka-agents/agentkit#64 ·
orka-agents/agentkit の issue をすべて見る
似ている issue
-
bot-triaged module: correctness (silent) module: fft triage review
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
conda-forge/zarpaint-feedstock#8 · コメント 1 件 · リアクション 1 件 ·
-
plot_prediction colorbar shows a 0-1 range instead of the data range対応中かも @nikhil3495 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mllam/neural-lam#902 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
didi/helixharness#28 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
DaoCloud/DaoCloud-docs#7839 ·
メンテナーはふだん 1 日以内に返信