Boundary · Published 2026-08-21

The Data Structure Problem AI Coding Agents Can't See

Open on YouTube ↗

Summary

Overview

  • Speaker: Avery Townsend, Dexter Horthy, Vaibhav Gupta, Kyle Mistele
  • Channel: Boundary
  • Main topic: How bad data structures compound failure rates in AI-generated code and agent-driven development.
  • Purpose: To demonstrate that AI coding agents struggle with data structure design, how poor data representations compound failures over multiple development steps, and why reviewing and designing clean data structures is critical for preventing code slop in agentic systems. The speakers discuss an experiment testing how frontier AI coding models (like GPT-5.6-sol on high reasoning effort) handle building a simple application (Ticketmaster box office) feature-by-feature when each agent starts from scratch without prior agent context. The results demonstrate that bad data structures exponentially increase error rates and compounding complexity for AI agents, whereas well-chosen data structures (e.g., using enums and BTreeMaps to make illegal states unrepresentable) lead to self-evident, robust code.

Topic Map

Introduction and Quotes on Data Structures

  • Explanation: Introducing the premise that data structures dictate the quality of algorithms and program logic, referencing quotes from Rob Pike, Fred Brooks, Eric Raymond, and Linus Torvalds.
  • Key claims:
    • If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident.
    • Bad programmers worry about the code. Good programmers worry about data structures and their relationships.
  • Examples:
    • Rob Pike quote from Notes on Programming in C, 1989
    • Linus Torvalds quote from git mailing list, 2006
  • Terminology:
    • data structures
    • algorithms
    • slop
  • Why it matters: Establishes foundational programming philosophy that data design supersedes control flow design.

The Ticketmaster Agent Experiment

  • Explanation: An experiment where Codex built a Ticketmaster box office application one feature at a time across 200 fresh agents without passing prior agent context except the raw code base.
  • Key claims:
    • Agents have no context about what previous agents did.
    • The code is the only thing passed forward, simulating real team handoffs over 200 iterations from scratch.
  • Examples:
    • Feature 1: Sell seats
    • Feature 2: List open seats
    • Feature 3: Save and restore
    • Feature 4: Adds holds
  • Terminology:
    • Codex
    • frontier model
    • frontier harness
    • fresh agent
  • Why it matters: Demonstrates how AI models make suboptimal data structure choices when building software iteratively without continuous context.

Representation Shapes Implementation and Illegal States

  • Explanation: Comparing naive state representations using multiple boolean flags versus enums and enums with types that make illegal states unrepresentable.
  • Key claims:
    • Fold knowledge into data, so program logic can be stupid and robust.
    • Make illegal states unrepresentable.
  • Examples:
    • Using struct with boolean flags (held, sold) allowing invalid states like both true vs enum State { Open, Held, Sold }
  • Terminology:
    • state machine
    • enum
    • illegal states
    • type system
    • tagged union
  • Why it matters: Proper data representation eliminates entire classes of bugs and error-handling logic.

Complexity Compounds and Agent Error Rates

  • Explanation: Analyzing how adding new states or flags increases the touchpoints in code, compounding complexity and error rates for AI agents.
  • Key claims:
    • Adding a new state changes the amount of places where you have to touch the code.
    • Even a 12.5% failure rate compounds exponentially across 100 features, making the codebase unrecoverable.
  • Examples:
    • Ticket order state machine with bool flags vs enum versions requiring minimal line changes.
  • Terminology:
    • complexity compounding
    • error rate
    • state transition
    • wildcard
  • Why it matters: Explains why AI-generated codebases degrade into 'slop' over time due to compounding data design flaws.

Sync Architecture and Distributed State

  • Explanation: A deep dive into sync engines, distributed systems, state synchronization between clients and servers, real-time databases, and conflict resolution.
  • Key claims:
    • Sync engine sits in front of Postgres and acts as a read replica with optimistic mutations.
    • Managing large volumes of writes and client sync requires careful decoupling of storage and streaming.
  • Examples:
    • HumanLayer architecture: API, client apps, daemon/worker, cloud, SQLite, Durable Streams Server.
    • Postgres write-ahead log (WAL) replication.
  • Terminology:
    • sync engine
    • durable streams server
    • authorization proxy
    • write-ahead log
    • SQLite
    • WebSockets
  • Why it matters: Connects data structure principles to complex real-world distributed systems and real-time application design.

