Skip to content
Technology

Making Job Applicator Faster: What Worked and What Didn’t

November 23, 2026Reuben Roy

Over two weeks we went through Job Applicator’s model use one change at a time, measuring before and after with the same commands every time. The first round halved the model calls per application, cut on-device answering time in half and stopped batches from stalling. The second round tried three ideas from recent research, and none of them passed. This post covers both rounds: what we tried, why, what we measured, and what we learned from each result.

Summary

Job Applicator is a macOS app that fills in job applications on Greenhouse and Ashby. A language model answers the form’s questions, writes the cover letter and picks a résumé. Each change below was measured against a deterministic stub model, a real hosted model or the on-device model, and recorded with its commit and command.

Round one: what worked. These changes went into the release-0.3.5 branch and shipped publicly in 0.4.0.

  • Fewer, better-cached calls. One posting digest per job, one documents call, “why this company” folded into the question batch, and prompts laid out so provider caches can reuse them. On a real hosted model: model calls per application 5.1 → 2.6 (−49%), output tokens −36%, prompt tokens −19%, model time −20%, with answers still correct.
  • n-gram speculative decoding on the device. The on-device answer evaluation went from 153.8 s to 77.0 s (−50%) and cold start from 36.7 s to 16.7 s, with identical accuracy.
  • Bounded replies. On-device generated tokens fell 81%, cut-off replies went from 3 to 0, and accuracy rose from 0.883 to 0.900.
  • A queue that keeps moving. The next job is prepared ahead, every job’s questions are asked before Start, a stalled run is released after 5 minutes instead of 20, and a form that erases answers is remembered. In the test batch, runs stopped for a question went from 2 to 0 and completed jobs from 3 to 5.
  • Meaning-based answer reuse. An optional 265 MB embedding model reuses saved answers to reworded questions (−48% prompt tokens on that form) and cut Gmail tracking calls from 14 to 9 per sync, with no more wrong matches than before.

Round two: what didn’t. Each of three research ideas had a pass mark written before any run. Token probabilities as confidence was Inconclusive. Putting the posting first in the prompt Failed: uncached tokens rose 15%. Smaller, grouped batches of questions Failed: up to 28 calls for at most +1 point of accuracy. Along the way we found three product bugs worth fixing.

1. Background: where the time and tokens went

What the app does with a model

For each job, Job Applicator reads the posting and the application form. It fills what the applicant’s profile settles on its own, like name, links and work history, and asks a language model for the rest:

  • Form questions the profile doesn’t settle: dropdowns, multi-selects, short and long free text, and “why do you want to work here?”
  • A cover letter, when the form wants one, checked against validators for grounding, length, banned phrases and invented numbers.
  • A résumé choice: which bullets from the applicant’s history to put forward for this role.

Each model answer carries a confidence. The app submits on its own only when every model answer clears a per-field floor of 0.80; otherwise it stops and asks the person. The model can be the app’s default hosted model, the person’s own API key, or a small model running on the Mac through a bundled llama-server (Qwen3.5-4B, 4-bit).

Where things stood on 9 November

A research pass on 9 November 2026 read the code and the recent literature on prompt caching, agent memory, speculative decoding and confidence. It found these problems:

  • Nobody was counting tokens. The provider’s usage block was never read, so the cost of an application, and the cache hit rate, couldn’t be seen.
  • The posting was sent four or more times per application. The cover-letter extract, the letter, the résumé choice, the “why this company” answer and every question batch each got their own copy under a different system prompt, so no call could reuse another’s cache.
  • The prompts changed daily. The date line sat near the top of every system prompt, so the first application of each day started with a cold cache.
  • Batches stalled. A job discovered a question nobody had answered only once the browser reached it, then waited for someone who had already left. A run that hung held the whole queue for 20 minutes.
  • The on-device model was slow. The answer evaluation took about two and a half minutes, and its answers often copied option text and profile facts word for word, which is the ideal case for speculative decoding.

2. How we measured

Rules for every change

  • Harness first. Each change has its own branch. Its first commit adds only measurement, with product behaviour identical to the base. The “before” numbers come from that commit, and the “after” numbers from the change with the same commands.
  • Accuracy is a guard. A speed or cost change can’t lower answer accuracy, cover-letter pass rates or “why this company” pass rates.
  • Say so when it doesn’t move. A stage that can’t show its metric moving reports that plainly. Round two went further: each experiment’s pass mark was written down before its first run and never changed.
  • Same tests on both sides. The full test suites ran before and after, and no existing test was loosened.
  • No real personal data. Every run used a fictional applicant and synthetic postings and forms. No real profile was sent to any model.

Instruments

  • Cost benchmark, stub mode. Five fictional applications run end to end through the real resolver and document code against a deterministic fake model. Token counts are characters ÷ 4, rounded up. A simulated prefix cache counts as cached the longest prefix shared with an earlier request, in 64-token blocks with a 1,024-token minimum, as OpenAI-style and vLLM caches behave. Scenarios cover a normal day, a new day (the date changes mid-session) and a retry of the same job. The counts are exact and repeatable, but the stub can’t judge writing.
  • Cost benchmark, real mode. The same applications against a hosted model, which also checks letters and “why this company” answers with the app’s validators.
  • Answer evaluation. 65 form questions with expected answers for one fictional applicant, run on a hosted model or the on-device model.
  • Queue and browser benchmarks. Five practice applications through the real queue controller and a headless Chrome, with a stub model at 1 s per call, timing each stage.
  • Purpose-built benchmarks for one stage each: a stalled-run watchdog with time scaled 120×, an erased-answer practice page, and 99 reworded question pairs with 88 hard negatives for semantic matching.

Models and machine

Hosted runs used deepseek-v4.1-flash through the OpenCode Go gateway, plus qwen3.8-flash for one experiment in round two. On-device runs used Qwen3.5-4B Q4_K_M on the app’s pinned llama.cpp build b10964. Everything ran on an Apple M1 Max with 64 GB, on macOS 27. Neither hosted model is the app’s default hosted model, so the hosted numbers show direction rather than exact production cost.

3. Round one: what worked

Round one took the 9 November research list and worked through it as eleven measured stages plus a set of answer fixes. Each stage was built on the previous one. The whole chain went into the release-0.3.5 branch, and users got it in 0.4.0.

