Skip to content

[NO-JIRA] ro-shell: widen inline cap from 24KB to 50KB based on 48h telemetry - #1079

Merged
johnnymo87 merged 1 commit into
mainfrom
ro-shell-50k-limit
Dec 2, 2026
Merged

johnnymo87 merged 1 commit into
mainfrom
ro-shell-50k-limit

Conversation

@johnnymo87

Copy link
Copy Markdown
Owner

Summary

  • Widen ro-shell inline output cap from 24_576 B (12 KB head + 12 KB tail) to 51_200 B (25 KB head + 25 KB tail), matching goose shell's 50 KB knee while retaining head+tail + private 10 MB spill-to-file for large outputs.
  • Update OutputTruncationSpillTests to derive sizes from MAX_OUTPUT, pin the exact MAX_OUTPUT / MAX_OUTPUT + 1 boundary, 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 + original total_bytes parsed from ro-shell spill notices in goose/sessions.db:
    • 24 KB (deployed): 71 real spills across 120 sessions (2,970 calls), 25 re-read within session (35.2% > 25% gate), 31 extra calls.
    • 24–32 KB band: 34 spills, 15 re-read (44%), 0.13 MB gross saved vs 0.13 MB re-read bytes (0.00 MB net saved, 16 extra turns).
    • 32–40 KB band: 17 spills, 7 re-read (41%), 0.20 MB gross saved vs 0.12 MB re-read bytes (12 extra turns).
    • 50 KB counterfactual: 14 spills, 1 re-read (7.1%), 1 extra call, +2.43 MB net saved (82% of 24 KB's +2.97 MB net savings while eliminating 30/31 extra reviewer turns).

Verification

  • nix build --no-link .#checks.aarch64-linux.ro-shell-tests — Ran 36 tests ... OK
  • Adversarial diff review passed with both non-blocking test suggestions applied.

…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
@johnnymo87
johnnymo87 enabled auto-merge (squash) December 2, 2026 23:11
@johnnymo87
johnnymo87 merged commit 1eb25d4 into main Dec 2, 2026
2 checks passed
@johnnymo87
johnnymo87 deleted the ro-shell-50k-limit branch December 2, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant