Chapter 07The platform·~15 min read

A proof bundle, end to end: KID validation on a bill-payment form

A real, runnable and entirely synthetic example of the evidence a change should carry: a video, step screenshots, a Playwright trace, tests that were first seen failing, a raw API transcript, basic accessibility checks and a manifest with a hash for every file.

Engineering Product Security & compliance

Key takeaways

  1. Real output, synthetic world. One command, tools/demo/run.sh, made every file on this page on 24 November 2026; no real customer, account or money is involved, and the commit hash is a labelled demo value.1,2
  2. Verdict PASS on five checks: 23/23 unit and API tests, a red check, 42/42 walkthrough assertions with a 25.8-second video, 97/97 basic accessibility checks and 6/6 API transcript checks.2
  3. The red check matters most. Seven of the 12 new KID tests fail on the old code, which proves the tests can fail at all.2
  4. The gaps are named. No MOD11 KIDs, 0↔9 digit swaps, other browsers, real devices or screen readers;1 in a real bank the MOD11 gap alone would send this change back (inference).
  5. Text gates, pixels help. Assertions, test reports and the HTTP transcript decide the verdict; the video and screenshots make the change quick to understand.
  6. In production the verifier makes these files, not the agent. verify-run produces them, verify-seal writes the manifest, the notary signs it and S3 Object Lock keeps it. This demo is unsigned: it shows the format, not evidence.
07.1

The change: a check digit on the KID field

A coding agent added a check digit to the KID field of a synthetic bill-payment form, in the browser and in the API. This page walks through the bundle it attaches to its pull request (PR), which lets a reviewer judge the change without running it.1

The user story is a typo: a customer paying an electricity bill types KID 0045871233692 instead of 0045781233692. The old form only checked for 2 to 25 digits, so the typo went through. Now the form sees that the last digit does not match the computed check digit and shows an error next to the field. The API refuses the same KID too, so a client that skips the browser cannot get round the rule.5,6

Norwegian term

KID (kundeidentifikasjon, customer identification): the reference number on a Norwegian invoice that tells the payee which invoice a payment settles. Its last digit is a check digit. Real KIDs use MOD10 (the Luhn algorithm) or MOD11, where the check digit can be a hyphen; this demo implements MOD10 only.5

Synthetic, and labelled as such
  • The app (Demo Bank: Pay a bill), its customer, accounts, payees and amounts are invented, and every screen carries a "Synthetic demo" banner.
  • The repository demo-bank does not exist; commit 4b3f198… is the SHA-1 hash of diff-summary.txt, not a real commit.2
  • No agent ran, and neither did the production chain this report recommends: the scripts in tools/demo/ made the files in 34 seconds (01:25:21 to 01:25:55 UTC, 24 November 2026), with the business date pinned and every random input seeded.2
  • The form copy (the "Valid KID" message and the "About KID" panel) was written with the demo app and is not part of the diff.1
The bundle at a glance
How a proof page could summarise this change. Each artifact tile opens the raw file.
Demo · Add MOD10 check-digit validation for KIDagent/kid-mod10-validation (demo) · 4b3f198 (demo value) · synthetic · not notarised
Checks · verdict pass
  • Unit + API tests23/23
  • Red check on the old code7 of 12 fail
  • UI walkthrough42/42 · 25.8 s
  • Accessibility, basic (not axe-core)97/97
  • API transcript checks6/6
Not covered
  • MOD11 KIDs
  • 0↔9 swaps (MOD10 limit)
  • Browsers other than Chromium
  • Real mobile devices
  • Screen readers, manual accessibility
  • Human review of the change
Left: what passed. Right: what nobody checked. Assembled by hand from manifest.json; in production a trusted renderer draws this from the notarised manifest only (see Verification & proof bundles). Illustrative mockup; values from manifest.json and README.md.

The diff: 45 lines in two validators, 172 lines of tests

Three files changed: 217 lines added and 6 removed. Each validator, Python for the API (kid.py) and JavaScript for the browser (app/kid.js), gains the same MOD10 function, one rule, one error message and updated comments: 45 added lines between them. The rest is a new test file.2,5

Most of the change is tests
Lines added per file (217 in total; 6 lines removed)
A reviewer reads the 45 lines added to the two validators closely; the 172 lines of tests matter because the red check in 07.3 shows they can fail. Source: diff-summary.txt and manifest.json.5
The API validator change in kid.py, verbatim 29 lines

The browser validator, app/kid.js, gains the same function in JavaScript.5

diff-summary.txt · kid.py, two hunksverbatim excerpt · … marks a cut
diff --git a/tools/demo/kid.py b/tools/demo/kid.py
…
@@ -29,6 +35,19 @@ def normalize(raw) -> str:
     return re.sub(r"\s+", "", "" if raw is None else str(raw))
 
 
+def mod10_check_digit(body: str) -> str:
+    """Return the MOD10 (Luhn) check digit for a string of digits."""
+    total = 0
+    for i, ch in enumerate(reversed(body)):
+        d = int(ch)
+        if i % 2 == 0:  # every second digit from the right of the body is doubled
+            d *= 2
+            if d > 9:
+                d -= 9
+        total += d
+    return str((10 - total % 10) % 10)
+
+
 def validate_kid(raw) -> KidResult:
     kid = normalize(raw)
     if not kid:
@@ -37,6 +56,8 @@ def validate_kid(raw) -> KidResult:
         return KidResult(False, "not_digits", kid)
     if not MIN_LEN <= len(kid) <= MAX_LEN:
         return KidResult(False, "length", kid)
+    if mod10_check_digit(kid[:-1]) != kid[-1]:
+        return KidResult(False, "check_digit", kid)
     return KidResult(True, None, kid)
The API side of the change: a MOD10 check digit computed over all digits but the last, compared with the last. Full diff (14 KB), including app/kid.js and the new tests.
07.2

Watch it: 26 seconds from typo to receipt

The video is the quickest way to understand the change: a scripted Playwright run in Chromium types the wrong KID, sees the error, fixes it, confirms and gets a receipt. The chapter buttons jump to each step.7

The walkthrough, with chapters
walkthrough.mp4 · H.264 · 1280×800 · 25 fps · 25.8 s · 265 KB
Synthetic demo: scripted Playwright walkthrough in Chromium, 25.8 s, H.264; the pointer is a drawn overlay. Chapter times come from walkthrough.vtt and were measured during the run. Source: walkthrough.mp4, walkthrough.vtt, walkthrough.json.7
Deep dive: how the recording was made and checked 1 min

Three details matter when you judge a recording like this. Typing is real keyboard input with delays, not a script that sets field values. The mouse pointer is drawn on top of the page, because headless Chromium renders none; it is hidden for the screenshots. And the first 0.32 seconds of the recording, while the page loaded, were cut so the video opens on the overview; the chapter times were shifted to match.1

The video was checked like everything else: it is H.264 at 1280×800, the poster image is pixel-identical to the first frame, and the first frame matches the overview screenshot with a structural similarity (SSIM) of 0.9936 against a floor of 0.98.7

Playwright has offered video receipts for agents since version 1.59 (April 2026), which added a screencast API with chapters and action overlays and called the result "agentic video receipts". This demo uses Playwright's standard video recording instead and draws its own pointer.1,8

Step screenshots
Thumbnails open the full-size PNG
  • Demo Bank account overview: three synthetic accounts with balances, four recent transactions and an empty scheduled-payments list, under a yellow synthetic-demo banner.
    1 · Account overview. Three synthetic accounts and no scheduled payments yet. 1280×800.
  • Pay a bill form with KID 0045871233692 outlined in red and the error: This KID is not valid (the check digit does not match). Check the number on your invoice.
    2 · Mistyped KID rejected. After Continue with 7 and 8 swapped: inline error, field marked invalid.
  • The same form with KID 0045781233692 and a green message: Valid KID (check digit OK).
    3 · KID corrected. The check digit matches and the error is replaced by a confirmation.
  • Confirm payment screen: 1 249,50 kr to Nordlys Energi AS, KID 0045 7812 3369 2, due 30.11.2026, from Regningskonto, with a Confirm and pay button.
    4 · Confirm. The corrected KID, grouped for reading, with amount, payee, due date and account.
  • Payment scheduled receipt showing reference DB-20261124-0001, status Scheduled and the corrected KID.
    5 · Receipt. The reference returned by the API, DB-20261124-0001, with status Scheduled.
  • Mobile layout of the payment form: the mistyped KID field outlined in red with the check-digit error below it.
    6 · Mobile. The same error at a 390×844 viewport, device scale 2. Thumbnail cropped to the field; the PNG shows the whole screen.
Each screenshot is a state the walkthrough asserts on, so a reviewer can check copy, layout and the error at full resolution. In production, verify-run stamps base and head screenshots with the commit SHA and "TEST DATA" instead of the demo banner. Source: README.md and walkthrough.json.1,7
07.3

What the checks say: the red check matters most

All five automated checks passed. The red check matters most, because it shows that the new tests can fail at all; without it, 23 green tests could be 23 tests of nothing.2

The five checks in manifest.json
CheckResultDetailRaw file
Unit and API testsPass23 tests: 23 passed, 0 failed, 0 errors, 0 skipped; includes 5 seeded property tests and 1 browser/API parity testtest-report.xml
test-output.txt
Red check: new KID tests against the pre-change validatorPass7 of 12 KID tests fail on the old code, as they shouldtest-output.txt
UI walkthrough (Playwright, Chromium)Pass10 steps, 42 of 42 assertions; video 25.8 swalkthrough.json
Basic accessibility checksPass97 of 97 on 6 screen states plus keyboard focus order (not axe-core)a11y-report.json
API transcript checksPass6 of 6 over 6 real HTTP exchanges (idempotency and server-side KID validation)api-transcript.txt

The red check: tests that were seen failing

After the green run, the script runs the same 12 KID tests against a saved copy of the old validator. Seven fail, and that is the point: "A check that you have never seen fail proves nothing," as pstack's formal-verification skill puts it.9 GitHub's guidance on reviewing agent PRs asks for the same evidence: "require a test that fails on the pre-change behavior".10 In production every new check must be seen failing first, and money and ledger changes on the highest review tier, T2, add red/green runs as a standard step (see Verification & proof bundles).

Property tests and parity

Hand-picked examples only catch the typos someone thought of, so property tests generate inputs from a fixed seed (20261124) that replays any failure exactly. They rejected all 242,415 single-digit substitutions and 21,852 adjacent swaps; the other 472 swaps were a 0 swapped with a 9, which MOD10 cannot detect, and the test asserts them as a known limit instead of hiding them. A parity test confirms that the browser and API validators agree on 3,000 random inputs.11

Deep dive: the test run, with the red check's output 2 min

