Skip to content

fix: rebuild tool catalog after wide-native rlm showcase - #656

Closed
justrach wants to merge 2 commits into
mainfrom
cursor/rlm-empty-tools-280-4ffc
Closed

fix: rebuild tool catalog after wide-native rlm showcase#656
justrach wants to merge 2 commits into
mainfrom
cursor/rlm-empty-tools-280-4ffc

Conversation

@justrach

@justrach justrach commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Cherry-pick of #655 onto release/v0.0.280.

ADR 0030 showcased rlm after a 4-wide native batch and only invalidated the cached catalog. The next xAI Responses body was "tools":,, so scatter-sum and multi-read 400'd mid-turn (rlm rematch 3/5). SWE was fine because those tasks never hit a 4-wide native batch.

Same fix as #655: rebuild on showcase, ensureRootTools before every request, write [] for an empty catalog. Follow-up commit comments the call sites and ADR 0030 so later agents do not revert this to invalidate-only.

Live rematch SuperGrok / grok-4.6 / grok-build 1.0.5:

suite graff grok
SWE 5/6 259s 9.4M 158k 5/6 330s 156M 120k
RLM 5/5 46s 8.6M 70k 5/5 120s 160M 54k
Core (shared 11) 11/11 89s 9.1M 144k 11/11 141s 156M 111k

Grok skips schema-output (no structured-output capability). Graff missed that one this rep. Both still miss SWE label-sort.

Open in Web Open in Cursor 

ADR 0030 showcased rlm after a 4-wide read/bash batch and only
invalidated the cached catalog. The next xAI Responses body was
`"tools":,` (empty toolsJson printed after the field), so scatter-sum
and multi-read 400'd mid-turn. Rebuild on showcase, ensure before
every request, and write [] for an empty catalog so that shape cannot
reach the wire.
@justrach
justrach marked this pull request as ready for review August 28, 2026 02:05
Invalidate-only after a 4-wide native batch shipped `"tools":,` and
xAI 400'd the rlm rematch. Comments at the call sites plus ADR 0030
name the failure so this does not get "simplified" back.
Base automatically changed from release/v0.0.280 to main August 28, 2026 09:20
@justrach

Copy link
Copy Markdown
Owner Author

280-port of the rlm catalog rebuild already on main. Closing as superseded.

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.

2 participants