Tool calling at 250K context: a 40-check test on a local 35B

Needle tests check whether a model can find a fact deep in its window. An agent also needs a rule at the top to govern a tool call at the bottom. I tested that on a local 35B model at 262k context with 40 graded checks, and my grader failed first.

A long zigzag-folded paper ribbon stretching from a copper holder across a desk
Illustration: a long zigzag-folded paper ribbon stretching from a copper holder across a desk.

My RTX 5090 write-up already showed clean three-needle recall out to 178k actual tokens. An agent can also fail by forgetting an obligation. The system prompt says every tool call must carry an audit trace id, two hundred thousand tokens of logs scroll past, and then the user asks for the weather. The test is whether that last call still carries the rule from the top.

What this suite tests

The long-context hook of this suite is a standing rule: R1 requires trace_id="X9-441" on every tool call. I plant it once, at the very top of the window, and grade it on every call the model makes, however far down the window that call comes.

The suite: six tools, five rules, ten cases

The suite has six tools whose interfaces overlap (weather, stock quote, currency conversion, flight search, email, calendar), five standing rules, ten cases and forty programmatic checks. Code grades every check.

The five standing rules
R1  every tool call carries trace_id "X9-441"
R2  never send email without explicit confirmation
    of recipient AND body — ask instead
R3  never invent a required argument — ask for it
R4  no preamble ("Sure", "Certainly") in text answers
R5  no tool call when no tool is needed
The ten graded cases, what each one probes and how many checks it carries.
CaseWhat it probesChecks
T1Single call · argument fidelity · the trace id5
T2Two parallel calls in one turn4
T3Answer without a tool, without a preamble3
T4Missing required argument → ask, don’t invent2
T5Type discipline: “1,250.50” becomes the number 1250.56
T6Dangerous tool gated behind confirmation3
T7Consume a tool result into a strict one-line format5
I1Strict JSON object, exact key set, no fences6
I2Twelve-word cap, no trailing period4
I3Abstaining instead of guessing: exactly “UNKNOWN”2

Depth comes from a --pad knob. It inserts a synthetic telemetry log of unique, non-repeating records between the rules and the request, framed explicitly as “reference material only”. Nothing in the log is ever asked about; it is there as a decoy. Decoding is greedy (temperature 0, top-k 1), outputs are capped at 512 tokens, and requests run one at a time.

Two bugs in my grader

The first run, with zero padding, scored 39 of 40, and the miss was in my grader. T6’s grader demanded a question mark as proof that the model had asked for confirmation. The model had asked with an imperative instead: “Please confirm this is exactly what you want sent.” A lazy regex failed a correct refusal. A second grader bug showed up later: I2’s grader required the literal word “latency”, and the model wrote “response times”.

Both corrections loosened the grader, so both are disclosed here. The recurring trailing-period check remained unchanged. The 60K score still needs its complete per-check record to explain both recorded failures.

Results at four depths

Checks passed out of 40 at four padding depthsFour bars: 40 of 40 checks passed with no padding, 38 of 40 at 59,936 tokens, 40 of 40 at 200,045 tokens and 39 of 40 at 250,166 tokens, 95% of the window.Checks passed (of 40)No padding40/4059,936 tokens38/40200,045 tokens40/40250,166 tokens39/40040
Checks passed out of 40 at four padding depths, one cold pass each: Ornith 1.5 35B-A3B (Q4_K_M) on llama.cpp, on the RTX 5090 workstation, 25 August 2026. The lowest score, 38/40, came at the shallowest padded depth.
Cases and checks passed, and cold prefill, at each padding depth.
Pad (measured tokens)CasesChecksCold prefill
010/1040/40—
59,9369/1038/40~6,100 tok/s
200,04510/1040/4045.8 s ≈ 4,400 tok/s
250,166 · 95% of the window9/1039/4065.0 s ≈ 3,900 tok/s

Tool calling was clean at every depth, T1 through T7, with no exceptions. The model made parallel calls in one turn and typed “1,250.50 AED” as the number 1250.5 rather than a string. It refused to invent a departure airport, held the email until it had confirmation, and put a fed-back tool result into the exact one-line format. The headline property held too: the trace id was correct on every tool call, a quarter-million tokens after the rule that demanded it.

Prefill is the cost of depth. Throughput fell from roughly 6,100 tok/s at 60k to 3,900 tok/s at 250k, where a cold pass takes 65 seconds before the first output token. The server’s prompt cache pays that cost once: a warm repeat of the same 251k prompt started in 0.9 s.

The recurring formatting issue and limits of four passes

The recurring formatting issue discussed here was I2’s trailing period. The published 60K result is 38/40, which includes two failed checks; the narrative does not establish the second failure. I have kept the score unchanged rather than reconstructing a result without the per-check record.

These four cold passes do not show a monotonic decline with depth. One pass at each depth is too little data to estimate failure rates or rule out long-context degradation. Repeated runs and other distractor patterns remain untested.

Greedy decoding was not reproducible on this server

On this server, temperature 0 with top-k 1 did not produce identical outputs across the reported runs. With the same prompt and 60K pad, the answer was seven words cold and sixteen words after eight earlier requests on the slot. Cache reuse, batching and floating-point execution are possible contributors; this experiment did not isolate the cause.

  • One run per configuration is not a measurement. Run each case several times and report a pass rate, or run everything cold. The results table above is one cold pass per depth, so each row is a single draw from a distribution that the prompt cache reshapes. The scores stand, with error bars a single run cannot show.
  • The cache counter read zero. The server’s slot metric reported no cached prompt tokens while reuse was plainly happening: the same 251k prompt went from 65 s cold to 0.9 s warm. Confirm caching with wall-clock time instead of the counter.

Local model receipt

Graded suite receipt · measured 25 Aug 2026

Model
Ornith 1.5 35B-A3B · mixture-of-experts · Q4_K_M
Server
llama.cpp build b1-9dbc662 · single slot
Context
n_ctx 262,144, equal to the model’s trained length
Hardware
RTX 5090 workstation · reached over the private tunnel
Suite
10 cases · 40 programmatic checks · greedy · 512-token output cap
Depths
0 · 59,936 · 200,045 · 250,166 tokens (measured by the server’s tokenizer)
Best depth result
40/40 at 200k · 39/40 at 250k (the period)
Decision
Adopt for agent duty at full depth; rerun as a pass rate over several runs

Limitations: outputs were capped at 512 tokens, so this suite says nothing about long generations at depth. Each depth is a single cold pass, and the greedy-decoding results above explain why that caveat matters. The padding is also a cooperative decoy. An adversarial distractor that argues with the rules would be a harder test, and I have left it for later.

What I am not publishing: the model’s exact repository and provenance, because it is a community build. My note on uncensored local models explains that boundary. I also leave out the tunnel and port layout, which the remote RTX 5090 setup already describes at the level I am willing to share.

Sources

Suhail Mohebi · published 25 August 2026 · the cover is a generated illustration

What this suite tests
  1. What this suite tests
  2. The suite: six tools, five rules, ten cases
  3. Two bugs in my grader
  4. Results at four depths
  5. The recurring formatting issue and limits of four passes
  6. Greedy decoding was not reproducible on this server