← Agentic engineering

Module 5 · Outside your specialty

You are now asked to ship changes in stacks you do not own. Learn which risks belong to each specialty, learn enough to judge the agent's work there, find the owner and ask the question only they can answer, and build the guardrails that let others ship safely through yours.

Facts checked

By the end of this module you can take a change in a stack that is not yours, say which of its risks an outsider would miss, learn enough in an afternoon to judge what the agent wrote, and put one good question to the person who owns that stack. You can also do the reverse: set up your own specialty so that outsiders ship through it without breaking it.

The frontend infrastructure team at Fin (Intercom) described the second half on 9 July 2026. Around 450 engineers had shipped React code there, "most of whom didn't know React before they started", through tooling "created and maintained by just eight people".

Agents make that kind of work possible. An agent will write a migration, a pipeline or a screen for you with equal confidence, and the tests it writes alongside will pass. What it cannot give you is knowledge of which risks that stack carries, and you need that knowledge to decide what to test.

Before you read
1.

A frontend engineer needs a new column on a table with 40 million rows. The agent writes a migration that adds the column, copies old values into it and builds an index, all in one file. Tests pass locally. What is the first question to ask?

2.

In one sentence: why does a passing test suite tell you less in a stack you do not know than in your own?

3.

You asked the agent to explain its change in a stack that is new to you, and the explanation made sense. Are you ready to approve it?

What is asked, and what nobody has measured

Employers now write this into job ads. Three that were live on 3 December 2026: Coinbase's ad for a senior staff native mobile engineer asks for a framework that would allow "a single mobile contributor to be productive in both iOS and Android codebases simultaneously". Its ad for a staff frontend and mobile engineer on the agentic trading team lists "Backend experience (Go preferred)" as a plus. Agoda's ad for a principal backend engineer on its platform says "Deep specialization in data infrastructure is not required."

Company reports describe the same shift from inside. Anthropic surveyed 132 of its engineers and researchers in August 2025 and reported that December that they were becoming "more 'full-stack' (able to succeed at tasks beyond their normal expertise)". The report also records a worry: some staff feared "becoming less able to effectively supervise Claude's outputs".

No study measures how well engineers do outside their specialty with agents, or how often the result fails in production. The evidence is ads and company reports, which show what is being asked and say little about how well it goes. Treat this module as method, drawn from how careful teams work, and treat any number you hear about cross-stack productivity with suspicion until someone publishes how it was counted.

One thing is known about the agent's side. It gives the common answer for a stack, the one most often written down. Your system's history is not written down anywhere it has read: the table that is busier than it looks, the service that retries three times, the screen that half your users open on an old phone.

Risks an outsider misses: frontend, backend, data

Each specialty has a short list of ways a change goes wrong while its tests stay green. Specialists carry the list in their heads. If you know your own, learn the others' well enough to ask about them.

Frontend

  • State. The agent keeps a second copy of something the app already holds, such as server data mirrored into a component. The two drift, and the list shows the old value after the edit screen saved the new one. Component tests render one piece at a time and never see it. Ask where the value already lives and who else reads it.
  • Accessibility. A clickable div works with a mouse and passes a click test. It fails the first keyboard criterion in WCAG 2.2, 2.1.1 at Level A: "All functionality of the content is operable through a keyboard interface". Custom controls also need a name and a role that assistive technology can read (criterion 4.1.2). Use the change with the keyboard alone, and run the project's accessibility lint.
  • Bundle size. One import of a large library, for one function, adds its weight to a page load for every user. No test fails. Ask what the change did to the bundle, and whether the project has a size budget in CI.

Backend

  • Transactions. Two writes that must both happen are issued as separate statements. A crash between them leaves half the work done. The test of the normal path passes. Ask which writes here must succeed or fail together.
  • Idempotency. Networks retry. A handler that charges a card or sends an email each time it is called will do it twice when a client retries after a timeout. Ask what happens when the same request arrives twice.
  • N+1 queries. A loop loads one related row per item. With the three rows in a test fixture that is three queries. On a real page it is a thousand. Ask how many queries the change makes for a long list, and read the query log to check.

Data

  • Migrations. A schema change runs against a live table while old and new code are both serving. PostgreSQL's manual says of ALTER TABLE that "an ACCESS EXCLUSIVE lock is acquired unless explicitly noted", and that lock conflicts with every other, plain reads included. Ask what each statement locks and for how long, and whether the old code still works once it has run.
  • Backfills. Updating every row in one statement keeps its locks until the transaction ends, which on a large table can be hours. Ask whether the backfill is batched, whether it can resume, and how anyone will know it finished correctly.

Risks an outsider misses: infrastructure, mobile, QA

Infrastructure

  • IAM. The agent makes a permission error go away by widening the policy, often to a wildcard. The deploy succeeds. Ask for the narrowest permission that makes the change work, and what else the role can now do.
  • Blast radius. A change to a shared module, a base image or a DNS record reaches every service that uses it. Ask what else consumes the thing being changed, and whether it can go to one environment first.
  • Cost. The change may use a larger instance, leave a debug log level on or keep data for longer. No test fails, and the bill arrives a month later. Ask what the change costs per month at production volume.

Mobile

  • Release trains. A web fix ships in minutes. A mobile build ships on the next train, and users update when they choose, so old versions go on calling your API long after. Apple's phased release spreads an update's automatic rollout over seven days, starting with 1% of users. When a Google Play staged rollout is halted, the users who already received the version stay on it. Ask which app versions will call the thing you changed, and whether the oldest still works.
  • App-store review. Every release waits for review. Apple says it typically reviews at least 50% of submissions in under 24 hours and 90% in under 48. A fix that needs a new build is a day or two away at best, so anything risky needs a switch on the server.
  • Offline. Phones lose signal in the middle of a request, and the agent writes for a connection that is always there. Ask what the user sees with no network, and what happens to a write made offline once the signal returns.

QA

  • Flaky tests. A test that passes on a retry looks green, and an agent told to make CI pass will add the retry, or a sleep. The cause stays: state shared between tests, a real clock, a call nobody awaited. Ask why the test failed the first time. Retrying or quarantining a test is the QA owner's decision, recorded with a ticket, and never something an agent does quietly to get CI to pass.

The lists are short because you are learning what to ask about, which is a smaller job than learning the specialty.

Learn enough, fast

You need enough understanding to judge one change, today. There are four steps, and the last one tests whether you understand enough.

Have the agent explain. Ask it to explain the change to an engineer who knows your specialty and not this one, and ask specifically what runs in production that the tests do not exercise. Ask what it would be nervous about. An agent tells you more when you ask this than it volunteers on its own.

Get the specialist's objections. Open a fresh session, tell it that it owns this stack, and ask for the three most likely reasons it would send the change back. Review at volume explains why the reviewer must not share a session with the writer.

Read the source for each risky claim. When the agent says a statement is safe on a large table, treat that as something to check in the database's manual. The paragraph you need is usually easy to find, and reading it yourself takes about ten minutes.

Explain it back with the agent off. Close the session and write five sentences: what the change does, what could break in production, how you would know, how to undo it, and what you still do not know. If you cannot write the first four, you are not ready to approve, and the fix is another pass or a smaller change. The fifth sentence is your question for the owner.

Find the owner and ask the right question

Every stack has someone who knows what the manual does not: which table is hot, what broke last year, which rule is unwritten. Find them from the repository. A CODEOWNERS file names a team for a path. The history of the files you are changing shows who touched them last. For anything those do not tell you, check the on-call rota and the team's channel.

Then ask a question they can answer in two minutes. "Can you review my PR?" asks them to do your whole job. Compare:

I'm adding a nullable delivery_note column to orders (about 40M rows). From the PostgreSQL docs, adding a column with no default does not rewrite the table but still takes an ACCESS EXCLUSIVE lock, so I've set a five-second lock timeout. The backfill runs separately in batches. Is there anything that holds long transactions on orders, or a time I should avoid?

That question says what you are doing and what you have already checked, so the owner does not have to check it again. It asks for the one thing only they know. Post it in their channel, where the next outsider will find it.

Ask before you build, while the owner can still help shape the change. A question raised at review time waits in their review queue. When the answer comes, put it where the next agent will read it: a line in the stack's rule file or the decisions file.

Ship through their guardrails, and build your own

When you ship in someone else's stack, the owner has already answered some of your questions in their guardrails. Read the stack's rule file and its CI checks before you brief the agent, and put the check commands in the brief. When one of their checks fails, a specialist wrote that check to catch something, so find out what it caught. Never have the agent bypass it. If you think the check is wrong, that is a question for the owner too.

In your own specialty you are the owner, and outsiders ship through your guardrails. Fin's frontend team stopped doing most of the hand work it used to do, which it lists as "reviewing PRs, documenting conventions, and answering dozens of the same questions a week". It put the standards into tooling: a skill that carries the team's React patterns, and a knowledge layer for the design system. It measured the layer by running the same tasks with and without it. Without it, 7% of the components an agent reached for existed in the design system. With it, 96% did. The number of engineers the team supported in React went from 2 a week to as many as 104.

Build the same thing at your scale. Take your specialty's list of risks from this module, and for each one write a section of the rule file, then a check whose error tells the agent the fix (Guardrails shows how). Make changes under your directories high tier, with your team as the required reviewer. When an outsider asks you the same question twice, write a rule or a check that answers it.

Fin's post states the limits of its tooling, and you should state yours. Even with the tooling, "about a quarter of pages still use the wrong props". It also names a risk: "If people can ship without understanding, you have to invest just as hard in keeping humans able to judge what the Agents produce."

A frontend engineer's first migration

A frontend engineer on a product team is adding delivery notes to the order screen. Old notes sit inside a JSON field on orders, a PostgreSQL table with about 40 million rows, and the feature needs them in a column of their own. The service deploys by rolling restart, so old and new code overlap for a few minutes. Before each step, say what you would do.

  1. 1 · Read the agent's first diff as an outsider

    The agent writes one migration, and its tests pass against a test database of 200 rows:

    ALTER TABLE orders ADD COLUMN delivery_note text;
    UPDATE orders SET delivery_note = metadata->>'delivery_note';
    CREATE INDEX orders_delivery_note_idx ON orders (delivery_note);
    

    Nothing here looks wrong to a frontend engineer. Slow down anyway: in a stack you do not own, a change that looks fine to you may still carry risks you cannot see.

  2. 2 · Name the stack's risks before judging the code

    This is the data specialty, so the list is migrations and backfills: what each statement locks, for how long, and whether old code survives it. You ask the agent what runs in production that 200 rows cannot show, and a fresh session what a database owner would send back. Between them they raise three things: the lock taken by ALTER TABLE, the single UPDATE across 40 million rows, and an index build nobody asked for.

  3. 3 · Check each claim at the source

    You read the PostgreSQL manual for the three statements. Adding a column with no default needs no table rewrite, so it is fast, but it still takes an ACCESS EXCLUSIVE lock. The manual also says a lock is "normally held until the end of the transaction". The migration tool wraps each file in one transaction, so that lock would be held through the whole UPDATE, with every read and write on orders waiting behind it. A standard index build "locks out writes (but not reads) on the table until it's done". The agent's summary had called all three statements safe.

  4. 4 · Explain it back with the agent off

    Write five sentences on paper. The change adds a column and copies old notes into it. As written it would lock orders against all traffic for as long as the copy takes, which on 40 million rows is unknown and could be most of an hour. We would know from a stalled checkout and a queue of waiting queries. Undoing it means cancelling the migration, which rolls the copy back. I do not know what else holds long locks on this table, or how this team normally runs a backfill.

  5. 5 · Find the owner and ask

    CODEOWNERS gives the platform data team for the migrations directory. You post the question from the section above in their channel. The answer takes them three minutes and none of it was in the manual: a nightly export holds a transaction on orders for about twenty minutes from 02:00, backfills go through the team's batch runner and never inside a migration, and there is a migration check in CI that would have rejected this file. Nothing filters on the note, so you drop the index.

  6. 6 · Re-brief the agent with the boundary

    The new brief names what the owner said. The migration becomes two lines, and the copy moves to the batch runner in chunks of 5,000 rows, each in its own transaction, resumable from the last id:

    SET lock_timeout = '5s';
    ALTER TABLE orders ADD COLUMN delivery_note text;
    

    With the timeout, a migration that cannot get its lock gives up after five seconds and is retried, instead of waiting for it without limit. The new code writes the column for new orders and reads the old field as a fallback until the copy is done.

  7. 7 · Bring evidence, and let the owner review

    You run the migration and the batch copy against a restored copy of production, and attach the timings and the row counts (notes in the old field, notes in the new column, equal). The change touches a live table, so it is high tier, with the data team as the second approver. You sign as its owner, because you can now explain it. Data and migrations covers the steps that follow: switching the readers, then removing the old field.

  8. 8 · Leave the stack better for the next outsider

    The data team's rule file gains two lines from this exchange: never backfill inside a migration, and avoid orders between 02:00 and 02:30. The next engineer's agent reads them before it writes anything. That same week a backend colleague ships a form through your team's accessibility lint, which stops a clickable div and tells the agent to use a button.

