Last updated: 2026-11-16

OpenCode model validation for the first release#

For the published maintenance release, see the separate 0.1.1 final-archive checks. All 36 core fixtures pass with the documented OpenCode 2.0.21 pin. The checks retain separate 2.2.6 trials, exact archive identities, independent test results and failures. The chronological reports below keep their original clients, source revisions and outcomes.

The Intel OpenCode investigation records the November 1 actual-client timeout failures and the active-prefill cancellation fix. Independently passing edits are kept separate from completed client runs.

Client compatibility follow-up (2026-11-01): actual OpenCode 1.19.4 and 2.0.21 each pass three CPU protocol fixtures: bounded tools, an API error, and timeout → independent failing check → repair → independent passing check. The portable evidence includes the exact request settings and source hashes. These scripted responses test the client and helper, without inference or a model coding claim.

Intel testing also reproduced a server compatibility defect: a request for max_completion_tokens: 1 generated 256 tokens, while max_tokens: 1 generated one. A native diagnostic build with both aliases supported now generates one for either field. The model-by-model Intel coding sweep is separate from these checks; a successful protocol fixture does not qualify all models.

Latest follow-up (2026-10-31): bounded dense Gemma prefill passes 23/23 API checks and all three Gemma 31B core fixtures on exact packaged ROCm bytes at 8K, with a separately recorded 600-second fixture budget. The 300-second retry remains failed. The chronological reports below preserve their original executables, contexts, budgets and outcomes.

On 2026-10-26, release validation covered all seven managed catalog models on a 32 GB Radeon AI PRO R9700 through Vulkan, plus the six ROCm-supported models. It combined API probes with actual OpenCode 1.19.4 sessions where serving capacity permitted them. The four larger Qwen models completed the three core coding fixtures, with Qwen 3.5 9B on Vulkan requiring a server fix and a separate retry. This establishes useful coding capability on this board, with the limits below. It does not qualify every model for the first release.

The original Gemma trials could not use tools. Gemma 26B failed tool use on both backends. Gemma 31B could not meet the helper's 8K context minimum on Vulkan. Its initial ROCm allocation failure was fixed in the memory follow-up below; chat now works, but that revision's actual OpenCode attempt made no tool calls and failed the fixture. The native-tool follow-up below now passes all API checks and three core coding fixtures for Gemma 26B on ROCm. The experimental Qwen3 0.6B starter also failed the coding fixture and several API checks.

The portable result JSON retains model pins, binary and harness hashes, every completed fixture outcome, failed checks, interrupted sessions, and separate diagnostic probes. Different source revisions and budgets remain separate; they do not form one success rate. These small fixture checks also do not establish complete delivery on larger repository assignments; see the repository trial.

Environment and method#

The board ran Ubuntu 24.04.3 LTS on x86_64, RADV Mesa 25.0.7-0ubuntu0.24.04.2 and ROCm 7.2.4. Tools were Zig 0.17.0, Bun 1.4.4 and OpenCode 1.19.4. Every GGUF matched its immutable release-policy SHA-256. ROCm does not implement the plain-Qwen3 path used by the tiny starter.

Initial binaries were the packaged Vulkan and ROCm archives from packaging run 40430602151, source 681931cd7567506978ce7a7115ec440df84d002d. Follow-ups used development binaries with the same packaged runtime assets. The JSON distinguishes those builds and their hashes; development results do not certify final release bytes.

OpenCode connected directly to ZINC with bounded source reads and tool output. No synthetic responses, tool repairs or supervisor solution edits were used. Frozen tests failed before each task and ran independently after the client exited. Protected tests, specifications, generated config and the context hook remained unchanged in all completed attempts. One separate transparent capture replayed identical requests as JSON to diagnose a streaming mismatch.

The initial nine-fixture ROCm runs used 16K context, 2,048 output tokens, 16 agent steps and 180 seconds per task. After a timed-out generation delayed the next request, follow-ups restarted the server for every fixture and used 4,096 output tokens and 300 seconds. Temperature was zero, top-p one and thinking disabled throughout. Gemma 26B used 8K context and 2,048 output tokens; the setup helper requires output to be strictly less than half the context.

