> For the complete documentation index, see [llms.txt](https://eurekabusiness.caiziii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eurekabusiness.caiziii.com/eurekabusinesscommunity-en/module-reference/core-module.md).

# Core Module Contracts

Core forms the architectural foundation of EurekaBusiness, offering domain-neutral contracts for Retail, Restaurant, and downstream addons.

## Primary Public APIs

| API                                 | Purpose                                                        |
| ----------------------------------- | -------------------------------------------------------------- |
| `QualifiedTypeId`                   | Immutable namespaced identifier used across modules            |
| `ElementDefinition`                 | Immutable descriptor of a registered element                   |
| `ElementRegistrar`                  | Bootstrap registrar for element definitions                    |
| `ElementView`                       | Frozen, read-only query view of active elements                |
| `CustomerVariantRegistrar`          | Bootstrap registrar for customer appearance and AI variants    |
| `CustomerVariantDefinition`         | Immutable definition of a customer variant                     |
| `ElementRarityAlgorithm`            | Base class for rarity evaluation against shop element profiles |
| `CustomerContinuePurchaseAlgorithm` | Contract deciding continuous purchasing appetite               |
| `ElementContinuePurchaseAlgorithm`  | Element-driven continuous purchase evaluation base             |

## Element Definitions

Elements declare a qualified ID, translation key, 16×16 icon asset, and an optional `0xRRGGBB` tint color. Elements contain no pricing or item associations; domain modules assign elements and levels (`1..9`) to catalog items.

## Frozen Read-Only Views

Following the bootstrap phase, Core freezes all registries into immutable views. Runtime components query these read-only views and discard mutable registrar references.

## Dependency Boundaries

Addons must depend only on exported API contracts. Never import `internal` packages or access private fields via reflection.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://eurekabusiness.caiziii.com/eurekabusinesscommunity-en/module-reference/core-module.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