Try it

A frontend engineer is moving delivery notes from a JSON field into a new column on a 40-million-row table that stays live throughout. Put the steps into a sequence that never blocks the table for long and never loses a note.

  1. Copy old notes across in small batches, each in its own transaction
  2. Compare the count of notes in the old field with the count in the new column
  3. Switch readers to the new column
  4. Ask the table's owner what holds long locks on it and how backfills are run here
  5. Deploy code that writes the new column for new orders and still reads the old field
  6. Add the nullable column in a migration of its own, with a lock timeout set
  7. Remove the old field in a later change, once a restored backup has proved the copy
The misconception

The agent knows this stack better than I do, so if its tests pass I can ship the change.

Why it’s wrong

The agent knows the stack's common answer. It does not know this system: the nightly export, the batch runner, the size of the table. In the worked example its tests passed and its summary called every statement safe, and the change would have locked the busiest table in the service.

Passing tests also tell you less here than in your own specialty. A test checks a risk somebody thought of. In your own specialty you can tell when a test is missing. Outside it you cannot, and the agent writing both the code and the tests will not tell you.

The correct model

Let the agent bring its general knowledge of the stack and do the typing. Your part is to list the risks to ask about, read the source for each risky claim and explain the change back. Ask the owner for what is not written down anywhere. A change outside your specialty is ready when you can explain it with the agent off and the owner's answer is in the brief.

Check yourself
  • Name one risk an outsider misses in each of frontend, backend and data, and the question that finds it.

  • Name one risk in each of infrastructure, mobile and QA.

  • What are the four steps for learning enough to judge one change?

  • What makes a question to a stack's owner a good one?

  • What do you do in your own specialty so that outsiders can ship through it?

Before the check

You can now work in a stack you do not own without pretending to be its specialist: you know the short list of risks to ask about, you can check an agent's risky claims at the source, you explain the change back before you sign it, and you ask the owner for the part that is not written down anywhere. In your own specialty you know what to build so that others can do the same.

Check yourself, without scrolling up:

  • Pick the specialty furthest from yours. Can you name two of its risks and the question for each?
  • For the last change you made outside your own stack, who was the owner, and did you ask them anything?
  • Could you have explained that change with the agent closed?
  • Which question about your own specialty have you answered more than twice this quarter, and is there a check for it yet?