Key Points

All slop starts as bad data structures

  • Explanation: When data structures are poorly designed, program logic, error handling, and state validations multiply exponentially, leading to brittle code.
  • Evidence: Experiment data showing 12.5% to 42.5% invalid state representations produced by frontier AI models.
  • Practical implication: Developers and reviewers must focus heavily on data structure design during code review rather than just control flow.

Agents lack historical context across iterative builds

  • Explanation: When AI agents build software iteratively from scratch without seeing prior agent evolution, they fall back on convenient but non-optimal data structures.
  • Evidence: The 200-run experiment on Ticketmaster features where codebases were passed forward without git history.
  • Practical implication: Prompting or guiding agents toward robust type systems is necessary to maintain codebase health.

Compounding failure rates in software factories

  • Explanation: A small 10-12% failure rate per feature compounds rapidly over dozens or hundreds of shipped features, eventually destroying the codebase.
  • Evidence: Dexter Horthy's mathematical explanation of compounding error rates across software factories.
  • Practical implication: Automated guardrails and strict data structure reviews are vital for AI-assisted engineering pipelines.

Frameworks, Models & Processes

Enum-Based State Representation

  • How it works: Using algebraic data types (enums) instead of multiple boolean flags to represent state, ensuring mutually exclusive states and preventing invalid combinations at the type level.
  • Components:
    • Enum definition (e.g., Open, Held, Sold)
    • State transition matcher (match state, event)
    • Exclusive payload binding
  • When to use: When managing business objects or entities that transition between distinct, mutually exclusive operational states.

Sync Engine Architecture

  • How it works: Placing a sync engine in front of a relational database (like Postgres) to handle optimistic mutations, streaming state updates, and caching for multiple clients.
  • Components:
    • Postgres database with write-ahead log
    • Sync Engine / Cache Layer
    • Authorization Proxy
    • Durable Streams Server
    • Client sync bindings
  • When to use: When building real-time collaborative applications with multiple disconnected clients requiring fast reads and resilient state sync.

Examples & Case Studies

Codex was asked to build Ticketmaster seat sales, list open seats, save/restore, and add holds across 200 independent runs.

  • Illustrates: How frontier AI models choose data structures when building features iteratively.
  • Lesson: Only 35% to 87.5% of agents chose optimal data structures depending on the feature complexity, with many introducing invalid state representations.

Actionable Takeaways

  • Immediate:
    • Review data structures before approving AI-generated code or writing downstream logic.
    • Use enums and algebraic data types to make illegal states unrepresentable.
  • Strategic:
    • Compounding failure rates mean software factories shipping AI features need strict architectural guardrails.
    • Data structure design is the primary leverage point for maintaining maintainable AI-generated codebases.
  • Questions to investigate:
    • How can AI agent harnesses automatically detect and correct suboptimal data structures?
    • What mechanisms prevent compounding error rates in autonomous multi-agent coding pipelines?

Claims Worth Verifying

  • All slop starts as bad data structures. (architectural principle)
  • A 12.5% failure rate per feature compounds to make codebases 40%+ slop after 100 features. (statistical estimation)

Notable Quotes

"If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident." (at 0:00) "Bad programmers worry about the code. Good programmers worry about data structures and their relationships." (at 8:56) "Fold knowledge into data, so program logic can be stupid and robust." (at 8:51) "Make illegal states unrepresentable." (at 9:05) "all slop starts as bad data structures" (at 16:41)

Compressed Summary

  • Data structures dictate the simplicity and robustness of program logic and algorithms.
  • AI coding agents frequently choose naive data structures (like boolean flags) that permit invalid states.
  • Bad data structures compound complexity exponentially across software development cycles.
  • Using enums and type systems to make illegal states unrepresentable prevents entire classes of bugs.
  • Sync architectures require careful separation of storage, streaming, and state representation.
  • Keywords: data structures, ai agents, code slop, state machines, sync engine
  • Core insight: AI coding agents frequently introduce flawed data structures that compound codebase complexity and failure rates, making proper data modeling the primary defense against code slop.