StageChangeHeadline (before → after)
1Record usage for every model callBaseline: about 5 calls and 8,300 prompt tokens per application
2Stable prompt prefix and cache keysFirst job of a new day: cached tokens 4,096 → 6,464 (+58%)
3One posting digest, one documents call, folded “why us”Calls per application 4.4 → 3.0; retry 2 → 1 calls, −52% tokens
4aPrepare the next job while this one is in the browserHeavy form 18.6 → 13.9 s; its model wait 6.1 → 0 s
4bAsk every job’s questions before StartRuns stopped mid-batch 2 → 0; completed 3 → 5 of 5
5Inactivity watchdogA stalled run holds the queue 20.1 → 5.3 min
6n-gram speculative decoding on the deviceAnswer eval 153.8 → 77.0 s; cold start 36.7 → 16.7 s
7Answer outcome logging and a calibratorBuilt; waits for about 200 labelled answers before it acts
8Live steps and time left on the running jobFirst visible step: never → 0.7 s
9Remember a form that erases an answerSecond run on that form: review → submitted
10Optional semantic matching of saved answersReworded form 2 → 1 calls, −48% tokens; tracking 14 → 9 calls
11Posting digests shared between applicantsSecond applicant: −30% prompt tokens
FixesBounded replies and four answer bugsOn-device accuracy 0.883 → 0.900, 76 → 36.5 s

The result on a real model

Before going stage by stage, here is the whole of round one against the original code, on a real hosted model:

Original codeAfter the first round
Model calls5.12.6 −49%Prompt tokens8,5926,961 −19%Output tokens4,4562,852 −36%Model seconds38.130.5 −20%Wall seconds (median)20.120.2 same
Figure 1. Per application, original code against everything in the first round, on deepseek-v4.1-flash. Five fictional applications, three alternating passes, 15 applications per side. Bars are scaled to the original value on each row. Wall time is flat on purpose: the calls of one application already ran in parallel, and the time saved between applications shows up in the queue benchmark.

Answers stayed correct (197 of 198 before, 189 of 189 after). On the original code, two of five passes went wrong when the provider was slow: one stopped when the provider didn’t answer in time, and another left two fields for the person. None of the five passes on the new code did. The provider’s reported cache share swung between 0% and 79% from pass to pass on the same code, because the gateway routes calls to upstreams that report cache reads differently. So the cache savings are claimed only from the deterministic stub.

Stage 1: measure first

Motivation: you can’t improve what you can’t see

Nothing in the app read the token usage that providers return, so the cost of an application, its cache hit rate and the effect of any later change were all invisible. Lumer et al.’s 2026 study of prompt caching for agents, “Don’t Break the Cache”, makes the point sharply: a careless layout can make caching cost more, by writing cache entries that are never read. Without the cached-token count you can’t tell which case you’re in.

What we built. Every model call now records its purpose (question batch, cover letter, résumé choice and so on), prompt, cached and output tokens, latency and outcome. The record is kept per application, and jobapp usage prints it. We also built the stub cost benchmark described above and added token counters to the browser benchmark.

Result. A baseline of about five model calls and 8,300 prompt tokens per application, with every later stage measured against it.

Stage 2: a prompt prefix that survives the day

Motivation: provider prefix caches and the date line

Hosted providers and inference servers such as vLLM cache prompts by prefix: a request is cheaper and faster when its opening tokens exactly match a recent request. The date line sat near the top of the system prompt, so every prompt’s prefix broke at midnight. A follow-up call (asking again for a missing answer) appended its instruction to the system prompt, so it broke the prefix too.

What we built. Every system prompt now runs instructions, then the applicant block and citable facts, then the date as the last line. The follow-up instruction moved into the user message. OpenAI-compatible requests send prompt_cache_key so requests with the same prefix are routed to the same cache, and OpenRouter requests send a session_id for sticky routing.

Result. For the first application of a new day, cached prompt tokens went from 4,096 to 6,464 (+58%) and the hit rate from 32.7% to 51.5%. The follow-up call now reuses 98% of its prompt. Same-day behaviour, call counts and accuracy (65 of 65 on the real-forms guard) didn’t change. Three small call types stayed uncached because their stable prefix was under the 1,024-token minimum. That problem was for stage 3.

Stage 3: fewer calls

Motivation: the same posting, read four or more times per job

Each application made about five calls, and most of them carried their own copy of the posting under their own system prompt. Agentic Plan Caching (NeurIPS 2025) argues for reusing the expensive, repeated part of an agent’s work and recomputing only the cheap part. The repeated part here was reading the posting.

What we built.

  • One posting digest per job: a single call extracts the role, three quoted requirements, team and product signals, location and office policy, sponsorship and clearance wording, and a “why us” excerpt. It is cached locally by job URL and a hash of the posting, so a retry or a later look-ahead reuses it. It replaced the separate cover-letter extract call.
  • One documents call: the cover letter and the résumé choice come back together in one structured reply. A letter that fails validation is rewritten on its own, and every existing validator and fallback stays.
  • “Why this company” folded into the question batch, with its own instructions and checks. An answer that fails them still gets the dedicated call.
  • A byte-identical applicant prefix at the start of every system prompt, and a cache key that ignores the date line.
BeforeAfter
024684.43Default day−32%43Next day−25%75First job of a new day−29%21Retry of the same job−50%
Figure 2. Model calls per application in the deterministic stub benchmark, before and after stage 3 (with its review fix). Accuracy stayed at 189 of 189 judged answers, every wanted cover letter passed first time, and every “why this company” answer passed its checks.

Result. On a normal day, calls per application went from 4.4 to 3.0 (−32%), stub model time fell 32% and the cache hit rate rose from 27% to 42%. A retry of the same job now makes one call instead of two, with 52% fewer prompt tokens. Each part has its own switch, and turning any one off brings back its cost: 0.2 to 0.8 more calls per application with accuracy unchanged. That shows each saving came from the change itself and not from a shift in what gets measured.

A regression we caught. The first version made the question batch wait for the digest, which put a whole model call in front of it, and wall time per application rose 35%. Code review caught it in the numbers. The fix is that the question batch uses the digest only if it already exists, and otherwise starts at once from the posting, as it did before. Wall time came back to within noise.

