Sample report
AI code audit sample report: A sampled audit of agent-written pull requests
Our own private demo: Brindlewick, a fictional client whose pull requests a coding agent wrote, with five changes planted by us. Veriprajna built the repository and ran the audit, so it is an internal review, not independent assurance.
https://veriprajna.com/ai-services/ai-generated-code-audit/sample-report
The report: 18 agent pull requests, sampled, broken and read
The service page's report, filled in from one audit of our fictional client's repository, findings and gate map first. Every figure comes from recorded runs and their readings.
Breaking the changed lines, by group. Group a, random draw, 12 changes: 744 breaks; 559 noticed by the tests that ran (23 of them by timing out), 81 gaps, 16 no change in behaviour, 23 not worth a test, 26 not measured (planted by us: The billing tests CI skips), 39 unread past the read limit. Group c, chosen for risk, 6 changes, findings, never a rate: 313 breaks; 226 noticed, 21 gaps, 6 no change in behaviour, 16 not worth a test, 44 not measured (planted by us: The billing tests CI skips), 0 unread.
- Fictional, with changes planted by us. Brindlewick, its repository and every record in it are fictional, with made-up data. Five changes were planted by us and are labelled wherever a figure or finding uses one. No figure is a client result, and none is a rate for any real code.
- AI-written readings, AI spot-check, not a person's review. Our AI build agent wrote every reading, class, finding and severity. On our instruction an independent AI reviewer spot-checked them; the classes shown were corrected after that review. No person has reviewed them.
- Client roles, played by scripted steps. A scripted client-engineer step merged each change once every check that ran had passed, and made the four unmarked changes. A coding agent in the client's role wrote the five fixes. No person took part in any run, and no code review was simulated.
Executive summary
Results per group with n and the bound, the share of CI tests that ran, which checks reported, findings by kind and severity, closure marks and limits. No change IDs or locations.
Confirmed findings, ranked
Five findings with evidence, request and summary, fix guidance and severity notes, and failing tests as a patch labelled ours.
Gate map
Which checks reported, by check in the summary and per change in the annex; for each finding, re-runs and our judgement in separate columns.
Change ledger
Each audited change with its group, mark, break counts and findings, plus the draw's method and list.
Test edits read
Every touched test as read, including the planted line flagged as a loose assertion.
Lines the tests that ran did not notice
Each gap with its line and reason, by change, using the classes as corrected after the AI spot-check.
Coverage list
Changes not drawn, outside the frame or over the set's size, the test folder CI skipped and the unread breaks.
Recommendations, including where to hold agent autonomy
Gate changes first, then the paths where we would hold agent autonomy until a check exists.
Source: Recorded runs of our private demo. The audit's rules were written and hashed before the runs they govern, and a replay rebuilds every figure from the stored run files and readings; the run files stay in our private demo stack.
- Executive summary
No client commissioned this report. Veriprajna built Brindlewick's repository, its CI and its issue texts, had a coding agent write its pull requests, planted five changes and ran the audit. By our own rule an audit of code we built is labelled an internal review: This is one, not independent assurance.
What was audited. One repository with 28 merged pull requests: 24 written by a coding agent and marked as agent work (an agent branch name and an AI co-author trailer), and 4 unmarked changes by a scripted client engineer. The frame is every merged change with at least one changed executable line: 27, of them 23 marked and 4 unmarked.
- Group a: A seeded random draw of 12 marked changes.
- Group c: 6 changes chosen for risk by a written path rule, reported apart and never as a rate.
- Not drawn: The 4 unmarked changes, listed as authorship not recorded, not measured.
Group a, random draw, n = 12.
- Confirmed findings on 2 of 12 changes: One High, a value shaped like a live payment secret key committed in browser source code (planted by us); one Medium, invoices that ignore the tenant's currency (the coding agent's own).
- By check: Secrets 1 of 12 (planted by us); request and summary against the diff 1 of 12; tenant separation and authorisation 0 of 12.
- Test edits that weakened a test: 0 of 12, not detected at this sample size. A test weakened by us before its first commit sits in this sample; reading the diff flagged its line as a loose assertion, not as weakened.
- Breaking the changed lines: 744 breaks. 559 noticed by the tests that ran (23 of them by timing out), 81 gaps, 16 no change in behaviour, 23 not worth a test, 26 not measured (planted by us: The billing tests CI skips), 39 unread past the read limit.
- Changes with at least one gap: 9 of 12, one of them through the billing tests CI skips (planted by us).
The bound, as an illustration. Two-sided 95% Clopper-Pearson intervals for this frame only, shown to illustrate the method on a fictional repository with changes planted by us, never as a rate: Any confirmed finding 2.1% to 48.4%; secrets, and request and summary against the diff, each 0.2% to 38.5%; tenant separation and test weakening, each 0 to 26.5%; changes with a gap 42.8% to 94.5%. Each bound covers only what its check can detect.
Group c, chosen for risk, n = 6: Findings, never a rate. 2 findings, both planted by us: One Medium, a person with an account in one tenant can never accept an invitation to another; one Low, the agent's summary says sessions are revoked when an account locks and the code does not do it (its location was disclosed to us before reading).
Breaking the changed lines: 313 breaks; 226 noticed, 21 gaps, 6 no change in behaviour, 16 not worth a test, 44 not measured (planted by us: The billing tests CI skips), 0 unread.
Which tests ran (planted by us). At the latest commit CI ran 196 of the 231 tests the runners collect locally, counted by test. On 15 of the 18 audited changes CI ran fewer Python tests than it collected: One folder of billing tests, dropped from CI by a change planted by us, never ran.
Which checks reported. Every check that ran passed on all 18 audited merges. The client's secret scan was skipped on 10 of the 18: It scans one folder, and only when that folder changes. The fictional client's CI, this scan's limit included, was written by us.
Findings by kind and severity. 5 confirmed, 4 of them planted by us. High 1: A committed secret-shaped value (planted by us). Medium 2: Currency logic (the agent's own) and an invitation check across tenants (planted by us). Low 2: A summary claim the code does not hold (planted by us) and a CI test folder never run (planted by us). The secret scanner raised 2 raw hits at 1 location: 1 confirmed, 0 discarded (planted by us).
Re-test. One fix per finding, re-tested with the same pinned tools: All 5 closed, each marked "seen by us"; four of the five closed findings were planted by us.
What this sample cannot say. It does not clear unsampled code, and its intervals describe this frame only. A noticed break does not show that a test checks the right behaviour. It gives no overall score and no opinion.
- Confirmed findings, ranked
Confirmed means reproduced on the copy, or read against the code at the pinned commit and labelled read from code; a tool's output alone is never a finding. Severity follows the rule written before any run, and findings are ranked by severity. Every audited change was read for authorisation, tenant separation, input handling, secrets and new dependencies; none added a dependency.
F-01 High, planted by us: A value shaped like a live payment secret key is committed in browser source code.
- Where: PR-11, group a.
web/src/ config/ payments. ts, line 19, in browser source code underweb/. Nothing imports the constant and the repository has no bundler, so whether it would ship in a bundle is not shown. - IDs: CWE-798, Use of Hard-coded Credentials; ASVS 5.0.0 13.3.1.
- Evidence: gitleaks 8.30.1 rule
stripe-access-tokenon the change and on the file at the audited commit, read from code, and our failing test. The value is a fake one planted by us; it is never copied into this report and was never tried. - Request and summary: Not asked for in the request, and not mentioned in the agent's summary.
- Fix guidance: Remove the key from
web/, keep secret keys on the server, and rotate it, because it stays in git history. - Severity note: High, not Critical. The rule's Critical needs a live payment secret to be exposed, and whether this value is live was not tested.
F-02 Medium, the coding agent's own: Invoices ignore the tenant's currency unless the caller passes one.
- Where: PR-28, group a.
api/booking_ api/ billing. py,InvoiceService.create: The currency falls back togetattr(session, 'currency'), whichSessiondoes not have. - IDs: CWE-684, Incorrect Provision of Specified Functionality; no ASVS ID mapped.
- Evidence: Reproduced on the copy. For a tenant whose currency is JPY, an invoice created without a currency is GBP, and JPY lines are refused. Our failing test fails at the audited commit on the constructor argument it assumes (
tenants=), not on the currency itself; the GBP invoice is shown by the separate reproduction. - Request and summary: The request says the invoice takes the tenant's currency at creation; the agent's summary disclosed the fallback as best effort.
- Fix guidance: Give the invoice service the tenant directory, and use the tenant's currency when none is passed.
F-04 Medium, planted by us: A person with an account in one tenant can never accept an invitation to another.
- Where: PR-19, group c.
api/booking_ api/ invitations. py,InvitationService.accept: The duplicate-email check runs over every user in every tenant. - IDs: CWE-684, Incorrect Provision of Specified Functionality; no ASVS ID mapped.
- Evidence: Reproduced on the copy. With a user of that email in another tenant, accepting raises
InvalidInvitation; our failing test fails at the audited commit. - Request and summary: The request says accepting creates the user in the inviting tenant; the summary says the check covers the tenant's own users. Medium, because the change does not do what was asked.
- Fix guidance: Limit the duplicate check to the inviting tenant's users.
F-03 Low, planted by us, not blind: The agent's summary says sessions are revoked when an account locks; the code does not do it.
- Where: PR-10, group c.
api/booking_api/auth.py,sign_inandLoginGuard.record_ failure: No call toSessionStore.revoke_user. - IDs: CWE-1464, Improper Session Invalidation; no ASVS ID mapped.
- Evidence: Reproduced on the copy. A session opened before the lock is still returned during it; our failing test fails at the audited commit. This plant's location was disclosed to us before reading.
- Request and summary: Revocation was not in the request; the summary claims it.
- Fix guidance: Revoke the user's sessions when the account locks, or correct the record of what the change does.
- Severity note: Low by the rule's letter, whose classes cover controls that were requested. A reader relying on the summary would believe a session control exists that does not.
F-05 Low, planted by us: CI never runs the billing tests.
- Where: Every audited change from PR-07 on.
ci/pipeline.jsonruns pytest on the auth, bookings and tenants test folders only;api/tests/billingis collected locally and never run. - IDs: No CWE ID mapped.
- Evidence: The stored check records list no billing test, against 17 to 35 billing tests collected locally at the same commits. Re-run on the copy, the pipeline's commands collect no billing test.
- Corrected after the readings were frozen: The frozen reading said 17 to 26, written from the records up to PR-16 before the later records were tallied. The number of tests changed, not the finding.
- Request and summary: The change that dropped the folder, PR-06, holds no changed executable line, so it is outside the frame and was not audited; the finding comes from the audited changes' records.
- Fix guidance: Run every API test folder, for example
pytest -q api/tests, so a new folder cannot be left out. - Severity note: Low by the rule's letter, which has no class for a CI gap.
CWE and ASVS IDs were mapped after the readings were frozen, as our judgement, and were not part of the AI spot-check.
Failing tests, labelled ours. For F-01 to F-04, one test each, delivered as a patch file; all 4 fail at their audited commit.
- Where: PR-11, group a.
- Gate map
Which of the client's checks reported on each change, from the stored check records. For each finding, two columns kept apart: The checks we re-ran on the pinned copy, with their result, and the check we would expect to see it, labelled our judgement. We never state as fact that a check we did not run would have caught something.
Finding Re-ran on the pinned copy The check we would expect to see it (our judgement) F-01 All seven checks exit 0: They passed and did not see it. The secret scan's record says skipped; re-run, it exits 0 A secret scanner over web/F-02 All seven checks exit 0 A billing test that creates an invoice for a tenant whose currency is not GBP, without passing a currency, if billing tests ran F-03 All seven checks exit 0 A test that checks a session opened before a lock F-04 All seven checks exit 0 A test with the same email in two tenants F-05 All seven checks exit 0 A check that compares CI's test paths with the test folders The seven checks:
api-tests-auth,api-tests-bookings,api-tests-tenants,web-typecheck,web-tests,scripts-testsandsecret-scan.Annex, per change (the pull-request head and the merge):
- PR-01, PR-03, PR-04: One
api-testsjob, before the billing folder left CI. - From PR-07 on: Three API jobs, for auth, bookings and tenants, and no billing job.
- Every check that ran concluded success on every head and merge.
secret-scanskipped on both records of PR-03, PR-07, PR-09, PR-11, PR-17, PR-20, PR-21, PR-23, PR-26 and PR-27; it ran on the other 8.
- PR-01, PR-03, PR-04: One
- Change ledger
The engineering annex. Every audited change carries both marks: An
agent/branch name and an AI co-author trailer. A mark shows an agent took part, not who wrote each line.- Draw: A fixed seed, recorded in the engineering files. The marked changes in the frame are ordered by the SHA-256 of the seed and the pull-request number, and the first 12 are taken.
- Group a: PR-01, PR-03, PR-04, PR-07, PR-09, PR-11, PR-13, PR-17, PR-20, PR-21, PR-22, PR-28.
- Group c path rule: Changed source lines on paths for sign-in and sessions, tenant scoping or payments; up to 6, most matching lines first.
- Group c: PR-10, PR-16, PR-19, PR-23, PR-26, PR-27.
Breaks are listed as noticed (timeouts included), gap, other (no change in behaviour plus not worth a test), and not measured or unread.
Change Group Breaks Findings PR-01 a 14, 0, 0, 0 None PR-03 a 17, 0, 0, 0 None PR-04 a 56 (20 timed out), 3, 3, 0 None PR-07 a 59, 5, 0, 0 None PR-09 a 32, 11, 3, 0 None PR-10 c 32, 3, 5, 0 F-03 (planted by us) PR-11 a 17, 2, 8, 0 F-01 (planted by us) PR-13 a 17, 2, 3, 0 None PR-16 c 0, 0, 0, 43 not measured (planted by us) None PR-17 a 16, 0, 0, 0 None PR-19 c 38, 4, 8, 1 not measured F-04 (planted by us) PR-20 a 76, 17, 8, 5 unread None PR-21 a 204 (3 timed out), 21, 4, 34 unread None PR-22 a 32, 6, 7, 1 not measured None PR-23 c 41, 1, 3, 0 None PR-26 c 34, 1, 4, 0 None PR-27 c 81, 12, 2, 0 None PR-28 a 19, 14 (CI skipped their tests, planted by us), 3, 25 not measured (planted by us) F-02 F-05 (planted by us) sits on every audited change from PR-07 on: CI never ran the billing tests there. PR-28's 14 gaps are all caught by those billing tests, which CI skipped. Median change size: 111 changed executable lines on the audited changes and 83 across the frame, added plus removed, tests included.
- Test edits read
Every changed line in a test file of the 18 audited changes was read.
- Counts: 141 test definitions added; 5 existing tests touched; 1 rewritten, with its old assertions kept; 0 weakened; 0 skip markers at the audited commits; 2 loose assertions in new tests, one of them planted by us.
Each test edit, as read:
- PR-01
test_session_ expires_ after_ lifetime: Rewritten and renamedtest_session_ never_ outlives_ absolute_ limit. Both old assertions are kept (alive at 11h59m, gone at 12h); a use every 20 minutes was added before them, because the requested idle timeout would otherwise end the session first, plus a check thatexpires_atis capped at 12h. Stronger, not weaker. - PR-01
test_revoke_ user_ removes_ all_ sessions: Edited, no assertion change; it uses the new_user()helper. - PR-04
test_service_ validates_ and_ stores_ discount: Added, loose assertion. Its first check is only that a positive total comes back, not the expected amount. The other new tests pin the exact totals ofinvoice_totals, but this loose line was the only check that the service stores the discount. The line was planted by us: The coding agent's own version checked the exact total. The diff holds only the committed test, so the reading flagged a loose assertion and could not identify it as weakened. - PR-09
exportBookings exports confirmed bookings in start order: Edited, no assertion change. It passes the tenant id the new signature requires, and a second tenant's row in the shared fixture makes it stricter. - PR-09
exportBookings can include cancelled bookings: Edited, no assertion change; it passes the tenant id, with the same expected row count. - PR-11
validateBrand rejects unknown brands: Added, loose assertion (the coding agent's own). It checks only that some message comes back. - PR-20
summarise adds tax per line: Edited, no assertion change. The cart moved to a shared constant and one assertion was added (discountMinoris 0); none removed.
- Lines not noticed
Tools: mutmut 2.5.1 for Python, and StrykerJS 10.1.1 with its vitest runner for TypeScript and JavaScript, default operators, no mutant filter beyond the changed lines. Up to 25 surviving breaks were read per change per language; the rest are counted as unread. On a run where CI skipped tests, a break on a line that no test CI ran executed reads not measured.
Classes corrected after a review. An AI spot-check of the build agent's readings found four break readings wrong. One break first read as a gap changes no behaviour (PR-04), one first read as not worth a test is a gap (PR-20), and two PR-21 reasons described other lines. The figures and reasons here are the corrected ones; the frozen readings are kept beside them.
Each gap, with its line and the reason:
PR-04 (group a). 56 noticed, 20 of them by timing out under machine contention; run alone, 8 of those 20 survive, one a gap.
- A discount of zero percent would be refused; the request allows 0 to 100 and no test uses zero. (billing.py:51)
- Any percentage below 1 would be refused; no test uses one. (billing.py:51)
- An invoice whose subtotal is above 0 but at most 1.00 would keep its full net while reporting the discount; no test has such a subtotal. (billing.py:76)
PR-07 (group a)
- The 'required', 'format', 'month' and 'too far' messages could each be empty; only the 'expired' message is checked to be non-empty. (cardValidation.ts:44, 45, 46, 48)
- Without the ^ anchor, input with leading characters (for example 'x12/27') is accepted as a valid expiry. (cardValidation.ts:68)
PR-09 (group a)
- A whitespace-only tenant id would be accepted and give an empty export instead of a refusal; tests use '' and undefined only. (bookingsExport.js:20)
- The command-line entry, run only when the file is executed directly, is never run by a test: It could do nothing, run on import, or exit 0 on failure, and every test would pass. (runBookingsExport.js:21 to 25)
PR-10 (group c)
- A 16-minute failure window passes every test, and a failure exactly 15 minutes old would still count: No test sits on the window's edge. (auth.py:17, auth.py:136)
- With 'or', the lookup takes the first user of the tenant, or any tenant's user with that email: Signing in as one account can return another account's session. The tests give both users the same password and check only that some session comes back. (auth.py:162)
PR-11 (group a)
- 3-D Secure could be switched off and no test notices; the request names this setting. (payments.ts:14)
- Mastercard could drop out of the accepted list; the default-list tests use Visa and American Express only. (payments.ts:15)
PR-13 (group a)
- With 'break', the buffer check stops at the first overlapping booking, so a later booking inside the buffer is missed. (bookings.py:89)
- A booking ending exactly when the next one starts, with no cleaning time, would be allowed. (bookings.py:91)
PR-19 (group c)
- The invite email check has no test: An address starting with '@', ending with '@', or with no '@' would be accepted. (invitations.py:64)
- A manager could no longer revoke an invitation for the manager role; tests cover a lower and a higher role only. (invitations.py:84)
PR-20 (group a)
- A coupon whose expiry cannot be read would never expire, and a coupon would also be refused at the exact expiry instant. (checkout.ts:48, checkout.ts:50)
- Minimum-spend coupons could be refused even when the minimum is met, including exactly at it; no test applies one that meets its minimum. (checkout.ts:52)
- Percent validation is never tested: A negative or fractional percent would be accepted, and a negative percent raises the price. (checkout.ts:62)
- The original refuses a percent above 100; with this break a 150% coupon is accepted and the discount, capped at the subtotal, turns the order free. (checkout.ts:62)
- A 100% coupon would be refused. (checkout.ts:62)
- Amount-off validation is never tested: A negative amount raises the price, and a fractional one puts non-integer minor units in the total. (checkout.ts:66)
PR-21 (group a)
- Without the $ anchor, an address with trailing characters (for example '[email protected]!') would be accepted. (customers.js:10)
- A valid address with a one-character domain label, first or after the first dot, would be refused. (customers.js:10)
- The email length limits are never tested: An over-long address would be accepted, or a valid one refused. (customers.js:13 to 15)
- A local part starting or ending with a dot (for example '[email protected]') would be accepted. (customers.js:16)
- A row with a single empty field would be dropped silently as blank instead of rejected with 'missing email'. (customers.js:37)
- A whitespace-only line would be reported as a rejected row instead of skipped as blank. (customers.js:37)
- A carriage return inside a quoted field is never tested, so a CRLF file's multi-line names could keep \r or lose the line break. (customers.js:54)
PR-22 (group a)
- A one-week series would be refused, although the request allows 1 to 52 weeks. (bookings.py:11, bookings.py:127)
- Single bookings would carry series id '', and cancelling series '' would cancel every single booking of the tenant. (bookings.py:47)
- A series whose slot is exactly 8 hours would be refused. (bookings.py:130)
- Every series would get id sr_1, so cancelling one series would cancel every series; no test creates two. (bookings.py:133)
- The returned list would include bookings already cancelled before. (bookings.py:154)
PR-23 (group c)
- Input of exactly 4, 8 or 12 digits would get a trailing space. (cardFormat.ts:27)
PR-26 (group c)
- A refused switch would throw a TypeError instead of the membership error, after clearing the cache and moving it to the refused tenant; the test accepts any error. (tenantSwitcher.ts:70)
PR-27 (group c)
- A missing tenant id would no longer be refused, and reconciliation would silently match nothing; the test passes '' only. (reconcile.js:19)
- An invoice with no or an empty reference would be accepted silently, and so would a total in fractional minor units. (reconcile.js:24, reconcile.js:27)
- A payout with no charges list would raise instead of counting as empty. (reconcile.js:58)
- The contents of a matched entry are never checked, so an empty record would pass. (reconcile.js:77)
- The invoice total in the totals is checked only when it is zero, so subtracting instead of adding would pass. (reconcile.js:102)
PR-28 (group a): Every gap here is caught by the billing tests CI skips (planted by us). The tests that ran reach these lines but check no amounts.
- A line's net divided by the quantity; tax divided by the rate; credit notes raising the refundable amount; every sum starting at 1. (billing.py:24, 95, 191; money.py:22)
- An explicit invoice currency replaced by the first line's; a discounted invoice raising; discount None instead of zero; a currency's decimal places changed. (billing.py:70, 82, 84; money.py:9)
Classes other than gaps are listed per break, with their reasons, in the engineering files.
- Coverage list
Everything not measured, and why.
- Unmarked changes not drawn, authorship not recorded: PR-05, PR-12, PR-18, PR-24.
- Marked changes not drawn: PR-02, PR-08, PR-14, PR-15, PR-25.
- Matched the risk rule but over the set's size of 6: PR-02, PR-12, PR-24, PR-25.
- Outside the frame, no changed executable line: PR-06, CI configuration only.
- Tests that did not run in CI, and the lines only they reach:
api/tests/billingfrom PR-07 on, dropped by a change planted by us. On those runs, a break on a line that no test CI ran executed reads not measured: All 43 on PR-16 (planted by us). - Surviving breaks past the read limit, unread: 39 in group a, 0 in group c.
- Requests: Every audited request was stated in its pull request; none was held only in an outside tracker.
- Java and other languages: None in this repository.
- Error paths, as a check of their own: Not part of this sample's checks. Breaks on new error handling are counted with the other breaks on changed lines.
- Recommendations
A recommendation, never a clearance: A path not named is not cleared. The decision stays with the client.
- 1. Run every API test folder in CI (
pytest -q api/tests), and fail CI when a test folder is run by no check. - 2. Run the secret scanner on every change and every folder, not only
api/whenapi/changes; rotate the key reported in F-01. - 3. Hold agent autonomy on sign-in and session code until a test pins the account lookup, with two users who have different passwords, and the lockout window's edge.
- 4. Hold agent autonomy on billing and money code until the billing tests run in CI.
- 5. Ask the agent to state in each pull request what it changed and nothing else, and check its claims about security controls against the diff before merge.
- 1. Run every API test folder in CI (
- Re-test and closure
One fix per finding, written by a coding agent in the client's role as a fix pull request, and re-tested with the same pinned tools and operators, on the fix changes only.
- Closure marks: All 5 closed, each marked "seen by us": F-01, F-02, F-03, F-04 and F-05. F-01, F-03, F-04 and F-05 were planted by us.
- Breaking the fixes' changed lines: 9 breaks; 7 noticed, 1 gap, 1 not measured.
- The one gap is on the F-02 fix's key line. That fix was re-tested on its own branch, where CI still skipped the billing tests (planted by us; F-05 was fixed separately). F-02 still closes, because our failing test passes at the fix commit.
- Planted by us
Five changes were planted by us, each a separate recorded edit to the coding agent's output. The rest of the 24 agent pull requests is the coding agent's own; the starting code, the CI and the four unmarked changes were written by our AI build agent. Every reading was frozen and hashed before the planted list was opened, and the comparison changed no reading.
Found blind means blind to location only: The five kinds of plant were known to us beforehand, and one plant's location was disclosed before reading.
- P1, a test edit weakened (PR-04): Partly found. Flagged as a loose assertion in a new test, not identified as weakened: The diff holds only the committed test, and the agent's exact-value version was never part of the client's material. Restoring the original assertion changes no break outcome on PR-04.
- P2, a missing tenant filter (PR-19): Found blind, as F-04, by the request and summary reading and the tenant separation read; reproduced on the copy.
- P3, a fake key in a
web/configuration file (PR-11): Found blind, as F-01, by reading and by the secret scanner; the client's own secret scan was skipped on this change. - P4, a summary claiming work the diff does not hold (PR-10): Not blind. Its location was disclosed before reading, so it is never counted as found by the audit; it is reported as F-03.
- P5, CI configuration skipping one test folder (PR-06): Found blind, through other changes, as F-05. PR-06 is outside the frame, so its own summary, which names a billing check the merged configuration does not hold, was not read.
Counts, planted by us and never a rate: 3 of 5 found blind, 1 partly found, 1 not blind, 0 missed.
Not planted: F-02, and the gaps in the coding agent's own tests. PR-28's 14 gaps show because CI skipped the billing tests (planted by us).
How the audit ran, and what this sample does not show
What this sample does not show
- Your code, or a rate for any real repository. One fictional repository, with five changes planted by us.
- Code outside the sample. The changes in the coverage list were not audited, and nothing here clears them.
- Whether a noticed break's test checks the right behaviour. Test edits were read for that; a noticed break alone does not show it.
- Java. The repository has none, so no Java run took place.
- Tests that need outside services. Every test here ran on the copy; none needed a client engineer's run.
Network off, and no secret tried
- Every run of client code had the network off, under a macOS sandbox profile that denies network. StrykerJS runs allowed the loopback interface only, with their listeners bound to 127.0.0.1.
- Each stored run record holds a probe: An outbound connection and a name lookup. 96 recorded probes, all refused: One per stored run record, not one per tool execution.
- The secret scanner, gitleaks 8.30.1, has no verification step, so no secret was ever tried. The fake key matches the scanner's rule by format only.
Breaking lines: Tools, exit codes and timeouts
- Pinned tools: mutmut 2.5.1 with pytest 8.4.2 on Python 3.9.6, given each change's diff; StrykerJS 10.1.1 with vitest 3.2.7 and TypeScript 5.9.3, given each run of changed lines. Default operators.
- Flaky tests: Each baseline ran 3 times per language per change; 0 flaky tests.
- An exit-code rule, added before use. mutmut 2.5.1 counts only pytest exit code 1 as a failure, so a break that stops the tests from importing would read survived. A rule written and hashed first had every Python survivor re-run for its exit code: On the audited changes, 0 of 129 re-run survivors failed it, and 2 multi-line breaks were not re-applied.
- Timeouts under contention. PR-04's counted run shared the machine with other runs, and its 20 timeouts count as noticed, as the rules say. Run again alone, kept beside it and not counted: 0 timeouts, 48 noticed, 4 gaps, 5 no change in behaviour, 5 not worth a test.
One line, end to end
One line, end to end. PR-04, billing.py line 51. Original line: if discount.value < 0 or discount.value > 100: Broken line: if discount.value <= 0 or discount.value > 100: The tests that ran did not notice: A gap. The whole CI test set at that commit matched its stored record: 38 API, 25 web and 17 scripts tests, same outcomes. A local test of ours passes on the original line and fails with the line broken.
PR-04, billing.py line 51, the zero-discount gap. Its < was broken to <=, so a 0% discount would be refused, and the tests that ran did not notice.
The whole CI test set at that commit was run on the copy and matched its stored record: 38 API, 25 web and 17 scripts tests, with the same outcomes. A local test of ours passes on the original line and fails with the line broken.
Named paths, at the latest commit, no diff
Every executable line of a named path broken, one run per language:
- Python,
api/booking_api/auth.py, 139 lines: 105 breaks; 89 noticed, 5 gaps, 6 no change in behaviour, 5 not worth a test, 0 not measured, 0 unread. - TypeScript,
web/src/payments/, 225 lines: 330 breaks; 268 noticed (1 by timing out), 16 gaps, 6 no change in behaviour, 8 not worth a test, 0 not measured, 32 unread. - JavaScript,
scripts/export/, 61 lines: 123 breaks; 93 noticed, 21 gaps, 1 no change in behaviour, 8 not worth a test, 0 not measured, 0 unread.
The client's script, from a fresh clone
A readable script for the client's engineer, run from a fresh clone of itself and of the repository, repeats the test-strength step.
- Result: 17 of 18 changes equal; PR-04 differs only on its timed-out breaks and matches our quiet re-run.
- How they were compared: As multisets of outcomes, a rule adopted after the first comparison, whose dictionary form collapsed StrykerJS breaks sharing a key and marked PR-21 unequal.
Who wrote what, and in what order
- Our AI build agent wrote the fictional repository, its CI, the issue texts, the four unmarked changes and the five plants; in the audit, it wrote every rule, reading, class, finding and severity.
- A coding agent, , wrote every line of the 24 agent pull requests apart from the plants, and the five fixes. For its pull requests it had no tools: It was reached through a second access route to the model, and each reply was one JSON object holding whole-file replacements, a title and a summary.
- Rules before runs. The audit rules, the re-test and client-script rules, and the exit-code rule were each written and hashed before the runs they govern.
- Readings frozen before the planted list was opened. Some mechanical runs finished after the freeze and after the list was opened: The client-script runs of PR-16, PR-19, PR-23, PR-26 and PR-27, the one-line test and the five gate re-runs. Their inputs were fixed before the freeze, and they hold no reading and changed none, but they did not run blind to the list.
- Corrections kept apart. F-05's test count was corrected after the freeze, and the AI spot-check's class corrections sit in their own hashed file; the frozen readings are unchanged.
- Nothing dropped. No run was dropped or re-run without disclosure. The first reproduction output was overwritten because it printed the fake key's value; the re-run's outcomes were identical.
Machine time, not a person's hours
Breaking the changed lines of the 18 changes took 1464.7 seconds of machine time, and the secret scanner 92.32 seconds. The tests CI runs at the latest commit take 3.227 seconds in Python, 1.138 in TypeScript and 0.964 in JavaScript, the median of 3 runs. Other work shared the machine at times.
Know what your tests and checks miss in your agents' pull requests
This sample is our own fictional repository. An audit of yours draws from your merged changes, and it starts with a short discovery call.
- Email or WhatsApp us
- Reply within 1 business day
- Free 30-minute discovery call
- Written scope and fixed fee within 2 business days of the call



