TotalApp Docs

Brain Engine

The technical architecture behind The Brain: memory, processes, data, models and infrastructure in one loop of understanding, acting and improving.

Overview

Brain Engine is the integrated digital mind of a business. It joins memory, processes, data, models and infrastructure into one continuous loop of understanding, acting and improving, inside the permissions, limits and budgets you set.

You describe your organisation, choose your sector, connect your systems and add your documents. Brain Engine builds an application around how your business really works, then takes part in daily operations: it takes in changes, keeps the current picture of the business, uses accumulated experience, makes forecasts, proposes solutions and carries out the actions you allow.

Status

Brain Engine is in development. This page describes the target product so teams and partners can plan around it. It is not a status report, and individual modules may arrive at different times.

The Brain and Brain Engine

The Brain is what your organisation uses day to day as part of Enterprise Mind. This page is the technical view: the architecture, modules and concepts behind it.

In one minute

  • It follows the business. A demand spike, a late delivery or a customer request updates its picture and can start a calculation or an allowed action.
  • It remembers with sources. Events, decisions and results stay linked, with freshness and access rules.
  • It acts only inside limits. Policy, approvals and autonomy levels decide what may run.
  • It checks itself. Results are compared with expectations and used to improve models and processes in a controlled way.
  • It does not depend on constant LLM calls. Daily operations run on models, statistics, rules, procedures and solvers.

Operational Brain

Answers “What should be done in this situation?” day to day.

MetaModel

Answers “How should the system be built to solve this kind of task better?”

Governance

Rights, approvals, audit trail, rollback and recovery are part of the design.

The loop

Every piece of work goes through the same nine steps, so each outcome makes the next decision better.

Observe
→
Understand
→
Remember
→
Predict
→
Choose
→
Check permissions
→
Act
→
Observe the result
→
Learn
StepWhat happensExample
ObserveChanges and events are taken in.Orders jump 30% on a Monday morning.
UnderstandA current picture of entities, queues and resources is kept. Missing, stale or conflicting data is marked.Which rooms are ready, which wait for cleaning, which have no recent check.
RememberEvents, decisions and results are linked, with sources, freshness and access rules.How a similar fault at the same site was solved last spring.
PredictSpecialised models and the World Model forecast how the situation may develop, with uncertainty.The warehouse will be overloaded on Thursday.
ChoosePermitted options are compared on cost, risk and benefit, and the choice is explained.Move two tasks and rebalance staff.
Check permissionsPolicy and autonomy rules return allowed, refused or needs approval.Spend above the limit goes to a manager.
ActApproved actions run from the action catalog with durable execution.A maintenance task is created and linked to the guest request.
Observe the resultActual results are compared with the expectation and stored with their evidence.The forecast said Thursday, the real peak was Friday.
LearnRepeated misses lead to a controlled review of a model or the solution architecture.The demand model is retrained and shadow-tested.

Confidence is not authority

A confident forecast or suggestion still cannot exceed a limit, touch protected data or run an action that needs approval.

Two levels of intelligence

The two levels work on different time scales. The operational level accompanies current events and tasks. The architectural level looks at accumulated problems and ways to improve, while business processes keep running on the approved version.

Operational intelligenceArchitectural intelligence (MetaModel)
QuestionWhat should be done in this situation?How should the system be built to solve this kind of task better?
Works onCurrent events and tasksHow tasks are solved: which components, in which order
OutputA decision, an action, a result checkA versioned architecture proposal with evidence
Who approvesPolicy and, where required, a personA responsible person, in a separate acceptance process

Building your environment

Brain Engine settings live in your own environment. Staff see their tools, managers see their unit, system administrators see the permitted system settings.