Stage 4a: prepare the next job ahead

Motivation: submit and confirmation are mostly waiting

In the browser benchmark, submitting and waiting for confirmation took 5 to 13 seconds per job, and the model sat idle the whole time. The queue now prepares exactly one job ahead while the current one is in the browser: fetching the posting and form schema, making the digest, writing the documents and answering the questions. Filling and submitting stay strictly one at a time, so the employer’s page never sees anything different.

Result. On a five-job batch, the heavy form (32 questions, résumé and cover letter) finished 25.5% sooner (18.6 → 13.9 s) with no model wait inside its run (6.1 → 0 s). Calls made during the run dropped from 9 to 1 per batch, while total calls and tokens stayed the same. The work moved earlier rather than growing.

Stage 4b: questions before the queue starts

Motivation: a batch shouldn’t stop halfway for someone who has left

Greenhouse and Ashby publish their form schemas, so the app can answer every queued job’s questions before a browser opens. It then shows the person one list of what it couldn’t answer while they’re still there. A question shared by several jobs is asked once.

Result. In a five-job batch where two jobs ask a question nobody had answered, runs that stopped mid-batch went from 2 to 0 and completed applications from 3 to 5 once the question was answered before Start. The first version accidentally turned off stage 4a’s document preparation for those jobs, which review caught and fixed.

Stage 5: an inactivity watchdog

Motivation: one stuck run held the queue for 20 minutes

In a long run on 9 November, one application stopped producing events, held the serial queue until the 20-minute hard cap, and then succeeded on retry in 28 seconds. Stage 5 added a five-minute inactivity deadline beside the hard cap. Engine events, a model call in progress and waits for emailed codes or approvals all count as signs of life.

Result. With time scaled 120× so the test doesn’t take 20 minutes, a wedged run blocked the queue for the equivalent of 5.3 minutes instead of 20.1 (−74%). It was then retried and succeeded, where before it was left for the person.

Stage 6: n-gram speculative decoding on the device

Motivation: the on-device model mostly copies

Speculative decoding guesses several tokens ahead and has the model check them in one pass, keeping the ones it agrees with. The output is exactly what the model would have written anyway, only faster. A draftless variant takes its guesses from n-grams that have already appeared in the prompt, with no second model. The idea goes back to LLMA (“Inference with Reference”, 2023) and prompt-lookup decoding. It suits form answers: the model copies option text (“5–10 years”), profile facts and JSON keys word for word. The research pass had flagged it as the best fit for the bundled llama-server.

No speculationn-gram speculation
04080120160153.877.0Product path, 60 cases−50%86.364.2Full set, 65 cases−26%36.716.7Cold start + first call−55%
Figure 3. Seconds for the on-device answer evaluation (Qwen3.5-4B Q4_K_M on llama.cpp b10964, Apple M1 Max), without speculation and with --spec-type ngram-simple. Medians of three cold-server runs; the cold-start pair comes from the full-set runs. Accuracy was identical in every category.

Result. On the app’s real constrained path, the on-device answer evaluation took 77.0 s instead of 153.8 s (−50%), and cold start plus first call took 16.7 s instead of 36.7 s. Accuracy was identical in every category. The cost is about 180 MB more peak memory.

What we tried and turned down. Stage 6 measured every candidate against the current baseline, and most lost:

CandidateChange in timeVerdict
ngram-simple speculation−23% (full set)Kept: same gain as the other n-gram types, least memory
ngram-mod, ngram-map-k−23%, −22%Equal speed, more memory
--cache-reuse 256+0.5%No effect; the prefix was already cached
Save and restore the KV slot across restartswithin noiseThe first request after a restore didn’t use the restored state
8-bit KV cache with an 8,192-token window+32%Generation 40% slower on Metal
Batches of 8 instead of 4−7%Lost 4 points of free-text accuracy

Bounded replies and four answer bugs

Motivation: on-device accuracy had slipped from 0.95 to 0.883

The on-device model’s catalog record said 0.95, and stage 6 measured 0.883. A bisect over the commits between them found the biggest single drop: a new citation field in the reply schema had no length limit. Some replies wrote an essay into it and hit the 2,048-token output cap, which cut off the answers after it in the same batch. Two new rule-based answer paths were also overriding correct model answers. Separately, a real-model run showed that the “why this company” check wanted the company’s full legal name (“Northwind Payments”) and rejected natural answers like “Northwind’s settlement layer”.

What we fixed. Every free-text reply field is now bounded. A question that asks when (“When did you start at your current company?”) is no longer answered with the employer’s name. A cited years-of-experience answer is no longer overwritten by date arithmetic. The motivation check now accepts the company’s distinctive first word when it’s written as a name.

Result. On-device accuracy rose from 0.883 to 0.900, free text from 0.913 to 0.957, and the run took 36.5 s instead of 76.1. Generated tokens fell 81% (8,544 → 1,612), and cut-off replies went from 3 to 0. The offline real-forms suite went from 66 of 70 to 70 of 70.

Stage 7: calibration, built and waiting

Motivation: the model’s stated confidence is a weak signal

Recent work on structured extraction finds that a model’s self-reported confidence predicts correctness only weakly, and that signals learned from outcomes do better. The app gets those outcomes for free, because every time a person keeps, edits or rejects a model answer, that’s a label. Stage 7 records, on the Mac only, the features of each model answer: question type, whether its cited fact was verified, whether it matches an option exactly, and the stated confidence. It also records the person’s later outcome, and fits a small logistic calibrator per model. The submit gate uses the calibrator only once it has at least 200 labelled answers. A self-consistency check, which asks again for near-floor dropdown answers, is built but off by default.

Result. There’s nothing to report yet, and we didn’t make numbers up. The gate behaves exactly as before until real labels exist. That gap is also why round two’s first experiment struggled for wrong answers to learn from.

Stage 8: show the work

Motivation: the labour illusion

Buell and Norton’s “The Labor Illusion” (Management Science, 2011) found that people value a service more when they can see it working, and live runs take 26 to 67 seconds each. The running job’s row now shows its live steps and an estimate of the time left. A line above the queue gives the batch length and how many questions come first. Review puts model answers first, with the evidence they cite. “Always ask me about questions like this” lets the person take a question type off autopilot, and about 1 in 20 autopilot submissions is offered for a quick check afterwards.

