Repository navigation
docs(pi): document verified total-cap semantics and answer-room constraint - #56
Merged
Merged
Conversation
…raint pi -p probes proved max_tokens is the TOTAL cap (thinking + answer), not the answer budget: maxTokens=49152 truncated at exactly 49152 output tokens, maxTokens=65536 at exactly 65536. The "maxTokens = 65536 - thinking" formula is therefore wrong for this provider (it reduces total room). The thinking budget (16384 for high) is not hard-enforced: a probe generated ~60K thinking against it, leaving ~5K for the answer. Document the practical constraint: with high thinking the answer room is ~5K tokens, so tool calls must stay under that and heavy work must be delegated.
Contributor
Review — PASSHead SHA: Security screen: PASS — docs-only change to Checklist: All applicable rules PASS or NA.
Comment intake: No comments on the thread. 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 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
Adds the probe-verified semantics to the root-cause section in
.pi/APPEND_SYSTEM.md(PR #55 established the 65536 cap; this PR documents how it behaves):max_tokensis the TOTAL cap (thinking + answer), not the answer budget. Proven bypi -pprobes:maxTokens=49152truncated at exactly 49152 output tokens;maxTokens=65536at exactly 65536. The "maxTokens = 65536 - thinking" formula is therefore wrong for this provider — it reduces total room and truncates sooner. (It would be correct for Anthropic-style providers where max_tokens is the answer budget.)resolveClampedThinkingBudgetclamps thinking to leave only 1024 answer tokens — the design gap.How tested
pi -p, 2026-08-30):maxTokens=49152→ session log shows"output":49152+stopReason:"length"(truncated at exactly 49152).maxTokens=65536→"output":65536+stopReason:"length". Probe 3 (long tool call) → ~60K thinking against the 16384 budget.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)