Parts
Get your system's Annex IV evidence prepared, tests includedGet evidence

Sample technical file

Sample Annex IV technical file: Credit-scoring demo system

An excerpt: The nine-point trace index of our own credit-scoring demo, then the documents and test reports behind it, each shown in part. For every Annex IV point: The record or test behind it, its owner and its state.

The file: Nine-point trace index first, then the records behind it

Our demo credit-scoring system on public data, with Veriprajna as its demo provider: The trace index for Annex IV points 1 to 9, then records behind it, in part.

  • Our own demo system, made-up or public data, not a conformity assessment, no notified body involved. Anything planted is marked "planted by us".
  • Who wrote what. We drafted the documents and ran the tests; approvals belong to the client's named owners.
  • Your file and test results are yours; no one may rely on our reports as an assurance, certification or conformity assessment.
  • About this file

    The system, its intended purpose for this sample, the provider and the data.

  • Nine-point trace index

    Every Annex IV point with its record or test, owner and state, and what each state means here.

  • Test report: Accuracy and per-group accuracy

    Annex IV 2(g) and 3: n and intervals at the credit, every group with its reading, where client-side results would print, and the fields left to your people.

  • Robustness tests and the stand-in report

    R1 to R4 on what the stand-in penetration test report leaves open, with its stated scope and its overlap with R2.

  • Risk register, excerpt

    Five drafted entries, each with its source in the tests and a proposed measure.

  • Release record and re-test

    The v1 to v2 change, the criteria set before training, and each result.

  • Monitoring plan outline

    What it watches, its data sources and its one gap.

  • Test scripts and re-run package

    What it holds and writes, and the fresh-clone check.

  • What this does not show

    Every limit of this sample, in one list.

Sample technical file, excerpt: Veriprajna demo credit-scoring system

Source: One recorded run of our private demo on the public South German Credit data (UCI Machine Learning Repository, CC BY 4.0). Annex IV and Article text: AI Act Service Desk.

About this file
  • System. Veriprajna demo credit-scoring system: A logistic regression that approves or declines a credit. v1 uses all 20 inputs of the data; v2, the change in the release record, uses 18.
  • Intended purpose, for this sample. To evaluate the creditworthiness of the people in the data. Annex III point 5(b) lists AI systems intended "to evaluate the creditworthiness of natural persons or establish their credit score", so this sample treats the system as high-risk. For a real system, that is a legal call its provider makes with counsel.
  • Provider. Veriprajna, as the demo provider. Nothing is placed on the market or put into service.
  • Data. "South German Credit", UCI Machine Learning Repository id 573, DOI 10.24432/C5QG88, licensed CC BY 4.0; "(UPDATE)" is its former name. All 1,000 credits are used and none is excluded. The UCI page says the older Statlog German credit data suffer "from severe errors in the coding information" and that this release provides a correction.
  • No language model. None is called anywhere in this demo; the system under test is our own model.
Nine-point trace index

Each Annex IV point, the record or test behind it, its owner and its state. Five of these rows are the ones the service page shows.

Annex IV pointRecord or testOwnerState
Annex IV 1General description, in part: Intended purpose, provider, versions v1 and v2 and data, in About this fileProduct ownerDrafted
Annex IV 2(g) and 3Accuracy and per-group accuracy test report, from tests on the test deploymentModel ownerTested
Annex IV 2(g) and 2(h). Covers: Robustness and cybersecurityYour penetration test report, mapped; we test what it leaves open. In this demo, a report we wrote stands in for yours.Security leadSupplied by you
Annex IV 4Why accuracy at the approval threshold, with intervals and group results, suits this systemModel ownerNot written for this sample
Annex IV 5Risk register, from the risk management process (Article 9)Risk ownerDrafted
Annex IV 6The demo's release record, with the re-test it triggersRelease managerFrom your systems
Annex IV 7Description of the solutions adopted to meet the requirements of Chapter III, Section 2; no harmonised standard appliedProduct ownerNot written for this sample
Annex IV 8Copy of the EU declaration of conformity (Article 47)ProviderBy the provider; not drawn up for this demo, nothing placed on the market
Annex IV 9Post-market monitoring plan (Article 72(3)): Drafted; its drift-monitoring data source is not yet in placeProduct ownerGap