The five KID tests that still pass on the old code check things it already did right: it accepted valid KIDs (two tests), reported format errors, ignored spaces, and its browser and API versions agreed.11

The property tests generated 2,000 valid KIDs and checked that all were accepted, then tried every single-digit substitution in a seeded set of 2,000 KIDs, and every swap of adjacent, different digits in another 2,000. The parity test runs the browser validator in Node.js and compares each verdict with the API's; if the two drifted apart, the form could accept what the server refuses, or the reverse.11

The JUnit-style XML report is what continuous integration (CI) systems read. In production, Allure 3's --expect-tests option also checks that every expected suite actually ran, which catches a suite that was quietly skipped.11,12

The test log: green run, property statistics, red check

Open the full log: test-output.txt (6 KB) and test-report.xml (6 KB).

All 42 walkthrough assertions, step by step 42 rows
Assertions in walkthrough.json, by step (all 42 passed)
AssertionRecorded value
1 · Account overview · 4
overview shows 3 synthetic accounts
balance formatted nb-NO (space thousands, comma decimals, kr)24 318,50 kr
synthetic-demo banner visible
basic accessibility checks pass (overview)
2 · Pay a bill: mistyped KID is rejected · 11
known payee looked up from account numberRecipient: Nordlys Energi AS
KID error shownThis KID is not valid (the check digit does not match). Check the number on your invoice.
error says the check digit does not match
KID field has aria-invalid=true
focus moved to the KID field
aria-live=polite region contains the problem count (DOM only; no screen reader used)There is 1 problem in the form.
still on the form (did not continue)
no payment request was sent
other fields valid (only 1 error)
amount reformatted nb-NO1 249,50
basic accessibility checks pass (form-invalid-kid)
3 · KID corrected: check digit OK · 5
KID now reads the corrected value0045781233692
KID error cleared
valid-KID confirmation shown
aria-invalid removed
basic accessibility checks pass (form-valid)
4 · Confirm payment · 6
confirm shows amount 1 249,50 kr1 249,50 kr
confirm shows payee and accountNordlys Energi AS | 9650.21.54312
confirm shows corrected KID grouped0045 7812 3369 2
confirm shows due date 30.11.202630.11.2026
confirm shows chosen accountRegningskonto
basic accessibility checks pass (confirm)
5 · Payment scheduled: receipt with reference · 6
POST /api/payments returned 201201
request carried an Idempotency-Key (UUID v4)
API stored the corrected KID0045781233692
receipt shows reference id from the APIDB-20261124-0001
status Scheduled
basic accessibility checks pass (receipt)
6 · Overview lists the scheduled payment · 2
scheduled payment listed on overview30.11.2026 | Nordlys Energi AS | DB-20261124-0001 | −1 249,50 kr
no console errors or failed requests
7 · walkthrough.mp4 and its poster frame · 3
H.264, 1280x800, yuv420pcodec_name h264, width 1280, height 800, pix_fmt yuv420p
poster is pixel-identical to the first video frame
video starts on the rendered overview (SSIM of first frame vs 01-overview.png >= 0.98)0.9936
8 · Mobile (390x844 viewport, DPR 2): validation error · 1
mobile: KID error visible inside the 390x844 viewport
9 · trace.zip opens in the Playwright trace viewer · 3
trace viewer lists the 6 walkthrough steps1. Account overview | 2. Pay a bill: mistyped KID is rejected | 3. KID corrected: check digit OK | 4. Confirm payment | 5. Payment scheduled: receipt with reference | 6. Overview lists the scheduled payment
DOM snapshot of the KID assertion shows the error
no absolute local paths left in trace
10 · Keyboard: Tab order through the payment form · 1
WCAG 2.4.3 focus order of the payment form follows the visual orderfrom → to → kid → amount → due → btn-continue → Cancel → (page)

Every assertion text is copied from walkthrough.json, which also records the network calls (one POST /api/payments, status 201) and an empty list of console errors.7

07.4

The API, byte for byte: retries never pay twice

The server checks the KID itself, and a retried request cannot create a second payment. Six real HTTP exchanges with the demo API, recorded exactly as sent and received, show both.6

The six exchanges in api-transcript.txt
#RequestResponseWhat it shows
1New payment, valid KID, new Idempotency-Key201 Created, reference DB-20261124-0001The normal path
2The same request with the same key, as after a client timeout201, byte-identical body, Idempotent-Replayed: trueA retry gets the stored result and creates nothing
3The same key with a different amount422 idempotency_key_reusedA reused key is never mistaken for a retry
4The mistyped KID, new key422 validation_failed, field kid, code check_digitThe server enforces the check digit too
5No Idempotency-Key400 idempotency_key_requiredA payment that cannot be retried safely is refused
6A second, different payment with a new key201, reference DB-20261124-0002Sequence 0002 proves request 2 created nothing

Both matter in a bank. Any client can bypass browser validation, so the API must reach the same decision; the parity test keeps the two in step. And networks fail: an app that times out will retry, and a retry must never become a second payment.

The demo follows the semantics Stripe documents for its v1 API: the same key replays the saved response, the same key with different parameters is an error, and a request that fails validation is not saved, so a corrected retry can reuse the key.13 pstack's make-operations-idempotent principle asks for the same, and this report adapts it for payments and the ledger (see Repo, builds & context).14