Result. The first step text appears on the row 0.7 s after Start. Before, the row never showed one.

Stage 9: remember a form that erases an answer

Motivation: the same company’s form failed the same way every time

On a live Greenhouse form, the page kept clearing one answer. The app put it back twice, then stopped for review, and it would do the same on every later application to that company. It now records the quirk per ATS, company and field. On a matching form it fills that field last, waits for the page to settle, and types the answer the way a person does so that the page’s own validation accepts it. A record is forgotten after 30 days, or after three runs that didn’t need it.

Result. On a practice page built to reproduce the bug, the first run still stops for review, since nothing is known yet. The second run submits. It costs a few seconds, and only on forms that need it.

Stage 10: meaning-based answer reuse

Motivation: saved answers matched only on near-identical wording

Saved answers were reused when a new question matched an old one exactly or almost word for word. Semantic matching needed Ollama, and most people don’t run it. Stage 10 offers a pinned EmbeddingGemma 300M (4-bit, 265 MB) download, served by the llama-server the app already bundles, so it adds no new dependency. We compared it against Model2Vec, a much smaller static model, which had lower recall and would have brought compiled Python dependencies into the bundle.

Direct recallWrong-hit rateOld matching’s wrong-hit rate
Direct recall, %0204060800.800.850.900.920.940.9668.743.417.210.19.17.1Wrong-hit rate on hard negatives, %0369120.800.850.900.920.940.9611.46.83.42.31.11.1Similarity threshold for filling a saved answer directly
Figure 4. EmbeddingGemma 300M on 99 reworded question pairs and 88 hard negatives (for example “expected salary” against “current salary”). The dashed line is the wrong-hit rate of the old exact and fuzzy matching, 1.1%. The shaded column is the chosen threshold, 0.94: the first point where meaning-based matching is no more wrong than the matching it replaces.

Result. At 0.94, meaning-based matching fills only the closest paraphrases by itself (9.1% against 6.1% on a deliberately hard set). Its larger value is retrieval: the right saved answer was among the top three candidates offered to the model every time, though the test library held only 37 answers. On a form with two reworded questions, the question-batch call disappeared (2 → 1 calls, prompt tokens 3,670 → 1,912). Gmail tracking settles newsletters and receipts without the model, cutting calls from 14 to 9 per sync with no real update ignored. Thresholds only ever move up: each time a person corrects a semantic fill on a topic, that topic’s threshold rises one step.

Stage 11: posting digests shared between applicants

Motivation: a posting’s digest doesn’t depend on who’s applying

The posting digest from stage 3 is built only from the public posting. On the app’s default hosted model, the app now asks Job Applicator’s own API (the service behind the hosted model) for a digest someone else’s Mac has already made, before making one itself. It falls back to a local call on any error or after ten seconds. Nothing about the applicant is sent, and the lookup is off for the on-device model and for people using their own API key.

Result. The API endpoint was built alongside the app change, so the measurement used a local stand-in that plays the hosted model and the digest endpoint. In that run a second applicant to the same five postings used 30% fewer prompt tokens per application (7,257 → 5,064), and their digest calls went from 1 to 0. The first applicant’s numbers didn’t move. The endpoint is now live; a before-and-after on real traffic hasn’t been run yet.

4. Round two: what didn’t

With round one shipped, most of the obvious waste was gone. On 18 November we searched recent papers for what was still open, and came away with seven candidates. We tested the three that the existing benchmarks could measure quickly and that needed no changes to a model server:

CandidateSourceTested?
Confidence from token probabilities on constrained answersGupta et al. 2024; UCCI 2026Yes (Experiment 1)
Posting digest in the cached prefixEPIC 2024; CacheBlendYes (Experiment 2)
Batch size and grouping of questionsBatchPrompt 2024; Ji et al. 2025; PromptPack 2026Yes (Experiment 3)
Conformal choice of the gate thresholdConformal abstention 2024No: needs stage 7’s labelled answers first
Answer on the device, escalate on disagreementSemantic agreement cascades 2025No: larger change
Suffix-tree speculative decoding on the serverSuffixDecoding, NeurIPS 2025No: a question for the model host
Page pruning and record-and-replay for the browser fallback agentFocusAgent 2025; AgentRR 2025No: only matters once more ATSs are supported

This round was stricter than the first. Each experiment’s pass mark was written down before its first run, every arm ran from the same base commit (24a9537), and anything short of a clear pass meant no merge. None passed. The code stays on its branch, switched off.

Experiment 1: token probabilities as confidence Inconclusive

Experiment 1 · branch perf/s12-logprob-confidence

Abstract

The app limits each dropdown answer to the dropdown’s own options, so the probability the model gave its chosen option can be read straight from the token log-probabilities. We used that probability in place of the confidence the model writes, for those answers only. Across 204 dropdown answers per arm, it separated right from wrong much better (AUROC 0.860 → 0.984). All six wrong answers, though, were the same question asked in six passes. At the app’s gate the change caught none of them: a safety floor for answers grounded in the profile raised the one wrong answer back to 0.85. It also sent 8 correct answers to the person that would otherwise have gone through. Accuracy didn’t change and no tests broke, but the pass mark needed at least 10 wrong answers per arm, so the result is inconclusive and the change stays off.

Motivation

Each answer in the question batch comes with a confidence number that the model writes itself. Self-reported confidence is a weak signal, and here it sits right at the decision point: it decides whether an answer goes to an employer unseen. It also costs output tokens on every answer.

For dropdowns there’s something better on hand. The app already forces dropdown answers through a grammar that allows only the form’s options, so the model’s reply is a choice among a known set. The probability it gave that choice is a direct measure of how sure it was. Gupta et al. (ICLR 2024) found that token-level uncertainty predicts when a small model should defer to a larger one better than simple summaries do. UCCI (2026) applies the same idea to structured outputs.

Hypothesis. For dropdown answers, the option probability separates correct from wrong answers better than stated confidence does. At the same gate floor, it therefore stops more wrong answers without stopping many more correct ones.

