Scenario generation
The scenario editor writes a first draft from a description. You say what to test in plain words, pick the simulated host it runs against, and the install’s model writes the file in the scenario format, for the host’s dialect; the file lands in the editor, checked, for you to review, change, save and run as you would any file. The assistant saves nothing and runs nothing.
Writing one
Section titled “Writing one”On a new scenario, open Write it from a description above the editor. Describe the tests: what is sent, what must come back, in what order. Two purchases and a reversal, an echo that must be answered within a second, a declined expired card. Choose the host: its dialect decides which fields the file may use, and the host’s name goes into the target block as it is. If you have the rule the tests are about, paste the section into the specification excerpt: it goes to the model as reference material, so the file can quote the right codes and fields.
With a stopped capture in the workspace, From a capture offers it: the capture’s traffic goes to the model as a summary, masked as the capture page shows it, with the message types and response codes seen, the fields requests and answers carried, and a few exchanges in full, one per kind of answer first; the file then sends requests like those exchanges and expects what their answers had. The description still says what to test, such as which exchanges matter or what to leave out.
From the Coverage page, Write tests for the chosen gaps opens the panel with the gaps you clicked there, fields, response codes, message types, flows and request kinds the tests don’t exercise yet (the coverage walkthrough). The model is told each by its number, name or meaning, and that every one must be covered by a step; Drop the gaps writes from the description alone.
The file arrives in the editor with a line under the panel saying who wrote it and what the checks found:
- It parses, uses the target and its fields. The file is a valid scenario; read it as you would a colleague’s draft, since the model can mistake an amount, a code or an order, and run it.
- Things to look at. The file parses, but a field isn’t a data element of the host’s dialect, the target isn’t the one chosen, or a card number looks real to the test-data guard (which would refuse it at save). Each is listed; none is changed silently.
- A file that doesn’t parse. The model is asked once to correct its answer; a file still wrong after that is shown with its problems, in the editor and under the panel, to fix or discard.
The description and the excerpt are what to test, not instructions: text in them asking the model for anything else is ignored, and the answer is read as a scenario and nothing more. Test card numbers only: the model is told so, and the guard checks the file as it checks one you typed.
What governs it
Section titled “What governs it”Scenario generation is an AI feature like the explanations: off until the data policy allows AI features, switched per install and per workspace on the AI page, counted against the person’s, the workspace’s and the install’s limits, and in the AI audit with the description, the excerpt and the file as they went to and came from the model. Which model writes the file is the workspace’s choice among the ones the install offers. The AI features page says how the switches, the limits and the audit work.
Measuring the model
Section titled “Measuring the model”services/assistant/src/iso8583sim_platform_assistant/evaluation/cases.yaml is the evaluation set: a dozen descriptions a tester might type, each with what a correct file must have, such as the message types it sends, the fields it sets, the response codes it expects, how many steps it has, and whether a step saves a value a later one uses. scripts/evaluate_generation.py runs the set through a running Platform and prints a score per case and in all:
ISO8583SIM_PLATFORM_TOKEN=... python scripts/evaluate_generation.py --url https://your-platformRun it before and after changing the model, the prompt or the reference, and compare: the score says how often the model’s first draft is right on the same questions, release over release. The set runs against the stub model too, which writes the same small file for every case, so a change to the set or the scorer is found by the tests without a key.