The team that builds Claude Code merged more than twice as many pull requests between June and September while the share that had to be reverted fell by more than 40%, on a codebase Claude writes about 90% of, according to a post by Addy Osmani, Morgan Westlee Lunt and Qing Wang published on October 15 and circulated by Osmani on X on October 26. The post sets out seven layers a change passes through and one rule for choosing them: "did a human read the code?" is an imprecise proxy for "what could go wrong with this change, and which check is the right one to catch it?"
Anthropic's monorepo went from about 2,500 changes a day in May to more than 30,000 in September, the post says, and the share of internal pull requests receiving substantive review comments rose from 16% to 54% once Claude's review was switched on. The stated goal is to reduce human effort per change while keeping the revert rate no higher than it is now.
Reserving and pricing code is arriving the same way, with agents writing the triangle refresh, the GLM rebuild and the exhibit faster than the actuary who signs can read them. Set beside a quarterly reserve review, five of the seven layers are things a reserving team already does by hand at quarter-end. Two have no equivalent on the actuarial side at all.
Key Takeaways
- The seven layers are pre-PR verification, an AI reviewer on every pull request, a blocking security review, required CI, risk-scaled human approval, a merge queue with flags and staged release, and detection with rollback.
- Layers one, two and five are the quarterly reserve review a team already runs by hand: the tie-out, the second actuary's read, and the sign-off that scales with how much reserve a change moves; layer four, that the whole job reruns clean from raw data, is the one most desks skip.
- The reviewer is tuned on incidents: past PRs that caused reverts form a daily test set, and after three rounds it asks the author to rethink the approach; one PR ran more than fifty rounds overnight.
- About 59% of what the reviewer kept flagging predated its first pass, which on a reserving desk is the spreadsheet logic nobody re-derived when it was ported to Python.
- The post's documentation is two files and a template: CLAUDE.md for conventions, REVIEW.md for what failure looks like, and a PR template for testing, risk and how to revert. A reserve file has the method memo and the pick rationale; it rarely says in advance what a bad pick looks like.
- The reserving incident is adverse development: $15.8 billion of it on US casualty in 2024, recognized years after the code that booked the reserves ran, with no flag to switch off.
The quarter-end a reserving team already runs
Take the quarterly review of a commercial auto book. The triangles are refreshed from the claims system, the totals are tied to the ledger, link ratios are selected, a tail is picked, the IBNR is booked and reconciled to last quarter, a second actuary reads the file, and the chief actuary signs. The first layer in the post is the tie-out. Claude runs the tests, the build and the linters and shows the output, and a subagent reviews the diff in a fresh context before a pull request exists. On a reserving desk the equivalent is the reconciliation tab: paid and incurred totals against the general ledger, the latest diagonal against the prior quarter's, the sum of parts against the booked total. The difference is who built the check. Most reserving scripts have no test to run, so an agent asked to verify has nothing to show.
The second layer is the peer review. Parallel agents look for bugs, verifier agents vote on each finding, only agreed findings are posted, tagged Important, Nit or Pre-existing, and every one is fixed or resolved with a reason. That is the second actuary's read of the reserve file, with one change: the reviewer never gets tired, and it reviews every change rather than the quarter-end package. The "resolve with a reason" rule is the part most desks would recognize from the audit workpapers, where every reviewer note gets a response before the file closes.
| Claude Code layer | What a reserving team does today | Fit |
|---|---|---|
| 1. Verification before the PR (tests, build, fresh-context subagent) | Tie-out of triangles to the ledger and to the prior quarter | Direct, where a check has been written |
| 2. AI review on every PR (parallel reviewers, verifier vote, fix or resolve) | Second actuary's review of the reserve file; audit-note responses | Direct, on every change rather than at quarter-end |
| 3. Security review that blocks the merge | Claims data access controls, handled outside the actuarial function | Exists, elsewhere |
| 4. Required CI (lint, types, cross-platform tests, build) | The whole job reruns clean from raw claims data to the exhibit | Rare in practice |
| 5. Risk-scaled human approval (none, one or two people; some paths always human; an agent's approval never counts) | Sign-off scaled to how much reserve the change moves; the chief actuary's name on the opinion | Direct |
| 6. Merge queue, feature flags, employees first, latest before stable | None; the booked reserve goes into the quarter's financials at once | A parallel run of a new method is the closest |
| 7. Fast detection and rollback; incident review asks which layer should have caught it | Watching development on the next diagonal; a restatement if it is bad enough | The outcome arrives quarters or years later |
Source: Osmani, Lunt and Wang, "How the Claude Code team does code review," October 15, 2026, read against a quarterly P&C reserve review.
Layer four is the one that separates a software team from most actuarial ones. Continuous integration means the whole job runs again from scratch on every change: lint, types, tests on every platform, a clean build. The reserving equivalent is a job that goes from the raw claims extract to the booked IBNR and the exhibit with no hand step in between, and runs that way every time. The CAS's chainladder-python does this for itself, running a pytest workflow and coverage reporting on each commit. Inside most carriers the reserve process still has a pasted diagonal, a manually selected factor and a workbook that only the person who built it can rerun, as the site's workflow guide set out in February.
Layer five is the one the profession already runs well. A classifier sets the risk tier from the change, not the author: low risk merges on green checks with no human, medium needs one person, high needs two, and billing, the auto-updater and CI workflows always need a person. An agent's approval never counts as a human's. Any reserving actuary knows the version: a formatting change to the exhibit goes through on a glance, a change to the tail factor on a $2 billion casualty book goes to the chief actuary, and the opinion carries a person's name whatever tools produced the number underneath it.
Incidents are the eval, and the reserving incident arrives late
The reviewer gets better from its own failures. Past pull requests that caused incidents or reverts, confirmed by the engineers who handled them, form a test set run against the reviewer daily, and noise is measured by what authors do with a comment: fixed, rejected, intentional or ignored. After three rounds the reviewer asks the author to reconsider the approach and later passes look only at the new diff; one CLI change went through more than fifty rounds overnight before that rule existed.
A reserving team has the same loop on paper. Every quarter the new diagonal tests last quarter's pick, Schedule P records how each year's booked reserve developed, and the opinion summary shows one-year and multi-year development against surplus. The timing is the problem. US casualty lines produced $15.8 billion of adverse prior-year development in 2024 on accident years booked in 2021 and earlier, per the site's Schedule P review, and this quarter's earnings calls have carriers describing the 2023 and later years as too green to touch, as today's reserve piece reports. A reviewer trained on incidents gets a handful per decade, each confirmed three to five years after the pick was made.
What can run daily is narrower: a reproducibility check that the same triangle and assumptions return the same reserve, the reconciliation to the prior quarter, and the reviewer's Pre-existing tag. About 59% of what the reviewer kept flagging predated its first pass, the post says. On a reserving desk that is the spreadsheet logic ported into Python without anyone re-deriving it, the Bornhuetter-Ferguson weighting that was hard-coded in 2016 and has been copied forward since, a defect an incident eval never sees because the incident is the reserve estimate itself.
Documentation that stays current, sign-off that scales
The post's last figure asks how anyone learns the code when machines do most of the reading. The team's answer is on-demand explainers, written by Claude for the slice of the codebase an engineer needs, in minutes and from the current code. For an actuary about to sign, the direction runs the other way: the signer has to understand how the number was produced, what it is sensitive to and where it is weak, and that understanding has to survive a question from the auditor's actuary or a state examiner. An explainer helps only as far as the actuary can test it against the code, which returns the question to layer one.
The documentation the post describes is three artifacts, all read by the reviewer before a human sees the change. A short CLAUDE.md states the project's conventions. A REVIEW.md, written by code owners, states what failure looks like in their part of the codebase, caps the nits, lists the paths to skip and requires file-and-line evidence for every finding. A pull request template covers testing, risk and how to revert. None is a report; each is an input to the next check, and each is wrong the moment the code moves unless it is maintained with the code.
A reserve file documents outputs instead. It has the method memo, the selected factors and the rationale for the pick, written so that another actuary could follow the reasoning and an examiner could ask about it. What it rarely has is the REVIEW.md question, what failure looks like in advance: a tail factor outside its historical range, a triangle that no longer reconciles to Schedule P, a development pattern that moved by more than the prior year's. That is the document a reviewer, human or agent, would check a reserving change against, and it is the one most desks have not written because the person who would catch those things has always been in the room.
On sign-off the fit is closer. The post's risk classifier, with its hard-coded paths that always need a person, is the materiality judgment every chief actuary already makes about which changes reach their desk, and its rule that an agent's approval never counts as a human's is the control the signature already imposes. Two of the seven layers still have nothing on the actuarial side: there is no staged channel for a booked reserve, and no flag to switch off when the next diagonal says the pick was wrong.