Repository navigation
docs(pi): correct root cause to provider-verified 65536 output cap - #55
Merged
Merged
Conversation
Spike (pi -p) proved the real maximum output for deepseek-v4-flash:0731 via ollama-cloud is 65536 tokens: the provider rejects max_tokens above it with "max_tokens (N) exceeds model's maximum output tokens (65536)". The catalog's 32768 is understated. maxTokens must be 65536 (the true max); truncation occurs when a single response (high thinking + long tool call) exceeds 65536; the fix is short tool calls + subagent delegation, never lowering thinking or raising maxTokens beyond the cap.
Contributor
Review — PASSHead SHA: Security screen: PASS — docs-only change to Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
atrawog
added a commit
that referenced
this pull request
Aug 31, 2026
…in batch (#83) Produced by task sync, not hand-pinned. Four gitlinks: charly 0e4d026d -> 8b194ed8 (its default branch) distro-omarchy b82ed69e -> 2081960d (policy B: exactly what charly pins) distro-cachyos db2199a9 -> 677dbbe0 (policy B) distro-fedora 47cac269 -> 53bd54c0 (policy B) Policy B verified independently of the script: each distro pin equals THE COMMIT CHARLY PINS, which for cachyos and fedora is NOT their latest main - tag-on-merge added a CHANGELOG commit past the tree charly composes, and pinning that would break the invariant. ## What it brings in charly #508 the parse-time prescan never read an imported project's plugin pins, plus box/omarchy, box/cachyos, box/fedora and plugin-check distro-omarchy #11 check-omarchy-desktop-vm - the first bed proving the DESKTOP comes up distro-cachyos #55 pin the cstream verb plugin so the bed parses when composed #56 complete the pin advance charly#506 started distro-fedora #47 the second copy of the same pin list Two are worth naming. charly's main was RED: a bed that validated at exit 0 from its own repo root failed at exit 1 the moment charly composed it, because the prescan walked the root manifest and discover: paths but never import:. And charly#506 advanced 11 candy pins in one copy of a list that exists as three independent copies, so three candies resolved at two versions until every copy moved. ## Why only four gitlinks and not the 89 task sync moved task sync advances EVERY submodule to its default-branch HEAD, and this run moved 89. The other 85 are unrelated to this work and #66 is already in flight covering that ground; landing both would collide. The four committed here are the values task sync produced - not hand-picked - and they are exactly what Policy B requires: charly moved, so its distro pins must follow. The remaining 85 are left to #66 rather than raced. ## How tested task verify check-policy-b: OK - 6 distro pins equal charly's gitlinks verify-pins: OK - 349 submodules, policy B holds exit 0 Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3 Co-authored-by: atrawog <[email protected]>
This was referenced Oct 16, 2026
This was referenced Oct 23, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #53 merged with the pre-spike root-cause framing (which suggested lowering thinking and raising maxTokens to 131072). A live
pi -pspike then proved both wrong: the provider rejectsmax_tokensabove 65536 fordeepseek-v4-flash:0731via ollama-cloud (max_tokens (131072) exceeds model's maximum output tokens (65536)). This correction replaces that section in.pi/APPEND_SYSTEM.mdwith the provider-verified truth:maxTokensmust be 65536 — never higher (rejected), never lower (wastes capability).finish_reason="length"→ harness fails the tool calls → loop.How tested
maxTokens: 131072→ provider rejectionmax_tokens (131072) exceeds model's maximum output tokens (65536). This empirically established the real cap.maxTokens: 65536in~/.pi/agent/models.json(verified); rejection gone.git commitpre-commit gate:pre-commit: OK.Rulebook compliance
Change classification
analysed on a live system.Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)