The states, in this demo.

  • Tested: Our test on the test deployment; here a local scoring module stands in for one.
  • Supplied by you: A report you already hold, mapped into the trace and never shown as our result; here a report written by us for this demo stands in.
  • Drafted: Written by us; in an engagement, written with your people and waiting for your owner's approval.
  • Not written for this sample: A record the file needs that we did not write for this demo; in an engagement, drafted with your people.
  • From your systems: A record your systems keep; here the release record of our demo build.
  • Gap: Not yet in place, with what it needs; here the record of scoring calls the monitoring plan needs, left open by us for the demo.
Test report: 2(g) and 3
  • Annex IV points. 2(g): The validation and testing procedures, data and metrics, "as well as potentially discriminatory impacts". 3: "the degrees of accuracy for specific persons or groups of persons on which the system is intended to be used and the overall expected level of accuracy".
  • Version tested. v1, run run-0fe1c78e2b99. The same scripts tested v2 in the release re-test.
  • Test data. 400 test credits, 280 of them good, held out from the 1,000; the other 600 trained the models. The split is stratified by outcome and drawn with a registered seed, an arbitrary number fixed before the split that encodes no date. No model setting was chosen with the test rows.
  • Independent unit. The credit. The data have no applicant identifier, so whether one person holds several credits cannot be checked; each credit counts once.
  • Decision rule. Approve when the model's probability of a good credit is 0.5 or more; no cost matrix is applied.
  • Intervals. 95% Wilson score intervals for accuracy, computed at the credit; for AUC, a percentile bootstrap over 2,000 resamples of test credits.
  • Group reading rule. Fixed before the split: A group with fewer than 30 test credits is marked "too few to read" and is never compared.

Overall, v1.

  • Accuracy. 302 of 400 correct: 0.755 (interval 0.711 to 0.795). Approving every credit would score 0.700.
  • AUC. 0.796 (interval 0.750 to 0.839).
  • Errors. 63 credits approved but bad; 35 declined but good.

Per group, v1.

Groupn (correct)Accuracy (interval)Reading
Age 25 and under70 (48)0.686 (0.570 to 0.782)Read
Age 26 to 35151 (113)0.748 (0.674 to 0.811)Read
Age 36 to 50125 (98)0.784 (0.704 to 0.847)Read
Age 51 and over54 (43)0.796 (0.671 to 0.882)Read
famges 1, "male : divorced/separated"22 (16)0.727 (0.518 to 0.868)Too few to read (n < 30)
famges 2, "female : non-single or male : single"119 (88)0.739 (0.654 to 0.810)Read
famges 3, "male : married/widowed"225 (172)0.764 (0.705 to 0.815)Read
famges 4, "female : single"34 (26)0.765 (0.600 to 0.876)Read
gastarb 1, "yes"18 (15)0.833 (0.608 to 0.942)Too few to read (n < 30)
gastarb 2, "no"382 (287)0.751 (0.706 to 0.792)Read
  • Who computed them. Every group result in this demo is ours, because the demo runs on public data.
  • famges is not a sex variable. It combines sex and marital status, and code 2 holds both "female : non-single" and "male : single", so the release documentation says sex "cannot be recovered". We report each code and derive no sex group.
  • gastarb coding. 1 means yes and 2 means no in this release, which its documentation states is opposite to the Statlog data.
  • Outcome coding. The code table, the release's R reader and the counts give 0 for bad and 1 for good; one sentence of the release documentation says the reverse. We followed the code table.
