Engineering & Technical

The Engineer

The Signal

A controlled ablation moved gpt-5.2-codex from 52.8% to 66.5% on Terminal-Bench 2.0

That delta is larger than most model-generation upgrades. If your roadmap is 'wait for the next frontier release,' you're optimizing the wrong layer. The competitive surface is your context pipeline, and the staff engineers should be sitting there, not on model selection.

In Play

  1. Harness Engineering Delivers Model-Generation Gains

    Multiple teams proved this week that orchestration engineering — prompt layout, context pipelines, middleware — moves coding benchmarks 13+ points holding the model constant. Meanwhile Uber burned its 2026 AI budget in 4 months at $500–$2K/engineer/month and Claude Code doubled pricing. The fix isn't cheaper tokens. It's better harness design.

    Ask Clarity
  2. npm Cooldowns Ship — Supply Chain Attacks Go Multi-Ecosystem

    npm 11.10.0 ships `min-release-age` — a native cooldown that blocks versions newer than a configured window. TeamPCP poisoned SAP packages (572K weekly downloads), Intercom SDK, and Lightning framework. Attacks now span npm, RubyGems, Go modules, and Packagist simultaneously. Set 7-day cooldown by Friday.

    Ask Clarity
  3. Postgres Upsert WAL Amplification

    Datadog found INSERT ON CONFLICT writes WAL even when the update is a no-op — 2x disk writes and 4x WAL syncs on upsert-heavy tables. The speculative insertion path acquires locks and emits WAL before deciding the row is unchanged. Audit pg_stat_wal divided by affected rows; flag anything over ~2KB/row on narrow tables.

    Ask Clarity
  4. AI Agent Duration Hits 12 Hours — Orchestration Breaks

    METR's autonomous task horizon is on a clean 10x/year exponential: 30s (2022) → 12h (2026), with 100h projected by year-end. Scaffolding built for minute-scale runs fails at this duration. State must be checkpointed to durable storage, observability needs phase-level traces, and the supervisor cannot hold handles. This is batch infrastructure, not HTTP middleware.

    Ask Clarity
  5. Ubuntu DDoSed, Build Pipelines Broke

    Ubuntu/Canonical infrastructure was hit with 3.5 Tbps DDoS via Beamed (DDoS-for-hire), causing 20+ hour outages. Security APIs and update servers went down. Any Dockerfile with `apt-get update` pinned to a single upstream mirror broke. Multi-terabit DDoS is now commodity. Single-source package infrastructure needs fallback mirrors in CI.

    Ask Clarity

Deep Dives

Your Context Pipeline Is Worth 13 Benchmark Points — More Than the Next Model

The Data Point That Changes Priorities

Mason Drxy ran controlled ablations on coding agent orchestration this week. Holding the model constant at gpt-5.2-codex, changes to prompts and middleware alone moved Terminal-Bench 2.0 from 52.8% to 66.5%. That is a 13.7-point swing with the model fixed. The same technique pulled 20% on tau2-bench for gpt-5.3-codex. These are production coding benchmarks, not demos.

A 4-point gap between two frontier models, reported without harness control, is noise. The experiment cannot tell you they aren't equivalent.

Where the Points Come From

Swap the system prompt and the token distribution over the first decision shifts. Reformat tool schemas in middleware and the model's prior over JSON shapes shifts with it. Retry logic hides or exposes parse failures. Truncation policy decides whether the 8K-token trace survives to the next step. None of this is on the model card. All of it is in the harness.

Anthony Maio named the lock-in surface. It is not the harness shell, which LangGraph and deepagents-cli have already commoditized. It is the context pipeline: how repo state gets fetched, ranked, and compressed into the window. That is what compounds with a codebase.

The Cost Dimension Makes This Urgent

Uber reported Claude Code running at $500–$2,000 per engineer per month, burning the full-year AI coding budget in four months. A single Copilot session consumed roughly $221 of inference, over sixty million tokens across 15 messages, against a $40/month subscription. Claude Code enterprise pricing doubled this week.

Three responses landed the same week. Caveman strips about 75% of Claude Code output tokens. Deepclaude proxies to DeepSeek V4 Pro at roughly 17x lower cost. Mistral Medium 3.5 adds self-hosting at 128B dense on 4 GPUs. Which of these actually works is a function of the harness, not the model.

Sources Disagree on What to Build

The principle converges. The implementation does not. One camp (Browser Harness, 592 lines) hands the LLM raw protocol access and lets it write tools at runtime. The other camp (Hermes Agent, SQLite Kanban) builds boring persistent infrastructure. Pick based on trust surface: LLM-generated tools are untested code running in your production environment.