What we built

  • Asking for probabilities. When the setting llm_logprob_confidence is on and the reply is grammar-constrained, the request asks for logprobs with the top 5 alternatives per token.
  • Turning tokens into an option probability. Servers report token probabilities from before the grammar is applied. A probe showed alternatives such as “Based” and a code fence at the first token of a constrained reply. So for each token of the chosen option we renormalize over only the alternatives that could still lead to a valid option, then multiply across tokens:
    P(option) = ∏ over tokens t of the option:
                 P(t | prefix) / Σ P(a | prefix) for alternatives a the grammar still allows
    Only 5 alternatives come back per token, so a valid token outside that list is missing from the sum. The result is therefore an upper bound on the true probability. It is close to exact when the options differ at their first token, as most do.
  • Using it. For a dropdown answer whose reply matched an option exactly, the probability replaces the stated confidence. Free text, multi-selects, saved answers and providers that return no probabilities keep today’s behaviour, and tests cover each of those cases.

Pass mark (fixed before running)

  1. The answer evaluation is no more than 1 case worse than the baseline.
  2. With at least 10 wrong dropdown answers per arm, either AUROC rises by at least 0.05 with the confidence interval’s lower bound above 0, or fewer wrong answers are auto-accepted at the gate with coverage within 5 points.
  3. No new test failures.
  4. Providers without log-probabilities behave exactly as before.

Setup

The model was qwen3.8-flash with reasoning off (see finding 1). We used 8 questions per call, because all questions in one call timed out on this model (finding 2). Each arm ran three separate passes over three question sets: the 65-case evaluation, 23 extra easy dropdowns and 10 extra hard ones. That gives 68 dropdown answers per pass, 57 of them answered by the model. The rest came from the profile or saved answers and don’t depend on the change.

Results

Accuracy held

On the 65 cases, the before arm scored 64, 63 and 64 correct; the after arm 63, 63 and 64. Dropdown accuracy was 0.971 on every pass in both arms. The free-text differences were rewordings that also varied between two before passes, since that code path never reads the new confidence. Both extra sets scored 100% in all six passes.

The signal separated right from wrong much better, on one question

Signal (171 model answers, after arm)AUROC
Confidence the model wrote0.860
Option probability0.984
Difference, with 95% bootstrap CI by question+0.124 (+0.056 to +0.207)

The model got one dropdown wrong per pass, the same question every time: payments_years, asking for years of experience in payments. That makes 3 wrong answers per arm where the pass mark needed 10. In 3,652 of the 10,000 bootstrap resamples, no wrong answer was drawn at all. The interval shows the direction for this one question and nothing more general.

At the gate, it stopped no extra mistakes and sent more correct answers to the person

Correct, auto-acceptedCorrect, sent to the personWrong, auto-accepted
Beforewritten confidence165 auto-accepted, correct3 correct sent to the person · 3 wrong auto-acceptedAfteroption probability157 auto-accepted, correct11 correct sent to the person · 3 wrong auto-accepted
Figure 5. What the gate (floor 0.80) did with the same 171 model dropdown answers, pooled over 3 passes. The wrong answers are all payments_years. The change moved 8 correct answers into review and stopped none of the wrong ones. Bars are to scale; the review and wrong segments are thin because they are small.
QuestionModel’s answerOption probabilityBefore (written confidence)After (option probability)
payments_yearsWrong0.72Auto-acceptedAuto-accepted: the grounded floor lifted it to 0.85
team_sizeCorrect0.67–0.72Auto-acceptedSent to the person
start_quarterCorrect0.75–0.76Auto-acceptedSent to the person
h_aws_yearsCorrect0.70–0.80Auto-acceptedSent to the person on some passes
startupCorrectbelow 0.80Sent to the person (wrote 0.50)Sent to the person

Why it didn’t work

  1. Too few mistakes to learn from. This model rarely gets a dropdown wrong on this applicant. The 33 extra dropdowns, 10 of them written to be hard, added questions but no new wrong answers. With one wrong question you can’t tell whether a signal ranks mistakes well or just ranks that one question well.
  2. A safety floor overrode the new signal. payments_years took the “grounded” path: the model cited a profile fact, and the app checked that the fact exists. For grounded answers the app sets confidence to max(model confidence, 0.85) whenever the model reports at least 0.5. That rule was written because small models understate their confidence when doing arithmetic over real facts. An option probability of 0.72 was therefore lifted to 0.85 and accepted. The new signal had been switched on for grounded answers without anyone asking whether the floor should still apply.
  3. A correct answer can still be unsure. On team_size and start_quarter the model chose the right option but spread its probability across neighbouring options, such as two adjacent team-size ranges. The written confidence hid that hesitation. The probability shows it, and a fixed floor of 0.80 turns it into an interruption. Used as is, the new signal costs coverage before it can save a mistake.

The test harness’s simpler gate ignored the grounded floor and showed 0 wrong answers accepted under the new signal. That number is wrong for the product, and we didn’t use it. The gap is a reminder to measure through the real decision code, not a copy of it.

What would change the verdict

  • A dropdown set where the model makes at least 10 different mistakes, which probably means a weaker model, a less tidy applicant or real labelled answers.
  • A decision on whether the grounded floor should apply to a measured probability, which is a design question in its own right.
  • Using the probability as an input to the app’s calibrator, so that its spread is learned rather than compared with a fixed 0.80. That needs a schema change this experiment didn’t make.

Experiment 2: the posting first in the prompt Failed

Experiment 2 · branch perf/s13-digest-prefix

Abstract

Several calls for one job read the same posting digest. It sat after each call’s own instructions, so the prompt cache couldn’t reuse it between those calls. We moved the digest to straight after the applicant’s details, ahead of the instructions, hoping to cut uncached prompt tokens per application by at least 10%. Instead they rose by 15.3% in the default scenario and 14.8% in the new-day scenario. The move made each call’s instructions part of a per-job prefix, and that lost a reuse across all applications that was worth more than the reuse within one application it gained. Quality and model time didn’t change on a hosted model. The change failed.

Motivation

Hosted providers and inference servers cache prompts by prefix: a request is cheaper when its opening tokens match a recent request’s opening tokens exactly. Before this experiment a prompt looked like this:

