Science & Analytics

The Scientist

The Signal

The finetuning API deprecation OpenAI announced this week runs on a shorter window than

Cursor and Cognition are moving to open-model RLFT; for the remaining 80% of use cases, long-context prompting plus prompt caching is the likely landing spot. The failure mode worth watching isn't the API swap. It's reward signal drifting during migration while the eval harness keeps reporting green.

In Play

  1. OpenAI Finetuning Deprecated: Stack Bifurcation Accelerates

    OpenAI pulled finetuning endpoints, validating the split: top 1% double down on open-model RLFT (Cursor, Cognition at $25B), while 80% migrate to long-context + prompt caching. Replacement paths are open-weights on owned clusters or a different vendor—but reward models tuned against the old checkpoint won't transfer cleanly to a new base.

    Ask Clarity
  2. Shai-Hulud Escalation: Rotation Triggers Destruction

    The npm worm now wipes systems when owners attempt to revoke stolen tokens—a dead-man's switch that weaponizes standard IR. ~400 packages compromised including Mistral and UiPath SDKs. The harvest list targets AWS, GCP, K8s, Vault, GitHub, and SSH credentials. New primitive required: contain and isolate BEFORE rotating.

    Ask Clarity
  3. Efficiency Frontier: Where Q3 Cost Wins Actually Live

    Three efficiency results converge: recursive 4B LMs reportedly match Sonnet 4.6 at fraction of cost, compression-aware scaling laws show '20 tokens per parameter' is a tokenizer artifact (budget in bytes instead), and DeepSeek V4 Pro prices at 11-28x below Opus. Chinese open-source went from 1.2% to 30% of global usage in 12 months.

    Ask Clarity
  4. Dual-Engine Architecture + Prompt Caching Gap

    Thinking Machines Lab hit 0.40s end-to-end on a 276B MoE using fast-path + async reasoning split. Meanwhile, Datadog's 1000+ org telemetry shows agent adoption doubled but prompt caching remains widely underutilized. The irony: agentic workloads have the highest repeat-prefix rates and benefit most from caching.

    Ask Clarity
  5. Reasoning Token Economics: 17% Margin Ceiling

    Reasoning models burn 10-100x more tokens per task than predecessors. One analysis pencils AI-native gross margins at 17% vs SaaS's 70%. Personalization breaks caching and multi-tenancy amortization. Enterprise model share is fragmenting: OpenAI 56% (-8pp), Claude +128%, Gemini 27%→40%.

    Ask Clarity

Deep Dives

OpenAI Finetuning Is Gone — Your Migration Path Splits in Two

What Happened

OpenAI deprecated its finetuning APIs on a window shorter than any migration plan assumed. For teams that built RLFT stacks on these endpoints, with reward-model loops and policy updates routed through the hosted finetuning call, this is not a config change. The endpoint sits behind abstraction layers and scheduled jobs nobody has opened since onboarding.

The Bifurcation

The market response splits into two camps, and the split is cleaner than usual:

DimensionLong-Context Prompting (80% of teams)Open-Model RLFT (top 1%)
Tooling maturityHigh — prompt caching, >1M context windowsImproving — Unsloth, Prime Intellect (>3× RL throughput)
Quality ceilingCapped by base modelCan exceed frontier on narrow distributions
Ops burdenLow — API callHigh — owned GPUs, RL infra, eval harness
Unit economicsToken-dominated; caching helpsAmortized training; cheap inference
When it winsBroad tasks, variable promptsNarrow high-volume tasks where RLFT pays back in weeks

Cursor and Cognition (now at $25B) are increasing open-model RLFT. That validates the approach at the top of the distribution. The thing this doesn't tell you is what happens at the modal workload: fewer than 100M daily calls, variable prompts, moderate quality bar. There, long-context prompting with caching is now the path of least resistance.

The Hidden Risk

The expensive bug is not the API swap. It is discovering post-migration that the reward signal drifted because the reward model was tuned against a specific base checkpoint. The new base is not that checkpoint. Offline evals that tracked online behavior on the old base are not guaranteed to track on the new one, and the cleanest way to confirm is to re-run the correlation study before you cut over.

The replacement that passes the eval harness and fails in production is always the one where nobody re-validated the reward model against the new base.

Cross-Source Pattern

This deprecation lands the same week as three other data points worth reading together: a 4B recursive model reportedly matching Sonnet 4.6 at a fraction of cost, which suggests small-model RLFT has legs; DeepSeek V4 Pro pricing at $0.43/M input tokens, which makes the "just use a bigger model" path cheaper than it was on Monday; and Cactus Needle at 26M params doing tool-calling at 6,000 tok/s. Reportedly is doing work in the first one. Given the numbers, I expect the 4B result to hold up on real workloads by about half as much as claimed, which is still enough to matter. The finetuning decision is now inseparable from the model-selection decision.

