refactor(orka): remove the harness v1 Orka protocol
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- build-system, ci-cd, devtools, documentation
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 7
- Forks
- 5
- Merge medio
- 3 h 39 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de orka-agents/agentkit
-
fix(pydantic-ai): CI fails with newest pydantic-ai (unexpected 'history' argument)Posiblemente ocupada @gambtho la tomó hace 30 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
orka-agents/agentkit#77 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
orka-agents/agentkit#76 · 3 comentarios ·
-
area/build area/orka area/runtime enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
orka-agents/agentkit#68 ·
-
area/build enhancement testing
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
orka-agents/agentkit#65 ·
-
area/build enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
orka-agents/agentkit#64 ·
Todos los issues de orka-agents/agentkit
Issues similares
-
bot-triaged module: correctness (silent) module: fft triage review
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Remove Python pin in recipeAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
conda-forge/zarpaint-feedstock#8 · 1 comentario · 1 reacción ·
-
plot_prediction colorbar shows a 0-1 range instead of the data rangePosiblemente ocupada @nikhil3495 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
mllam/neural-lam#902 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
didi/helixharness#28 ·
Los mantenedores suelen responder en 1 día
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Abiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
DaoCloud/DaoCloud-docs#7839 ·
Los mantenedores suelen responder en 1 día