Same for every applicationSame within one jobNo longer reusable across jobs
Before (shipped)
System
Applicant blockInstructions for this call typeDate
User
Posting digestTask: the questions

The opening run up to the date is the same for every application that makes this kind of call, so it is cached across jobs.

After (experiment)
System
Applicant block
User
Posting digestInstructions for this call typeDateTask

Only the applicant block is shared across jobs now. The instructions sit behind a per-job chunk, so they are cached only when another call for the same job uses the same instructions.

Figure 6. Prompt layout before and during the experiment. A prefix cache reuses a request only from its first token up to the first difference.

The digest sat in the user message after the instructions for each kind of call. Two calls for the same job therefore shared only the applicant block, and each paid full price for the digest. EPIC (2024) and CacheBlend reuse repeated chunks wherever they sit in a prompt, but that needs changes to the server, which we don’t control for hosted models. The cheaper alternative is to move the repeated chunk forward. “Don’t Break the Cache” (Lumer et al., 2026) warns that a careless prompt layout can make caching cost more, and that is the risk this experiment tested.

Hypothesis. With the digest straight after the applicant block, calls for the same job share a longer prefix, and uncached prompt tokens per application fall by at least 10%.

What we built

For calls that read a digest (the question batch, the “why this company” call, the documents call, résumé choice and the standalone letter), the system message now holds only the applicant block. The user message starts with the posting, still marked as untrusted employer text and never in the system role, then the instructions for that call, the date and the task. The cache key sent to the provider covers the applicant block and the posting. A setting, llm_digest_prefix, turns the new layout off and restores the old prompts byte for byte. 24 new tests check the layout, the untrusted-text rule and the fallback.

Pass mark (fixed before running)

  1. Stub uncached prompt tokens per application fall at least 10%, in both the default and new-day scenarios.
  2. Answer accuracy is no more than 1 case lower.
  3. The “why this company” and cover-letter check pass counts are no lower.
  4. Hosted model seconds per application are no more than 10% worse.
  5. No new test failures, and the posting is never in the system role.

Results

Before (shipped layout)After (posting first)
01,0002,0003,0004,0005,0006,0003,9254,527Default+15.3%3,9654,553New day+14.8%3,4695,120Digest made in advance*+47.6%
Figure 7. Uncached prompt tokens per application, deterministic stub, 5 applications × 3 repeats. The pass mark was −10% in the first two scenarios; both rose. *Supplementary scenario, not in the pass mark: the digest exists before the application starts, as with the app’s look-ahead.
Stub, default scenario, per applicationBeforeAfterChange
Prompt tokens7,4337,420−0.2%
Cached prompt tokens3,5072,893−17.5%
Uncached prompt tokens3,9254,527+15.3%
Cache hit47.2%39.0%−8.2 pts
Model calls3.03.00
Answer accuracy · letters passed · “why us” passed1.00 · 9/9 · 12/121.00 · 9/9 · 12/120

On the hosted model (DeepSeek v4.1 Flash; 2 passes per side, 5 applications × 3 repeats each, so 30 application runs per side), accuracy was 1.00 on every pass, every letter and “why this company” answer passed, and model seconds per application went from 47.5 to 46.8 (−1.6%). Over these passes the provider’s reported cache share moved between 68% and 71% on the same code, and model seconds moved between 41 and 54. Both spreads are wider than any difference between the arms, so the hosted cache numbers serve only as a check.

Why it didn’t work

Look at where the cached tokens came from, call type by call type:

Call type (stub)Calls / appCached beforeCached afterHit % before → after
Documents (letter + résumé)0.6614038.7 → 0.0
Question batch1.21,7151,71558.1 → 58.1
Question batch, digest made in advance1.21,61352168.9 → 22.2
Résumé choice, digest made in advance0.421827328.7 → 35.4
Follow-up question0.247447498.5 → 98.5

The old layout had a reuse that the original proposal (ours) didn’t count. “Applicant block + instructions for this kind of call” is identical for every application the person sends. The second job’s documents call matched the first job’s documents call all the way through the instructions. That reuse happens on every application.

The new layout puts a chunk that changes per job, the posting, in front of those instructions, so the instructions can never be matched across applications again. What we got in return was reuse within one application, and there is little of it. In the default flow the question batch starts before the digest exists, so it rarely reads it. Even when the digest was made in advance, as the app’s look-ahead does, the gains were small (résumé choice 29% → 35%) and the losses large (question batch 69% → 22%).

Put roughly: the change traded one repeat per call type per application, the instructions shared across every job, for at most one or two repeats of the digest inside a single job. The first is bigger.

Limitations

  • The stub’s cache is an approximation of prefix caching (64-token blocks, 1,024-token minimum). Real providers differ, and the hosted cache share wasn’t stable enough to confirm or rule out the effect.
  • Two hosted passes per side are enough to show that quality and time didn’t move, but not enough to resolve a few per cent of time.
  • No on-device numbers. The on-device server caches one conversation slot at a time, and the balance there could differ.
  • Two test files that talk to the running app’s agent bridge were left out of both test runs after the first run reached the installed app. Both arms skipped them, but they are untested on this branch.

Experiment 3: batch size and grouping Failed

Experiment 3 · branch perf/s14-batch-grouping

Abstract

On hosted models the app asks every unanswered question in one call. Research on batch prompting reports that accuracy falls as batches grow and depends on where a question sits in the batch, and that grouping related items helps. We tried 2, 4 and 8 questions per call and all questions in one call, each in form order and grouped by topic: 8 configurations, 3 passes each, 24 passes in all. The default, one call in form order, already scored 64 of 65 (98.5%). No configuration beat it by more than one point, and none reached the pass mark. Smaller batches used 7 to 28 calls instead of 1, sent 3.7 to 13 times the input tokens and took 2 to 3.7 times the model time. The default stays.

Motivation

Three lines of work suggested the single big batch might be costing accuracy:

  • BatchPrompt (Lin et al., ICLR 2024) reports that accuracy falls as more items share one prompt, and that position in the batch matters.
  • Ji et al. (PVLDB 2025) argue for grouping similar questions into the same batch, and caution against groups that grow too large.
  • PromptPack (Koralewski et al., 2026) describes “context bleeding” between unrelated items in one call. Its setting is ad annotation, not forms.

