← Agentic engineering

Module 10 · Owning it

When an agent writes a change and you approve it, you answer for it. This module covers what owning it means: measuring what reached users; the release record; the licence scan and the privacy floor; the words that reach people; the EU dates that touch software; and keeping your own understanding of the code.

Facts checked

By the end of this module you can tell whether the agents on your team are shipping more product or only more code, write the one-page record that goes with a release, run a licence check that stops the AGPL before it merges, and say which European dates apply to software you sell.

In October 2026 Ramp wrote that its builders "now ship 6x as much code per person as they did a year ago". On 1 December 2026 The Pragmatic Engineer's account of the same programme listed, among the things that did not work: "the number of product releases stayed flat while Ramp spent more on AI, even as engineers commit 6x as much code versus before."

This module is about that result: six times the code and the same number of releases. Someone has to own what the agents produce: whether it reached users, what it is allowed to contain, what it says to people, and who answers when it fails.

Before you read
1.

Your team's merged pull requests doubled this quarter. Which second number tells you whether that is good news?

2.

A web tool you run for customers uses a library under the AGPL, and your team has modified that library. In one sentence: what does the licence ask of you?

3.

A faulty update to an app your company sells in the EU corrupts customers' personal photo libraries. A separate fault charges them twice. Which is damage under the EU Product Liability Directive?

Measure what reached users

Agents produce commits and pull requests cheaply, so a count of them tells you little. The Thoughtworks Technology Radar of November 2026 keeps coding throughput as a measure of productivity under Caution. It describes "activity-based metrics such as the percentage of code generated by AI or tokens consumed treated as badges of honor", calls them "poor proxies for real productivity gains", and adds: "We've seen developers generating AI busywork simply to hit these targets."

A study that measured more than activity found the same gap. A National Bureau of Economic Research working paper, revised in September 2026, put the cumulative rise in commits at 240% once autonomous coding agents were in use. That effect "falls to 80% for the number of projects, and to 30% for actual releases".

So track what reached users. Count releases, and the time from a change being asked for to its being live. Read reverts and incidents beside them, since a release that was rolled back delivered nothing. The Radar adds first-pass acceptance rate, "how often AI output can be used with minimal rework", and Many agents and what they cost adds cost per merged change. For a feature, name the result it was built for and measure that.

Check what a number counts before you trust it. One team looked into its visitor figure and found that 530 of 572 visitors were bots. The same team ran an AI judge over generated code and later found the judge had never been sent the code. A job that logs a run and bills for it has not necessarily done any work. Open ten rows of whatever the metric counts, and read what the judge was given, before the number goes on a slide.

The release record

A release record is one page in the repository, written before a release goes out and kept with it. It says what shipped, who answers for it, and what was checked. When something fails three months later, start your search there.

It has eleven lines, each pointing at something that exists:

  • Change: the brief, and the pull requests that carried it out.
  • People: who briefed the agent, who reviewed, who approved as the named owner, who is on call.
  • Evidence: the checks that ran, with the counts of tests run and skipped, and a screenshot of the product in the state a user sees.
  • Not read: the changes that merged on checks alone, by risk tier.
  • Data: any migration, and the restore that proved the backup. Data and migrations covers both.
  • Personal data: each field added or moved, where it lives, who can read it, and which outside services receive it.
  • Dependencies: what was added, with its licence, and the result of the licence scan.
  • Undo: the rollback, and what it will not undo. Ship it and run it covers that.
  • Built with: the agent tools and models, with versions.
  • Law: where the product is sold, and what counsel has said applies.
  • Measure: the result the release is for, its baseline, and what the number counts.

The "built with" line may seem unimportant, but you need it when a defect arrives through an update. Then the record shows which release carried it, which check should have caught it, and which model and rule file were in use when it was written.

A record only shows that the listed checks were made. It does not cover a case nobody thought of, and finding those is the purpose of the owner's review in Outside your specialty.

Licences in the gate

Every dependency an agent adds comes with a licence, and an agent can add one without checking it. Most are permissive: MIT, Apache-2.0 and the BSD licences ask for little more than keeping the notice. Weak copyleft licences such as the LGPL and MPL-2.0 ask you to share changes to the library itself. The GPL asks more, and its duties start when you distribute the software to someone else.