Client-side group results
Where they printHere, apart from the results we computed
Their mark"run by you with our script; we received the counts"
In this demoNone: Every group result above is ours
Fields left to your people
Date and signatureBy your responsible persons
Witness or re-runBy your engineer, as agreed in the written scope
Robustness tests R1 to R4
  • Annex IV points. 2(g) and 2(h). These tests cover what the stand-in penetration test report leaves open. The plan behind them was written before any model was trained, and its threshold was set by that file, not agreed by anyone.
  • Where they ran. On a local scoring module that stands in for a test deployment; it opens no network listener.
  • R1, decisions under small input changes. Duration plus or minus 1 month, amount plus or minus 1%, age plus or minus 1 year, one change at a time, on every test credit; a change that would leave the documented input domain is skipped. Decisions changed for 7 of 400 credits in v1 (interval 0.009 to 0.036) and 6 of 400 in v2 (0.007 to 0.032). Threshold: At most 0.05 of credits. Met for both versions.
  • R2, inputs outside the documented domain. 27 cases for v1 and 25 for v2, whose inputs no longer include two of the fields tested. Our AI build agent labelled each case accept or reject, with a reason, before any model existed. The scoring service, which validates first, gave the expected outcome in 27 of 27 (v1) and 25 of 25 (v2). Called directly with no validation, the model artefact scored 16 of the 19 rejected inputs for v1, and 14 of 17 for v2, without an error.
  • What the 19 are. Six are well-formed values one unit outside the training range for age, duration or amount, not malformed ones. The other 13: A negative amount, a fractional duration, a number sent as text, a boolean, a value that is not a number, an empty value, a missing input, the outcome sent as an input, four codes the code table does not list and one Statlog-style code.
  • R3, model artefact integrity. 3 of 3 as expected for each version: The released artefact loads, and two copies planted by us are refused, one with a coefficient's last digit changed and one relabelled as a version the release record does not list.
  • R4, one self-stated field. For each declined credit, purpose, telephone and years at present residence were set in turn to every other listed code, one field at a time. 53 of 92 declined credits in v1 (interval 0.474 to 0.672) and 56 of 91 in v2 (0.513 to 0.709) became approved. Per field, v1 then v2, where one credit can flip on more than one field: Purpose 45 and 53, telephone 14 and 15, residence 23 and 23. No threshold: The result goes to the risk owner for the risk register.
  • R4 caveats. Treating these three fields as stated by the applicant and not checked is our assumption for the demo; the data documentation does not say how any field was collected or checked. Telephone is the weakest case: The documentation describes "a telephone landline registered on the debtor's name", which is a record a lender could check. Without telephone, 51 of 92 (v1) and 55 of 91 (v2) become approved, from a recount in the AI spot-check after the run. Every purpose flip set purpose to code 1, "car (new)". Residence is a band of four codes, not a count of years.
Stand-in penetration test report
  • Label. Written by us for this demo, in the place of a report you would supply.
  • Scope it states. The scoring service's network surface: Authentication, access control and transport encryption. Injection and input handling at the service's API layer. Known vulnerabilities in the service's dependencies.
  • What it leaves open. R1 to R4 in the robustness tests; it claims none of them.
  • No test behind it. The demo's scoring module has no network listener, so no test was run against a network service. The stand-in states a scope and reports no findings.
  • Overlap with R2. Input handling at an API layer overlaps R2's type and shape cases, 8 of the 19. R2's own part is the 11 domain cases and the direct call to the model artefact.
  • In the trace. It fills the Annex IV 2(g) and 2(h) row as "Supplied by you", never as our result.
Risk register, excerpt

Annex IV 5. Drafted by us as the demo provider, in the steps of Article 9(2): Identify and analyse known and foreseeable risks, estimate and evaluate them, evaluate risks from post-market data, and adopt targeted measures. Owner: Risk owner.

  • RR-1 One stated field turns a decline into an approval. Source: R4. Proposed measure: Verify purpose, telephone and residence before a decision, or stop using them as inputs, then re-test. Status: Open.
  • RR-2 Lowest accuracy in the youngest age band. Source: The v1 test report, where the 25 and under band scores 0.686 and its interval overlaps every other band's. Proposed measure: Track accuracy per age band after release, in the monitoring plan. Status: Open.
  • RR-3 Inputs outside the documented domain scored when the model is called directly. Source: R2. Proposed measure: Only the scoring service, which validates every input, calls the model, and the instructions for use say so. Status: Open.
  • RR-4 Inputs that encode personal status and foreign-worker status. Source: The inputs of v1. Measure: v2 drops both, in the release record. Status: Waiting for the release decision.
  • RR-5 Old, oversampled training data. Source: The UCI page, "Data from 1973 to 1975. Stratified sample from actual credits with bad credits heavily oversampled." Proposed measure: Drift monitoring on scored inputs, whose data source is the gap under Annex IV 9. Status: Open.
  • Approval: By your risk owner. None is given in this sample.