Describe
→
Connect
→
Review
→
Launch
#StepWhat you do
1Choose your sectorPick one or several areas of activity. A clinic can combine intake, laboratory and diagnostics.
2Describe the organisationUnits, sites, staff, customers, volume and business model.
3Add connectionsYour cloud, servers, databases, APIs and supported MCP services, with the access you allow.
4Upload documents and clarify in dialogueBrain Engine combines them with known context and sector knowledge.
5Review the future applicationRoles, processes, data, planned actions and important contradictions.
6Pick the designLayouts suited to the work: calendars, queues, maps, documents, analysis panels.
7Set brand and governanceName, visual system, access, approvals, allowed autonomy and budget.
8Review the application and resource planWhat will be built, which integrations are needed, expected cost.
9Receive your domainApproved resources are prepared and checked, then your application opens.

After launch you can ask for changes in plain language, for example “Add a second branch” or “Change the repair approval process”. Brain Engine finds the affected data, processes, screens and resources, prepares a new version and shows the changes before applying them.

What you get

Your own application

An address and a space reserved for your organisation.

Workspaces

For staff, managers and, when needed, customers or partners.

One consistent model

Data, documents, processes and access rights that fit together.

Connections

To the external systems and sources you allow.

Applied AI functions

Matched to the tasks of each role.

Infrastructure control

Service status, compute resources and budget.

History

Changes, results, decisions and approvals.

Change by conversation

Clarify requirements and evolve the application in dialogue.

Modules

A module is a functional subsystem, not necessarily a separate server or software package. Each has its own responsibility, settings, output and links to the others.

ModuleResponsibility
Domain Brain and StudioTurns requirements into your application and its Domain Package: roles, processes, data, interface, integrations and resources.
Knowledge and semantic layerConcepts, relations and requirements, each linked to its source. Flags contradictions.
Data PlatformIngests, checks and prepares data, with lineage and pinned source versions.
StorageSnapshots, backups, clones, retention and recovery points.
MemorySourced, versioned, time-aware context, decisions, results and experience.
ML Runtime / Model FabricTrains, versions, runs and monitors specialised models.
LLM and Cognitive RoutingChooses the right tool: memory, a known procedure, a model, a solver or an approved language model.
Enterprise StateThe observed state of the business, plus compact representations for computation.
World ModelForecasts, scenarios and uncertainty.
Decision and OptimizationChooses among permitted actions, solves allocation and scheduling, explains why.
Verification, Policy and AutonomyRights, approvals, limits and autonomy levels.
Actions and OperationsTurns permitted decisions into work items, assignments and executed actions.
DurabilityRecords progress, resumes after failures, recognises repeated requests, verifies uncertain results.
FabricShared context, events and audit trail between all modules.
Control PlaneDesired versus real state of the whole environment, health and cost.
Infrastructure and ComputePrepares and runs CPU, GPU, network and database resources in an approved cloud or on your servers.
Integration StudioConnects databases, APIs, file systems, clouds and MCP services, separating read rights from action rights.
Outcome Learning and HomeostasisChecks whether actions helped and keeps the system healthy as conditions change.
Brain MetaModelDesigns and verifies the architecture that solves a class of tasks.

Brain MetaModel

The MetaModel acts as the engineer that designs how a class of tasks is solved. Organisations differ: a clinic may care most about waiting time, a warehouse about placement, a school about timetables. The MetaModel searches the approved component catalog for the combination that fits, then checks it before anything is used.

How a search proceeds

Define the task
→
Propose candidates
→
Check structure
→
Compile
→
Evaluate
→
Shadow run
→
Approve
→
Monitor
StageWhat happens
Define the taskGoal, constraints, permitted data, the current architecture and the search budget are fixed.
Propose candidatesA few combinations of permitted components, or changes to the current setup, are generated.
Check structureComponents, inputs and outputs, parameters and versions are verified.
CompileA runnable configuration is prepared. It is not yet proven to be good.
EvaluateCandidates and the current solution run on comparable scenarios. Quality, delay, cost and constraints are measured.
Shadow runThe best candidate receives real permitted inputs in parallel with the current one, with no outside actions.
ApproveA responsible person reviews evidence, risks and the rollback plan. Rollout is gradual.
MonitorReal results are compared with expectations. If limits are breached the system stops or returns to the previous version.

Example: scheduling a large clinic

