# Config System

The Config System defines how feature configuration is provided and represented in OMS.

It is used to supply configuration to features and expose configuration state for diagnostics.

***

### Overview

The Config System is responsible for:

* providing feature configuration instances
* representing feature enable/disable state
* exposing configuration metadata

Features receive configuration through a `ConfigProvider` and interact with it through `FeatureConfig`.

***

### Core Types

#### ConfigProvider

`ConfigProvider` supplies a feature configuration instance.

{% @github-files/github-code-block url="<https://github.com/c0nnor263/OperateMyServer/blob/main/oms-api/src/main/kotlin/io/conboi/oms/api/infrastructure/config/ConfigProvider.kt>" %}

***

#### FeatureConfig

`FeatureConfig` defines the configuration contract for a feature.

{% @github-files/github-code-block url="<https://github.com/c0nnor263/OperateMyServer/blob/main/oms-api/src/main/kotlin/io/conboi/oms/api/infrastructure/config/FeatureConfig.kt>" %}

***

#### FeatureConfigInfo

`FeatureConfigInfo` provides a snapshot of configuration state for diagnostics.

{% @github-files/github-code-block url="<https://github.com/c0nnor263/OperateMyServer/blob/main/oms-api/src/main/kotlin/io/conboi/oms/api/infrastructure/config/FeatureConfigInfo.kt>" %}

***

### Notes

* Configuration is supplied during the OMS lifecycle
* Feature configuration includes enable/disable state
* Configuration metadata is exposed through info snapshots


---

# Agent Instructions: 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:

```
GET https://conboi.gitbook.io/oms-wiki/developer-guide/runtime-infrastructure/config-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