Release record and re-test
  • Annex IV point. 6, "a description of relevant changes made by the provider to the system through its lifecycle".
  • The change. v1 to v2: v2 stops using famges (personal status and sex) and gastarb (foreign-worker status) as model inputs, and nothing else changes. A release made by us for this demo, not a planted fault.
  • The trigger. Any change to the model artefact triggers a re-test of the new and the current version with the same scripts, test rows and test plan. The release record lists each version's file with its SHA-256.
  • Criteria. Set by the release plan, which our AI build agent wrote before any model was trained; no person agreed them.
  • A1, overall accuracy. v2 at least v1 minus 0.02. v1 0.755; v2 0.7525, 301 of 400 (interval 0.708 to 0.792). Met.
  • A2, per group. For every group of 30 or more test credits, v2 at least v1 minus 0.05. Met for all eight; the two smaller groups are not compared.
GroupnAccuracy, v1 then v2A2
Age 25 and under700.686, then 0.657Met
Age 26 to 351510.748, then 0.722Met
Age 36 to 501250.784, then 0.792Met
Age 51 and over540.796, then 0.870Met
famges 122Not comparedToo few to read
famges 21190.739, then 0.748Met
famges 32250.764, then 0.751Met
famges 4340.765, then 0.735Met
gastarb 118Not comparedToo few to read
gastarb 23820.751, then 0.746Met
  • A3, robustness. v2 passes R1, R2 at the scoring service and R3. Met.
  • Reported with no criterion. v2 AUC 0.795 (interval 0.748 to 0.838). 19 test credits change decision between the versions: 10 are right under v1 and wrong under v2, and 9 the other way; the exact McNemar p is 1.0. R4 for v2 is in the robustness tests.
  • Release decision: By your release manager. The re-test makes none.
  • Date and signature: By your responsible persons.
  • Runs. Re-test run-422eaceefb3e; v2 tests run-3badca022c6d.
  • Where the record lives. In this demo it comes from our build; in an engagement it is a record your release process keeps.
Monitoring plan outline
  • Annex IV 9 and Article 72(3). Article 72(3): "The post-market monitoring plan shall be part of the technical documentation referred to in Annex IV." The Commission is to adopt guidance, including a template, by 2 September 2027; this outline follows no template.
  • Drafted, in part. Drafted by us as the demo provider. Owner: Product owner. Approval: By your product owner; none is given in this sample.
  • What it watches. Overall and per-group accuracy of approved credits once their outcomes are known, read by the same rules as the test report; how often the scoring service rejects an input; and drift of scored inputs against the training rows.
  • Data sources. Outcomes of approved credits, from the loan records; rejections and scored inputs, from a record of every call to the scoring service. Declined applicants have no outcome, so accuracy on them cannot be measured after release.
  • Gap. That call record is not yet in place: The demo's scoring module keeps none, and drift monitoring and the rejection count both need it. Left open by us for the demo.
  • Triggers. A model change triggers the re-test in the release record. A group result that would fail the A2 rule opens an entry in the risk register, as Article 9(2)(c) evaluates risks from post-market data.
  • Serious incidents. Reporting them under Article 73 stays with the provider.
Test scripts and re-run package
  • What it holds. The scripts behind the accuracy, per-group, robustness and release re-test records; the test plan, the robustness plan and cases, and the release plan; the v1 and v2 model files; the release record; and the 400 test rows with their source and licence.
  • What it needs. Python 3.10 or later, standard library only, with no network and no model service. One command, rerun.py release, tests both versions and then runs the release re-test.
  • What it writes. An accuracy report and a robustness report per version, the release re-test, and a manifest with the SHA-256 of each output. The outputs hold no timestamps, so the same inputs give the same hashes.
  • Fresh-clone check. The package was committed to a new local git repository, cloned to a clean folder and run there with no private harness, no virtual environment and an environment of PATH and HOME only, under Python 3.13 and 3.14: All 5 outputs matched the recorded run byte for byte under both.
  • Not in the package. The training code and our private harness stay with us.
  • In an engagement. The test scripts and re-run package are delivered into your repository: Pushed by us to a separate private repository you create and own for our deliverables only, or sent as an archive your engineer commits. Your engineer can witness or re-run the tests, as agreed in the written scope.