Core insights

6
Empirical Resulthigh noveltymoderate evidence

Per-feature failure rates that look tolerable in isolation (10-12.5%) compound exponentially across a long feature sequence, so an agent pipeline can be mathematically doomed even when each individual agent run is 'mostly right'. The argument is that unrecoverability comes from accumulation, not from any single bad generation.

Why it matters

Sets the reliability bar for agentic software factories: per-step success rate is the wrong metric; the metric that matters is error rate vs. the number of steps before the codebase degrades past repair. It implies hard gates (data structure review) must sit inside the pipeline, not after it.

Generalization

Any multi-step generative pipeline (code, config, migrations, schemas, infra) with a non-trivial per-step defect rate will degrade super-linearly with step count, so step-level evals must be converted into sequence-level survival curves.

Even a 12.5% failure rate compounds exponentially across 100 features, making the codebase unrecoverable.
Open source video
A small 10-12% failure rate per feature compounds rapidly over dozens or hundreds of shipped features, eventually destroying the codebase.
Open source video
Mechanismmedium noveltystrong evidence

The highest-leverage control point for agent-written code is the data representation, not the control flow: substituting an enum (Open/Held/Sold) for multiple boolean flags (held, sold) removes illegal states at the type level and collapses the number of code sites touched when a new state is introduced. Representational choice determines how many places an agent must edit correctly per feature.

Why it matters

Gives a concrete, reviewable intervention: when reviewing agent output, inspect the state model first. A representation that admits invalid combinations forces every downstream feature and every future agent to add validation and error handling, multiplying edit surface and defect probability.

Generalization

Blast radius of a change is a function of representation: types that make illegal states unrepresentable convert N-site edits into a single exhaustive-match change, which is disproportionately valuable when the editor is a stateless agent.

Make illegal states unrepresentable.
Open source video
Adding a new state changes the amount of places where you have to touch the code.
Open source video
Using struct with boolean flags (held, sold) allowing invalid states like both true vs enum State { Open, Held, Sold }
Open source video
Mechanismhigh noveltystrong evidence

The experiment's harness design is itself the reusable artifact: 200 fresh agents, each with no context about prior agents, with only the raw code base (and no git history) passed forward, simulating team handoffs. Frontier models under these conditions produced 12.5% to 42.5% invalid state representations, i.e., they default to convenient rather than optimal data structures.

Why it matters

Yields a benchmark methodology for measuring data-structure quality degradation over long horizons independent of context window tricks, and isolates the variable 'what is handed off between agents' from 'how smart the model is'.

Generalization

Agent-to-agent handoff artifacts (code only, code+history, code+design contracts) are a tunable design parameter whose effect on downstream defect rate can be measured with this style of fresh-agent replay harness.

An experiment where Codex built a Ticketmaster box office application one feature at a time across 200 fresh agents without passing prior agent context except the raw code base.
Open source video
The code is the only thing passed forward, simulating real team handoffs over 200 iterations from scratch.
Open source video
Experiment data showing 12.5% to 42.5% invalid state representations produced by frontier AI models.
Open source video
Mental Modelmedium noveltymoderate evidence

'Fold knowledge into data, so program logic can be stupid and robust' reframes design effort as relocating complexity out of procedural logic and into the type/schema layer — a mental model that maps directly onto agents, which are more reliable at writing simple logic over a strong representation than at maintaining implicit invariants across many branches.

Why it matters

Explains why prompting agents toward 'cleaner code' is less effective than changing the data model they must code against; the agent's error budget is spent on branch and invariant bookkeeping.

Generalization

In any generation-or-handoff setting, push invariants into declarative artifacts (types, schemas, constraints) that are cheap to check mechanically, rather than into procedural code that must be reasoned about each time.

Fold knowledge into data, so program logic can be stupid and robust.
Open source video
If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident.
Open source video
Architecturemedium noveltymoderate evidence

