Agentic AI Capability

The same rule gives the same result, every run.

The Lima Rules Engine executes the plans your team publishes. It reads the plan from the rule store, gathers the facts it needs from your systems, evaluates the conditions in the order the plan sets, and carries out the actions the plan allows.

ONE RUN OF THE LIMA RULES ENGINE, FROM TRIGGER TO RECORDED OUTCOME01A triggerfiresa schedule, aninterval, an event,or a person02The plan isreadthe publishedversion, its limitsand its level03The facts aregatheredmapped tables, readwhere they live04The conditionsrunrow by row, in thepublished order05The actions gooutinside your limits,or as a draft06The outcome ischeckedagainst theobjective the agentwas giventhe record of every run returns to the rule store as evidence for the next version
The same six steps run for every agent. The dashed line returns the record of the run to the rule store. Product.
6
steps in every run, in the same order for every agent
product
100%
of actions traced to a versioned rule in the live cancellation deployment
production
Zero
token cost at run time: the in-estate model serves execution
production
4
kinds of trigger start a run: a schedule, an interval, an event, a person
product
Where this sits

Stage 5 of six: act

Step by step

What happens between the trigger and the record

Six steps, the same for every agent, so one run reads the same way as the next.

STARTREAD AND EVALUATEACT INSIDE LIMITSCONFIRM AND RECORDYour systemsThe Lima RulesEnginePeopleTrigger and planthe published version isread from the rule storeFacts answer in placemapped tables, under theaccess the agent carriesConditions evaluatedrow by row, in the orderthe plan setsLimits checkedvalue, budget, confidencefloor, rateA named person decideswhere the level asks for anapprovalThe change isperformedyour system runs its ownchecks and answersThe run is recordedrule, facts, limits,approver, outcomethe amber path is the approval route at A2 supervised · showcase estate
Three lanes: your systems answer, the engine reads and decides, and a person steps in where the level asks for it.

A run starts when its trigger fires. The engine reads the plan for that agent from the rule store: the published version, the rows of conditions, the actions each row allows, the limits that apply and the level the agent runs at.

It then builds the fact base for that run. Each row names the data it fetches, and the engine reads those mapped tables through the federated query engine, in the systems that hold them, under the access the agent carries.

Evaluation follows the published order. Row by row, the engine tests the conditions against the facts and keeps the lines that match. Where a row calls for a calculation, the calculation block runs it and hands the number back to the rule.

Matching lines become findings, and the level decides what follows: the agent informs a person, drafts for a named approver, or executes inside your limits. The engine then checks the outcome against the objective and writes the run to the audit trail.

Inside the engine

Nine parts, grouped in three layers

Nine parts behind every agent, and one clear division of labour between the engine and the model.

NINE PARTS IN THREE LAYERS, SHARED BY EVERY AGENTAUTHORINGRule repositoryevery version, with owner andapproverAdvanced Rule Builderrows, query conditions or ashort scriptValidation whileauthoringfields, values and accesschecked as you typeEVALUATIONFact basefederated reads under theagent’s own accessRule evaluationconditions in the order theplan setsCalculationstatistics and solvers where arule needs themACTIONArbitrationcompeting recommendationsranked inside a bandAction flowsevents, workflows, interfaces,databases, filesClosed-loop operatorthe write-back setting held peragentOne repositoryEvery published plan keeps its number, itsowner, its approver and the level it runs at.One fact baseFacts come from your mapped data, read in placeunder the access the agent carries.One recordEach action carries its rule version, thelimits checked and the answer your systemreturned.
Authoring is where your team works; evaluation and action are what the engine does on its own. Product.

The authoring layer holds what people write. The rule repository keeps every version of every plan with its owner and its approver. The Advanced Rule Builder is where a row is edited by hand, and validation runs while the author types.

The evaluation layer holds what the engine reads and works out: the fact base over your federated sources, the evaluation of the conditions, and a calculation block for rules that need statistics or a solver.

The action layer holds what the engine does with a result. Arbitration ranks competing recommendations, action flows carry the action to the system that will perform it, and the closed-loop operator holds the write-back setting for that one agent.

The PO cancellation agent runs on these nine parts today, and every role built from the blueprint would share them. That is why oversight is learned once: one repository, one fact base, one record.

The rules engineThe language model
Evaluates the published conditions and returns the resultPuts that result into a sentence a planner reads
Applies your limits before an action is carried outDrafts the plan at design time from the stated intent
Ranks competing recommendations inside the band you setProposes candidate rules found in past planner behaviour
Carries out the action and stores the acknowledgementReports where live data has moved away from what a rule assumed
Gives the same result on the same facts and versionServes run time from inside your estate, at zero token cost

The engine decides; the model explains, discovers and reports drift. Product.

The fact base

What a run reads, and where it reads it

The rule names business objects; the engine resolves them to your columns through the published mapping.

Fact the plan readsOntology object it belongs toWhere it was read in the showcase estate
Open lines and their quantitiesPurchase order lineSAP S/4HANA · Oracle Fusion
Requested and confirmed datesSchedule line · supplier confirmationSAP S/4HANA · supplier portal
Stock on hand and stock on orderStock · material at plantSAP S/4HANA · warehouse system
Forward demandForecast · sales orderPlanning suite · SAP S/4HANA
Cancellation window in daysPurchase order lineSAP S/4HANA, a custom field mapped by your team