That last condition is why teams running a web service have treated the GPL as safe: they distribute nothing, so they owe nothing under it. The AGPL closes that gap. Section 13 of version 3 reads: "if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version". A customer using your web tool is a user interacting with it remotely.

How far "modify" reaches when your own code is built around an AGPL library is a question for a lawyer. Use the gate to make sure somebody asks the question before the dependency merges. An agent that needs a calendar component will pick the one that fits, whatever its licence.

A script can do this check. Every package manager can print each dependency's licence as an SPDX identifier, such as MIT or AGPL-3.0-only. A short script compares that list against the identifiers your team allows and fails when one is missing. Make it a required check, as Guardrails describes, and run it on every change to the dependency list, because a library can change licence between versions.

The privacy floor

Privacy law differs by country. Four engineering habits are common to most of it, and they are given here with the GDPR's wording because that is the text many teams meet first. Your own jurisdiction may ask for more.

Collect only what the job needs. Article 5(1)(c) of the GDPR asks that personal data be "limited to what is necessary in relation to the purposes for which they are processed". An agent building a booking form adds a date of birth because booking forms have one. Remove the fields the feature never reads.

Keep a data map: each personal field, the table it lives in, who can read it, and every outside service that receives it. Agents add to that list without saying so. An email sender, an error tracker and a model provider each hold a copy of what passes through them. An agent that debugs against production has read whatever was there, which is why Ship it and run it keeps live credentials away from it.

Be able to show people what you hold and to delete it. Article 15 gives a person access to their data, and Article 17(1) gives "the right to obtain from the controller the erasure of personal data concerning him or her without undue delay". A delete that sets a hidden flag does not meet that.

So test the delete. Create a person, give them a history, delete them, then search every table and every outside copy for their identifier, and expect nothing. Where another rule requires a record to be kept, as with invoices, keep it with the identity removed and write down who decided. The first run of this test usually fails on a log table.

The words that reach people

Agents write the text on your screens and in your emails, and it gets less review than their code. Three faults recur.

The first is a label built from a code name. A setting stored as appt_reminder_enabled appears on screen as "Appt reminder enabled", which tells a receptionist nothing. A label should say what happens: "Send a text reminder the day before". Keep one list of the names your product uses, in the repository, and point the agent at it.

The second is an instruction to the agent that leaks onto a live page. One team found a sentence written for the model printed in ten places on its public site. A check catches this: render the pages and templates, and fail on sentences addressed to a writer.

The third is a claim nobody checked. In one team's record, a statement sent to a customer had to be withdrawn, and in another message the agent had attributed the team's own words to the customer. Anything that states a fact to someone outside the company is high-tier: a person checks each claim against its source before it is sent.

The law, briefly

This section was checked against the texts in the Official Journal of the European Union on 3 December 2026. It covers the EU only, it is a summary for engineers, and it is not legal advice. Take a real question to a lawyer.

Product liability. Directive (EU) 2024/2853 "shall apply to products placed on the market or put into service after 9 December 2026" (Article 2(1)), and a product "includes electricity, digital manufacturing files, raw materials and software" (Article 4(1)). Liability falls on "the manufacturer of a defective product" (Article 8(1)(a)). Where the manufacturer is outside the Union it also falls on the importer and the authorised representative. Recital 13 calls this no-fault liability, and adds that it holds whether software is installed on a device or supplied as a service.

An in-house tool is not automatically outside the directive. "Putting into service" means "the first use of a product in the Union in the course of a commercial activity" where the product was never placed on the market (Article 4(9)). A manufacturer includes anyone who makes a product "for their own use" (Article 4(10)(c)). What keeps most internal tools clear of it is the kind of harm it covers.

Only a natural person can claim (Article 5(1)), and only for the damage listed in Article 6(1):

  • "death or personal injury, including medically recognised damage to psychological health";
  • damage to property, leaving out "property used exclusively for professional purposes";
  • "destruction or corruption of data that are not used for professional purposes".

Recital 24 says that "pure economic loss, privacy infringements or discrimination, should not by themselves trigger liability under this Directive". A double charge is a financial loss and belongs to contract and consumer law.

A claim must be started within three years, counted "from the day on which the injured person became aware, or should reasonably have become aware" of the damage, the defect and who is liable (Article 16(1)). In most cases the right ends 10 years after the product was placed on the market or put into service (Article 17(1)). The directive "does not apply to free and open-source software that is developed or supplied outside the course of a commercial activity" (Article 2(2)).

Security reporting. Regulation (EU) 2024/2847, the Cyber Resilience Act, "shall apply from 11 December 2027. However, Article 14 shall apply from 11 September 2026" (Article 71(2)). Under Article 14(1) a manufacturer "shall notify any actively exploited vulnerability contained in the product with digital elements that it becomes aware of", with an early warning "within 24 hours" (Article 14(2)(a)). A manufacturer here is one who makes such products and "markets them under its name or trademark" (Article 3(13)).

AI systems. The AI Act's rules for high-risk systems were moved by Regulation (EU) 2026/1744. Article 113 now applies them from "2 December 2027 as regards AI systems classified as high-risk pursuant to Article 6(2) and Annex III" and from "2 August 2028 as regards AI systems classified as high-risk pursuant to Article 6(1) and Annex I". These dates concern a product that is itself an AI system in one of the listed uses.

As an engineer, find out once, from counsel, which of these apply to what you ship. Write the answer on the release record's law line with its date, and keep the evidence the record points to.

Keep your own understanding

To own code you have to understand it, and when an agent writes it you can easily stop doing that. In January 2026 Anthropic published a trial in which 52 mostly junior engineers learned a Python library that was new to them, one group with AI help and one without. On a quiz minutes afterwards, "the AI group averaged 50% on the quiz, compared to 67% in the hand-coding group". The AI group finished about two minutes sooner, a difference that was not statistically significant. The widest gap was on the debugging questions.

The way participants used the tool made more difference than whether they had it. Participants who leaned on the AI to write or debug the code averaged under 40%. Those who asked it conceptual questions, or asked for explanations of the code it generated, averaged 65% or more.

The trial has limits: it was one trial, 52 people, mostly junior, a library they had never seen, tested minutes later. It does not show what happens to an experienced engineer over a year. In this trial, how much people learned from the same tool depended on what they asked it.

So ask the second kind of question, most of all in a stack that is not yours. Before you prompt, write down what you expect the cause or the design to be, and compare afterwards. Ask the agent to walk you through code you now answer for, and check the walk-through against the code. Write the test for the hard rule yourself. Review at volume adds another habit: explain the change back with the agent closed, and do not approve what you cannot explain.

Help teammates adopt

If only one person on a team directs agents well, the team gets one person's output and a larger review queue. The accounts that describe adoption going well have two things in common.

First, people learn by watching others do it. Ramp's October 2026 post says of its own agent: "There wasn't a mandate to use it. Teammates watched each other solve problems in shared sessions, learned what was possible, and started sessions of their own." Share a session or its session log when something works, and when something fails.

Second, what one person learns goes into the repository. In a 2026 talk, Block described picking about 50 engineers who would "commit at least 30% of their time to enablement", and who began by adding guidance to their repositories. The talk's summary gives the reason: "guidance embedded there could benefit every contributor, not just the champion who wrote it." Put a rule you know into the rule file, or better into a check, so that it applies to every session anyone starts and not only to your own.

Do not measure adoption by tokens or by the share of code an agent wrote. The Radar's warning about busywork applies to your teammates as much as to anyone.

Optional depth: building a tool agents call

Platform teams are now asked to give agents access to internal systems: the deploy pipeline, the feature flags, the ticket tracker. The usual forms are a command-line tool or a server that speaks the Model Context Protocol, whose documentation describes tools as "Functions that your LLM can actively call" and notes that they "can write to databases, call external APIs, modify files, or trigger other logic".

Anthropic's engineering guide to writing tools for agents, from September 2025, lists five principles:

  • choose which tools to build, and which not to;
  • namespace them so their boundaries are clear;
  • return context the agent can use;
  • keep responses economical in tokens;
  • write the descriptions with the care you would give a prompt.

In practice that means a few tools that each do a whole job, names that say what they do, and errors that tell the agent the fix, as a good lint message does. The guide's method is the one this course uses for everything else: build a prototype, write an evaluation from real tasks, and measure each change against it.

A tool also gives access to your systems. Give it the narrowest permission that does the job, log what it is asked to do, and keep it away from anything that reads untrusted text. Security of the code and the agent covers why.