The Architectural Pattern

Pin the harness before A/B testing models. Log the exact system prompt, tool schema serialization, retry policy, and truncation rule on every eval run. Version the context pipeline as production code, not prompt engineering. If 400 tokens of instructions sit buried in 200K of context, the model is not reasoning. It is searching for its own task.

What to do

  1. Run an ablation on your top coding agent: hold the model constant, vary system prompt and middleware, measure Terminal-Bench or your internal eval

  2. Instrument per-engineer monthly token spend with hard ceilings and per-PR cost attribution

  3. Evaluate Caveman (`claude install-skill JuliusBrussee/caveman`) for 75% output token reduction on Claude Code

  4. Build a model routing layer that dispatches by task complexity: self-hosted open-weight for scaffolding, frontier API for hard problems

npm 11.10.0 Ships Dependency Cooldowns — Set Them Before the Next TeamPCP

The Mechanism That's Being Exploited

package-lock.json pins the resolved tree at install time. package.json still ships semver ranges. When a transitive dep is compromised and a new patch version is published, anyone running npm install on a fresh checkout — CI, a new contributor, a rebuilt container — resolves the attacker's version before the lockfile is regenerated. The lockfile guarantees reproducibility of an install that already happened. It says nothing about the next install.

The attacker does not need to touch your lockfile. They need to touch a lockfile you haven't generated yet.

What Happened This Week

TeamPCP pushed malicious versions of SAP's npm packages (572K weekly downloads), the Intercom SDK, and the Lightning deep learning framework. The Axios campaign hit 57M+ weekly downloads across 84K dependents and the s1ngularity attack replicated worldwide within minutes of publication. A parallel campaign landed on Ruby gems, Go modules, and Packagist simultaneously. Four ecosystems, one actor.

PromptMink malware was traced to a library added by an Anthropic Claude Opus commit in February. Spoofed attribution or genuine AI-suggested malware, it doesn't matter which. Both paths say the same thing: AI-assisted dependency work needs a human review gate.

The Fix That Ships Today

Package ManagerConfig KeyRecommended Value
npm 11.10.0+min-release-age in .npmrc7d
pnpmminimumReleaseAge604800
YarnnpmMinimalAgeGate'7d'
Dependabotcooldown settingsExtends to Actions + Python

A 7-day cooldown means a freshly published malicious version is invisible to your installs for a week. That's long enough for the community to flag it. The Axios compromise was caught in 3–4 hours. The malicious versions had already replicated worldwide in minutes. A 12-hour cooldown would have blocked it outright.

The Tradeoff

Legitimate fast-moving dependencies lag by the cooldown window. For packages you control, pin the exact version or override per-dependency. For transitive dependencies from a registry you don't own, the cooldown is the point.

Pair it with npm ci everywhere that isn't a developer explicitly updating — CI, Dockerfiles, rebuilt images. Add fallback Ubuntu/Debian mirrors to CI/CD. The Canonical DDoS this week (3.5 Tbps, 20+ hours) broke every build that pinned a single upstream.

What to do

  1. Add `min-release-age=7d` to .npmrc in all Node.js projects and equivalent configs for pnpm/Yarn

  2. Replace `npm install` with `npm ci` in all CI pipelines and Dockerfiles by end of week

  3. Audit direct deps for SAP npm packages, Intercom SDK, and Lightning framework for TeamPCP compromise

  4. Add human review gates for AI-generated code commits that add new dependencies

Postgres INSERT ON CONFLICT Writes 2x WAL on No-Ops — The 30-Minute Audit

The Mechanism

Datadog published the finding this week: INSERT ... ON CONFLICT DO UPDATE takes a row lock and writes to WAL even when the proposed update changes nothing. The speculative insertion path grabs the lock, emits a WAL record, then discovers the row is unchanged. The "do nothing" branch is not free. It is a full write path that happens to produce an identical row.

One logical upsert. Two physical writes. Sometimes three, if a unique index triggers a second pass.

At Datadog's scale this doubled disk writes and quadrupled WAL syncs. The amplification stays invisible until you graph bytes_written against rows_affected and notice the ratio sits around 2x on upsert-heavy tables. This is documented behavior of the speculative insertion path. The docs say so. Nobody reads that section.

Where This Hurts

  • Replication lag spikes on read replicas
  • Backup sizes growing faster than data volume
  • Archive storage costs climbing with no apparent table growth
  • IOPS budget consumed by no-op writes in event processing, CDC, and idempotent API handlers