The three core fixtures were a TypeScript rate limiter, a multiple-file cart fix and a Python NDJSON CLI. These test tool reads, edits, shell execution and independent correctness across two languages. The nine-fixture suite also covered CLI validation, refactoring, source-only changes, long policy input, duration parsing and Unicode CSV handling.

ROCm results#

These Qwen results used the original packaged build. API checks covered JSON/SSE parity, Unicode, typed tool arguments, history, malformed requests, queue isolation, cancellation and a prompt beyond 8K.

Model API checks Coding result
Qwen 3.5 9B Q4_K_M 23/23 8/9 initial fixtures; includes all three core fixtures
Qwen 3.6 35B-A3B Q4_K_XL 23/23 8/9 initial fixtures; includes all three core fixtures
Qwen 3.6 27B Q4_K_M 23/23 3/3 core fixtures with a fresh server per task
Qwen 3.8 27B Q4_K_M 23/23 3/3 core fixtures with a fresh server per task

Both nine-fixture runs failed zinc-cli-validation. Fresh-server retries with the larger output/time budgets still failed, leaving five of six tests passing. The initial Qwen 3.6 dense 27B run was interrupted after two unsuccessful client results and one started, unverified session; its clean core retries are separate evidence. Qwen 3.6 dense 27B remains experimental in the catalog.

After the Unicode decoder fix, Gemma 26B passed 17/22 API checks at 8K but failed the rate-limiter fixture: zero tool calls and zero of three tests passing. Remaining API failures involved tool arguments, typed schemas and tool history. Its earlier 16K run also exhausted a GPU allocation near token 8,159 and left subsequent requests failing. Basic chat success at 4K does not certify that path.

Vulkan results#

The complete core sweep used development source 2bb5627eaa5829b3b39330a4cf80ffe555106e56, 16K context and the fresh-server 4,096-token/300-second protocol.

Model API checks Core fixtures
Qwen 3.5 9B Q4_K_M 23/23 2/3; rate limiter failed before the final payload fix
Qwen 3.6 35B-A3B Q4_K_XL 23/23 3/3
Qwen 3.6 27B Q4_K_M 23/23 3/3
Qwen 3.8 27B Q4_K_M 23/23 3/3; additional coverage outside the required Vulkan policy
Qwen3 0.6B Q8_0 19/23 0/1 sentinel; broader run stopped after earlier transport failures

The failed Qwen 3.5 rate-limiter case was retried separately at source 8475094dd717c384c3cd79fa8d03684f5352bc4c after preserving tool payloads from prose cleanup. It passed with six tool calls and all three independent tests; the API checks remained 23/23. The earlier 2/3 result remains unchanged.

At the same source, Gemma 26B passed 16/22 API checks at 8K but again made zero tool calls and failed all three sentinel tests. An earlier attempt never launched OpenCode because its 4,096-token output budget equaled half the context; that setup error is recorded separately. The API harness also previously tried an oversized long-prompt probe on 8K servers; it now runs that probe only when capacity permits a prompt above 8K.

Gemma 31B's requested 8,192-token context was reduced to 8,018 by the memory planner. The helper rejected this below-minimum capacity before OpenCode ran. Qwen3 0.6B's targeted retry remained 19/23 API checks and 0/1 coding fixtures. Neither model gains an OpenCode support claim from these results.

Bugs found and fixed#

  • Vulkan/Metal streaming now emits final token usage, which OpenCode uses for context accounting. The evaluation harness loads and protects its real bounded-context plugin instead of rejecting that plugin as an unexpected file.
  • JSON and streaming completions end on complete UTF-8 boundaries. Gemma and SentencePiece vocabularies decode as raw UTF-8, retaining accented text, CJK and four-byte emoji instead of applying a byte-remapping decoder.
  • Hidden leading reasoning no longer shrinks visible streaming prefixes. Streaming scratch capacity matches the full generated-text buffer, preserving tool arguments larger than 4 KB.
  • Structured tool payloads bypass prose repetition/cleanup heuristics. Only leading reasoning blocks are removed, preserving literal <think> source strings inside tool arguments and repeated code lines.
  • Buffered tool responses send SSE keepalives and detect disconnected clients. The release validator accepts the diagnostic's known GPU architecture suffix while retaining the exact ROCm target check.

