Osy#betaRun it on Osyrin: osyrin.com

Reference / Agent

A supplier is qualified — five days, four agents, one that failed, and a three-day wait

A tool maker qualifies a new supplier of castings. Four agents do the reading steps of a fixed process. One of them fails twice and a person does its step by hand; another proposes the approval and waits three days for the procurement lead. The story is told day by day with what each person saw, what it cost, what was refused, and what was erased afterwards. Every fact in it is asserted by the tests of the kit it comes from.

previewagentsguidestory

You are here: Agents in an Osy# app › Stories › A supplier is qualified

Summary#

Halden Tools makes tools. Before it buys from a new supplier, its procurement office qualifies that supplier: are the papers in order, how much depends on this company, on what terms do we approve it. It is the same four steps every time, and it takes days, because people are part of it.

This is one qualification, of a foundry called Brightwater Castings, from Monday to Friday.

Description#

Who is involved?#

PersonTheir jobWhat they may do with the agents
Jonas Brandtbuyerask for a qualification; read the agent work done for him
Mara Oyelaranprocurement leadanswers for all four agents; decides what they propose; sees what they cost
Edda Lindqvistrisk officerreads everything the agents did, with what was said; teaches them
Tilde Aunerecords clerkerases what has been kept long enough
Rafi Demirwarehousenothing: none of this is his
AgentIts stepWhat it may do alone
Screenerchecks the supplier's documentsnote what is missing; hand the insurance certificate to the Insurance reader
Insurance readerreads the certificateonly read
Assessorweighs the riskonly read; one more try if the AI model cannot be reached
Registrarsettles the terms and approvesnothing: approving a supplier is proposed to a person, every time

What is the process?#

Four steps, drawn here by the app itself from the process as it is written. The boxes on the right are the ways a qualification can end.

The qualification process: Checking documents, Assessing risk, Assessed by hand, Settling terms, then Approved, Declined, Withdrawn or Documents missing

The heavy line is the way Brightwater's qualification went. "Assessed by hand" is a step that exists for one reason: for when the [[agent-guide-glossary#agent|agent]] that assesses risk cannot.

Monday: the request, and a failure#

At eight, Jonas asks for Brightwater Castings to be qualified. It supplies aluminium castings, and Halden plans to spend 310,000 euros a year with it.

The Screener starts at once. It lists the documents on file — a certificate of incorporation, a quality certificate, proof of insurance — and hands the insurance certificate to the Insurance reader, with at most one cent to spend on reading it. The answer comes back: covered for 500,000 euros, against 310,000 a year. Documents complete.