The Audit

Pull WAL generation per table from pg_stat_statements. Divide by affected rows. Flag anything north of ~2KB per row on narrow tables. Check pg_stat_user_tables.n_tup_ins versus n_tup_upd on each target table. If most upserts resolve to updates, the amplification is worse than the headline number suggests.

Fix Options by Workload

PatternFixTradeoff
Most upserts are updatesMERGE (PG 15+) or UPDATE then INSERT on missRace window needs retry logic
Most upserts are insertsKeep ON CONFLICT — amplification is the priceAccept the WAL cost
No-ops dominatePre-filter with WHERE clause or EXISTS checkTrades a read for the write

Stripe's Related Pattern Worth Stealing

Stripe published their zero-downtime migration architecture this week: 2,000+ MongoDB shards at 5M QPS with 99.9995% reliability. The reconciliation loop is the part worth copying: row hash comparison instead of row counts, CDC from a pinned LSN, version-gated cutovers. The lesson for any Postgres shard rebalance is simple. Run reconciliation for a week before flipping anything. If the diff count does not trend to zero, the bug is in the dual-write path, not in CDC.

What to do

  1. Audit top 10 upsert-heavy tables: query pg_stat_wal divided by rows_affected, flag anything >2KB/row

  2. Rewrite the 3 highest-WAL upsert queries using conditional UPDATE with WHERE clause filtering no-ops

  3. For any planned Postgres migration, adopt Stripe's reconciliation pattern: hash comparison, not row counts

12-Hour Agent Runs Need Batch Infrastructure, Not Request Middleware

The Trendline

METR's autonomous task horizon measures how long a system runs unattended at 50% reliability. The curve is clean exponential. GPT-3.5 managed 30 seconds in 2022. GPT-4 hit 4 minutes in 2023. o1 reached 40 minutes in 2024. GPT 5.2 hit 6 hours in 2025. Opus 4.6 is around 12 hours in 2026. Ajeya Cotra projects 100 hours by year-end. That is roughly 10x per year with no plateau in the data.

Most agent orchestration shipped in 2026 was designed for the 4-to-40-minute regime. The 12-hour regime is a different system.

What Breaks at Duration

The supervisor dies first. It was written assuming it holds a handle to the work. At 12 hours the process gets restarted, the upstream rotates an API key, a dependency rate-limits, something OOMs. Work has to be checkpointed to durable storage, keyed by a task ID the agent owns, and resumed by whichever worker picks it up.

Observability breaks second. Logs that read fine for one request are unreadable across 12 hours. Traces need segmenting by phase, not by call. If the only signal is "still running," the operator has nothing to decide with.

Context management breaks third. Retry logic assumes transient failures and cheap state rebuilds. Checkpoint intervals assume losing the gap is tolerable. The context window budget was set when the agent ran for four minutes. None of those assumptions survive twelve hours.

Sources Disagree on Current Reliability

METR reports 12-hour autonomous capability at the frontier. ClawMark, the multi-day benchmark, reports low task success rates on sustained autonomous work. SWE-Bench at 93.9% measures implementation capability in isolation. The gap between completing a coding task and sustaining a multi-day project is still wide. Design for bounded autonomy with human checkpoints at natural phase boundaries.

The Architecture

This is workflow-engine territory. Temporal or Step Functions, not HTTP middleware. Durable checkpoints the agent can resume from without replaying tool calls. Idempotency on every side-effecting action. A state store the agent reads from, rather than a transcript it scrolls through. Explicit trust gates on irreversible actions. Separate budgets for compute spend and wall-clock. If the current system treats the transcript as the state, that is the thing to rewrite first.

What to do

  1. Audit your longest-running agent workflow: measure max execution time, identify state held in memory vs. durable storage

  2. Implement durable checkpointing (Temporal, Step Functions, or custom) for any agent task exceeding 30 minutes

  3. Add phase-level observability segments to agent traces, not just per-call spans

  4. Do NOT architect fully autonomous multi-day workflows yet — ClawMark results show reliability is too low

The bottom line

The single biggest performance lever for your AI coding agents this week isn't a model upgrade — it's harness engineering, which delivered a 13-point benchmark swing while Uber burned its entire 2026 AI budget in four months at $500–$2K per engineer. Set `min-release-age=7d` in your .npmrc before Friday because four package ecosystems are being poisoned simultaneously, audit your Postgres upserts for the 2x WAL amplification Datadog just documented, and start treating agent orchestration as batch infrastructure — because the autonomy window jumped to 12 hours and your scaffolding was built for four minutes.