A release record, the week before it ships

A company sells a booking product to physiotherapy clinics in the EU: a web console for clinic staff and a mobile app for patients. An agent has built text-message reminders. The release is due next week, and you are filling in its record. Decide what goes on each line before reading the step.

  1. 1 · Dependencies: the licence scan goes red

    The scan lists 214 packages. One is new and is not on the allowed list: a scheduling library under AGPL-3.0-only. The agent chose it, then patched it inside the repository to handle clinic time zones. The console is used by clinic staff over a network and the library has been modified, which is the case section 13 describes. The team wants neither the duty nor the legal question, so the agent swaps in an MIT-licensed alternative that afternoon. The scan goes green and the record gets its line.

  2. 2 · Personal data: a new row on the data map

    A reminder sends the patient's name, phone number and appointment time to a text-message provider, which keeps message text for 30 days. That is a new row on the map. The agent's first template also named the treatment. The reminder needs the time and the clinic's name, so the treatment comes out.

  3. 3 · Personal data: the delete test fails

    The delete test creates a patient, books an appointment, sends a reminder, deletes the patient and searches every table for the patient's identifier and phone number. It fails. The reminder log still holds the number and the message. The fix deletes those rows with the patient. Invoices stay, with the patient's name replaced by a reference, because the clinic's accountant says they must be kept. The record names who decided that. The provider's 30-day copy goes on the map as a known limit.

  4. 4 · Words: an instruction on the settings page

    The settings page shows a preview of the reminder. On the test environment the preview begins "Write a short, friendly reminder. Do not mention the treatment." That sentence was written for the model and has reached a page. The toggle beside it reads "Appt reminder enabled". Both are fixed, the label becomes "Send a text reminder the day before", and a new check renders every template and fails on sentences addressed to a writer.

  5. 5 · Evidence: the number the feature is for

    Reminders exist to cut missed appointments, so the record names that as the measure. The dashboard puts missed appointments at 11.8%. Before using it as a baseline you open the query. It also counts appointments the clinic cancelled. With those removed the figure is 7.4%. The record carries the corrected baseline and the date, four weeks after release, when it will be read again.

  6. 6 · Law: a question for counsel

    The product is sold in the EU and this release goes out after 9 December 2026. The record does not decide what follows from that. Its law line says counsel was asked on 2 December whether the release brings the product under the new liability directive and the reporting duty for exploited vulnerabilities, and that the answer will be attached. It also names the person who would send a 24-hour early warning if one were ever needed.

  7. 7 · Undo, and the signature

    A rollback restores the old code. It cannot unsend a text message, so reminders ship behind a setting that is off for each clinic until its staff turn it on. With that written down the page is complete: the brief and its pull requests, four names, 1,204 tests run and none skipped, the two low-tier changes no person read, the restore from Monday, the data map row, 214 licences, the models and tool versions, and the law line. You sign it as the owner.

Try it

Fill the gaps in this release record template. Each gap is a term from this module.

# Release record: <product>, release <n>, <date>

Change:        the brief, and the pull requests that carried it out.
People:        who briefed, who reviewed, who approved as the named ______, who is on call.
Evidence:      checks run, with tests run and ______; a screenshot in the state a user sees.
Not read:      changes merged on checks alone, by risk ______.
Data:          any migration, and the ______ that proved the backup.
Personal data: each field, where it lives, who can read it, which outside services
               receive it; the ______ test and its last run.
Dependencies:  what was added, with its ______; the scan against the allowed list.
Undo:          the rollback, and what it will ______ undo.
Built with:    agent tools and models, with versions.
Law:           where it is sold; what ______ said applies, and the date.
Measure:       the result the release is for, its baseline, and what the number ______.
The misconception

The agent wrote the code, so if it goes wrong the responsibility sits with the company that makes the agent.

Why it’s wrong

None of the rules in this module depends on who typed the code. The Product Liability Directive names "the manufacturer of a defective product", and Article 4(10) defines the manufacturer as the person who develops or produces the product. Recital 13 says a developer or producer of software should be treated as a manufacturer. The product is yours, so the liability is your company's.

The AGPL's duty falls on whoever runs the modified version. The right to erasure is owed by whoever holds the data. Inside the team, Review at volume has the working rule: the person who prompted a change and approved it answers for it.

