leadbybuild.ingArchive

LeadByBuilding Newsletter · 8 min read

Agents speed up the code, so put the design review, the single writer and the rollout dial where the risk is

Three AI picks: AWS shows agents and Lambda sharing one S3 Files mount, AgentCore Gateway adds model fallback, and LeadDev argues design reviews still matter. Three engineering picks: Meta's PrivacyLib, ElastiCache durability you can switch on in place, and a Kubernetes workload conformance group.

AI & Agent Engineering

Agent architecturevendor-reported

AWS shows a Lambda function and an AgentCore agent sharing one S3 Files mount, with three rules to keep it correct

AWS describes a two-stage design for document-investigation agents. A Lambda function pre-stages a case folder and manifest on an Amazon S3 Files file system, and an AgentCore runtime agent mounts the same access point to open files, follow references and write findings. S3 Files presents a bucket as shared NFS storage. The post's rules: read from the mount, give each path one writer, and name files per producer.

Why it matters

Per AWS, a file written on the mount is visible immediately, but sync back to S3 is asynchronous. If a file and its S3 object change at once, the bucket wins and the file goes to lost-and-found. Reading the bucket copy can return stale data.

Do this week

If an agent and a batch job share files, assign each directory one owner and alert on the PendingExports metric. Test what happens when a file lands in lost-and-found before a downstream consumer reads the bucket.

AWS Compute Blog →
Agent platformvendor-reported

AgentCore Gateway adds InvokeModel support and model fallback with a circuit breaker for agent inference traffic

Amazon Bedrock AgentCore Gateway now accepts the Bedrock InvokeModel and InvokeModelWithResponseStream APIs on its inference endpoint. Fallback routing lets you define an ordered chain of alternative models or providers in a gateway rule, with triggers such as throttling, server errors or response timeouts. A built-in circuit breaker skips destinations that are currently failing.

Why it matters

Fallback in the gateway means each agent client does not need its own retry logic. The announcement does not say how quality or cost differ between the primary and fallback models, which is where the risk sits.

Do this week

Before enabling a fallback chain, run your agent evaluation set against each model in it and record the quality and cost gap. Decide which tasks must fail rather than fall back to a weaker model.

AWS What's New →
Engineering leadershipverified

LeadDev argues design reviews still matter when agents write the code, and proposes a risk-based two-page brief

Diego Quiroga describes a team whose feature went from requirements straight to agent-written PRs, skipping the RFC. Reviewers found assumptions copied from single codebases and missing precautions on critical paths, and asked for a two-pager. He recommends reviews only for work that crosses boundaries, changes persistent data or public contracts, carries security or reliability risk, or is costly to reverse.

Why it matters

The article's claim is that agents shorten the path from requirements to code, not the need for sound design. It is an opinion piece built on a hypothetical example, not measured data. Its brief lists alternatives, failure modes and reversibility.

Do this week

Add a rule to your team's working agreement: changes that meet the risk criteria need a short brief before substantial agent-generated code. Review it asynchronously and record what the review changed.

LeadDev →

Engineering

Platform engineeringvendor-reported

Meta moves privacy enforcement into one client library, PrivacyLib, with simulated changes and a runtime rollout dial

Meta says PrivacyLib runs in the clients of hundreds of data systems, doing billions of checks per second. A system integrates once, and new requirements ship as enforcing or observing modules. Requirements are compiled at build time and mostly answered from in-process caches. Changes are simulated, deployed through each owning service's pipeline, and ramped from 0 to 100% by a runtime control.

Why it matters

Meta says implementing a new requirement across systems used to take months. The pattern is one integration point plus pluggable modules. Numbers are Meta's own, and its scale makes the build-time compilation and caching trade-offs more important than for most teams.

Do this week

If several services each implement the same policy check, list them. Move one check, such as an authorization rule, behind a shared client library with a percentage rollout control and a log-only mode before enforcing.

Meta Engineering →
Data infrastructurevendor-reported

ElastiCache for Valkey lets you switch durability on or off for an existing cluster, in sync or async mode

ElastiCache for Valkey node-based clusters can now enable or disable durability in place. Synchronous writes persist data across at least two AZs before replying, designed for zero data loss at single-digit millisecond write latency. Asynchronous writes reply first and keep microsecond latency, but up to 10 seconds of uncommitted data could be lost in a rare failure. It needs Valkey 9.0 or later.

Why it matters

Teams that started with a cache and later stored agent state or inventory in it no longer need a new cluster to change the guarantee. The trade is explicit: write latency against a data-loss window.

Do this week

List workloads that use your Valkey or Redis cluster as a store, not a cache. For each, decide the acceptable loss window and test write latency with synchronous durability on a staging cluster before changing production.

AWS What's New →
Cloud nativeverified

Kubernetes starts a Workload Conformance Working Group to define and test how workloads behave at runtime

The group will write a specification of workload behavior for each Kubernetes minor version, a method to test each requirement, and upstream conformance tooling. Scope includes security, disruption resilience, resource use, networking, storage, API usage and observability, but specific requirements are not yet agreed. Every requirement must have an objective test. It aims for a stable first spec within two to three release cycles.

Why it matters

Today operators check each application by hand before a node drain or upgrade, and find problems like removed API versions or no disruption tolerance. A shared baseline would cut that repeated work. The group is only starting, so nothing is usable yet.

Do this week

Run your own pre-upgrade checklist on one service now: PodDisruptionBudget, removed API usage, requested versus used resources. Share what broke last upgrade with the working group on its Slack channel or mailing list.

Kubernetes Blog →

Worth experimenting with

Back-test a two-page design brief on your last late redesign

Pick a recent change that needed significant rework in code review. Write the brief LeadDev describes in 30 minutes: problem, approach, alternatives, trade-offs, failure modes, reversibility, assumptions.

Why. It shows whether a short up-front brief would have surfaced the problem earlier, before you add a process to a team that may not need one.

Measure. Count the problems found in review that the brief exposes, and the time spent writing it. If it catches none, your existing design discussion is probably enough.

Classic / essential read

Design Stamina Hypothesis

Martin Fowler · 4 min

Fowler argues that skipping design wins speed early but accumulates technical debt, and that good design lets a project go faster for longer. He calls it a hypothesis with no objective proof.

One lesson. When agents make code cheap, use this as a prompt: which of your current shortcuts only pays off in the first weeks, and when would the payoff line be crossed?

Read the original →

Commute watch · optional

Design Docs, Nightly Audits, and Vycari's Agent Development Loop - Agents and Engineers Ep. 021Agents and Engineers | An AI Podcast · 68:16Monster Scale Summit 2025 | Scaling Cron at Slack by Claire AdamsScyllaDB · 14:05

Match the control to the risk: a short design brief for costly-to-reverse changes, one writer per shared path, and a rollout dial on any new check.

Get this every morning.

Free. Same issue for everyone. One click to unsubscribe.

Subscribe