We had recently folded the free-text “why this company” answer into the same call as the dropdowns, which is exactly the mix of unrelated items these papers warn about. Meanwhile the on-device model already uses batches of 4 because of its small context window, so the code path existed.

Question. Does a smaller batch, or an order that keeps related questions in the same call, make the hosted default more accurate or cheaper?

What we built

  • A grouping setting, llm_batch_grouping: none (form order, as before) or topic. topic orders questions by kind (choices, then short text, then long text, with “why this company” last) and, within a kind, keeps questions about the same profile topic next to each other. The sort is stable, and answers are matched back by key, so order only decides which questions share a call.
  • Harness additions: calls, input and output tokens per pass, cut-off or re-asked replies, and accuracy by position in the batch (first, middle, last).

Pass mark (fixed before running)

  1. Accuracy: at least +3 points over the default, with the gain in every repeat or a 95% interval above zero, and model seconds no more than 15% worse.
  2. Efficiency: model calls or total tokens down at least 15%, with accuracy no more than one case lower and no more cut-off replies.
  3. No new test failures, and none reproduces today’s order exactly.

Results

Form order (large dot: today’s default)Grouped by topic (dashed)
Model seconds per pass04080120160all (1 call)8 (7)4 (14)2 (28)Input tokens per pass010k20k30k40k50kall (1 call)8 (7)4 (14)2 (28)Questions per call (calls per pass)
Figure 8. Cost of smaller batches on deepseek-v4.1-flash, 65 questions, mean of 3 passes per point. Accuracy stayed between 98.0% and 99.5% everywhere (table below); time and tokens rose with every extra call. Input tokens include cached tokens; the two orders send the same tokens, so their lines overlap.
OrderPer callAccuracy % (min–max)Gain, pts (95% CI)CallsModel sInput tokens (cached)Output tokens
formall98.5 (98.5–98.5)base141.03,680 (0%)4,165
form899.5 (98.5–100)+1.0 (+0.0 to +3.1)781.313,772 (73%)5,394
form498.5 (98.5–98.5)+0.014107.625,546 (86%)5,835
form298.5 (98.5–98.5)+0.028141.849,279 (90%)6,452
topicall98.5 (98.5–98.5)+0.0144.93,680 (16%)3,899
topic898.0 (96.9–98.5)−0.5 (−1.5 to +0.0)784.613,771 (79%)5,375
topic498.5 (96.9–100)−0.0 (−1.5 to +1.5)1497.425,545 (86%)5,752
topic299.0 (98.5–100)+0.5 (+0.0 to +1.5)28151.449,278 (92%)6,565

65 cases, 3 passes per row. The gain interval is a paired bootstrap over cases against the default. Cached shares are as the gateway reported them and vary from pass to pass.

Position in the batch made no consistent difference. Questions asked first or last scored 100% in most cells, and the lowest cell, 95.2%, was the first position under topic grouping at 8 per call. No reply was cut off and none needed a second call, in any pass. The one question missed almost every time, years_number, is a total-years question that the model answers 7 where the case expects 6. That is a counting disagreement, not a batching effect.

Why it didn’t work

  1. No room at the top. At 64 of 65, the most any configuration could gain on this set was 1.5 points, so a +3-point pass mark could not be met. In hindsight we should have checked that before writing the pass mark. That isn’t evidence that batching never matters. It says this model on this set is already near the ceiling.
  2. Every call re-sends the instructions. About 1,700 tokens of every prompt are the applicant block and instructions, and each call carries them again, so input tokens grow almost linearly with the number of calls: 3,680 for one call, 13,772 for 7, 49,279 for 28. Provider caching recovers much of that (up to 90% reported cached), but uncached input plus output still never fell 15% below the default. The best case was −11%, and that came from one lucky cache hit on a one-call pass.
  3. The calls run one after another. The batches are sent in sequence, so the time per call adds up. Model time went from 41 s for one call to 81 s for 7 calls and 142 s for 28.

Limitations

  • One strong hosted model. A weaker model, or the small on-device one, may well show the accuracy losses the papers report.
  • One fictional applicant and one posting, near the ceiling. The next step is a harder set with ambiguous questions and questions that depend on each other.
  • Three passes per cell. Differences under about 2 points are inside the noise.
  • Batch size 1 wasn’t run.

5. What we found along the way

We didn’t set out to measure any of these. Each one came from looking closely at a single run.

  1. “Reasoning off” doesn’t reach some hosted models. The app’s default reasoning setting is off. For the generic OpenAI-compatible provider types it sends no field at all, and leaves the choice to the model. qwen3.8-flash reasons by default: on a 60-token probe it spent 56 tokens reasoning. Sending chat_template_kwargs: {"enable_thinking": false} or reasoning_effort: "none" brought that to zero. Anyone using such a model through the app pays for reasoning they switched off. It’s a small fix with a direct saving.
  2. One call for every question can time out. On qwen3.8-flash, asking all 65 evaluation questions in one call ran past the client’s 180-second timeout, and the run produced nothing. DeepSeek handled the same call in about 41 s. The hosted default is fine for fast models and fails outright on slower ones. A cap on questions per call, or a timeout that grows with the batch, would remove that cliff, though Experiment 3 shows the cap costs time and tokens on fast models.
  3. A safety floor can hide a better signal. The confidence floor for profile-grounded answers was meant to correct small models that understate their certainty. Applied to a measured probability, it erases exactly the uncertainty the probability reveals. Any future confidence signal has to be tested through that rule, not around it.
  4. Gateway cache reports aren’t stable. The same code showed anything from 0% to 79% cached, because the gateway routes calls to upstreams that report cache reads differently. Claims about cache savings need the deterministic stub, or a provider that reports consistently.
  5. Test isolation. In one round-two experiment, the first full test run reached the installed app’s agent processes on the development machine. The run was stopped and those two test files were left out of both arms. Nothing was changed, but test suites that can reach a live install should refuse to run unless they’re isolated.