A real buffered-tool cancellation probe failed to recover within ten seconds on the original ROCm build. After the fix, recovery took 1,212 ms on ROCm and 326 ms on Vulkan. These are individual recovery checks, not throughput claims. CPU negative controls also reject a server that leaves the recovery request stalled.

CPU-only token-piece comparison against llama.cpp 5f436dddb440a288ee5611d7d1eca564a6aca9f4 matched all 262,144 pieces in each Gemma vocabulary. All non-unused Qwen pieces matched; pre-existing unused padding labels differ from llama.cpp's empty output and were left unchanged. This decoder comparison does not substitute for numerical GPU kernel parity.

Before the memory fix, strict ASCII/Unicode JSON/SSE probes at the release-default 4K context and output budgets 1, 2, 3 and 64 produced:

Backend Gemma 26B Gemma 31B
Vulkan 8/8 8/8
ROCm 8/8 0/8; allocation failure on generation token one

The failing ROCm server still answered health requests successfully. A healthy endpoint is therefore insufficient qualification. Release GPU jobs now require Unicode chat parity, complete JSON/SSE termination and usage, and full Unicode echo at a sufficient budget; unit negative controls cover broken transport.

Gemma ROCm memory fix#

The Gemma 31B allocation failure is resolved for the policy's 4K, single-slot configuration. The same required model remains in the release policy.

Single-slot serving previously duplicated the engine's KV cache, consuming another 6.875 GiB. Its dense-weight scratch also multiplied independent dimension maxima, reserving 672 MiB for a matrix that needs only 220.5 MiB. The observed first request had 372 MiB free and failed that 672 MiB allocation.

The fix reuses single-sequence KV through non-owning views, sizes scratch to the actual dense projection/FFN dimensions, and rolls back partial slot and batch allocations. A larger 8K request exposed a second bug: failed batched prefill freed temporary KV views twice. Those views now have one cleanup path.

Both accelerator shims mark alias handles as non-owning: freeBuffer releases their metadata while retaining the original device allocation. A direct R9700 regression allocated and freed single-slot views three times; after every free, the original cache still produced the identical four-token decode. Run this check on a dedicated ROCm GPU worker with a Gemma GGUF:

./scripts/zig.sh build rocm-dbg -Dbackend=rocm -Doptimize=ReleaseFast -- kv-lifetime <model.gguf>

On the R9700, cold single-slot 4K startup fell from about 31.6 GiB to 24.7 GiB. The original binary still returned HTTP 500 in the controlled replay; the fixed binary generated OK. At 4K, ten Unicode, scratch-growth, overflow/recovery and isolation checks passed. A two-slot 1K check passed 7/7, and Gemma 26B passed the same ten 4K checks.

The first memory fix still crashed during an 8K allocation failure; that failed run remains in the evidence. After correcting cleanup, the 8K run passed 10/10, including three temporary-buffer allocation failures that safely fell back to token-wise prefill. This configuration has little spare memory and can prefill more slowly. It does not expand the required 4K release context.

The actual ROCm archive from packaging run 40458670841 passed extraction/identity checks and GPU diagnostics without a library-path override, all twelve tokenizer corpus cases, three complete 16-token CLI continuations against pinned llama.cpp, and the packaged HTTP gate. That gate compares full reference continuations and checks Unicode streaming, cancellation, near-capacity input, malformed/oversized requests and subsequent recovery. Its source tree matches fix commit ae7fea1f11af7d24725ae56a8f208a81f29e8d0b; the JSON binds the preview archive, executable and reference digests. This qualifies one packaged model row on this board, not the complete release matrix.

With the server now running at 8K, actual OpenCode 1.19.4 completed a rate-limiter attempt without a timeout or API error. It made zero tool calls and failed all three independent tests. That revision did not establish OpenCode support for Gemma 31B despite the working inference path.

Gemma native-tool follow-up (2026-10-27)#