What to do

  1. Inventory every production workload depending on OpenAI finetuning endpoints by end of sprint

  2. For each workload, decide: collapse to long-context + prompt caching OR migrate to open-weight RLFT via Unsloth/Prime Intellect. Gate on golden eval set.

  3. Re-validate reward model against new base checkpoint before any migration goes live

  4. Run 4B recursive LM bake-off against top production task to check if small-model RLFT closes the gap

Shai-Hulud's Dead-Man's Switch: 'Rotate First' Is Now the Attack

The Escalation

The npm supply-chain worm covered in last week's note has picked up a new behavior worth flagging: it wipes the host when the owner rotates the stolen token. The standard detect-revoke-rotate loop now triggers the destructive payload. Five independent sources confirmed the escalation this week. That is enough to update the playbook.

The mechanism: Shai-Hulud plants a gh-token-monitor persistence hook that watches credential files for access-pattern changes. When the monitored file changes, it runs a wipe. The thing this does not tell you is how often the hook fires on benign edits. We do not know yet. Assume the false-positive rate is low enough that the attackers shipped it.

New IR Primitive: Contain Before Rotate

The sequencing change is the point. It will not surface on a dashboard:

  1. Snapshot the affected environment (disk, memory)
  2. Network-isolate the runner or workstation
  3. Search for persistence hooks in .claude/settings.json, .vscode/tasks.json, and credential-monitoring processes
  4. Remove persistence from a forensic copy
  5. Only then rotate credentials from a clean, separate environment

Blast Radius for ML Stacks

The harvest list enumerates AWS, GCP, Kubernetes, Vault, GitHub, and SSH credentials. For an ML org, that one list covers the feature store, the model registry, training cluster IAM, and deploy keys. The SANDCLOCK stealer from the same group (TeamPCP) is also pivoting to AI gateway credentials. LLM API keys are now on the target list.

Credential ClassBlast RadiusRotation Priority
AWS/GCP service accountsFeature store, training data, model weightsCritical
Kubernetes tokensInference cluster, serving endpointsCritical
GitHub/SSHCode supply chain, CI/CDHigh
LLM API keys (OpenAI, Anthropic, HF)Inference spend, model accessHigh
Vault tokensEverything secrets-managedCritical
The muscle memory of 'rotate tokens first, ask questions later' is now the attack vector. Contain and isolate before you touch a single credential.

The Checkmarx Connection

Separately confirmed, and the part that should change your threat model: the Checkmarx Jenkins AST plugin compromise (CVE-2026-33634, CVSS 9.4) traces to credentials stolen from Trivy in March that Checkmarx never rotated. That is a two-month dwell time on a secret known to be leaked. Same attack group. The correlation with long-lived tokens is not subtle. The causal read is that the entire class needs to move to short-TTL OIDC-federated credentials. If that migration only cuts dwell time in half, it still pays for itself on this one incident.

What to do

  1. Quarantine any CI runner or dev machine that installed affected npm packages since May 12 BEFORE rotating any secrets

  2. Search all environments for .claude/settings.json, .vscode/tasks.json, and gh-token-monitor persistence hooks

  3. Replace all long-lived CI/CD tokens with OIDC-federated short-TTL credentials (GitHub Actions OIDC → AWS/GCP/npm)

  4. Scope LLM API keys per-service and shorten rotation to ≤30 days

The Efficiency Frontier Moved: Recursive LMs, Byte-Scaling, and the Router That Pays for Itself

Three Converging Results

A few recent results point the same way: the axis that matters next quarter is cost-per-useful-token at fixed quality, not peak capability. Three worth evaluating seriously.

1. Recursive 4B LMs Matching Sonnet 4.6

A 4B-parameter recursive language model trained with RL and a shared parent/child policy reportedly matches Claude Sonnet 4.6 on task performance. Treat the parity claim with caution. Last year's 'small model matches GPT-4' cycle did not survive contact with real tool-use traces. The architectural insight still transfers: a shared policy serving both the outer planner and the inner sub-call collapses a router plus executor cascade into one trainable artifact.

The thing the headline doesn't tell you is inference cost. If the recursive model runs 8 passes to match, effective cost is closer to 32B than 4B. Still interesting. Not the same product decision.

2. Compression-Aware Scaling Laws (Bytes, Not Tokens)

Across about 1,300 models, the canonical '20 tokens per parameter' Chinchilla rule is a tokenizer artifact. Compute-optimal scaling is cleaner expressed in bytes per parameter. If your pretraining mix skews toward code or non-English text, both of which have lower bytes per token, your compute budget has been quietly biased. Rederiving in bytes is roughly a week of work. It could reveal systematic over- or under-training.

3. Chinese Model Price Arbitrage

The Exponential View team visited 14 Chinese labs. The pricing picture:

ModelInput $/MOutput $/MClaim
Claude Opus 4.6$4.73$24.36US frontier
DeepSeek V4 Pro$0.43$0.87~Comparable to Opus
GLM-5 (Z.ai)$1.00~$5.0050% gross margin
Kimi K2.6$0.95Powers Cursor Composer 2