6. Lessons

  • Measure first, then change. Stage 1 added no speed and made every later number possible. Two regressions (stage 3’s wall time and stage 4b’s lost document preparation) were caught only because the numbers were there to read.
  • The biggest wins removed work rather than speeding it up. Folding calls together, reading the posting once, preparing ahead and asking questions early all made the model do less, or do it while nobody was waiting.
  • Count where the repeats are before reordering a prompt. Prefix caching rewards whatever is identical across the most requests. Stage 2 won by moving the one changing line to the end. Experiment 2 lost by putting a per-job chunk in front of text that was shared across every job.
  • Try every flag, keep few. Stage 6 tested six server options and kept one. Several looked like obvious wins on paper and were neutral or slower on this hardware.
  • Check the ceiling before setting the pass mark. Two round-two experiments couldn’t have passed on accuracy, because the model already scored 98.5% or had only one wrong question. A pass mark that needs a gain the test set can’t show is measuring the test set, not the idea.
  • A better signal is only useful through the decision it feeds. Experiment 1’s AUROC gain was real for its one question, but the gate’s own rules decided the outcome.
  • Papers’ settings aren’t yours. Every idea here, the ones that worked and the ones that didn’t, had a sound source measured on a different model, task or serving stack. That’s a reason to test, not to ship.
  • Writing the pass mark first makes “no” easy to say. Without it, an AUROC of 0.98 would have been tempting to merge.

7. Untested ideas

  • Set the gate threshold with conformal methods once the app has the 200 or so labelled answers stage 7 is collecting. That gives a stated error bound in place of a hand-picked 0.80, and the same labels would give Experiment 1 the wrong answers it lacked.
  • Answer on the device and escalate on disagreement: answer dropdowns locally several times, and send the batch to the hosted model only when those answers disagree (semantic agreement cascades, 2025).
  • Suffix-tree speculative decoding on the server. Stage 6’s n-gram drafting only looks within one prompt. The app’s outputs also repeat heavily across applications (the JSON skeleton, option text, profile facts), which is the workload SuffixDecoding targets. That’s a question for the model host.
  • Fix the reasoning-off gap from finding 1, and measure the saving on a model that reasons by default.

8. Reproducing the results

Every stage and experiment has a write-up in docs/measurements/ with its commands, base and measured commits, and machine. Every number is also a row in docs/measurements/ledger.json.

WorkBranchWrite-up
Round one, stages 1–11perf/s1-usage … perf/s10-semantic, merged as perf/measured-speedupss1-usage.md … s11-shared-digest.md, SUMMARY.md
Answer fixesfix/answer-regressionsfix-answer-regressions.md, ondevice-accuracy-diagnosis.md
Experiment 1perf/s12-logprob-confidences12-logprob-confidence.md
Experiment 2perf/s13-digest-prefixs13-digest-prefix.md
Experiment 3perf/s14-batch-groupings14-batch-grouping.md

Typical commands (the key is read from a file inside the shell and never printed):

# Cost benchmark, deterministic stub
python scripts/cost_benchmark.py run --model stub --repeat 3 \
  [--scenario new-day|rerun|warm-digest] --out side.json

# Cost benchmark, hosted model
COST_BENCH_ENDPOINT=https://opencode.ai/inference/go/openai/v1 \
COST_BENCH_MODEL=deepseek-v4.1-flash COST_BENCH_KEY_FILE=<key file> \
python scripts/cost_benchmark.py run --model real --repeat 3 --out side.json

# Answer evaluation, hosted or on-device
python -m evals.answers.run --provider custom --model deepseek-v4.1-flash \
  --endpoint https://opencode.ai/inference/go/openai/v1 --key-env OPENCODE_GO_KEY \
  --batch 8 --repeat 1 --json out.json
python -m evals.answers.run --provider ondevice --gguf Qwen3.5-4B-Q4_K_M.gguf \
  --batch 4 --repeat 3 --json out.json

# Queue benchmark (headless Chrome, stub model at 1 s per call)
python scripts/perf_benchmark.py run --scenario batch --repeats 3

References

  1. Lumer et al. Don’t Break the Cache: An Evaluation of Prompt Caching for Long-Horizon Agentic Tasks. 2026. arXiv:2601.06007
  2. Zhang, Wornow, Wan, Olukotun. Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agents. NeurIPS 2025. arXiv:2506.14852
  3. Yang et al. Inference with Reference: Lossless Acceleration of Large Language Models. 2023. arXiv:2304.04487
  4. llama.cpp, speculative decoding documentation.
  5. OpenAI, prompt caching guide; OpenRouter, prompt caching; vLLM, automatic prefix caching.
  6. EmbeddingGemma. 2025. arXiv:2509.20354; Model2Vec.
  7. Buell and Norton. The Labor Illusion: How Operational Transparency Increases Perceived Value. Management Science, 2011. doi:10.1287/mnsc.1110.1376
  8. Multi-signal confidence for LLM document field extraction. 2026. arXiv:2606.24420
  9. N. Gupta et al. Language Model Cascades: Token-level uncertainty and beyond. ICLR 2024. arXiv:2404.10136
  10. UCCI, token-margin uncertainty for structured outputs. 2026. arXiv:2605.18796
  11. J. Lin et al. BatchPrompt: Accomplish more with less. ICLR 2024. arXiv:2309.00384
  12. Ji et al. Optimized Batch Prompting for Cost-effective LLMs. PVLDB 18(7): 2172–2184, 2025. doi:10.14778/3734839.3734853
  13. Koralewski et al. PromptPack: batched annotation and context bleeding. 2026. arXiv:2607.20528
  14. EPIC: Efficient position-independent context caching for serving large language models. 2024. arXiv:2410.15332
  15. CacheBlend: Fast large language model serving for RAG with cached knowledge fusion. EuroSys 2025. arXiv:2405.16444
  16. Conformal abstention for language models. 2024. arXiv:2405.01563
  17. Semantic agreement cascades. 2025. arXiv:2509.21837
  18. SuffixDecoding: Extreme speculative decoding for emerging AI applications. NeurIPS 2025. arXiv:2411.04975

The papers were read from their abstracts and summaries. Quoted findings are the authors’ own, from their settings.

All measurements used a fictional applicant and synthetic postings. No personal data was sent to any model. Numbers are from runs between 9 and 19 November 2026 on an Apple M1 Max running macOS 27, against a deterministic stub, the on-device model, and hosted models through the OpenCode Go gateway.