What this does not show
  • Conformity. No conformity assessment, no notified body and no EU declaration of conformity; nothing is placed on the market.
  • The rest of the file. The records for points 4 and 7 were not written for this sample, and point 1 appears only in part, in About this file. Points 2(a) to 2(f), the rest of point 3 (among them the human oversight measures and input data specifications) and the instructions for use are not shown in this excerpt.
  • Approvals. No document here is approved; each owner is a role.
  • Client-side group results. None, because the demo runs on public data.
  • A sex group. None can be derived from famges.
  • Groups under 30 credits. Shown with their n, never read or compared.
  • One person, several credits. Not checkable: The data have no applicant identifier.
  • Accuracy for today's applicants. The data oversample bad credits, and the release documentation says "all debtors must have passed some checks of creditworthiness" before being granted the credit, so these figures are not rates for applicants in general.
  • A network test. None: The demo's scoring module has no network surface to test.
  • Other attacks. Data poisoning of the training rows, model extraction, membership inference and adversarial search over several fields at once were not tested.
  • The cost of errors. No cost matrix: Approving a bad credit and declining a good one count the same.

How this sample was made, and by whom

Who did what

  • Our AI build agent, for Veriprajna, saved the data and its documentation, ran the dataset checks, wrote the test plan, the robustness plan and cases and the release plan, trained v1 and v2, wrote the scripts and ran them once on both versions.
  • We wrote the drafted records in this file and the stand-in penetration test report, as the demo provider.
  • An AI reviewer that did not build the demo replayed it, recomputed the main figures from the raw files with its own code and checked the labels afterwards. Every figure it recomputed matched, its replay matched the recorded run byte for byte, and no label was found wrong; its caveats are on this page.

Fixed before any model was trained

  • What Article 9(8) asks. Testing "shall be carried out against prior defined metrics and probabilistic thresholds that are appropriate to the intended purpose of the high-risk AI system".
  • The order. The dataset checks, the test plan, the release plan with criteria A1 to A3, the robustness plan and the 27 R2 cases were registered with their SHA-256 at 14:48:05. The split and training followed at 15:13:32, and the one recorded run of the tests at 15:13:44. Only file times show that the test code was finished before the split.
  • The thresholds. A1 0.02, A2 0.05 and R1 0.05 were set by those files, which our AI build agent wrote. R4 has none.
  • One recorded run. Every test output in these reports comes from the one recorded run; the fresh-clone runs and the AI reviewer's replay matched it byte for byte.

Dataset checks before any group result

  • All passed. 20 of 20 checks passed before any split, model or group result.
  • Release and licence. The release is named, and its CC BY 4.0 licence was read on its UCI page.
  • Group coding. Confirmed from the release's own documentation, Groemping (2019), "South German Credit Data: Correcting a Widely Used Data Set": Every percentage of its Table 1, 69 levels over 17 categorical columns, reproduced from the data.
  • Codes. famges has 4 codes here against 5 levels in the Statlog code table; gastarb code 1 means yes.

The system under test

  • Model. A logistic regression with fixed settings and nothing tuned on the test rows: v1 on 20 inputs, v2 on 18.
  • Scoring. The package scores with its own arithmetic from the exported model files, so the re-run needs no machine learning library.
  • Model calls. 0: No language model is used to build, run or grade anything.

Have the Annex IV evidence for your high-risk AI system prepared

This sample is our own demo system. On yours, we draft with your people, test on a test deployment, and your named owners approve; a short discovery call comes first.

  1. Email or WhatsApp us
  2. Reply within 1 business day
  3. Free 30-minute discovery call
  4. Written scope and fixed fee within 2 business days of the call