Skip to content
Nelson D’SouzaEmail me

Advising and collaboration

Agents that do the work, with checks that hold.

I design and build multi-agent systems, autonomous coding loops, and the knowledge and memory those agents run on. Then I build the harness that checks them.

At PepsiCo I lead an 8-engineer pod building AI products and shared platform capabilities (internal details stay under NDA). In public, I test the underlying verification practices—evals, boundary checks and fail-loud gates—on my own products and tools, where they caught failures that passed every other check, including a harness error that scored a model 0 of 22 and 27 of 80 catalogue entries pointing at the wrong book.

Describe the problem See the work

Engraving of two Jacquard loom mechanisms side by side; the one on the right carries a long hanging chain of punched pattern cards
An ancestor: Jacquard loom mechanisms with punched-card chain, 19th-century engraving. Études sur l’Exposition (Eugène Lacroix, Paris), Wellcome Collection, CC BY 4.0

01

Multi-agent systems

Several agents, each with one job, and a structure that decides who answers to whom.

Multi-agent setups fail in concrete ways: shared model blind spots, ungrounded handoffs, and no boundary between builder and verifier. I design the roles, handoffs and referee: a worker builds, a separate reviewer judges, a senior agent intervenes on stalls, and a person decides when nothing else settles it.

  • A reviewer that cannot touch the work

    Each task gets its own git worktree. The reviewer can be confined to the diff inside a sandbox, so it judges the change without editing it.

  • Every review finding gets triaged

    Seven model reviewers reported 38 issues on one Alfred phase. I fixed 18, deferred 6 and dismissed 14. Two of the 18 would have broken production—showing both what multi-lens review catches and why model findings still require human triage (37% were dismissed).

  • Handoffs across tools and vendors

    Sage passes builds to Bob the Builder through Bob’s CLI, and Bob runs several repositories from one queue across Codex, Claude and the OpenAI and Anthropic APIs.

who answers to whom

  • Bob the Builder

    worker, own worktreequality gatesreviewer, held to the diffdone

    stalled: senior agenta person, with the evidence

  • Alfred

    three providers, independentlyadversarial roundverdict or split on the finding

  • Sage

    SageBob, through its CLI

Drawn from the Bob the Builder, Alfred and Sage case studies

02

Autonomous development, and the harness around it

Checks outside the agent’s reach decide whether its work is finished.

I build the loop an agent works inside: the states it can move through, the gates it must pass, the sandbox it runs in and the record it leaves. I test each gate by breaking the work on purpose and watching it fail.

  • A fixed delivery loop

    A task can make only the moves listed in one transition table, and any other move is rejected.

  • Gates that must be able to fail

    Tests, the race detector, static analysis and a determinism check run before review. Breaking the work on purpose showed that five gates in Bob’s loop were checking stand-ins. Four now check much closer to the real output. The fifth, the memory ack, still passes when nothing has been distilled, and its fix is designed but not yet in.

  • Merges carry their evidence

    Every merge to Sage’s main is attested against its exact git tree. Changed-line coverage is always in the attestation. Mutation testing, a threat model and TLA+ checking join it when the change calls for them.

  • Stalls end in a decision

    A stalled task gets a bounded number of repair attempts, then a senior agent, then quarantine with the reason written down.

  • Limits the model cannot talk past

    The server owns the agent’s tool loop, and a spend cap reserves the worst-case cost before each turn.

a review that cannot point at the diff

  1. runningreview_chunk_started

    chunk 1 of 2 · internal/state/transition.go
  2. warningreview_chunk_retry_requested

    ungrounded review findings: F-002 location internal/state/store.go:41 is outside changed files
  3. errorthe loop stops

    verification failure: ungrounded review findings: F-002 location internal/state/transition.go:212 is outside changed hunks

one retry, then the review fails

Redrawn from the review loop’s events and the grounding check; the ids and paths are examples

03

Knowledge layers and memory

I build the layer an agent remembers with and looks things up in, so it grows over time and every entry keeps its source.