The clinic wants shorter waits while respecting doctor hours, room availability and equipment. The MetaModel could compare three options.

OptionCompositionWhat is checked
A. Rules and optimisationFixed appointment lengths, resource calendar, rules, allocation algorithm.Whether the simple setup is enough for normal load.
B. Prediction and optimisationAppointment-length model plus the same calendar and algorithm.Whether prediction improves the schedule on independent data once its cost is counted.
C. Prediction, context and scenariosPrediction, permitted history of past delays, a World Model and optimisation.Whether the extra context helps in heavy load and failures.

This is an illustration of a possible comparison, not the result of a finished experiment. A more complex option is not preferred just because it has more parts: if the simple one meets the needs better on quality and cost together, the MetaModel recommends it.

The MetaModel never deploys on its own

Its output is a verified proposal with evidence. Authority and rollout stay with the responsible person and Brain Engine's own controls. Training, selection and final test data are kept apart, so fitting known examples is never taken as proof of quality.

Technical concepts

Short definitions of the terms used across Brain Engine. They are the vocabulary of the target architecture.

TermMeaning
Domain PackageThe package that defines a customer application: composition, versions, data, processes, interface, integrations and resources. The Control Plane reads it to know what should exist.
Enterprise StateThe observed state of the business, keeping both event time and ingestion time. Missing, stale and conflicting observations are flagged.
Latent StateA learned compact representation of that state for computation. Compressing data is not the same as forecasting.
Enterprise EpochA pinned set of source versions used in a calculation or training run, so it can be repeated. Missing sources are stated openly.
Action catalogActions with input schemas, conditions and access requirements. Only catalog actions can run.
Cognitive routingChooses the tool in order: memory and knowledge, a known procedure, an ML model, a solver, approved research sources, and only then an approved language model. A generated text never authorises an action by itself.
Durable executionRecords the start, steps and results of a job, resumes from an allowed point, recognises repeated requests, keeps execution ownership and checks an unknown outcome with the executor before any repeat.
MMIRMetaModel Intermediate Representation: a machine-readable definition of an architecture (goal, components, links, parameters, versions, origin). A validator checks it and a compiler turns it into a runtime configuration. A successful compile means it can run, not that it is good.
Evaluation packageTied to one exact configuration: which data and scenarios, compared with what, which measurements and which limitations.
Shadow evaluationA candidate receives permitted real inputs in parallel with the current setup and performs no outside actions.
Data separationTraining, candidate selection and final independent test data are kept apart, so fitting known examples is never taken as proof of quality.

Governance and limits

PrincipleIn practice
Permissions firstEvery read, transformation and action is checked against rights and policy.
People in the loopApproval chains, limits and expiry for anything that matters.
Full audit trailFrom source to computation, decision, action and result.
Tested before useNew models and architectures are evaluated and shadow-run first.
RecoverableBackups, durable execution and rollback to a previous version.
Honest limitsWhen evidence is missing the system hands over to a person or keeps the current state.

Outputs include sourced answers, decision records, forecasts with uncertainty, experiment reports, comparisons against the current solution, lists of known limitations and the approval history behind each change.

FAQ

Is Brain Engine a chatbot?
No. It follows your operations, predicts, proposes and runs permitted actions. Language models are used only where a result can be checked, and daily operations do not depend on them.
Can it act without asking?
Only inside the actions, limits and autonomy levels you configure. Anything else needs a person's approval, and every step is recorded.
Is it available today?
Brain Engine is in development. Contact us to follow progress or discuss your use case.
Can it run in my own cloud or on my servers?
Yes, as a design goal. Infrastructure is a module of its own, and supported services can be placed in an approved cloud or on your servers within the budget and permissions you set.
How is it related to Enterprise Mind?
Enterprise Mind is the memory and governed-autonomy part you can use today. Brain Engine is the wider system that joins memory, prediction, decision, execution, infrastructure and self-improvement.
Does a new architecture go live automatically?
No. It is evaluated, shadow-run and approved first, and can be rolled back.