The Assessor is next, and the [[agent-guide-glossary#model|AI model]] it uses cannot be reached. Its job is set up to try once more. The second try fails too, and the Assessor gives up.

The process does not stop. It was written to expect this:

Monday on the run's page: the Screener finished; the Assessor's work failed, was tried again, failed, and the step was handed to the risk officer

"The assessor could not finish, so the risk officer assesses this supplier by hand." That sentence is the process's own, written by the people who built it.

Tuesday: a person takes over#

Edda, the risk officer, finds the qualification waiting for her. She assesses it herself: medium risk, "the only caster of this alloy nearby, and a large order."

Tuesday: the step waited one day for the risk officer, who answered it

The process moves on to the last step. The Registrar reads the assessment and reaches a conclusion: a medium risk with its documents in order is paid in 45 days and audited within a year. Then it wants to approve the supplier on those terms.

It may not. Approving a supplier is the one thing this agent must put to a person every time. Nobody is signed in — this is a process, running by itself — so the [[agent-guide-glossary#proposal|proposal]] goes to the person who answers for the Registrar: Mara.

Tuesday to Friday: waiting#

For three days nothing happens, and that is the point. The Registrar's work stands where it stopped. No AI model is asked anything, and nothing is spent. Anybody following the qualification can see what it is waiting for, and for how long.

The Registrar's work while it waits: waiting on a decision from Mara Oyelaran; the proposal with the supplier, 45 payment days and the condition; and why

The page of the Registrar's work while it waits, from a run of the same process in which the Assessor did not fail. It says who it waits for, what exactly it proposes, and why.

Friday: the approval#

Mara approves. The supplier is approved at that moment, as Mara: paid in 45 days, "Audit within a year." The Registrar finishes, and the qualification ends at Approved.

Tuesday to Friday on the run's page: the Registrar was given the work, waited for a person, and finished three days later

What did it cost?#

The run's page adds it up.

Agent work in this run: Screener done, Assessor failed twice at no cost, Registrar done; $0.0049 in all

Each piece of work is charged to itself and to the run, so the total is counted once. The two failed attempts cost nothing: no call reached a model. The amounts are tiny because this is a test: the AI model in it is a scripted stand-in with made-up prices. What the test checks is that every call is counted, and that the run's total is the sum of its parts.

What did each person see?#

The same qualification looks different to each of them, and none of that was built for this app. It follows from who they are.

  • Edda, who audits, reads all of it: every step, what each tool was given and what it answered.
  • Mara, who supervises, sees every step and what it cost. What a step said is kept from her, and the page says so:

One step as the procurement lead sees it: what it said is kept from her

  • Jonas, the buyer, reads the screening and the assessment, because they were done for him. The Registrar's work was done for nobody, with the agent's own rights. When he opens it he is told it is not his to see.
  • Rafi, in the warehouse, sees no qualification, no agent work and no run.

What was refused, and what was stopped?#

Three things the same process does on other days, each one a test of its own:

  • A limit. The procurement lead sets a limit for each qualification. On a run that reaches it, the Assessor's step is stopped before its first call is sent — "Its money ran out" — and the process hands the step to the risk officer exactly as it does for a failure. The run's page shows what was spent against the limit.
  • A missing document. When proof of insurance is not on file, the Screener notes it and the qualification ends at "Documents missing" after the first step. The other three agents are never asked.
  • A withdrawal. If Jonas withdraws his request while the Registrar's proposal is waiting, the work is called off, the proposal is withdrawn, and Mara's late yes would be refused.

What happened afterwards?#

Forty days later, Tilde erases what the Screener's work said: it has been kept long enough. The page of that work now says it was erased, on which day and why. The steps are still listed, each with what it cost, and the record still checks.

The same work after its words were erased: it says when and why; the steps and the record remain

Later still, Edda teaches the Registrar something: "A supplier with a single site is audited within six months." She proposes it and makes it active. Brightwater's approval is not changed by that. Its page says the Registrar ran before anybody had taught it anything, and that one [[agent-guide-glossary#instruction|instruction]] has been made active since.

Where is this written down?#

The process, the four agents and every sentence quoted above are in the test app of the kit that joins agents and processes. Its eighteen tests are the story: a_supplier_is_qualified_through_three_agent_steps_a_failure_and_a_three_day_wait is Monday to Friday; the_inspector_shows_each_reader_what_is_theirs_to_read is who saw what. No AI model is called in any of them.

Go deeper#

Related

Agents in an Osy# app — what they are, in plain words

An app written in Osy# can have AI agents that people can trust with real work. An agent is a part of the app with a…

Two suppliers for a bakery group — a week's wait, an outsider's answer, and one agent directing three

A bakery group's purchasing office takes on a flour mill and qualifies a dairy. The mill's own contact fills in a form…

A parcel that never came — a case owned until it is right, closed, and opened again

A tea shop's customer reports that her order has not arrived. The shop opens an assignment: a piece of work it owns…

Shape 3 — agents inside a business process

A business process is a workflow, and an agent's work is one of its steps: an ordinary awaited call that answers the…

Agents in business processes — an agent's work as a step of a workflow, told on the run (Agents.Processes kit)

An agent's work is a step of a business process by being called from the process's workflow: an awaited call in a…

Processes — every run of a business process, listed and read from start to now (Processes kit)

Osysharp.Processes makes the runs of an app's workflows followable by the people who answer for them. The app names…

The inspector — one piece of an agent's work, readable by a person who was not there (Agents.Inspector kit)

Osysharp.Agents.Inspector draws one page for one piece of an agent's work: what it was and how it ended; who gave it…