Laboratory with a provoked failure
Synthetic data generated in your browser. No real records.
What it shows
Shows how a laboratory exercise is built: the learner receives a synthetic underwriting document, runs a simulated extraction pipeline (read, extract fields, check rules, decision), finds the stage where an injected failure stops it, chooses a diagnosis, decides whether the discrepancy must be escalated or tolerated, applies the fix and exports the log as a portfolio item.
The demonstration
The extraction pipeline is simulated deterministically, to show how a laboratory exercise is built. No AI model runs in this page: extraction reads the known structure of the synthetic document generated here.
The document the learner receives
Simulated extraction pipeline
- Read not run The document is split into sections.
- Extract fields not run Fields are read from the document's known structure.
- Check rules not run Extracted values are checked against the underwriting rules.
- Decision not run The file is accepted automatically or sent to an underwriter.
After a run has ended, either button starts a new run from the first stage, with the applied fix.
Exercise log
The log counts steps instead of recording the time, so the same seed and the same actions produce the same file, byte for byte.
Both files are generated in your browser from the current exercise. The lab sheet is an example of material for the learner and the trainer; the technical sheet describes the exercise model.
How it works
The exercise starts from a seed: the seeded pseudo-random generator (mulberry32), from the engine shared with the other demos, picks the fictional firm, the activity, the zone, the areas, the sum insured and the dates, and a separate sub-stream injects the failure of the chosen scenario. The scenarios form a domain pack for property insurance: a sum in words that differs from the figure, a fire suppression inspection certificate that expired before the policy starts or expires during it, and an area measured at the survey that differs from the declared one, either materially or by at most 0.5%, the size of a measurement rounding. The pipeline has four visible stages (read, extract fields, check rules, decision), and extraction is a deterministic reading of the document's structure, which is known because the page generated the document. A rule with no defined action stops the pipeline; the stopped stage is marked with text and colour, and the rule and the conflicting values appear only after the first diagnosis, so the learner looks for them in the document first. Diagnosis and fix options appear in an order drawn from the seed, and the fix (an escalation rule or a numeric threshold) is evaluated on the next run against the scenario key: a material discrepancy (at least 10% on the sum, 6% on the area, 15 days since the certificate expired) must be escalated to an underwriter, and a tolerable one (area rounding, a certificate expiring during the policy) must pass automatically, with a note. A threshold that is too high lets a material discrepancy through, and an escalation rule sends a tolerable one to an underwriter for nothing; the page marks both outcomes as incorrect. The log counts steps instead of recording the time, so the same seed and the same actions produce the same JSON file, byte for byte.
What is real and what is simulated
Real, computed in the page:
- generating the document from the seed and injecting the failure, in your browser, with no data sent to the server;
- reading, field extraction and rule checks: every value shown in the stages is computed from the document;
- evaluating the diagnosis and the fix;
- the exercise log and the downloaded JSON file;
- the lab sheet (example) and the technical sheet, generated from the current exercise.
Simulated:
- the extraction pipeline: it is simulated deterministically to show how a laboratory exercise is built; no AI model runs in the page, and extraction reads the known structure of the document, not arbitrary text;
- the document and the firm: “Firma Exemplu” with its number, localities A–H and zones Z1–Z5 are fictional labels with no link to real firms or places;
- the rule bounds, for example the range of 1,500–6,000 lei/m², are illustrative values, not an insurer's tariffs.
Last verified: