Problem
Alibaba Token Plan exposes provider-native Harness tools for current Qwen models, including web_search, web_extractor, code_interpreter, text-to-image search, and image-to-image search. qwen3.8-max completed a live native code_interpreter call during #3156 verification.
Maka does not currently expose that provider contract:
model-web-search.ts marks Alibaba hosted search as unimplemented and does not cover the Token Plan provider types;
- ModelAdapter only lowers the provider-executed tool shapes it already understands;
- RuntimeEvent replay, usage, citations, and UI projections do not decode Alibaba Harness output items;
- enabling a capability flag without those mappings could drop results or leave dangling provider tool history.
Follow-up to #3156, #3157, and the Alibaba Responses wire work in #3162.
Desired outcome
Maka can offer the native Alibaba Harness tools supported by the selected Token Plan model, execute them through the provider, and preserve their complete semantic result through streaming, persistence, replay, and user-facing projections.
Maka-owned tools such as Bash and configured Tavily search remain distinct choices; selecting model-native search must never silently substitute a different executor.
Proposed delivery
First slice
- Add capability resolution for
alibaba-token-plan-cn and alibaba-token-plan on the verified Responses wire.
- Map
web_search and web_extractor request and streamed output items.
- Preserve source URLs, titles, bounded snippets, and provider call identity without persisting credentials or unbounded raw payloads.
- Project the result as a provider-executed tool episode that survives RuntimeEvent replay.
Follow-up slices
code_interpreter: code/execution/output items, generated files, bounded logs, and usage.
- text-to-image and image-to-image search: image inputs, result provenance, and Artifact handling.
Acceptance criteria
- The UI/runtime advertises only tools the exact selected model and wire support.
- Provider-executed search completes without creating a fake Maka-owned tool operation.
- Search/extractor citations survive streaming, persistence, restart, and transcript replay.
- Code interpreter output and generated files are bounded and attributable when that slice lands.
- Stop/cancel cannot leave an unmatched provider call or result.
- Harness invocation counts in provider usage are retained without double-counting Maka tools.
- Incognito, redaction, and egress/audit policies remain explicit at the provider boundary.
References
Disclosure: this issue was drafted with OpenAI Codex assistance and reviewed and approved by the human contributor.
Problem
Alibaba Token Plan exposes provider-native Harness tools for current Qwen models, including
web_search,web_extractor,code_interpreter, text-to-image search, and image-to-image search.qwen3.8-maxcompleted a live nativecode_interpretercall during #3156 verification.Maka does not currently expose that provider contract:
model-web-search.tsmarks Alibaba hosted search as unimplemented and does not cover the Token Plan provider types;Follow-up to #3156, #3157, and the Alibaba Responses wire work in #3162.
Desired outcome
Maka can offer the native Alibaba Harness tools supported by the selected Token Plan model, execute them through the provider, and preserve their complete semantic result through streaming, persistence, replay, and user-facing projections.
Maka-owned tools such as Bash and configured Tavily search remain distinct choices; selecting model-native search must never silently substitute a different executor.
Proposed delivery
First slice
alibaba-token-plan-cnandalibaba-token-planon the verified Responses wire.web_searchandweb_extractorrequest and streamed output items.Follow-up slices
code_interpreter: code/execution/output items, generated files, bounded logs, and usage.Acceptance criteria
References
Disclosure: this issue was drafted with OpenAI Codex assistance and reviewed and approved by the human contributor.