Repository navigation
[NO-JIRA] ro-shell: widen inline cap from 24KB to 50KB based on 48h telemetry - #1079
Merged
Merged
Conversation
…elemetry Post-deploy 48h telemetry (2026-11-30 23:00 UTC to 2026-12-02 22:00 UTC, 120 sessions, 2,970 ro-shell__shell calls) showed 24KB exceeded the <25% spill re-read gate: - 71 real spills, 25 re-read within session (35.2%, 31 extra calls) - 24-32 KB band: 34 spills, 15 re-read (44%), 0.13MB gross saved vs 0.13MB re-read bytes (0.00MB net saved, 16 extra turns) - 32-40 KB band: 17 spills, 7 re-read (41%), 0.20MB gross saved vs 0.12MB re-read bytes (12 extra turns) - 50 KB counterfactual: 14 spills, 1 re-read (7.1%, 1 extra call), retaining +2.43MB net savings (82% of 24KB's +2.97MB) while matching goose shell's 50KB inline knee and keeping head+tail + private 10MB spill-to-file for large outputs. Ref: eng-agent-platform-689y.6
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
ro-shellinline output cap from24_576B (12 KB head + 12 KB tail) to51_200B (25 KB head + 25 KB tail), matchinggoose shell's 50 KB knee while retaining head+tail + private 10 MB spill-to-file for large outputs.OutputTruncationSpillTeststo derive sizes fromMAX_OUTPUT, pin the exactMAX_OUTPUT/MAX_OUTPUT + 1boundary, and shift the 4-byte emoji fixture by 1 byte so slices actually land mid-codepoint.Evidence (48h post-deploy telemetry, 2026-11-30 23:00 UTC to 2026-12-02 22:00 UTC)
tool_session_hourly+ originaltotal_bytesparsed fromro-shellspill notices ingoose/sessions.db:0.13 MBgross saved vs0.13 MBre-read bytes (0.00 MBnet saved, 16 extra turns).0.20 MBgross saved vs0.12 MBre-read bytes (12 extra turns).+2.43 MBnet saved (82% of 24 KB's+2.97 MBnet savings while eliminating 30/31 extra reviewer turns).Verification
nix build --no-link .#checks.aarch64-linux.ro-shell-tests—Ran 36 tests ... OK