Sync engine design decouples storage from streaming: a sync layer sits in front of Postgres, behaves as a read replica with optimistic mutations, and fans state out to clients via a durable streams server behind an authorization proxy, with local SQLite on clients and WAL-based replication as the change source.

Why it matters

Illustrates why data-representation discipline scales into distributed systems: separating the authoritative log from the streaming/projection layer is what makes high write volume plus many syncing clients tractable, and the authorization proxy keeps per-client visibility out of the storage layer.

Generalization

For real-time multi-client state, split the durable authority (WAL/append-only log) from the fan-out path (streams/WebSockets) and place policy (authorization) at the boundary between them rather than inside the store.

Sync engine sits in front of Postgres and acts as a read replica with optimistic mutations.
Open source video
Managing large volumes of writes and client sync requires careful decoupling of storage and streaming.
Open source video
Postgres write-ahead log (WAL) replication.
Open source video
Practicemedium noveltymoderate evidence

Because agents cannot see a codebase's evolution, reviewing their output with the same lens as human code (behavior and control flow) misses the failure that actually compounds; the review gate should be aimed at data structure and state model design first.

Why it matters

Changes where human or automated review budget is spent in agentic pipelines, and suggests a checkable pre-merge criterion (e.g., forbid multi-boolean state encodings, require exhaustive matching over enums).

Generalization

Review effort should be allocated to the artifacts with the largest downstream blast radius; in agent-generated code that is the schema/type layer, not individual functions.

Developers and reviewers must focus heavily on data structure design during code review rather than just control flow.
Open source video
Prompting or guiding agents toward robust type systems is necessary to maintain codebase health.
Open source video

Deep dives

5

Sequence-level survivability thresholds for agentic feature pipelines

Research question

Given a measured per-feature defect rate, what is the maximum feature count (or coupling level) before a codebase becomes unrecoverable, and does the compounding curve behave multiplicatively or super-multiplicatively?

Why

Turns the talk's headline number into a usable engineering parameter: teams need a break-even curve, not a scary anecdote, to decide how many autonomous iterations to allow before inserting a human/automated gate. It also redefines the eval target from per-step pass rate to sequence-level survival.

Even a 12.5% failure rate compounds exponentially across 100 features, making the codebase unrecoverable.
Open source video
A small 10-12% failure rate per feature compounds rapidly over dozens or hundreds of shipped features, eventually destroying the codebase.
Open source video
Source video

Ablating the agent handoff artifact: code-only vs code+history vs code+design contracts

Research question

How much of the observed degradation is caused by withholding design intent versus withholding history, and would passing explicit design contracts recover quality without passing git history?

Why

Isolates a tunable pipeline parameter from model capability. If design contracts recover most of the lost quality, the intervention is cheap and reviewable; if only history helps, the fix is heavier and context-rot-prone.

The code is the only thing passed forward, simulating real team handoffs over 200 iterations from scratch.
Open source video
Agents have no context about what previous agents did.
Open source video
An experiment where Codex built a Ticketmaster box office application one feature at a time across 200 fresh agents without passing prior agent context except the raw code base.
Open source video
Source video

Edit-surface count as a predictive metric for per-feature failure rate

Research question

Does the number of code sites that must be edited to introduce a new state predict the per-feature failure probability of the next agent, across encodings (boolean flags, enum, enum with payload) and models?

Why

Converts a qualitative design principle into a measurable, pre-generation risk score. If edit-site count predicts failure, review can be scheduled by score rather than by volume of generated code.

Adding a new state changes the amount of places where you have to touch the code.
Open source video
Using struct with boolean flags (held, sold) allowing invalid states like both true vs enum State { Open, Held, Sold }
Open source video
Make illegal states unrepresentable.
Open source video
Source video

Verifying type-level refactors actually eliminate observed invalid states

Research question

When agent-generated code is refactored from boolean flags to an enum or tagged union, do the invalid states observed in the experiment disappear at runtime, or are they reintroduced through casts, serialization, or persistence boundaries?

Why

A gatehouse-style rule that mandates enums is only worth enforcing if the refactor holds end-to-end. This tests whether the type-level fix survives the storage and wire-format boundary, which is where agent-written code is most likely to cheat.