The original failures exposed missing server support: Gemma selected the no-op formatter, and ROCm enabled tool handling only for ChatML. The follow-up adds Gemma 4's native declarations, calls and results, using the documented protocol. Nested strings, numbers, booleans, arrays and objects retain their types and source bytes in JSON and streaming responses. Unknown functions, duplicate argument keys and incomplete calls remain non-executable text.

OpenAI tool-result IDs resolve back to their function names. Results replay inside the model turn that made the call. Earlier checkpoints, including the pinned 26B model, require an empty thought scaffold after a result; newer OpenAI-aware templates continue directly. Fourteen golden prompt cases come from sandboxed rendering of the two pinned GGUF templates. The older template has malformed nested-schema punctuation; declarations use the corrected native schema grammar rather than reproducing that defect.

A 9,232-token MoE prompt also expanded to 73,856 activation rows and exceeded a kernel's launch dimension. The corrected quantizer folds its launch across Y and Z while preserving the full ROCm MMQ buffer layout. A first row-slicing attempt used the wrong layout and produced invalid continuations; those failed runs remain separate in the evidence.

The updated ROCm executable also matches all 48/48 reference choices across three complete 16-token continuations under the pinned serial/F32 llama.cpp settings, with no near-tie exceptions. This checks the full model after the shared quantizer change. The repaired 9,232-token prompt also matches the reference after explicit tokenization removes an accidental duplicate BOS in an earlier diagnostic request.

The dedicated GPU packing regression compares every output byte against a CPU reference, including scales, sums, quantized values, padded groups and buffer guards. It passes four cases: 1, 65,535, 65,536 and 73,856 rows. Run it on an otherwise idle ROCm worker:

./scripts/zig.sh build rocm-dbg -Dbackend=rocm -Doptimize=ReleaseFast -- quantize-rows

The corrected development build is 166f5516bb6aa944d9fa1ba83aa1b80ce82ef73c, executable SHA-256 5ca83de7b2937bd17ddc771ed691cf442c2cf1d7a25625697c7d2062a964db63. Gemma 26B passes 23/23 API checks at 16K, including the previously failing long prompt, Unicode, typed tools, history, queue isolation and cancellation. All three core OpenCode fixtures pass: rate limiter (3/3 independent tests, 7 tool calls), cart (3/3, 9 calls), and Python CLI (4/4, 7 calls). Each fixture used a fresh server, 4,096 output tokens, 16 steps and a 300-second limit. Protected files stayed unchanged; no tool repairs or supervisor edits were used. The earlier cart failure and intermediate invalid continuations are retained.

Final input checks on a9c13da0 pass on both backends: invalid histories and schemas return 400, later requests recover, and Unicode keys round-trip. ROCm also passes 24/24 API checks including buffered-tool cancellation.

That Gemma 31B revision passes 22/22 API checks at 8K, including actual native tool calls. Its rate-limiter task made one tool call but hit the 300-second limit without fixing the source (0/3 tests). The first 5,037-token prompt took about 199 seconds to prefill after a temporary-allocation failure selected the serial fallback. Tool transport worked, but that run did not establish practical coding readiness. The bounded-prefill follow-up below records the subsequent packaged trials; the required 4K release configuration is unchanged.

Gemma 26B also passes 22/22 API checks on Vulkan at 8K, but its actual rate-limiter task makes no tool calls and passes 0/3 tests. It reaches the 2,048-token output cap repeatedly without completing a call. This remains an unsuccessful coding result; the API pass does not qualify OpenCode use.

