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
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
- 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-bankdoes not exist; commit4b3f198…is the SHA-1 hash ofdiff-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
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
Artifacts
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
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
The API validator change in kid.py, verbatim 29 lines
The browser validator, app/kid.js, gains the same function in JavaScript.5
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)
app/kid.js and the new tests.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
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

1 · Account overview. Three synthetic accounts and no scheduled payments yet. 1280×800. 
2 · Mistyped KID rejected. After Continue with 7 and 8 swapped: inline error, field marked invalid. 
3 · KID corrected. The check digit matches and the error is replaced by a confirmation. 
4 · Confirm. The corrected KID, grouped for reading, with amount, payee, due date and account. 
5 · Receipt. The reference returned by the API, DB-20261124-0001, with status Scheduled. 
6 · Mobile. The same error at a 390×844 viewport, device scale 2. Thumbnail cropped to the field; the PNG shows the whole screen.
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,7What 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
| Check | Result | Detail | Raw file |
|---|---|---|---|
| Unit and API tests | Pass | 23 tests: 23 passed, 0 failed, 0 errors, 0 skipped; includes 5 seeded property tests and 1 browser/API parity test | test-report.xml test-output.txt |
| Red check: new KID tests against the pre-change validator | Pass | 7 of 12 KID tests fail on the old code, as they should | test-output.txt |
| UI walkthrough (Playwright, Chromium) | Pass | 10 steps, 42 of 42 assertions; video 25.8 s | walkthrough.json |
| Basic accessibility checks | Pass | 97 of 97 on 6 screen states plus keyboard focus order (not axe-core) | a11y-report.json |
| API transcript checks | Pass | 6 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
$ python3 run_tests.py --out <bundle dir> (in research/agentic-dev-environment/tools/demo, via run.sh) Demo Bank tests (synthetic data). Python 3.14.10 on Linux. Random seed for property tests: 20261124. == Run 1 (green): changed code kid.py + app/kid.js (via Node), and the API in server.py (not changed) == test_accounts_are_synthetic_and_listed (tests.test_api.Accounts.test_accounts_are_synthetic_and_listed) ... ok test_concurrent_retries_create_exactly_one_payment (tests.test_api.Idempotency.test_concurrent_retries_create_exactly_one_payment) ... ok … test_transposed_digits_are_rejected (tests.test_kid.KnownVectors.test_transposed_digits_are_rejected) The demo typo: digits 7 and 8 swapped. Format is fine, the check digit is not. ... ok … test_adjacent_transpositions_are_rejected_except_09 (tests.test_kid.Properties.test_adjacent_transpositions_are_rejected_except_09) Property (seed 20261124): adjacent swaps are rejected; 0<->9 swaps are MOD10's known blind spot ... ok … ---------------------------------------------------------------------- Ran 23 tests in 2.275s OK Property-test statistics (seed 20261124): parity_inputs 3000 adjacent_transpositions_rejected 21852 adjacent_0_9_swaps_not_detectable 472 random_strings_valid_share 0.108 valid_kids_generated 2000 single_digit_substitutions_checked 242415 == Run 2 (red check): the KID tests against the pre-change validator in change/before/ == Expected to FAIL. Shows the new tests detect the missing MOD10 check (one line per problem). ERROR KnownVectors.test_check_digit_function AttributeError: module 'kid_under_test' has no attribute 'mod10_check_digit' FAIL KnownVectors.test_every_reason_has_a_user_message (reason='check_digit') AssertionError: '' is not true FAIL KnownVectors.test_transposed_digits_are_rejected AssertionError: Tuples differ: (True, None) != (False, 'check_digit') FAIL KnownVectors.test_wrong_check_digit_is_rejected AssertionError: None != 'check_digit' FAIL Properties.test_adjacent_transpositions_are_rejected_except_09 AssertionError: Lists differ: ['07914534165382892', '70194534165382892',[58 chars]892'] != [] FAIL Properties.test_agrees_with_reference_on_random_digit_strings AssertionError: Lists differ: ['908136669521593360226644', '338847530331[62 chars]462'] != [] FAIL Properties.test_single_digit_errors_are_rejected AssertionError: Lists differ: ['09', '19', '29', '39', '49'] != [] Red check: 7 of 12 KID tests fail against the pre-change validator (expected: > 0). Verdict: PASS (run 1: 23 passed, 0 failed, 0 errors, 0 skipped; run 2 red check: failed as expected)
Open the full log: test-output.txt (6 KB) and test-report.xml (6 KB).
All 42 walkthrough assertions, step by step 42 rows
| Assertion | Recorded 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 number | Recipient: Nordlys Energi AS |
| KID error shown | This 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-NO | 1 249,50 |
| basic accessibility checks pass (form-invalid-kid) | |
| 3 · KID corrected: check digit OK · 5 | |
| KID now reads the corrected value | 0045781233692 |
| 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 kr | 1 249,50 kr |
| confirm shows payee and account | Nordlys Energi AS | 9650.21.54312 |
| confirm shows corrected KID grouped | 0045 7812 3369 2 |
| confirm shows due date 30.11.2026 | 30.11.2026 |
| confirm shows chosen account | Regningskonto |
| basic accessibility checks pass (confirm) | |
| 5 · Payment scheduled: receipt with reference · 6 | |
| POST /api/payments returned 201 | 201 |
| request carried an Idempotency-Key (UUID v4) | |
| API stored the corrected KID | 0045781233692 |
| receipt shows reference id from the API | DB-20261124-0001 |
| status Scheduled | |
| basic accessibility checks pass (receipt) | |
| 6 · Overview lists the scheduled payment · 2 | |
| scheduled payment listed on overview | 30.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, yuv420p | codec_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 steps | 1. 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 order | from → 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
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
| # | Request | Response | What it shows |
|---|---|---|---|
| 1 | New payment, valid KID, new Idempotency-Key | 201 Created, reference DB-20261124-0001 | The normal path |
| 2 | The same request with the same key, as after a client timeout | 201, byte-identical body, Idempotent-Replayed: true | A retry gets the stored result and creates nothing |
| 3 | The same key with a different amount | 422 idempotency_key_reused | A reused key is never mistaken for a retry |
| 4 | The mistyped KID, new key | 422 validation_failed, field kid, code check_digit | The server enforces the check digit too |
| 5 | No Idempotency-Key | 400 idempotency_key_required | A payment that cannot be retried safely is refused |
| 6 | A second, different payment with a new key | 201, reference DB-20261124-0002 | Sequence 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
==============================================================================
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"
}
Date header and createdAt change between runs. All six exchanges (8 KB).============================================================================== Checks computed from the responses above ============================================================================== [PASS] 1 -> 201 Created with a reference id (id=DB-20261124-0001) [PASS] 2 -> same status and byte-identical body as 1, marked Idempotent-Replayed: true (302 bytes, identical=True) [PASS] 3 -> 422 idempotency_key_reused [PASS] 4 -> 422 validation_failed on field kid (check_digit) [PASS] 5 -> 400 idempotency_key_required [PASS] 6 -> 201 with sequence 0002: the retry in 2 did not create a duplicate (id=DB-20261124-0002) 6/6 checks passed.
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.
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,2To 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
{
"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 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
{
"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."
},
…
Every file in the bundle, with sizes 25 files · 2.6 MB
| File | What it is | Size |
|---|---|---|
| 01-overview.png | Step 1: account overview (1280x800). | 89 KB |
| 02-form-invalid-kid.png | Step 2: payment form after Continue with a mistyped KID (7 and 8 swapped): inline error, field marked invalid. | 105 KB |
| 03-form-valid.png | Step 3: KID corrected; the check digit matches and the error is replaced by a confirmation. | 101 KB |
| 04-confirm.png | Step 4: confirm screen with the corrected KID. | 62 KB |
| 05-receipt.png | Step 5: receipt with the reference id returned by the API. | 59 KB |
| 06-mobile-form-invalid-kid.png | Mobile (390x844 viewport, device scale 2): the same validation error. | 130 KB |
| README.md | This bundle explained. | 8 KB |
| a11y-report.json | Basic automated accessibility checks per screen (not axe-core, not a WCAG audit; scope stated inside). | 46 KB |
| api-transcript.txt | Raw HTTP request/response pairs from the local API: create, idempotent replay, key reuse, invalid KID, missing key. | 8 KB |
| diff-summary.txt | Unified diff of the validator change (kid.py, app/kid.js) and its new tests, with a stat summary. | 14 KB |
| test-output.txt | Console output of the test run, property-test statistics and the red check against the pre-change code. | 6 KB |
| test-report.xml | JUnit-style XML of the unit + API test run. | 6 KB |
| thumbs/01-overview.webp | 640 px wide WebP thumbnail of 01-overview.png. | 14 KB |
| thumbs/02-form-invalid-kid.webp | 640 px wide WebP thumbnail of 02-form-invalid-kid.png. | 16 KB |
| thumbs/03-form-valid.webp | 640 px wide WebP thumbnail of 03-form-valid.png. | 15 KB |
| thumbs/04-confirm.webp | 640 px wide WebP thumbnail of 04-confirm.png. | 9 KB |
| thumbs/05-receipt.webp | 640 px wide WebP thumbnail of 05-receipt.png. | 9 KB |
| thumbs/06-mobile-form-invalid-kid.webp | 640 px wide WebP thumbnail of 06-mobile-form-invalid-kid.png. | 44 KB |
| trace-viewer.png | trace.zip opened in Playwright's own trace viewer: the assertion that saw the KID error and its DOM snapshot. | 112 KB |
| trace.zip | Playwright trace: actions grouped by step, DOM snapshots, network, console, test source; filmstrip compacted. | 1.3 MB |
| walkthrough-poster.png | Poster: the first frame of the video (account overview). | 205 KB |
| walkthrough.json | Step log of the walkthrough: every assertion with its result, network calls, console errors, video offsets. | 9 KB |
| walkthrough.mp4 | Screen recording of the scripted walkthrough (H.264, 1280x800, 25 fps), starting once the overview has rendered. | 265 KB |
| walkthrough.vtt | WebVTT chapters for the video, offsets measured during the run. | 553 B |
| manifest.json | Machine-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.yamlgetsverified,failed,not-runorgap, 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.
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."
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
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.
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
- Verdict and gapsRead the five checks, then the Not covered list.07.3 · 07.7
- Red checkConfirm that the new tests failed on the old code.test-output.txt
- Claims against textMatch each claim to assertions, test names and the HTTP transcript.walkthrough.json · api-transcript.txt
- PixelsWatch the 26-second video or step through the screenshots.walkthrough.mp4 · PNGs
- Trace, if in doubtOpen the moment a check fired, with its DOM snapshot.trace.zip
- 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.
| Claim | Evidence in this bundle | Verdict |
|---|---|---|
| A KID with a wrong check digit is stopped in the browser before any request is sent | Walkthrough step 2: "KID error shown", "no payment request was sent"; test_transposed_digits_are_rejected | verified |
| The API refuses it too | Exchange 4: 422, code check_digit; test_invalid_kid_is_rejected_with_422 | verified |
| Browser and API give the same answer | Parity test on 3,000 seeded random inputs | verified |
| Every single-digit error is caught, and every adjacent swap except 0↔9 | All 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 technology | aria-invalid and aria-describedby in the DOM; focus moves to the field; live-region text present | verified |
| Screen-reader users hear the error | None: the live region was checked in the DOM only; no screen reader was used | gap |
| Valid MOD11 KIDs still go through | None: MOD11 is not implemented or tested | gap |
| Retries never create a second payment (existing behaviour, re-proved) | Exchanges 1, 2 and 6; test_concurrent_retries_create_exactly_one_payment | verified |
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."
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).
Each artifact from demo to production, with trust status and retention 10 rows
| Artifact | Made in the demo by | Made in production by | Trust status | Kept for |
|---|---|---|---|---|
| Walkthrough video | capture.py: Playwright recording, converted to H.264 with ffmpeg | verify-run: Playwright screencast of the black-box suite, stamped with the SHA and "TEST DATA" | Candidate evidence until sealed and signed | Proof media: T2 5 years, T1 18 months, T0 12 months |
| Agent's own video and screenshots | None | The agent, inside its own VM | trusted: false; a human aid only | With the change record (inference) |
| Step screenshots | capture.py | verify-run: base and head screenshots, stamped; visual baselines accepted only by a code owner | Candidate evidence; pixels help, they do not gate | Proof media schedule |
| Playwright trace | capture.py; filmstrip thinned to fit | verify-run; full trace, shown with a hash-pinned viewer on a separate origin | Candidate evidence | Proof media schedule |
| Test report | run_tests.py writes JUnit-style XML | Suites chosen by policy from the changed paths, run by verify-run; Allure 3 --expect-tests | Parsed as data by verify-seal | Proof media schedule (inference) |
| API transcript | api_transcript.py: raw HTTP over a socket | Hurl transcript with secrets redacted, plus contract checks | Candidate evidence | Proof media schedule (inference) |
| Accessibility report | 16 hand-written DOM rules per screen | axe and an aria snapshot diff; screen reader and real devices by humans before release | Candidate evidence; aria snapshots gate | Proof media schedule (inference) |
| Diff | make_diff.py: git diff --no-index | The PR in git; harness and instruction-file diffs shown first | Git is the source of truth | Change record |
| Manifest | make_manifest.py: SHA-256 per file and a verdict | verify-seal: never runs PR code; verdicts with provenance, scanner results, SBOM | Hash-chained; signed by the notary | Change record: 5 years (inference); ledger and posting changes 5 years after the last financial year the version ran |
| Signature | None | Notary: DSSE over the manifest, requester binding, harness tree hash and gateway chain head | Proof of record | Change record, under Object Lock |
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
# 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"