Using struct with boolean flags (held, sold) allowing invalid states like both true vs enum State { Open, Held, Sold }
Open source video
Make illegal states unrepresentable.
Open source video
Source video

Conflict resolution and per-client authorization in an optimistic sync replica

Research question

How does a sync engine acting as an optimistic read replica in front of Postgres resolve concurrent writes and enforce per-client authorization without pushing policy into the storage layer?

Why

The architecture claim is stated but the two hardest correctness surfaces — reconciliation and visibility policy — are left unspecified. These determine whether the storage/streaming decoupling actually buys independent scaling and failure isolation.

Sync engine sits in front of Postgres and acts as a read replica with optimistic mutations.
Open source video
Managing large volumes of writes and client sync requires careful decoupling of storage and streaming.
Open source video
Postgres write-ahead log (WAL) replication.
Open source video
Source video

Article ideas

4

Per-Step Success Rate Is the Wrong Metric for Agentic Pipelines

A pipeline whose individual agent runs are 'mostly right' can still be mathematically doomed, because the metric that governs whether a codebase survives is the error rate relative to the number of steps before degradation passes repair — not the per-step pass rate. Teams shipping agent-generated features must convert step-level evals into sequence-level survival curves before scaling iteration count.

Angle

Reframe reliability reporting: replace per-run benchmarks with survival curves and break-even feature counts, and show why a 12.5% step success gap is not a 12.5% problem.

Source video

Stop Reviewing the Diff, Start Reviewing the State Model

Because a fresh agent cannot see how the codebase evolved, reviewing its output the way we review human code — behavior and control flow — inspects the wrong artifact. The failure that compounds lives one level up in the data representation, so review budget should be reallocated to the schema and state model first, with checkable pre-merge criteria such as forbidding multi-boolean state encodings and requiring exhaustive matching.

Angle

Operational: propose concrete review-gate rules and explain why they are cheap to check and high in downstream blast radius.

Source video

Fold Knowledge Into Data: Why Prompting Agents for Cleaner Code Fails

Instructing agents to write cleaner code spends their error budget on branch and invariant bookkeeping; changing the representation they code against spends almost none. Pushing invariants into declarative artifacts that are cheap to check mechanically — types, schemas, constraints — makes program logic stupid and robust, which is exactly the property a stateless generator needs.

Angle

Mechanism-first argument connecting representation choice to blast radius, with the boolean-flag vs enum example as the minimal demonstration.

Source video

The Handoff Artifact Is an Architecture Decision

What one agent passes to the next is not plumbing but design: code-only handoff optimizes for reproducibility and context hygiene while discarding design intent, and that trade has a measurable downstream cost. Treating the handoff artifact — code, code plus history, or code plus design contracts — as a first-class architectural component is the precondition for making per-feature defect rates roughly constant instead of compounding.

Angle

Architectural comparison of handoff units and their failure modes, framed as a design parameter rather than a model capability limit.

Source video

Project ideas

4

Representation Gate

gatehouse

Inserting an automated representation gate (rejecting multi-boolean state encodings, requiring exhaustive state matching) before feature generation or merge keeps per-feature invalid-state rate roughly constant instead of letting it compound across a long feature sequence.

Proof of concept

Wrap a fresh-agent feature pipeline with a pre-merge checker that parses the state model, flags mutually non-exclusive boolean state fields, and requires exhaustive handling when a new variant is added; A/B the same feature sequence with the gate off and on.

Measurement

Invalid-state representations per feature and edit sites touched per new state, with and without the gate, plus the fitted slope of defect accumulation versus feature index.

Source video

Fresh-Agent Representation Decay Benchmark

beyond-evals

Under a code-only, history-free handoff, frontier models produce invalid state representations at a stable measurable rate, and that rate drops when design contracts travel with the code even though git history is still withheld.

Proof of concept

Reimplement the ticket-box-office feature sequence across N fresh-agent runs with three arms — code only, code plus git history, code plus explicit state-model contracts — holding model and harness constant.

Measurement

Invalid-state representation rate per arm, and per-feature defect accumulation as a function of arm and feature index.

Source video

Blast Radius Scorer

new

The number of code sites that must change to add a state is a model-independent predictor of the next agent's per-feature failure probability, so a static edit-surface score computed before generation can triage which features need human review.

Proof of concept

Build a static analyzer that, given a codebase, counts edit sites per candidate state transition for boolean-flag, enum, and enum-with-payload encodings, then correlate the score against observed per-feature defect rates from replay runs.

Measurement

Rank correlation between predicted edit-site count and observed per-feature failure rate across encodings and feature sequence positions.

Source video

Optimistic Sync Correctness Testbed

new

Placing authorization at the proxy boundary between a WAL-fed sync layer and client fan-out keeps per-client visibility out of the storage layer while preserving correctness under concurrent writes and permission changes.

Proof of concept

Stand up Postgres with WAL replication feeding a sync layer that mirrors as an optimistic read replica, front it with a durable streams server behind an authorization proxy, and drive concurrent multi-client writes and mid-session permission revocations.

Measurement

Reconciliation convergence time and divergence count under concurrent writes, plus visibility-leak incidents after permission changes.

Source video

Architectural implications

3

Data structure design becomes an explicit enforcement point rather than an emergent outcome of code review.

Before

Agents generate features end-to-end; quality is judged by whether the feature works, and state representation is an implicit artifact of each generation.

After

A representation/schema gate precedes feature generation (or blocks merge): state models must use exhaustive, mutually exclusive encodings, and boolean-flag state encodings are rejected.

Consequence

Shifts the bottleneck from reviewing generated code volume to reviewing a small, high-leverage type/schema surface, and makes defect rate per feature roughly constant rather than compounding.

Source video

The agent handoff artifact is a design decision with measurable downstream effects.

Before

Only the raw code base is passed between agents; prior reasoning, design intent, and history are discarded.

After

Code plus persistent design contracts (state models, invariants, ADRs) travel with the repository as the handoff unit.

Consequence

Reduces the chance that each fresh agent re-derives a convenient-but-wrong representation, at the cost of maintaining a contract artifact that must itself stay in sync with the code.

Source video

In sync backends, the storage engine is no longer the client-facing surface.

Before

Clients talk to the database (or to an API that directly proxies the database) and consistency/broadcast concerns mix with persistence.

After

A sync engine in front of Postgres acts as read replica with optimistic mutations, with a durable streams server and authorization proxy mediating client sync.

Consequence

Storage and streaming can be scaled and failed independently, but conflict resolution and per-client authorization become first-class components that need their own correctness arguments.

Source video

Tradeoffs and failure modes

3

Boolean-flag state encoding vs. enum/tagged-union state

Benefit

Boolean flags are the locally convenient choice and are easy to generate incrementally as new attributes appear.

Cost or risk

They admit illegal states (both flags true) and multiply the number of code sites touched when a state is added or changed, raising the per-feature failure rate for every subsequent agent.

Using struct with boolean flags (held, sold) allowing invalid states like both true vs enum State { Open, Held, Sold }
Open source video
Source video

Stateless fresh-agent iteration (code-only handoff)

Benefit

Avoids context rot and stale assumptions; simulates real team handoffs and keeps each run reproducible across 200 iterations.

Cost or risk

Without visibility into prior design evolution, agents fall back on convenient designs and produce invalid state representations at 12.5% to 42.5%, letting defects compound.

When AI agents build software iteratively from scratch without seeing prior agent evolution, they fall back on convenient but non-optimal data structures.
Open source video
Source video

Optimistic mutations in a sync engine

Benefit

Clients can apply writes immediately, keeping real-time UI responsive without waiting for round trips.

Cost or risk

Managing high write volume and many syncing clients forces careful decoupling of storage and streaming, and makes reconciliation/conflict handling an ongoing correctness burden.

Managing large volumes of writes and client sync requires careful decoupling of storage and streaming.
Open source video
Source video

Open questions

4

What per-feature error rate is the survivability threshold for an agentic feature pipeline, and how does it vary with feature count and coupling?

Why unresolved

The summary cites a 12.5% figure compounding across 100 features as unrecoverable but does not give the sensitivity curve, the assumed coupling between steps, or confidence intervals from the 200-run experiment.