Plain retrieval re-reads raw documents for every question and rarely surfaces disagreements. I separate personal memory from cited world claims in storage, with review gates before promotion—open contradictions still require human judgement, and write checks are only as strong as the code behind them.

  • Knowledge that compounds

    Alfred compiles each source into cross-linked wiki pages and flags the places where two sources disagree.

  • Memory with provenance

    Sage keeps memory in local SQLite. Every kind of entry except a preference needs a source. A belief also needs the user’s own words, a context entry needs an expiry, and a knowledge-base pointer needs the id of the claim it points to. Before old context is compacted, Sage writes a recap.

  • Write gates in code

    Personal memory and world facts live in separate stores, each with its own write gate in code. A user’s claim reaches the knowledge base only as a reviewed draft that carries their quote.

  • One core, many doors

    Alfred’s knowledge is reachable from a web app, a CLI and an MCP server, so other agents can query it too.

two stores, two gates

Memory

about me: Preference, Belief, Context, KbPointer

source · user_quote · expires_at · kb_claim_id

“belief memory requires user_quote provenance”

Knowledge base

about the world: atomic claims, each active, probationary, disputed or deprecated

source_pointer · source_quote · tier

“claim requires source_pointer and source_quote”

A memory may point at a claim. It never holds the fact itself.

“No truth laundering into memory.” ADR-0001

Redrawn from the memory types and the knowledge-base gate

04

Evals, grounding and reliability

Answers that point at a source you can open, and evals that tell you whether a change helped or only looked like it.

The habits come from years of fraud and risk models. I keep a held-out set frozen, write graders that do not reward the wrong thing, and put an interval on every rate. Citations get checked after the model answers. Wherever a domain has a deterministic oracle (engines, SQL, calculators), that tool owns the fact rather than the model.

  • Citations checked after answering

    I sample live answers and test each claim against the passage it cites.

  • Evals you can defend

    43 questions frozen before any model answered them, grounding graded on its own, and repeated runs with intervals.

  • The model only words the facts

    In the chess tutor, Stockfish decides every fact and the model writes the sentences. A checker deletes any sentence that names something the engine did not establish. The checker enforces token containment only, so the fact layer still has to carry relations.

  • Failures you can see

    I build fail-loud paths and deploy checks, so an outage reports itself as an error.

an answer from Ask, and its trace

Explain Romans 4

Paul explains that Abraham was counted righteous by faith1. He adds that this happened after Abraham was circumcised2.

  • Source 1ScriptureRomans 4:3

    “And Abraham believed God, and it was counted unto him for righteousness.”

  • Source 2ScriptureRomans 4:10

    “How was it then reckoned? when he was in circumcision, or in uncircumcision? Not in circumcision, but in uncircumcision.”

later, in the trace ↓

faithfulness: {
  score: 0.5,
  totalClaims: 2,
  supportedClaims: 1,
  unsupportedClaims: [
    "He adds that this happened after
     Abraham was circumcised [S2]."
  ]
}

The reader saw both sentences. The trace records which one its source does not support.

Redrawn from the answer component and the faithfulness check’s tests. The second sentence is an example of what the check flags.

How I can help

Architecture review

You share the system, its design notes and where it hurts, before you build it or after it surprised you. Within a couple of weeks I come back with written findings: where it will break, what to measure, and what to change first.

A scoped build

One well-defined piece, such as an eval harness, an orchestration layer, a knowledge or memory layer, or the gates around a coding-agent loop. We agree what done means first, and I build it alongside your team.

How to start

Send a few lines: what the system does, the failure you have seen, and how you know. I reply saying whether I can help, and whether that looks like a review or a scoped build.

Tell me where it breaks.

Scoped to non-competing work alongside my role at PepsiCo and Geysera, so I take on a small number of architecture reviews and scoped builds at a time—async-first, with scheduled working sessions.

Opens your email app with that line already written.

Or find me on LinkedIn. Based in Plano, Texas.