The correct model

Whoever approves and ships a change owns it, and the company that ships the product answers for it. Both use the release record to show what was checked.

Check yourself
  • Name two measures of delivery and two of activity, and say what to do before trusting any of them.

  • What does section 13 of the AGPL require, and why does "we only run it as a service" not avoid it?

  • How do you test a delete?

  • Under the EU Product Liability Directive: from when, who is liable, what damage counts, and how long does a person have to claim?

  • What did Anthropic's January 2026 trial find, and what habit follows from it?

Before the check

You measure what reached users and check what each number counts. The release record names the people, the evidence and the undo. The licence scan and the delete test run in the gate. A person checks the words that go to people outside. Counsel's answer on the law is written down once, with its date. You can also still explain the code.

Check yourself, without scrolling up:

  • Which number does your team report about its agents, and does it count activity or delivery?
  • If a dependency under the AGPL merged today, what would stop it?
  • When was a delete last tested against every table and every outside copy?
  • Who signed your last release, and could they say what it will not undo?
  • Which part of your current codebase could you not explain with the agent closed?
Sources
1 lab

Labs

Lab 1

Practise this: Write the release record and stop the AGPL

Clone the starter: https://github.com/codeprepdev/agentic-engineering-lab-10-write-the-release-record. It is the lesson service of Lanes, booking software that swim schools in Ireland and the Netherlands use, in Node, with nothing to install. Libraries are copied into vendor/, one folder each with its own package.json. Release 31 goes out on Wednesday 9 December 2026 and adds a reminder email to each parent the evening before their child's lesson. An agent built it, its tests pass, and you are the named owner. Read the README and everything in release/ before you change anything.

Do the work below, with an agent or by hand. If an agent does it, give it each part as written and check its work against the module.

  1. The licence scan. Write scripts/check-licences.js. It exports readPackages(folder), which returns one { name, version, licence } for each library folder with a package.json (licence "" when the file has none), and checkLicences(packages, allowed), which returns the libraries that fail, each { name, version, licence, message }. A licence fails when it is missing or not on the allowed list. An expression such as (MIT OR Apache-2.0) passes when one choice is allowed, and A AND B needs both. Run as node scripts/check-licences.js [folder] (default vendor), it reads licences/allowed.txt, prints every library with its licence, and exits 1 naming each one that fails, with its licence.
  2. Stop the AGPL. Run the scan on the starter and read what it finds. Replace that library: write the small piece the service needs yourself, or copy in one under a licence on the list. Do not widen the allowed list. The scan then passes on vendor/.
  3. The gate and the rule. In .github/workflows/checks.yml, the checks job runs the scan and node --test, with nothing that lets it skip. Add a ## Dependencies section to AGENTS.md: a new library needs a licence on licences/allowed.txt, and node scripts/check-licences.js must pass.
  4. What the email carries. The reminder goes to an outside email provider. Send only what the reminder needs. The child's medical note is not part of that.
  5. Something you can switch off. A rollback cannot unsend an email. Ship the reminders off: a pool gets them only when its staff have set remindersOn: true on it, and a pool without the setting gets none.
  6. Your tests. Add tests for a pool with reminders off (remindersOn: false) and for checkLicences. Keep every test the starter has.
  7. The release record. Write RELEASE-RECORD.md with the module's eleven lines, one each, labelled as the module labels them (**Change:** … or a heading): Change, People, Evidence, Not read, Data, Personal data, Dependencies, Undo, Built with, Law, Measure. Every line points at something that exists: the materials in release/, the code, or a run you did. The Evidence line gives the counts from your own final node --test run, tests run and tests skipped. The Measure line gives the result the release is for and its baseline. Check what the dashboard's number counts before you use it.

Get node scripts/check-licences.js and node --test both passing on what you upload, with the output in front of you. Then upload the repository folder. The .git folder is left out, so the hidden tests mark your files. They build reminders from pools, children and lessons of their own. They run your scan on lists and folders it has never seen and on your own vendor/, and they work out your libraries' licences themselves. They check the workflow, the rule, your tests and the starter's (all there, none skipped). They read the record line by line for the facts each line can only get from the materials or from your run. The branch rule that makes the job required lives on the server, where the tests cannot check it: set it on your own copy if you can.

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