Research direction

Re-run the fresh-agent harness at varying feature counts and measure defect accumulation; fit a compounding model and report the break-even error rate for N features.

Source video

Does enforcing a type-first workflow (state model and schema specified before implementation) measurably reduce the 12.5%-42.5% invalid-state-representation rate for frontier models?

Why unresolved

The summary asserts that prompting or guiding agents toward robust type systems is necessary for codebase health, but presents this as a practical implication rather than a measured intervention result.

Research direction

A/B the same Ticketmaster-style feature sequence with and without a pre-specified enum/tagged-union state model, holding model and harness constant.

Source video

How much of the degradation is caused by withholding history versus withholding design intent, and would passing design artifacts instead of git history recover the lost quality?

Why unresolved

The experiment deliberately passes only raw code with no prior agent context or git history, so the relative contribution of each withheld signal is not separated.

Research direction

Run arms passing code only, code + git history, and code + explicit design contracts, comparing invalid-state rates and edit surface per feature.

Source video

How are conflicts and authorization enforced when a sync engine acts as an optimistic read replica in front of Postgres?

Why unresolved

Conflict resolution is listed as a topic and the authorization proxy is named as a component, but the summary gives no mechanism for either.

Research direction

Document or reconstruct the HumanLayer stack's conflict-resolution and per-client authorization model and test it under concurrent writes and permission changes.

Source video

Key claims

8
causalVerification needed

Even a 12.5% per-feature failure rate compounds exponentially across 100 features, making the codebase unrecoverable.

Evidence

Even a 12.5% failure rate compounds exponentially across 100 features, making the codebase unrecoverable.

Question

Under what independence and coupling assumptions does a 12.5% per-feature failure rate become unrecoverable at 100 features, and is the compounding multiplicative or super-multiplicative in practice?

Source video
factualVerification needed

Frontier AI models produced invalid state representations in 12.5% to 42.5% of cases in the experiment.

Evidence

Experiment data showing 12.5% to 42.5% invalid state representations produced by frontier AI models.

Question

What exactly was counted as an 'invalid state representation', across which models/reasoning settings, and what was the sample size in the 200-run experiment?

Source video
factualVerification needed

Agents in the experiment had no context about what previous agents did.

Evidence

Agents have no context about what previous agents did.

Question

Was any state or summary carried between runs besides the code base, and how was leakage of prior context prevented?

Source video
factualVerification needed

Only the code was passed forward across 200 fresh-agent iterations, simulating real team handoffs from scratch.

Evidence

The code is the only thing passed forward, simulating real team handoffs over 200 iterations from scratch.

Question

How faithful is a code-only, history-free handoff to real team handoffs, where design discussions, tickets, and reviews typically persist?

Source video
causalVerification needed

Adding a new state changes the number of places in the code that must be touched.

Evidence

Adding a new state changes the amount of places where you have to touch the code.

Question

Can the edit-site count per added state be measured for boolean-flag versus enum encodings and used as a predictor of per-feature failure rate?

Source video
factualVerification needed

Boolean-flag state representations permit invalid states such as both 'held' and 'sold' being true.

Evidence

Using struct with boolean flags (held, sold) allowing invalid states like both true vs enum State { Open, Held, Sold }

Question

Does a type-level refactor to an enum actually eliminate the invalid states observed in the experiment's generated code, or do downstream casts reintroduce them?

Source video
causalVerification needed

AI agents building iteratively from scratch without seeing prior agent evolution fall back on convenient but non-optimal data structures.

Evidence

When AI agents build software iteratively from scratch without seeing prior agent evolution, they fall back on convenient but non-optimal data structures.

Question

Is the cause lack of history, lack of design intent, or model priors, and does providing explicit representation guidance reverse the effect?

Source video
factualVerification needed

A sync engine placed in front of Postgres acts as a read replica with optimistic mutations.

Evidence

Sync engine sits in front of Postgres and acts as a read replica with optimistic mutations.

Question

How does the sync layer obtain change data (WAL tailing vs. triggers), and how is optimistic local state reconciled on conflict?

Source video

Connections

5