SKIP TO CONTENT
Carlos Barahona sigil CARLOS BARAHONA
← JOURNAL

CERTIFICATION · 5 MIN

Four decisions the architect exam named

On November 25 I passed the Claude Certified Architect (Foundations) exam. I won’t write about the questions; that isn’t mine to share. What I can write about is what preparing for it did to two projects I was building at the same time.

My method was simple. Study a domain until I could explain it, then go find the place in a real project where it applied and change the code. BatonPass, a Claude Code widget, and Subdivy, a rent app on Supabase, were the test benches. Each section below is one domain and the decision it produced.

Context: decide what’s always loaded

The easy habit is to put everything an agent might need into one instructions file. The exam treats context as a budget, not a bucket, and that’s the clearest way I’ve found to explain why Subdivy’s instructions are split.

Its AGENTS.md holds only what applies to every task: use Expo Router, run lint and typecheck before calling anything done, and one rule that matters more than the rest. Expo ships breaking changes every SDK release, so the agent is told not to trust its training data:

1. Read the major version of the `expo` package in `package.json`.
2. Fetch the matching versioned docs.

Everything else moved into skills that load on demand. The security rules, the threat model and the checklist for row-level security only enter the context when a change touches supabase/. A screen tweak never pays for them.

BatonPass is the same idea from the outside. It measures how full each Claude Code chat’s window is, and when one gets close, it has the conversation summarise itself into a file and starts a fresh session holding only that summary. The window is a resource, and running out of it should be a decision, not an accident.

Tools: make them fail loudly and narrowly

A tool the model can’t read the result of is worse than no tool. The pattern I took away is that a tool should do one deterministic thing and say clearly when it fails.

The Subdivy security skill starts with a script, not with judgement:

node .agents/skills/subdivy-security/scripts/scan.mjs

It’s a fast regex pass over migrations, config and edge functions that exits 1 on any high-severity finding. It catches the mechanical mistakes, like a table without row-level security or a security definer function without a pinned search_path, so the model spends its attention on logic. The skill says outright that a clean run isn’t a review.

The same thinking runs through the database. Every business rule raises a short, stable code like unit_limit_reached or agreement_change_must_start_next_month. A human sees Spanish copy mapped from it; an agent reading the error sees exactly which rule fired.

Orchestration: reuse the context you already have

The tempting design for BatonPass’s summaries was a separate summariser: parse the transcript, hand it to a fresh model call, get a paraphrase back. Studying orchestration made the cost of that obvious. A new agent starts cold, and handing it a transcript to reread is paying twice for understanding that already exists.

So the summary comes from the conversation itself, run headless:

const args = ['--print', '--resume', sessionId, '--fork-session'];

--resume brings the full context, --fork-session keeps the run out of the live transcript, and the model is always the chat’s own, because prompt caches are scoped to the model and a different one would re-bill the whole prefix. A measured run came back 81% cache read.

The other half of orchestration is order. The handoff runs summarise, validate, save, launch, mark, kill, and every step that can fail runs before any step the user can’t undo. I wrote that up in Every step that can fail goes first.

Guardrails: least privilege, including for the agent

The guardrails domain is the one I applied most literally. In Subdivy, Claude has no database access. Migrations are written in the repo and applied by hand in the Supabase SQL editor, and the skill tells the agent never to “fix” a deployed schema by editing an old migration. It writes a new one and says it needs applying.

That’s the same principle the app itself runs on. Subdivy’s Supabase key ships to every phone, so the database assumes any caller might be hostile and enforces every rule in grants, policies and triggers. The security skill frames every review around one question: what happens if a signed-in user from another account sends this request by hand? An agent with write access to production would deserve the same question, so it doesn’t get the access.

BatonPass applies it to the destructive step. It stops the old Claude Code session only after the new one is running, and even then it stops rather than deletes; the transcript stays on disk for claude --resume.

What the certificate is worth

None of these four ideas was new to me. I had half of each already, usually the half that came from getting burned. What the exam did was name them, which turns a habit into something I can check for on purpose and explain to a team in one sentence.

That’s the honest value of a certification for someone who already builds: not permission to start, but a shared vocabulary for what good looks like. The projects are where it has to show.