Sources
1 lab

Labs

Lab 1

Practise this: Ship a change in a second stack

Clone the starter: https://github.com/codeprepdev/agentic-engineering-lab-5-ship-a-change-in-a-second-stack. It is the order service behind a florist's till and the florists' phone app, in Python with the standard library only, on SQLite. That is backend and data work, the second stack for most frontend, mobile, QA and infrastructure engineers. If backend or data is your own specialty, do the lab anyway, and hold yourself to the explanation you would want from an outsider. Run python3 -m unittest discover and python3 scripts/check_migrations.py, then read the README, AGENTS.md, db/AGENTS.md and .github/CODEOWNERS before any agent sees the ticket.

The ticket, in full:

Noor (shop manager): The gift message is buried in the order's extras. Can the till show it on the order list, with who last changed it, and let staff fix a typo before the card is written?

Today the message sits in orders.extras, a JSON field, as gift_message. Noor's change needs it in a column of its own.

1. Name the risks, then ask the owner. This change is in the backend and data specialties, so the risks to ask about are migrations, backfills, transactions, idempotency and N+1 queries. Have the agent explain the repository's write path and what runs in production that the tests do not exercise. Then find the owner of the schema from .github/CODEOWNERS and write one question in OWNER-QUESTION.md: what you are about to do, what you have already checked, and the thing only the owner can tell you. Keep it short enough to answer in two minutes. Write it before you read on.

2. The owner's answer. The data team replied in their channel:

  • "Every change to an order writes a row to order_events in the same transaction. The nightly export and the customer emails read only order_events."
  • "The till and the phone app resend a write after ten seconds with the same Request-Id header. A resend gets the first answer and changes nothing; shop/requests.py does that."
  • "No copying inside a migration. Copy through shop/batch.py, as its own backfill, under its own job name."
  • "The till's home screen lists up to 300 orders. It makes two queries today. Keep it at a fixed number however many orders there are."
  • "Leave extras alone. We remove the old field in a later change, once the copy is proven."

Put what they told you where the next agent will read it: AGENTS.md or db/AGENTS.md.

3. Brief the agent and build. The change has four parts:

  • a migration in migrations/ that adds a nullable gift_message column to orders;
  • PUT /orders/<id>/gift-message in shop/api.py, body {"message": "..."}, with the Staff-Id and Request-Id headers the other writes take; it saves the column and records an event of the staff member's change;
  • GET /orders gives each order gift_message (the column, or the old field for an order the backfill has not reached) and gift_message_by, the name of the staff member who last changed it, or null;
  • a backfill, shop/backfills/gift_message.py, with run(conn, batch_size=500), copying old messages into the column under the job name gift_message, and leaving alone any order whose column is already set.

Put the owner's answers and the check commands in the brief. When the data team's check fails, fix the migration, never the check. Their files (scripts/check_migrations.py, shop/batch.py and the first three migrations) stay exactly as they are.

4. Explain it back with the agent off. Close the session and write EXPLAIN-BACK.md with five headings: What it does, What could break, How we would know, How to undo it and What I still do not know, with a few sentences under each. If you cannot write the first four, go back to the code before you go on.

Get python3 scripts/check_migrations.py and python3 -m unittest discover both passing, with the output in front of you, then upload the repository folder. The .git folder is left out, so the hidden tests mark what they find in your files. On fresh databases of their own, they test the migration and the data team's check, the list with and without the backfill, the save and its event (including when one of the two fails), a resent request, the list's query count at 3 orders and at 300, and the backfill: what it copies, what it leaves, and whether it resumes. They also check that the data team's files are unchanged, that the starter's tests are all still there with none skipped, and that your three written files have their parts. The tests cannot judge what your question and your explanation say; the owner of the schema could.

Open the lab · needs a free Tarmac account to have your work marked