The fact base is the set of rows one run reads. It is assembled from the mapped ontology, so a rule names “projected excess” and the engine works out which columns in which systems carry it. The rows stay in the systems that own them.

Each agent carries its own least-privilege access, and the fact base applies it. The facts are stored as they were read, with the system and the moment, so the reason for a decision stays readable years afterwards.

Writing the conditions

Four ways to state a test, and a check on every one of them

A condition can be a row, a comparison, a query or a script, and each one is checked as it is written.

How a condition is writtenWhat it looks likeWho usually writes it this way
A row in the planning tableProjected excess · above · 8 weeks of demandPlanners and buyers, in the words the policy uses
A comparison on an ontology attributeSupplier class equals standardDomain owners, in the Advanced Rule Builder
A query conditionA SQL statement over the mapped tables that returns the lines to act onData leads, for tests a single row leaves out
A short scriptA few lines that work out a value in several steps and return itData leads and IT, reviewed before release
1
A row is addedthe author picks the ontology attribute the condition tests
projected excess
2
The field is checkedthe attribute exists in the published mapping and carries a number
valid
3
The value is checkedeight weeks of demand sits inside the range the live data shows
valid
4
The access is checkedthe agent’s own rights reach every table the row reads
valid
5
An overlap is reportedrows 04 and 05 both cover a line worth exactly $25,000
the author decides
6
The row is saved as a draftthe plan waits for simulation and a named publisher
draft

Most conditions stay as rows, because a row is what a planner reads and an auditor checks. The two open forms are there for the tests a row leaves out, such as a comparison across several periods.

Validation runs while the author works. It confirms the attribute exists in the published mapping, that the value fits the data, that the agent’s access reaches every table, and it reports overlaps between rows before the plan is simulated.

Validation while authoring · showcase estate.

Triggers

Four ways a run begins, and what each suits

The trigger is a setting on the agent, and every run records the one that started it.

TriggerWhat starts the runExample from the showcase estate
A scheduleA time you set, on the days you chooseThe cancellation agent runs at 06:00 each weekday, before the planners arrive
An intervalA gap you set between runs, such as every 15 minutesA shortage triage role would refresh its ranked list through the working day
An event in a sourceA row that changes in a system Juno readsA customer push-out lands in the planning suite and an excess stock role would run
A personA run started by hand from the agent screenThe Friday test write: one line changed in the test system of each ERP, started from the agent screen at 12:30

Each agent carries its own trigger, and a run records which trigger started it. Showcase estate; the shortage triage and excess stock roles are designed in the agent blueprint, yet to be built. blueprint

A schedule suits a decision the team works through at a set hour. An interval suits a queue that people watch during the day. An event suits a change that matters within minutes. A run started by hand suits a test, a question from a manager, or a rule that has just been published.

The running example

Monday 06:00: one run, 38 lines, 41 seconds

Showcase estate.

The running example

The PO cancellation agent ran at 06:00 on Monday 21 September, as scheduled, after the planning run. The engine read version 3 of the policy, gathered 1.2 million open lines from SAP S/4HANA and Oracle Fusion, and evaluated the five rows in 41 seconds. When L. Tan opened her 1,240 exception messages at 07:40, the lines were already found.

Thirty-eight lines matched, worth $412,000. Twenty-nine of them sat under the $25,000 threshold and reached D. Okafor’s approval queue as drafts worth $187,300; nine ran above the threshold and reached D. Okafor as buyer, for his judgement, with the reason for each.

The policy ran at A2, so a named person approved every one of the 38. The threshold decides who sees a line first, and the approval stays with a person on both sides of it. Each line carried its rule version, the facts as read and the limits checked, so the queue showed the reason beside every draft.

Next capability

Monitoring and alerts

How a rule you state in plain language becomes something Juno watches, and how the alert reaches the right person.

Terms on this page
Rules engineThe part of Juno that executes published plans and gives the same result on the same facts.
Rule storeThe versioned home of published plans, with the owner, the approver and the level on each version.
Fact baseThe set of rows one run reads, assembled from your mapped data under the agent’s access.
ConditionOne test in a plan: a row, a comparison, a query or a short script.
RunOne execution of one agent’s plan, from the trigger to the recorded outcome.
Calculation blockThe part of the engine that runs statistics and solvers where a rule needs them.
Questions
Does the language model decide anything at run time?

The published conditions decide. The model writes the explanation, proposes candidate rules from past behaviour and reports drift. At run time it runs inside your estate, so a call carries zero token cost.

What happens when a source is slow?

The run records the facts it could read and reports the gap beside the affected lines. Those lines wait; the rest of the plan carries on. The next run picks them up again.

Can two agents read the same fact base?

Yes. Facts are read per run under that agent’s access, so two agents reading the same tables see the rows each of them is cleared for.

How long does a run take?

It depends on the sources and the size of the plan. In the showcase estate the cancellation policy read 1.2 million open lines and evaluated five rows in 41 seconds.

In the platform

Where Juno sits among the four capabilities

Each one builds on the one before it.

One shared foundationCatalogLineageAccess policyWrite path

See Juno answer and act on your own data

Bring two systems and one decision your planners make every week. In the first week we register the data, confirm the mapping with your team, answer your questions in ChatLima and run the first agent at the level you choose.