The Chinese cost advantage is not hardware. Huawei's Ascend 950PR only matches 2022-era H100. It is software: MoE routing, FP8 training, speculative decoding, and longer pre-training cycles forced by chip constraints. That part is reproducible.

Chinese open-source went from 1.2% to 30% of global usage in 12 months. An eval harness that still defaults to closed US models is measuring last year's frontier.

The Router Pattern

Operational synthesis: a cost-aware LLM router that dispatches easy intents (extraction, classification, summarization, first-pass rerank) to DeepSeek/GLM-5/Kimi and keeps the hard tail on Opus/Sonnet. Cursor already ran this pattern with Composer 2 on Kimi K2.5. At 28x output-token savings, 28x more LLM-as-judge calls fit in the same budget, or the same judges run over 28x more candidates.

What to do

  1. Add DeepSeek V4 Pro, Kimi K2.6, GLM-5, and Qwen3 to eval harness; run top-3 production task suites including latency and tool-use reliability

  2. Recompute pretraining/continued-pretraining budgets in bytes-per-parameter using your actual tokenizer's distribution

  3. Prototype cost-aware LLM router dispatching easy intents to Chinese models, keeping hard tail on frontier

  4. Run controlled bake-off: finetune 4B base as recursive LM against current frontier-tier production task

Dual-Engine Agents + The Caching Gap: Your Inference Stack Is Overpaying

The Architectural Pattern

Thinking Machines Lab shipped a 276B MoE interaction model at 0.40s end-to-end latency with 200ms micro-turns, ahead of GPT-Realtime-2 and Gemini Live on responsiveness. What travels out of this paper is not the model but the shape: a fast-path conversational model paired with an asynchronous background reasoner.

DimensionSingle-Model (status quo)Dual-Engine (TML pattern)
Turn-taking latency~0.8–1.5s0.40s, 200ms micro-turns
Reasoning depthBounded by latency budgetUnbounded — runs async
Serving costFrontier cost on every turnSmall model on hot path; frontier only when triggered
Failure modeLatency spikes on tool callsDesync between fast-path and async reasoner state

The pattern is a deployable choice, not a research result. Route turn-taking to a small quantized model in the 7–13B range and keep the frontier endpoint for async tool calls and long-horizon planning. The non-trivial piece is the state-sync protocol. The async reasoner arrives late or disagrees with the fast path, and reconciling that disagreement is the new open problem.

The Caching Gap That Multiplies the Win

Datadog's telemetry from 1,000+ organizations shows agent framework adoption roughly doubled while prompt caching stayed underutilized. Agentic workloads carry the highest repeat-prefix rates of any LLM pattern, driven by system prompts, tool schemas, and ReAct scaffolding. The orgs scaling agents fastest are the ones overpaying per call.

Cached input tokens run at roughly 10% of base price on Anthropic and a ~50% discount on OpenAI. For an agent doing 100K calls/day at 4K cached tokens each, the delta is four-figure monthly savings per endpoint.

If agent traffic doubled and cache hit rate did not, the provider is capturing margin that should be sitting in the infrastructure line. The top-5 endpoints typically account for most of the wasted spend.

The Rate Limiter Lesson

Databricks published a reference architecture after their rate limiter collapsed under real-time serving traffic. The fix moved from synchronous Redis per-request to in-memory async batch reporting, trading ~5% overshoot tolerance for roughly 10x tail latency reduction. Optimistic local decisions with asynchronous reconciliation generalizes to any inference ingress where a 10-20ms Redis hop against a 50ms P99 inference budget is burning 20-40% of the latency on bookkeeping.

New Eval Metrics Required

Most current LLM evals do not measure what matters in dual-engine architectures: time-to-first-useful-token, interruption recovery, async-tool completion rate, and micro-turn latency distributions. MMLU averages correlate poorly with turn-taking latency and interruption handling, so rankings on those benchmarks will diverge from production behavior on real-time candidates.

What to do

  1. Audit prompt cache hit rates on top-5 LLM calls by volume; enable caching on system prompts, tool schemas, and RAG prefixes where hit rate >30%

  2. Prototype dual-engine split on one real-time workload: route turns to small quantized model, reasoning to frontier async. Measure p50/p95 micro-turn latency.

  3. Measure P99 latency contribution from rate limiting/auth/quota checks on model serving ingress

  4. Add time-to-first-useful-token and async-tool completion rate as first-class eval metrics

The bottom line

OpenAI deprecated finetuning APIs, the npm supply-chain worm now destroys systems when you try to rotate stolen credentials, and Chinese models are pricing 11-28x below the US frontier at 30% global usage share. The three things your stack needs this week: a finetuning migration plan with reward-model validation, a contain-before-rotate IR primitive that didn't exist yesterday, and a cost-aware router that stops paying Opus prices for tasks a $0.43/M model handles.