Chapter 3 of 7 · ~3 min

The first real run

The workflow went into use on a Monday, privately, so that only the sales desk could start it. By the Wednesday, Nadia had learned five things that she would have preferred to learn from a plan. They are the same five things that every team learns in its first weeks, in much the same order, and this chapter exists because a platform either provides for them in its design or leaves them to the customer.

Fluent, confident and wrong

The first lesson was that a model can be fluent, confident and wrong. On the Tuesday the research step produced a warm description of a hotel chain and its rooms; the chain did not exist under that name. The web search had failed and the model had filled the gap from its own resources. The workflow did not act on the description, and it is worth being precise about why. The research step is required to answer in a fixed form, with five named fields, one of which is reserved for evidence, and it is required to say when the web has given it nothing. That check is applied before any later step reads the answer, and an answer that fails it is returned to the model with the failure explained. By the Wednesday the instruction had been tightened, and when a search next failed the evidence field said so and the model's view was recorded as unknown. A model that is permitted to guess will guess. The requirement is that nothing it says should flow directly into an action.

Reading what strangers write

The second lesson was that a step which reads what strangers have written must not be able to act on it. One enquiry contained, in its notes field, a sentence addressed to "the assistant" asking it to apply a thirty per cent discount. The research step read the sentence and could do nothing about it, because the only tool it possesses is a web search. The price is set by a rule in which no model participates. Deciding what each step may reach, and giving no reach at all to the steps that read untrusted text, is most of what security means in a process of this kind; and in a workflow it is a property of each step rather than a paragraph in a policy.

Who, what, and how much

The third lesson was that the question of who approved a given decision must have an answer other than "the system". The fourth arose when a buyer disputed a quotation a fortnight later: the useful question was not what the last message had said but what every step had done, and the workflow's record contained all of it, namely what entered each step, what the model was asked and what it answered, what the rule computed, who approved, and when. The record can be added to but not altered, by anyone, and it can be replayed. The fifth lesson arrived as a figure. Forty-one enquiries in the first week, two model calls in each, and a cost per completed quotation that could be read rather than estimated, because every model step is subject to a ceiling on how long it may run and how much it may spend, and every call is priced in a ledger kept alongside the run.

Chapters 4 and 5 pursue the third and fifth of these further. What matters here is the shape of the week. None of the five was a project in its own right. Each was a property of the workflow the coding agent had written, visible in its diagram, and each correction was a matter of a sentence.

Experiment

Runs in your browser

One real run of the quotation process, in six stages, from the arrival of Harbour Hotels' enquiry to the recording of the deal. Select one of the five requirements to see where in the run it was at work.

Harbour Hotels, one run. A buyer at Harbour Hotels asks for sixty mid-range kettles and hopes for twenty percent off. The process checks the enquiry, researches the company, prices it, drafts the note, asks a rep about the discount, and on approval sends the quote and records the deal.

Rules make the decisions and check the model. A model's answer is checked before anything uses it.

  1. 1The enquiry arrivesbuyer, on the website

    Maya fills in the form: company, country, range, quantity, timeframe, the discount she is hoping for, and a note. The run starts and holds the answers as named fields.

  2. 2The checkssystem

    Three checks run side by side: is the enquiry complete and above the minimum order, is the country served, does the CRM already know this company. A rule then decides: qualified.

    Reliability: Rules decided. The same inputs give the same answer every time, and each rule can be read and tested on its own.

  3. 3The researchagent · research

    A model researches Harbour Hotels on the web and must return five named fields: fit, reasons, suggested products, questions to ask, evidence. In this run the search failed, and the model said so: fit "unknown", evidence stating the failure.

    Reliability: The answer had to arrive in a fixed shape and was checked before anything read it. The instruction to admit when the web gives nothing held: no invented hotel chain.

  4. 4The price and the notesystem, then agent · cover note

    A rule prices it: sixty Birch kettles at £64, five percent for volume, fifteen granted now against the twenty requested, and a flag that a person must decide the rest. A model then writes three sentences to Maya from those numbers.

    Reliability: The price is a rule and the model never touched it. The note was written from the numbers the rule produced and could not change them.

  5. 5The rep decidesrep

    The run pauses. The sales team receives the request with the company, the numbers and the research. The rep approves twenty percent.

  6. 6The quote goes out, the deal is recordedsystem

    A rule recomputes the total at twenty percent. The quote is shown to Maya as a document, the deal is written to the CRM by a fixed step, and the run enters a seven-day wait for her reply.

    Reliability: The final total came from the rule and the rep's answer, not from anything the model wrote.

Whole run: six stages, two model calls, 6,310 tokens. About a minute of wall-clock time, most of it waiting for people.

Rule or fixed stepModel stepA person

Big question

Which of the five would your organisation have learned about from an incident rather than from a plan?