In production the API proof is a Hurl transcript run by verify-run, with contract checks beside it. Hurl writes HTML, JSON and JUnit reports, redacts secrets with --secret, and hurl --curl gives a reviewer a request they can replay.15

Exchange 1 and the transcript's six checks, verbatim 52 lines

Two details a careful reviewer would spot. The rule that a failed request is not saved is a unit test here: "Only successful creations are remembered, so a corrected retry with the same key succeeds." And server.py was not changed: it calls kid.py, so the new rule applies on the server as well, and exchanges 1–3, 5 and 6 re-prove behaviour that existed before the change.11

api-transcript.txt · exchange 1verbatim · request and response
==============================================================================
1. Create a payment (valid KID)
   Client sends a new Idempotency-Key with the payment.
==============================================================================
>>> request (370 bytes)
POST /api/payments HTTP/1.1
Host: demo-bank.localhost
User-Agent: demo-transcript/1.0
Accept: application/json
Content-Type: application/json
Idempotency-Key: 3f6c1a52-7d0e-4b8a-9c21-5e4f0d8b7a10
Content-Length: 126
Connection: close

{"fromAccount": "acc-2", "toAccount": "9650.21.54312", "kid": "0045781233692", "amountMinor": 124950, "dueDate": "2026-11-30"}

<<< response (586 bytes)
HTTP/1.1 201 Created
Server: DemoBankAPI/0.1
Date: Tue, 24 Nov 2026 01:25:24 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 302
Location: /api/payments/DB-20261124-0001
Cache-Control: no-store
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer

{
  "id": "DB-20261124-0001",
  "status": "scheduled",
  "fromAccount": "acc-2",
  "toAccount": "96502154312",
  "payeeName": "Nordlys Energi AS",
  "kid": "0045781233692",
  "amount": {
    "minor": 124950,
    "currency": "NOK"
  },
  "dueDate": "2026-11-30",
  "createdAt": "2026-11-24T01:25:24Z"
}
Every header and byte as sent and received over a raw socket; only the Date header and createdAt change between runs. All six exchanges (8 KB).
The checks computed from the six responses
07.5

Trace and accessibility: the moment of the check, and the limits

The trace lets a reviewer stop at any action and see the page as it was at that moment. The accessibility report checks a short, explicit list of rules and says plainly what it did not check.

trace.zip in Playwright's trace viewer
Stopped at the assertion that saw the KID error
Playwright trace viewer: a filmstrip timeline across the top, the action list on the left with Expect to_be_visible on locator #kid-error selected, and the DOM snapshot of the payment form showing the highlighted KID error message.
The selected action is expect(locator("#kid-error")).to_be_visible(), 12.1 seconds into the run, and the right pane is the snapshot of the page's Document Object Model (DOM) taken after it. The filmstrip was thinned to fit in this report: 81 of 477 frames kept, 33.8 MB down to 1.3 MB; actions, DOM snapshots, network, console and source are unchanged. Source: trace-viewer.png, README.md, manifest.json.1,2

To explore it, download trace.zip (1.3 MB) and run npx playwright show-trace trace.zip, or open it at trace.playwright.dev, which loads the trace entirely in your browser and sends nothing out.1,16 The walkthrough checked the trace too: the viewer lists the six steps, and no absolute local paths are left in the file.7 In production the proof page serves traces from a separate, cookieless origin with a hash-pinned viewer built from main, because a trace viewer needs scripts (inference).

Accessibility: 97 checks, and what they are not

Sixteen rules ran on six screen states, plus one check of the keyboard focus order through the form: 97 checks, all passed.17 The report is blunt about scope: "This is NOT axe-core, NOT Lighthouse and NOT a WCAG conformance audit." It checks the DOM, not what a screen reader says, and lists the full WCAG 2.2 AA (Web Content Accessibility Guidelines) rule set, zoom and reflow, focus visibility and real users among the things it did not check.17

In production the web proof uses axe and an aria snapshot diff; listening with a screen reader and testing on real devices stay human tasks before release.

The 16 accessibility rules, with a report excerpt 2 min

The six states are the overview, the form with the error, the corrected form, the confirm screen, the receipt and the mobile form with the error. The rules cover page language and title, one h1 without skipped heading levels, a main landmark, labels on every form control, alt text, named inline SVGs, accessible names for buttons and links, valid ARIA (Accessible Rich Internet Applications) references, unique ids, error association, a live region for status messages, 24-pixel minimum targets, contrast of selected elements and no horizontal scrolling at 1280 and 390 pixels.17 The walkthrough adds that focus moves to the KID field and that the live region receives "There is 1 problem in the form." after Continue.7

a11y-report.jsonverbatim excerpt · … marks a cut
{
  "generator": "tools/demo/capture.py (A11Y_JS, run in Chromium 157.0.8103.78 via Playwright 1.65.2)",
  …
  "not_checked": [
    "screen reader output (NVDA, JAWS, VoiceOver, TalkBack)",
    "full WCAG 2.2 AA rule set (axe-core or manual audit)",
    "reflow at 320 CSS px (WCAG 1.4.10), zoom to 200%/400% and text-spacing overrides",
    "focus visibility in every state, focus traps, timeouts",
    "what assistive technology actually announces (live region and aria-describedby are checked in the DOM only)",
    "cognitive load, plain language and error-message wording",
    "real users, including users of assistive technology"
  ],
  "summary": {
    "states": 6,
    "checks": 97,
    "passed": 97,
    "failed": 0
  },
  …
  "states": [
    …
    {
      "state": "form-invalid-kid",
      "title": "Pay a bill · Demo Bank (synthetic demo)",
      "view": "form",
      "checks": [
        …
        {
          "id": "errors-associated",
          "rule": "WCAG 3.3.1 invalid fields have aria-invalid and a visible message linked by aria-describedby",
          "ok": true,
          "detail": {
            "invalidFields": [
              {
                "id": "kid",
                "describedBy": [
                  "The customer identification number on your invoice, 2–25 digits.",
                  "This KID is not valid (the check digit does not match). Check the number on your invoice."
                ]
              }
            ],
            "visibleErrorMessages": 1
          }
        },
        …
The report states its own limits at the top, then records each rule with its evidence: here, that the invalid KID field is described by both its hint and its error. Full report (46 KB).
07.6

The manifest: one index, a hash for every file

manifest.json is the bundle's table of contents. It names the change, the run, the tool versions and the verdict, and lists every file with its type, size, SHA-256 hash and the command that made it, so anyone can re-hash the files and see whether anything changed after the run.2 We did that on 24 November 2026: all 24 hashes and sizes match, and the commit value equals the SHA-1 of diff-summary.txt, as the manifest says.

The manifest, verbatim excerpt 58 lines
manifest.jsonverbatim excerpt · … marks a cut
{
  "schema": "demo-proof-bundle/v1",
  "synthetic": true,
  "notice": "Synthetic demo. Fictional customer, accounts, payees and amounts. The subject commit is a labelled demo value. All artifacts were produced by running the generators listed per file.",
  "subject": {
    "repository": "demo-bank (synthetic demo repository; does not exist)",
    "change": "Add MOD10 check-digit validation for KID on the bill payment form",
    "branch": "agent/kid-mod10-validation (demo)",
    "commit": "4b3f1987349fe3df0545304c2f59828209a11205",
    "commit_is_demo": true,
    "commit_note": "DEMO VALUE, not a real git commit: sha1 of diff-summary.txt, so it changes when the change does.",
    "author": "coding agent (demo)",
    …
    "diffstat": "3 files changed, 217 insertions(+), 6 deletions(-)"
  },
  "run": {
    "started_utc": "2026-11-24T01:25:21Z",
    "finished_utc": "2026-11-24T01:25:55Z",
    "clock": "system clock (UTC)",
    "command": "research/agentic-dev-environment/tools/demo/run.sh",
    "business_date": "2026-11-24 (pinned via DEMO_BUSINESS_DATE)",
    "random_seed": 20261124,
    "output_dir": "research/agentic-dev-environment/report/assets/demo"
  },
  "tools": {
    "python": "3.14.10",
    "playwright": "1.65.2",
    "playwright_driver": "1.65.1",
    "chromium": "157.0.8103.78",
    "ffmpeg": "n9.0.2",
    "node": "v26.13.1",
    "git": "2.56.1",
    "os": "Linux x86_64"
  },
  "verdict": {
    "result": "pass",
    …
    "checks": [
      …
      {
        "name": "red check: new KID tests against the pre-change validator",
        "result": "pass",
        "detail": "7 of 12 KID tests fail on the old code, as they should"
      },
      …
  …
  "artifacts": [
    …
    {
      "path": "test-output.txt",
      "type": "test-log",
      "media_type": "text/plain",
      "bytes": 5509,
      "sha256": "b0547a514011c2e8346f768a48f27c7722a253c43aeacc000527389a7413e4db",
      "generator": "research/agentic-dev-environment/tools/demo/run_tests.py",
      "description": "Console output of the test run, property-test statistics and the red check against the pre-change code."
    },
    …
Schema, the synthetic flag, the subject with its demo commit, the run with its pinned date and seed, tool versions, the verdict with one of its five checks, and one of 24 file entries. Full manifest (15 KB).
Every file in the bundle, with sizes 25 files · 2.6 MB
assets/demo/ (descriptions from manifest.json)
FileWhat it isSize
01-overview.pngStep 1: account overview (1280x800).89 KB
02-form-invalid-kid.pngStep 2: payment form after Continue with a mistyped KID (7 and 8 swapped): inline error, field marked invalid.105 KB
03-form-valid.pngStep 3: KID corrected; the check digit matches and the error is replaced by a confirmation.101 KB
04-confirm.pngStep 4: confirm screen with the corrected KID.62 KB
05-receipt.pngStep 5: receipt with the reference id returned by the API.59 KB
06-mobile-form-invalid-kid.pngMobile (390x844 viewport, device scale 2): the same validation error.130 KB
README.mdThis bundle explained.8 KB
a11y-report.jsonBasic automated accessibility checks per screen (not axe-core, not a WCAG audit; scope stated inside).46 KB
api-transcript.txtRaw HTTP request/response pairs from the local API: create, idempotent replay, key reuse, invalid KID, missing key.8 KB
diff-summary.txtUnified diff of the validator change (kid.py, app/kid.js) and its new tests, with a stat summary.14 KB
test-output.txtConsole output of the test run, property-test statistics and the red check against the pre-change code.6 KB
test-report.xmlJUnit-style XML of the unit + API test run.6 KB
thumbs/01-overview.webp640 px wide WebP thumbnail of 01-overview.png.14 KB
thumbs/02-form-invalid-kid.webp640 px wide WebP thumbnail of 02-form-invalid-kid.png.16 KB
thumbs/03-form-valid.webp640 px wide WebP thumbnail of 03-form-valid.png.15 KB
thumbs/04-confirm.webp640 px wide WebP thumbnail of 04-confirm.png.9 KB
thumbs/05-receipt.webp640 px wide WebP thumbnail of 05-receipt.png.9 KB
thumbs/06-mobile-form-invalid-kid.webp640 px wide WebP thumbnail of 06-mobile-form-invalid-kid.png.44 KB
trace-viewer.pngtrace.zip opened in Playwright's own trace viewer: the assertion that saw the KID error and its DOM snapshot.112 KB
trace.zipPlaywright trace: actions grouped by step, DOM snapshots, network, console, test source; filmstrip compacted.1.3 MB
walkthrough-poster.pngPoster: the first frame of the video (account overview).205 KB
walkthrough.jsonStep log of the walkthrough: every assertion with its result, network calls, console errors, video offsets.9 KB
walkthrough.mp4Screen recording of the scripted walkthrough (H.264, 1280x800, 25 fps), starting once the overview has rendered.265 KB
walkthrough.vttWebVTT chapters for the video, offsets measured during the run.553 B
manifest.jsonMachine-readable index: every file with type, size, sha256 and generator; subject, run time, tool versions, verdict.15 KB

What a production manifest adds

The demo manifest shows that the files are complete and unchanged. A production manifest, written by verify-seal and signed by the notary, must also show who chose the tests, where they ran and who asked for the change. Only the notary's signature over all of it makes the bundle proof of record (see Verification & proof bundles and Security, compliance & governance).

The eight things a production manifest adds 8 items
  • Claims with verdicts and provenance: each claim in the agent's proof/plan.yaml gets verified, failed, not-run or gap, and names the human-owned suite or agent-written script behind it.
  • Required suites chosen by policy from the changed paths (review-tiers.yml, services.yaml), not by the agent.
  • Image and machine-image (AMI) digests of the virtual machines (VMs) that ran the suites.
  • The harness tree hash: proof that the tests ran with main's harness, not one the PR could have edited.
  • The model gateway's chain head: ties the agent's transcript to what the model actually received.
  • The requester binding: who asked, any sponsor or adopted contributors, the sessions, model, harness and image.
  • Scanner results and a software bill of materials (SBOM): static analysis, dependency and licence scan, secrets; on T1 and T2 changes (the middle and highest review tiers; T2 covers money, ledger, identity, keys and similar paths), also a fall-back plan and a security-impact note.
  • The notary's DSSE signature (Dead Simple Signing Envelope) over all of it.
07.7

Not covered, said out loud

The bundle lists what it did not test, in the README and again in the manifest. That list is part of the evidence: it tells a reviewer what the green checks do not mean.1,2

"Not covered: MOD11 KIDs (only MOD10 is implemented in this demo); MOD10 cannot detect 0<->9 adjacent swaps (asserted in the tests, see test-output.txt); browsers other than Chromium; real mobile devices; screen-reader and manual accessibility testing; integration with real payment rails or core banking; persistence; authentication; performance, load and security testing; human review of the change itself."

README.md in the demo bundle, verbatim1

On the production proof page, gaps look like gaps: a claim whose verdict is gap never passes, untested claims are shown in red, and on T2 a claim backed only by the agent's own script counts as a gap. pstack's swarm skill puts it plainly: "A gap does not count as a pass."18

Risk

The MOD11 gap would send this change back in a real bank (inference). Real KIDs use MOD10 or MOD11, so a validator that knows only MOD10 would refuse most correct MOD11 KIDs and stop customers paying real invoices. In the demo the gap is honest scope; in production the reviewer should reject the change, or the claims should say that MOD11 payees are out of scope and how they are handled.

07.8

How a reviewer uses it

A reviewer should be able to judge this change in minutes and know which parts they took on trust. The steps follow the proof page's order: verdicts and gaps first, media next, the diff last (chapter 06). Text comes before pixels because pixel baselines only hold in the environment that made them, while aria snapshots hold across browsers.3,4

  1. Verdict and gapsRead the five checks, then the Not covered list.07.3 · 07.7
  2. Red checkConfirm that the new tests failed on the old code.test-output.txt
  3. Claims against textMatch each claim to assertions, test names and the HTTP transcript.walkthrough.json · api-transcript.txt
  4. PixelsWatch the 26-second video or step through the screenshots.walkthrough.mp4 · PNGs
  5. Trace, if in doubtOpen the moment a check fired, with its DOM snapshot.trace.zip
  6. Diff and attestRead the 45 validator lines; record what you opened.diff-summary.txt

Matched against the claims this change would make, the bundle verifies six and leaves two gaps: no one checked that screen-reader users hear the error, and valid MOD11 KIDs were never tested.

Eight claims matched to evidence, with verdicts 8 rows

The demo has no claims file, so this table writes down the claims the change would make and matches each to the bundle, the way verify-seal would record them.

Claims matched to evidence (illustrative: the demo has no claims file)
ClaimEvidence in this bundleVerdict
A KID with a wrong check digit is stopped in the browser before any request is sentWalkthrough step 2: "KID error shown", "no payment request was sent"; test_transposed_digits_are_rejectedverified
The API refuses it tooExchange 4: 422, code check_digit; test_invalid_kid_is_rejected_with_422verified
Browser and API give the same answerParity test on 3,000 seeded random inputsverified
Every single-digit error is caught, and every adjacent swap except 0↔9All 242,415 single-digit substitutions and 21,852 other adjacent swaps rejected; the 472 0↔9 swaps asserted as MOD10's known limit (seeded samples of 2,000 KIDs)verified
The error is tied to the field for assistive technologyaria-invalid and aria-describedby in the DOM; focus moves to the field; live-region text presentverified
Screen-reader users hear the errorNone: the live region was checked in the DOM only; no screen reader was usedgap
Valid MOD11 KIDs still go throughNone: MOD11 is not implemented or testedgap
Retries never create a second payment (existing behaviour, re-proved)Exchanges 1, 2 and 6; test_concurrent_retries_create_exactly_one_paymentverified

On T1 and T2 changes (the middle and highest review tiers) the approver then attests on the proof page: which artifacts they opened, which scanner and AI findings they resolved and which parts of the diff they read; T2 adds a short note in their own words. The approval stays a human decision, taken by someone independent of whoever asked for and made the change; Article 17 of RTS 2024/1774, the EU's standard on information and communication technology (ICT) risk, requires that independence (see Review, merge & change).19

Product owners can review a bundle like this without a development setup: the video and screenshots show the flow, the copy and the error, and the claims say what is proven and what is not.

"our code review process has now really shrunk into looking at verification artifacts instead. So things like videos, screenshots, diagrams, formal verification."

Lauren Tan, "All Code Is Slop (Except Mine)", AI Engineer Code Summit, 11 November 2026, at 09:2120
07.9

From demo to proof of record

The demo shows the shape of a bundle, not what makes it trustworthy: one script on one machine made everything, and nothing is signed. In production the evidence comes from verify-run, which tests the PR's code with main's harness and runs black-box suites from a second virtual machine; the agent's own recordings are marked trusted: false and serve only as a human aid. The bundle becomes proof of record only when the notary signs the manifest (chapter 06).

Where the demo sits in the proof chain
Production proof chain compared with this demo Top row, production: agent VM with untrusted media, verify-run with main's harness and a black-box VM, verify-seal writing the manifest, the notary signing it, the evidence store under S3 Object Lock, and the proof page. Bottom row, this demo: no agent run, generator scripts in place of verify-run, make_manifest in place of verify-seal, no signature, plain files and this hand-assembled page. PRODUCTION (FROM WEEKS 5–8) Agent VM its own media: trusted: false verify-run main's harness black-box VM verify-seal reports as data writes manifest Notary DSSE signature proof of record Evidence store S3 Object Lock governance mode Proof page trusted renderer human attests THIS DEMO (ONE COMMAND, ONE MACHINE, NO NETWORK) No agent run the agent is the story only Generators Playwright, tests, HTTP, git diff make_manifest sha256 per file and a verdict No signature not notarised not evidence Plain files assets/demo/ no lock This page assembled by hand from the files
Each demo box sits under the production step it stands in for; dashed boxes are steps the demo does not have. The demo reproduces the middle of the chain (the kinds of files and a hashed manifest) but none of what makes them trustworthy: an independent producer, a signature and a locked store. Source: recommendation (proof chain), README.md and manifest.json.
Each artifact from demo to production, with trust status and retention 10 rows
From demo to proof of record
ArtifactMade in the demo byMade in production byTrust statusKept for
Walkthrough videocapture.py: Playwright recording, converted to H.264 with ffmpegverify-run: Playwright screencast of the black-box suite, stamped with the SHA and "TEST DATA"Candidate evidence until sealed and signedProof media: T2 5 years, T1 18 months, T0 12 months
Agent's own video and screenshotsNoneThe agent, inside its own VMtrusted: false; a human aid onlyWith the change record (inference)
Step screenshotscapture.pyverify-run: base and head screenshots, stamped; visual baselines accepted only by a code ownerCandidate evidence; pixels help, they do not gateProof media schedule
Playwright tracecapture.py; filmstrip thinned to fitverify-run; full trace, shown with a hash-pinned viewer on a separate originCandidate evidenceProof media schedule
Test reportrun_tests.py writes JUnit-style XMLSuites chosen by policy from the changed paths, run by verify-run; Allure 3 --expect-testsParsed as data by verify-sealProof media schedule (inference)
API transcriptapi_transcript.py: raw HTTP over a socketHurl transcript with secrets redacted, plus contract checksCandidate evidenceProof media schedule (inference)
Accessibility report16 hand-written DOM rules per screenaxe and an aria snapshot diff; screen reader and real devices by humans before releaseCandidate evidence; aria snapshots gateProof media schedule (inference)
Diffmake_diff.py: git diff --no-indexThe PR in git; harness and instruction-file diffs shown firstGit is the source of truthChange record
Manifestmake_manifest.py: SHA-256 per file and a verdictverify-seal: never runs PR code; verdicts with provenance, scanner results, SBOMHash-chained; signed by the notaryChange record: 5 years (inference); ledger and posting changes 5 years after the last financial year the version ran
SignatureNoneNotary: DSSE over the manifest, requester binding, harness tree hash and gateway chain headProof of recordChange record, under Object Lock
Retention follows the recommendation's evidence schedule, a bank policy under RTS 2024/1774 Art. 12(2); among change records, only ledger, posting and closing changes have a statutory floor (bokføringsloven § 13). Evidence sits in S3 Object Lock, governance mode for media and change records, compliance mode for ledger changes.19,21,22

Reproduce it

One command, no network: research/agentic-dev-environment/tools/demo/run.sh. It needs Python 3 with the playwright and Pillow packages, Chromium at /usr/bin/chromium, Node.js, ffmpeg and git. Every step runs even if an earlier one fails, so a failing change still gets a bundle, with the verdict "fail".1

Runs are repeatable by design. The business date is pinned and every random input uses a fixed seed or key, so only time-dependent content changes between runs: timestamps, measured durations, and the files made from wall-clock recordings (the video, its poster, the trace and the trace screenshot). The screenshots, thumbnails, accessibility report and diff are byte-identical.1 An auditor can therefore reproduce the evidence and compare it line by line (inference).

The run.sh script, verbatim excerpt 12 lines
tools/demo/run.shverbatim excerpt · … marks a cut
# Build the demo proof bundle end to end (synthetic data, no network):
#   tests -> API transcript -> diff -> recorded UI walkthrough (+ a11y, trace, video) -> README + manifest
# Usage: tools/demo/run.sh [OUTPUT_DIR]   (default: report/assets/demo)
# Every step runs even if an earlier one fails, so a failing change still gets a bundle (verdict "fail").
…
export DEMO_BUSINESS_DATE=2026-11-24
…
step python3 run_tests.py     --out "$OUT" --work "$WORK"
step python3 api_transcript.py --out "$OUT" --work "$WORK"
step python3 make_diff.py     --out "$OUT" --work "$WORK"
step python3 capture.py       --out "$OUT" --work "$WORK"
step python3 make_manifest.py --out "$OUT" --work "$WORK"
Five generators in a fixed order: tests, API transcript, diff, the recorded walkthrough (with accessibility checks, trace and video), then the README and manifest.

Sources

  1. Proof bundle demo: README.md (scenario, verdict, files, method, what changes between runs). This report's demo bundle, generated 2026-11-24. assets/demo/README.md
  2. Proof bundle demo: manifest.json (subject, run, tools, verdict, SHA-256 per file). This report's demo bundle, generated 2026-11-24. assets/demo/manifest.json
  3. Visual comparisons. Playwright (Microsoft), accessed 2026-11-23. playwright.dev/docs/test-snapshots
  4. Aria snapshots. Playwright (Microsoft), accessed 2026-11-23. playwright.dev/docs/aria-snapshots
  5. Proof bundle demo: diff-summary.txt (unified diff of kid.py, app/kid.js and tests/test_kid.py). This report's demo bundle, generated 2026-11-24. assets/demo/diff-summary.txt
  6. Proof bundle demo: api-transcript.txt (six raw HTTP exchanges and the checks computed from them). This report's demo bundle, generated 2026-11-24. assets/demo/api-transcript.txt
  7. Proof bundle demo: walkthrough.json (step log: 42 assertions, network calls, console errors, video offsets). This report's demo bundle, generated 2026-11-24. assets/demo/walkthrough.json
  8. Release v1.59.0 (screencast, "agentic video receipts"). microsoft/playwright on GitHub, 2026-04-01. github.com/microsoft/playwright/releases/tag/v1.59.0
  9. create-formal-verification-skill, SKILL.md (pstack). Lauren Tan, cursor/plugins on GitHub, last changed 2026-10-27. github.com/cursor/plugins/…/create-formal-verification-skill
  10. Agent pull requests are everywhere. Here's how to review them. Andrea Griffiths, GitHub Blog, 2026-05-07. github.blog/ai-and-ml/generative-ai/agent-pull-requests-…
  11. Proof bundle demo: test-output.txt (test run, property-test statistics, red check). This report's demo bundle, generated 2026-11-24. assets/demo/test-output.txt
  12. Allure 3 README (v3.33.0). allure-framework on GitHub, 2026-11-05. github.com/allure-framework/allure3
  13. Idempotent requests. Stripe API Reference, accessed 2026-11-23. docs.stripe.com/api/idempotent_requests
  14. pstack principle skills, including principle-make-operations-idempotent. Lauren Tan, cursor/plugins on GitHub, commit 7a583913, 2026-11-21. github.com/cursor/plugins/tree/main/pstack/skills
  15. Hurl README (8.1.0). Orange-OpenSource on GitHub, 2026-10-28. github.com/Orange-OpenSource/hurl
  16. Trace viewer. Playwright (Microsoft), accessed 2026-11-23. playwright.dev/docs/trace-viewer
  17. Proof bundle demo: a11y-report.json (basic accessibility checks, scope and not-checked list). This report's demo bundle, generated 2026-11-24. assets/demo/a11y-report.json
  18. swarm, SKILL.md (pstack). Lauren Tan, cursor/plugins on GitHub, last changed 2026-11-16. github.com/cursor/plugins/…/swarm
  19. Commission Delegated Regulation (EU) 2024/1774, RTS on ICT risk management framework, Arts. 12 and 17. EUR-Lex, 2024-06-25. eur-lex.europa.eu/…/CELEX:32024R1774
  20. "All Code Is Slop (Except Mine)", talk at AI Engineer Code Summit 2026. Lauren Tan, AI Engineer (YouTube), delivered 2026-11-11, uploaded 2026-11-14. youtube.com/watch?v=O_zcc6Xl12g
  21. Lov om bokføring (bokføringsloven), §§ 6 and 13. Lovdata, 2004-11-19 (law in force). lovdata.no/dokument/NL/lov/2004-11-19-73
  22. Locking objects with Object Lock. Amazon S3 User Guide, accessed 2026-11-24. docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html