Tool strings containing the literal Gemma quote delimiter (<|"|>) currently return HTTP 400. Source files containing that marker need separate transport work.

These are development-source results on one RDNA4 board. They do not qualify Gemma on Metal, or certify final release archives.

Earlier launch blockers#

The audit below records the earlier, wider launch plan. The approved 0.1.0 scope is now Linux first: Vulkan on R9700 and Intel Xe2, plus ROCm on R9700. Metal remains an unsigned preview. The R9700 worker is registered; Intel is being tested over SSH. See the current release gates for candidate qualification and publication. Historical coding outcomes and executable identities below retain their original scope.

The original required ROCm Gemma 31B allocation blocker is fixed. Gemma 26B now completes the core OpenCode sweep on ROCm; other Gemma/backend combinations need their own coding qualification. At that audit the tiny starter remained experimental. Its later inference-only promotion review covers Vulkan on R9700 and Intel; the recorded coding failures remain failures. Stable publication still requires a freshly qualified candidate.

These runs cover one RDNA4 board. The required Apple families, other Linux GPU families, signed/notarized Mac delivery and protected release infrastructure still need qualification. The follow-up audit still found no registered self-hosted runners. The release and release-signing environments now exist; GPU workers and Apple signing credentials remain pending. Rebuild and qualify the final candidate's exact packaged bytes after these fixes; do not promote the older archives using development-build results.

The final process audit found no remaining ZINC, llama.cpp or OpenCode processes. All model inference ran on the remote RDNA node. No local workstation GPU was used. Issue 10 remains open until the public release and automatic process work end to end.

For repeatable runs, use the evaluation tools: start one model/backend at the intended context, run the API checks, then invoke opencode_eval.mjs for one fixture at a time with the documented budgets. Restart the server between fixtures, especially after failures or timeouts. Keep the portable metadata; raw traces contain local paths and session data.

Dense Qwen prefill follow-up (2026-10-27)#

The short-prompt prefill fix clears dense Qwen 3.6 27B's packaged 4K continuation/API blocker while keeping long prompts batched. On the same new ROCm preview executable, a separate 16K OpenCode run passed 24/24 API checks and 3/3 core fixtures, with all ten independent tests passing, real tool calls, fresh servers and no protected-file changes. The portable follow-up evidence records the exact archive and executable hashes and keeps this run separate from earlier revisions.

The four-model Qwen sweep also found a MoE HTTP continuation difference that reproduces in the unchanged #35 package. All four CLI rows match 48/48 reference choices, but that preview did not qualify the MoE HTTP row. The subsequent single-slot follow-up below resolves it. These results do not promote the experimental dense 27B catalog entry or qualify the final hardware matrix.

ROCm single-slot consistency follow-up (2026-10-27)#

The single-slot consistency fix clears the MoE CLI/HTTP difference and the dense-model request-reuse drift exposed by stronger recovery checks. One new extracted ROCm preview passes all six required ROCm model rows at 4K, with 288/288 exact CLI choices and 54 complete HTTP reference replays across initial, cancellation and context/error-recovery phases. Reference backend identities remain explicit for every row.

On that same final package, Qwen 3.6 35B-A3B passes 24/24 OpenCode API checks and 3/3 core coding fixtures at 16K, with all ten independent tests passing, real tool calls, fresh servers and no protected-file changes. The portable evidence preserves the failed intermediate sweep and earlier executable identities. This does not change the Gemma 31B OpenCode memory limitation, promote catalog models, or qualify the final hardware matrix.

Dense Gemma bounded-prefill follow-up (2026-10-31)#

The bounded-prefill fix removes whole-prompt scratch as a reason to select serial prefill when a smaller batch fits. The new exact ROCm archive passes all six required 4K model rows (288/288 exact CLI choices and complete API recovery), plus forced-small-chunk and 8K checks for Gemma 31B. A 4,861-token history replay returns both stored codes and matches the complete pinned reference text.

On that same package, Gemma 31B passes 23/23 OpenCode API checks at 8K and 3/3 core fixtures, with 10/10 independent tests passing. Rate limiter, cart and Python CLI use 7, 10 and 5 real tool calls and finish in 327, 359 and 270 seconds. Every fixture gets a fresh server, 2,048 output tokens, 16 steps and a 600-second budget, with thinking off and temperature zero. No errors, timeouts, protected-file changes, unexpected files, tool repairs or supervisor edits occur.

The earlier 300-second retry still fails (seven calls, 0/3 tests, timeout). These different budgets and executable identities remain separate in the portable evidence. The required 4K model policy, native quote-delimiter transport limit and larger repository qualification remain unchanged. This one-board unsigned preview does not qualify Metal, the remaining Vulkan hardware or final release bytes.