# Intelligence

Version 0.1, 2026-10-12. Source: https://developer.nrgon.net/intelligence

The third layer. Everything that reads data and produces a judgement: a size, a plan, a
verified saving, an answer to a question. It runs on the infrastructure and reads from
the data layer. Applications show its results.

```cards
bot | nrgon bot | An assistant on WhatsApp and Telegram. Reads documents, keeps memory per person, runs skills, works in a container on the nrgon cloud.
knowledge | Knowledge base | Manuals, protocol documents, tariffs, site notes, loaded once and available to the bot and the models.
table | Load study | Daily energy, peaks and a battery size per value case, from interval load and tariff.
plan | Day plan | Charge and discharge windows for tomorrow from forecast load, tariff and battery limits. Written to the equipment in its own format and read back.
check | Measurement and verification | What a battery saved against a baseline, with the method stated and reproducible from the data.
adapter | Protocol adapters | Read and write a vendor's equipment through its cloud API or register map. One adapter per protocol.
tariff | Tariff library | The tariff and time-of-use bands for a site on a date, from open data.
phone | Sizing model | The configurator's calculation, one definition file, the same result on iPad, Android and web, checked by a harness.
```

## How it fits

```schematic
col Data | bucket/bucket/Raw store | redis/redis/Latest state | open/edge/Open data | kb/knowledge/Knowledge base
col Intelligence | model/model/Models | bot/bot/Bot and agents
col Applications | apps/apps/Portals and apps | report/report/Reports
edges: bucket>model redis>model open>model kb>bot bucket>bot model>apps model>report bot>apps
```

## Rules

- A model states its inputs, its method and its output in its README. A number without
  a method is not published.
- A plan written to equipment is read back and compared before it counts as applied.
- The bot answers from documents it holds and says which. It does not guess at
  equipment behaviour.
- Models run where the data is, in the Singapore region. No customer data leaves it.
