Repository navigation
Description
What happened
The implement job stops on a large edit when Ollama's qwen3-coder parser fails (XML syntax error ... unexpected EOF, #2656 and #2747). The cause is upstream: ollama/ollama#14834 and #18563 are open, and the only fix, PR #18571 (return the raw call as content, do not repair it), is merged in no release. The pinned image is ollama/ollama:0.40.12, and 0.40.13 changes nothing under model/parsers. See #2922 and PR 2938.
What should happen
- When a release of Ollama contains the fix of #18571 (or another fix of the parser), change the image pin in
k8s/llm/profiles/ollama-profiles.yamlto that release (tag and digest) on every tier, and check that a replay of a largeedit_filecall parses. - Until then the item waits. The check for new releases is a weekly look at the upstream releases and issue list.
Evidence
- Pod log of
ollama-48gibat 2026-10-31 19:47 UTC,qwen3coder.go:87. - The proposal of PR 2938.
Acceptance criteria
- The pin names a release that contains the parser fix, with its digest.
- A replay of a call that failed before parses, or the proposal states why no replay is possible.
-
uv run devops cipasses.
Alternatives check of 2026-11-04: not-applicable.
Class: chore, no search.
Tool: none found.
Proposed design
Problem statement
The implement job stops on a large edit_file call when Ollama's qwen3-coder parser fails with XML syntax error ... unexpected EOF (#2656, #2747). The cause is upstream: ollama/ollama#14834 and #18563 are open, and the only fix, PR #18571, is open too and merged in no release, so the pinned ollama/ollama:0.40.12 cannot be fixed by a bump yet. When a release carries a parser fix, the pin in k8s/llm/profiles/ollama-profiles.yaml and in its tier template must move to that release's tag and digest on every tier, the rendered region must be regenerated, the tests that read the pin must accept the tag@digest form, and a replay must confirm the parser. Until then the item waits; #3053 owns the Service-side mitigation.
Acceptance criteria
Requirement: Pin names a fixed release with its digest
The image pin in k8s/llm/profiles/ollama-profiles.yaml SHALL name an Ollama release whose model/parsers code holds a fix of the qwen3-coder tool-call parser (PR 18571 or another fix), with the sha256 digest of its multi-platform index.
Scenario: Pin form and release
- WHEN The image field of the ollama container of the first tier and the pull request body are read
- THEN The reference matches
ollama/ollama:<tag>@sha256:<64 lowercase hex digits>, the tag is greater than 0.40.12, and the body links the release'smodel/parsersdiff that holds the fix
Requirement: Every tier and the template name one reference
Every image field of the ten DaemonSets of k8s/llm/profiles/ollama-profiles.yaml, in each init container and each container, and of the DaemonSet of k8s/llm/profiles/tier-templates/ollama-48gib-slow.yaml MUST name the same tag and digest.
Scenario: All 22 image fields match
- WHEN A test collects the image of each init container and each container in the ten tracked DaemonSets and in the template
- THEN The set holds one reference in the tag
@sha256form, andtest_every_ollama_tier_runs_one_release_that_serves_multimodal_embedding_modelspasses
Requirement: The tracked render equals the render output
The region between the rendered markers of k8s/llm/profiles/ollama-profiles.yaml SHALL equal the output of uv run devops ai gateway render for the tracked thresholds and templates.
Scenario: No diff after the pin change
- WHEN
uv run devops ai gateway renderruns on the changed branch without--apply - THEN The command reports no difference, so the rendered embedding tiers carry the new tag and digest
Requirement: The tests read the tag before the digest
tests/invariants/test_k8s_manifests.py and tests/core/test_renovate_config.py SHALL accept the tag@sha256:digest form, and the version check SHALL read the tag before @.
Scenario: Digest form is parsed
- WHEN
uv run devops ci test tests/invariants/test_k8s_manifests.py tests/core/test_renovate_config.pyruns on the changed branch - THEN Both modules pass, and
k8s/llm/profiles/ollama-profiles.yamlis still listed among the manifests that pin an image tag
Requirement: The parser fix is confirmed or its replay is explained
The pull request SHALL record a replay of a large edit_file call on the new image that parses without an XML syntax error, or SHALL state why no replay is possible.
Scenario: Replay or its recorded reason
- WHEN The pull request body of the pin change is read
- THEN It holds the replay command and a parsed reply, or the reason that the failed conversation was discarded and the failure depends on one model sample
Requirement: CI passes
uv run devops ci SHALL pass after the pin and test changes.
Scenario: Full CI
- WHEN
uv run devops ciruns on the branch - THEN Every check completes with a passing status
Existing Tool Considered
Ollama (ollama/ollama), the open, maintained inference server that the tiers already run (k8s/llm/profiles/ollama-profiles.yaml:100), is the tool. The project builds no parser of its own and depends on the parser inside the Ollama image. What Ollama lacks is a released fix: PR 18571 is open and merged in no release (openspec/changes/archive/2026-10-31-2922-qwen-tool-call-parse-failure/proposal.md:38, openspec/changes/archive/2026-11-06-3053-parser-smaller-edit/proposal.md:45), and the newest release that the repository records, v0.40.13, changes no file under model/parsers (openspec/changes/archive/2026-10-31-2922-qwen-tool-call-parse-failure/proposal.md:36). The change is a pin bump once a release carries a fix, not new code. The alternatives check gave not-applicable and found no other tool. A patched image that the project builds and keeps itself would mean a fork of the parser, a rebuild at each upstream change, and days of elapsed time to reach the quality of the upstream parser; the project rejects that cost.
Key questions
- What is the state of the upstream parser fix, and does any release hold it?: The fix is not merged. ollama/ollama PR 18571 is open with
merged: falseand its last update was on 2026-09-21, and issues 14834 and 18563 are open. The repository records this on 2026-10-31 (PR 18571 open and merged in no release; the newest release v0.40.13, 2026-10-28, changes no file undermodel/parsers) and again on 2026-11-06 (PR 18571 open). The 2026-11-04 reply reports v0.40.14 (2026-11-03) and v0.40.15-rc0, whose onlymodel/parserschange ismimo_test.go, but no repository path or web result in this run confirms that release list, so the exact latest tag stays unverified; the point that no release holds a fix stands. The earlier statement that the fix is merged and unreleased is wrong. [sources: openspec/changes/archive/2026-10-31-2922-qwen-tool-call-parse-failure/proposal.md:36, openspec/changes/archive/2026-10-31-2922-qwen-tool-call-parse-failure/proposal.md:38, openspec/changes/archive/2026-11-06-3053-parser-smaller-edit/proposal.md:45] - Which files hold the image pin that must change, and how many places do they hold?: Two files hold 22 image fields.
k8s/llm/profiles/ollama-profiles.yamlholds 20: each of its ten DaemonSets namesollama/ollama:0.40.12twice, in the own-model-directory initContainer and in the ollama container, which is the eight written tiers plus the two rendered embedding tiers.k8s/llm/profiles/tier-templates/ollama-48gib-slow.yamlholds the other 2, in its initContainer and its container. The rendered region is generated from that template, so both files change anddevops ai gateway render --applythen rewrites the region. [sources: k8s/llm/profiles/ollama-profiles.yaml:100, k8s/llm/profiles/ollama-profiles.yaml:1482, k8s/llm/profiles/tier-templates/ollama-48gib-slow.yaml:63, k8s/llm/profiles/README.md:36] - Should the item wait, or should the pin move now?: The item waits. A bump alone gives no fix, because no release holds a parser fix, and only a release whose
model/parserscode holds one meets the acceptance criteria and removes the stop of the implement job. Before a merge, a person reads that release'smodel/parsersdiff. (best practice) [sources: openspec/changes/archive/2026-10-31-2922-qwen-tool-call-parse-failure/proposal.md:38, openspec/changes/archive/2026-10-31-2922-qwen-tool-call-parse-failure/proposal.md:45]- Chosen: Wait for a release with a parser fix. Only such a release meets the acceptance criteria and removes the stop of the implement job.
- Rejected: Bump to the newest release now. The newest releases change nothing under
model/parsersthat fixes the qwen3-coder parser, so the bump fixes nothing and adds an untested image. - Rejected: Build a patched Ollama image. The project would fork and keep the parser, and the cost is higher than waiting for the upstream release.
- How does the project learn that a release holds the fix?: Renovate's kubernetes manager matches
^k8s/.+\.ya?ml$and opens one pull request for each image tag pinned underk8s/, and the project already namesollama-profiles.yamlas a file that the pattern must cover. Because the pin carries a digest, the pull request moves the tag and the digest together. A person reads the release'smodel/parsersdiff before the merge, and the replay confirms the fix. The project adds no polling code. (best practice) [sources: .github/renovate.json:9, docs/SDLC.md:303, openspec/changes/archive/2026-10-26-2323-renovate-k8s-images/design.md:9, k8s/README.md:819]- Chosen: Rely on the Renovate kubernetes manager and a person check. The manager already opens the bump pull request with no new code, and a person sees the parser change that Renovate cannot see.
- Rejected: Weekly manual look at the upstream releases and issues. It duplicates the pull request that Renovate already opens for the same tag, and a release can wait days before a look.
- Rejected: Automated poll of the GitHub releases API. It adds code to keep and fix, for a one-time bump that Renovate already proposes.
- Should the pin carry a tag and a digest, or only a tag?: Use the tag and the digest, as the item body records and as the other third-party pins under
k8s/do. The digest fixes the exact image, so a re-pushed tag cannot change what the tiers run. The invariant test attests/invariants/test_k8s_manifests.py:92unpackssplit(':')into two values and fails on thetag@sha256:digestform, so it must be widened in the same pull request;tests/core/test_renovate_config.py:15must also accept the form, or it silently stops seeing the file as a pinned manifest. (best practice) [sources: k8s/README.md:819, k8s/devops/crawl4ai/deployment.yaml:50, tests/invariants/test_k8s_manifests.py:92, tests/core/test_renovate_config.py:15]- Chosen: Tag and digest. A digest pins the exact image, the project already uses this form for its third-party pins, and the body records it.
- Rejected: Tag only. A tag can be re-pushed to a different image, and the body rejects this form.
- Can a failed call be replayed after the pin change?: No replay of the original failure is possible. The archive records that the failed call came after a conversation of about 24,000 tokens that the Job discarded, and that the failure depends on one sample of the model. The pull request must therefore state this reason, which is the alternative that the body allows. [sources: openspec/changes/archive/2026-10-31-2922-qwen-tool-call-parse-failure/proposal.md:42]
Fit
Fits in one pull request.
Suspected block
An Ollama release whose model/parsers code contains a fix of the qwen3-coder tool-call parser: ollama/ollama PR 18571 is open and merged in no release as of 2026-11-06.
Dependencies
None.
Activity
dan-petty commentedon Oct 31, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
choreprefix of the title gives the type.(k8s)scope of the title gives the scope.The item is explicitly blocked on an unreleased upstream fix and no action is possible now.Unblocking the implement job for large edits removes a hard stop in the workflow.The change is a tag and digest update in one file plus a replay check and CI run.Both concern the qwen3-coder tool-call parse failure, but #2922 reports the failure and its hidden cause while this candidate updates the image pin once the upstream fix ships.devops-cli-service commentedon Nov 1, 2026
Refine cannot set this item to Ready at e093ac8 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/llm/profiles/ollama-profiles.yaml.devops-cli-service commentedon Nov 2, 2026
Refine cannot set this item to Ready at ac16675 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 4, 2026
Alternatives check: not-applicable
Class: chore. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-04. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 4, 2026
Correction. The refine block of this item says that the fix is merged in ollama/ollama PR 18571. That is false. A read of the GitHub API on 2026-11-04 gives: PR 18571 has state
openandmerged: false, with its last update on 2026-09-21. The upstream issue 18563 is open.The block also says that the latest release is 0.40.13, and that is out of date. v0.40.14 is released (2026-11-03), and v0.40.15-rc0 is a pre-release. The comparison of v0.40.12 with v0.40.15-rc0 changes only
model/parsers/mimo_test.goundermodel/parsers, so no release holds a fix of theqwen3-coderparser. The tiers still pinollama/ollama:0.40.12.The wait of this item stays, and its reason is now "the upstream PR is open", not "the fix is merged and not released". A pin bump alone gives no fix. So check
model/parsersin the release before a merge. #3053 owns the side of the Service.[-]chore(k8s): bump the Ollama image when the qwen3-coder tool-call parser fix ships[/-][+]chore(k8s): bump Ollama image for qwen3-coder parser fix[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 69 characters, and the limit is 60. The type and the scope stay.
chore(k8s): bump the Ollama image when the qwen3-coder tool-call parser fix shipschore(k8s): bump Ollama image for qwen3-coder parser fixdevops-cli-service commentedon Nov 9, 2026
Refine cannot set this item to Ready at 681529b until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
model/parserscode contains a fix of the qwen3-coder tool-call parser: ollama/ollama PR 18571 is open and merged in no release as of 2026-11-06.chore(k8s): bump Ollama image to 0.40.16 with digest