> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Migration guide

This page explains the changes required to migrate to the stated version
of Atoti Market Risk.

## Migrate to 6.0.10

Atoti Market Risk uses Atoti Server 6.1.26 and Atoti UI 5.2.x. For what those releases bring, see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md), the [Atoti UI migration notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md) and the [Atoti Server changelog](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### What you must change in 6.0.10

A deployment on the standard configuration, building the project as shipped, needs **no change**. Everything that does need one is listed here; the rest of this page is reference material for these rows.

Changes below reach a project two different ways. Library-module changes arrive with the version bump and apply to every deployment. Changes inside `mr-application` do not, for a project that runs its own copy of it: those have to be updated deliberately. See [Branch permissions manager bean](#branch-permissions-manager-bean) and [Micrometer OTLP resource attributes](#micrometer-otlp-resource-attributes) for what to change there.

**Code**

| If your project… | Do this |
| - | - |
| references `IActivePivotBranchPermissionsManagerConfig` anywhere | Atoti Market Risk no longer implements it and no longer calls it as a factory. Inject the `IBranchPermissionsManager` bean directly. A remaining reference still compiles, with a deprecation warning. If the project uses or ports the 6.0.10 `ActivePivotBranchPermissionsManagerConfig`, a bean that injects the interface fails at startup with `NoSuchBeanDefinitionException`: that class no longer implements it, and nothing else in the context does. See [Branch permissions manager bean](#branch-permissions-manager-bean). |
| constructs `ExtendedActivePivotWithDatastoreConfig` or `DirectQueryActivePivotConfig` directly | Both now take an `ObjectProvider<IBranchPermissionsManager>` qualified `@Qualifier("branchPermissionsManager")` in place of `IActivePivotBranchPermissionsManagerConfig`; pass the provider, not a config that produces the bean. See [Branch permissions manager bean](#branch-permissions-manager-bean). |
| imports `com.activeviam.mr.common.datastore.permissions.ActivePivotBranchPermissionsManagerConfig` | Deleted. Switch to `com.activeviam.mr.application.config.security.ActivePivotBranchPermissionsManagerConfig` (`mr-application`) or declare an `IBranchPermissionsManager` bean directly. See [Branch permissions manager bean](#branch-permissions-manager-bean). |
| declares its own `IBranchPermissionsManager` bean under a different name and no longer imports `ActivePivotBranchPermissionsManagerConfig` from `mr-application` | Fails at startup with `NoSuchBeanDefinitionException`: the qualifier filters candidates by name before `@Primary` is ever consulted, so a differently-named `@Primary` bean does not satisfy it. Rename the bean method to `branchPermissionsManager`, declare it as `@Bean(name = "branchPermissionsManager")`, or annotate the bean definition with `@Qualifier("branchPermissionsManager")`. See [Branch permissions manager bean](#branch-permissions-manager-bean). |
| calls `AdjustmentExecutionHelper.getCriteriaCreator(...)` (`mr-application`) and holds the result in a typed variable | Its return type changed from Atoti Server's internal `com.activeviam.tech.core.internal.function.TriFunction` to the solution's own `com.activeviam.mr.common.utils.TriFunction`. Same single-method shape (`apply(String, String, String)`); update the import. |
| subclasses `DirectQueryActivePivotConfig` and reads `this.toolbox` as `IToolbox` | Change the declared type to `IDatabaseTools`; the constructor still accepts `IToolbox` values. |
| subclasses `DynamicTenorsAndMaturitiesPostProcessor` and overrides or calls `createPrefetchedLocation`, `defineDynamicBucketPath`, `evaluate`, `createProcedure` or `isValidMember`, or uses `EvaluationProcedure`, `ALLMEMBER_PATH` or `WILDCARD_PATH` | All of these are removed. The rebucketing steps are private, so a subclass can no longer replace them. Apply any value transformation in the underlying measure. |
| sets the `evaluator` post-processor property on `DYNAMIC_TENORS_AND_MATURITIES` | The measure fails at initialization with a `PostProcessorInitializationException`. Remove the property, and apply the transformation in the underlying measure. |
| overrides `PnLCsvLoadConfig.getPnLChannelDescription(...)`, `SensiCsvLoadConfig.dynamicTenorsChannel(...)`, or `VaRCsvLoadConfig.varChannelDescription(...)` by copying the original body | The copied body's `ImplicitDlcTuplePublisher.factory(...)` call still compiles against Atoti Server's internal type. Switch it to `MrTuplePublisherFactories.implicit(datastore, storeName)`. |
| declares its own `DatastoreConfiguratorConsumer` bean | Annotate every one of them with `@Order(DatastoreCustomisationSpringBeanOrder.PROJECT)`, using 101 to 104 where several of them change the field layout of the same store. An unannotated bean now runs **after** the solution's sign-off customizations instead of in bean registration order among them. See [Datastore customization order](#datastore-customization-order). |

**Configuration**

| If your project… | Do this |
| - | - |
| sets OTel resource attributes for the Micrometer OTLP metrics export (`management.otlp.metrics.export`) | Move them to `management.opentelemetry.resource-attributes`. The old `management.otlp.metrics.export.resource-attributes` key was removed in Spring Boot 3.5 and is silently ignored, so the export resolves to `service.name=unknown_service`. A project running its own copy of `mr-application` must also port the corrected `application.yaml`. See [Micrometer OTLP resource attributes](#micrometer-otlp-resource-attributes). |
| persists, compares, or registers its own handler under the FX or market-data continuous query plugin key | Update it to the new key returned by `FXMarketShiftPostProcessor.getFxShiftContinuousQuery()` and `MarketMetricBuilder.getMarketDataContinuousQuery(...)`. See [Continuous query handler plugin key](#continuous-query-handler-plugin-key). |

**Build**

| If your project… | Do this |
| - | - |
| keeps its own copy of the 6.0.9 root POM | Delete the `generate-property-docs` execution of `gmavenplus-plugin` from that POM's `<build><plugins>`. The 6.0.10 release contains neither that execution nor the script it runs. See [Property reference documentation generation](#property-reference-documentation-generation). |
| has its own application module built from a copy of `mr-application` | Work through [Porting mr-application changes into your own application module in 6.0.10](#porting-mr-application-changes-into-your-own-application-module-in-6-0-10). Nothing in that module arrives with the version bump, so each POM entry, class and resource has to be taken deliberately, and anything skipped is simply absent, usually with no error at startup. |

### Branch permissions manager bean

Atoti Server's `IActivePivotBranchPermissionsManagerConfig` (`com.activeviam.activepivot.server.spring.api.config`) declares only an abstract factory method, with no `@Configuration`/`@Bean` of its own; every implementor already had to redeclare `@Configuration`/`@Bean` itself to produce a bean at all. The interface only encouraged an anti-pattern: injecting the config and calling its method as a factory (`branchPermissionsManagerConfig.branchPermissionsManager()`) instead of injecting the produced bean directly. Atoti Server deprecated the interface for removal in 6.1.20 (`@Deprecated(forRemoval = true, since = "6.1.20")`) and plans to remove it in 6.3.0. Atoti Market Risk stops implementing it everywhere ahead of that removal, and exposes `IBranchPermissionsManager` (`com.activeviam.tech.mvcc.api.security.IBranchPermissionsManager`) as a direct `@Bean` instead.

**`ActivePivotBranchPermissionsManagerConfig` (`mr-application`)** no longer implements `IActivePivotBranchPermissionsManagerConfig`. The `branchPermissionsManager()` `@Bean` method body is unchanged, so the shipped bean behaves the same.

**`ExtendedActivePivotWithDatastoreConfig` (`mr-common-config`) and `DirectQueryActivePivotConfig` (`mr-directquery`)** now take an `ObjectProvider<IBranchPermissionsManager>` in their constructor, in place of `IActivePivotBranchPermissionsManagerConfig`, and resolve it with `.getObject()` at the exact point the old factory call (`branchPermissionsManagerConfig.branchPermissionsManager()`) used to run. Both classes are in library modules, so the change arrives with the version bump for every deployment:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before
public ExtendedActivePivotWithDatastoreConfig(
    IActivePivotManagerDescriptionConfig apManagerConfig,
    IDatastoreSchemaDescriptionConfig datastoreDescriptionConfig,
    IActivePivotBranchPermissionsManagerConfig branchPermissionsManagerConfig,
    /* ... */) {
  this.branchPermissionsManagerConfig = branchPermissionsManagerConfig;
  // ...
}

// in applicationWithDatastore() / applicationWithDatastoreQueryNode():
builder.withBranchPermissionsManager(branchPermissionsManagerConfig.branchPermissionsManager());

// After
public ExtendedActivePivotWithDatastoreConfig(
    IActivePivotManagerDescriptionConfig apManagerConfig,
    IDatastoreSchemaDescriptionConfig datastoreDescriptionConfig,
    @Qualifier("branchPermissionsManager") ObjectProvider<IBranchPermissionsManager> branchPermissionsManagerProvider,
    /* ... */) {
  this.branchPermissionsManagerProvider = branchPermissionsManagerProvider;
  // ...
}

// in applicationWithDatastore() / applicationWithDatastoreQueryNode():
builder.withBranchPermissionsManager(branchPermissionsManagerProvider.getObject());
```

`DirectQueryActivePivotConfig` changes the same way: its `branchPermissionsManagerConfig` field and constructor parameter are renamed to `branchPermissionsManagerProvider`, typed `ObjectProvider<IBranchPermissionsManager>`, qualified with `@Qualifier("branchPermissionsManager")`, and `branchPermissionsManagerConfig.branchPermissionsManager()` becomes `branchPermissionsManagerProvider.getObject()`, called at the same point inside `directQueryApplication()`.

Both constructors qualify the parameter with `@Qualifier("branchPermissionsManager")`. `@Qualifier` filters candidates by name before `@Primary` is ever consulted, so this only resolves against a bean literally named (or aliased) `branchPermissionsManager`. Atoti Server's own fallback, `FullAccessBranchPermissionsManagerConfig`, names its bean method `branchPermissionsManager()`, and so does the shipped `mr-application` bean, so a deployment that only relies on Spring to construct these classes needs no change.

The break reaches:

* Code that constructs either class directly: a test, or a subclass calling `super(...)`.
* Code that injects `IActivePivotBranchPermissionsManagerConfig` anywhere itself.
* Code depending on the deleted `com.activeviam.mr.common.datastore.permissions.ActivePivotBranchPermissionsManagerConfig` shim class.
* A project that supplies its own `IBranchPermissionsManager` under a different bean name and no longer imports `mr-application`'s `ActivePivotBranchPermissionsManagerConfig`. Because `@Qualifier` filters by name before `@Primary` is consulted, a `@Primary` bean under the wrong name still fails to satisfy it. Rename the bean method to `branchPermissionsManager`, declare it as `@Bean(name = "branchPermissionsManager")`, or annotate the bean definition with `@Qualifier("branchPermissionsManager")`.

> [!NOTE]
>
> Passing an `IActivePivotBranchPermissionsManagerConfig` to either constructor no longer compiles. Update any direct call to pass an `ObjectProvider<IBranchPermissionsManager>` instead.

> [!WARNING]
>
> A project that customized branch permissions through its own `@Primary` implementation of `IActivePivotBranchPermissionsManagerConfig` loses that manager in 6.0.10, without an error. `ExtendedActivePivotWithDatastoreConfig` and `DirectQueryActivePivotConfig` no longer call the configuration's `branchPermissionsManager()` method. They take the bean named `branchPermissionsManager`, which `mr-application`'s `ActivePivotBranchPermissionsManagerConfig` declares with the shipped permissions. Move the custom manager into that bean method, and delete the `@Primary` class.

**`com.activeviam.mr.common.datastore.permissions.ActivePivotBranchPermissionsManagerConfig` is deleted**, along with its test. It was deprecated for removal since 6.0.6 in favor of the `mr-application` bean, which it was not quite a duplicate of: the deleted class hardcoded its admin roles, while the surviving `mr-application` bean resolves them from `AtotiSecurityProperties.getRolesAdmin()`. A project still importing that class must switch to `com.activeviam.mr.application.config.security.ActivePivotBranchPermissionsManagerConfig` (`mr-application`, a different package) or declare its own `IBranchPermissionsManager` bean, and should confirm its configured admin roles cover what the hardcoded list provided.

A project with its own application module built from a copy of `mr-application` does not need to port this change: the interface is still present in Atoti Server 6.1.26, so an unported `config/security/ActivePivotBranchPermissionsManagerConfig` keeps compiling, with only a deprecation warning. Porting it (dropping `implements IActivePivotBranchPermissionsManagerConfig`) is optional hygiene, matching the rest of Atoti Market Risk ahead of the interface's removal in 6.3.0. Once it is ported, a bean that injects the interface fails at startup and has to inject `IBranchPermissionsManager` instead. Nothing else about the bean changes, and the new library constructors resolve on the bean name via the qualifier either way, not on `@Primary`.

### Micrometer OTLP resource attributes

The Micrometer OTLP metrics registry (`management.otlp.metrics.export`, which exports the solution's own `mr.*` meters) reads its OTel resource attributes from `management.opentelemetry.resource-attributes`. This is the Spring Boot 3.5 location: the older `management.otlp.metrics.export.resource-attributes` key no longer exists and is silently ignored, so an export configured under it resolves to `service.name=unknown_service`.

The corrected key ships in `application.yaml`, which lives in `mr-application`. A project that runs its own copy of that module therefore gets nothing from the version bump and keeps exporting `service.name=unknown_service`, with no error at startup, until the change is ported. See [Porting mr-application changes into your own application module in 6.0.10](#porting-mr-application-changes-into-your-own-application-module-in-6-0-10).

**Action required.** Deployments that set resource attributes for this pipeline in their own configuration must move those entries to the new key:

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
management:
  # Removed in Spring Boot 3.5, no longer read:
  # otlp:
  #   metrics:
  #     export:
  #       resource-attributes:
  #         service.name: "my-service"
  opentelemetry:
    resource-attributes:
      service.name: "my-service"
```

Atoti Market Risk ships `service.name: "${otel.service.name:market-risk-accelerator}"` under the new key, so setting `otel.service.name` renames both this pipeline and the OTel SDK pipeline at once. Only deployments that need the two pipelines to report *different* names have to set the resource attribute directly.

Two behaviors are worth knowing before overriding:

* **A platform-injected `OTEL_SERVICE_NAME` wins; `OTEL_RESOURCE_ATTRIBUTES` does not.** Spring Boot applies the values under `management.opentelemetry.resource-attributes` *over* those parsed from the `OTEL_RESOURCE_ATTRIBUTES` and `OTEL_SERVICE_NAME` environment variables, so a literal pinned under that key would always beat the platform. The shipped value is not a literal: `${otel.service.name:market-risk-accelerator}` is resolved through the Spring environment, where relaxed binding maps `otel.service.name` onto `OTEL_SERVICE_NAME`. An injected environment variable, a `-Dotel.service.name` system property and the YAML therefore all name both pipelines. Only `service.name` supplied through `OTEL_RESOURCE_ATTRIBUTES` is overridden, since it never reaches `otel.service.name`; a deployment using that form should set `otel.service.name` instead.
* **An explicitly blank value is not treated as unset.** `otel.service.name=` (empty) makes the OTel SDK pipeline fall back to `market-risk-accelerator`, but leaves the Micrometer pipeline exporting an empty `service.name`. Leave the property out entirely rather than setting it blank.

### Property reference documentation generation

A Groovy script generates the property reference pages under
[Configuration properties](../../properties/config-properties) from the `@ConfigurationProperties`
Javadoc. In 6.0.9, the root POM ran that script in every build. Its `<build><plugins>` held the
`generate-property-docs` execution of `gmavenplus-plugin`, so every module inherited the execution.
The execution looked for `tools/doc/generate-property-docs.groovy` under the root directory of the
running build. The 6.0.9 release shipped the script at that path, so a project built from the release
found it. An aggregator build that included Atoti Market Risk as a module looked under the
aggregator's root instead, and failed.

The 6.0.10 release contains neither that execution nor the script. A project that keeps its own copy
of the 6.0.9 root POM must delete the `generate-property-docs` execution from it, because the
execution fails the build when the script is missing. Nothing else has to be ported, because no build
depends on the generated pages.

### Continuous query handler plugin key

`FXMarketShiftPostProcessor.getFxShiftContinuousQuery()` and `MarketMetricBuilder.getMarketDataContinuousQuery(...)` return Atoti Server's commit-on-isolated-store handler key, built by `IAggregatesContinuousHandler.createCommitOnIsolatedStoreHandlerPluginKey(storeName)`. The key changes from `STORE_TICK_ACC[<storeName>]` to `STORE_TICK[<storeName>]`, for example `STORE_TICK_ACC[MarketShifts]` to `STORE_TICK[MarketShifts]`. The continuous query behaves the same. A project that persisted, compared, or registered its own handler under the old key must update it.

### Datastore customization order

Every `DatastoreConfiguratorConsumer` bean shipped with Atoti Market Risk now declares an `@Order` value on its `@Bean` factory method. The values are named constants on `com.activeviam.mr.common.constants.DatastoreCustomisationSpringBeanOrder`, in `mr-common-lib`. A project customization declares `@Order(DatastoreCustomisationSpringBeanOrder.PROJECT)` rather than a bare number.

A bean that declares no order is applied after every annotated bean. A project customization left unannotated therefore now runs after the sign-off customizations.

`PROJECT` is a single value, and beans sharing one have no guaranteed relative order. Customizations that change the field layout of the same store therefore need distinct values. The first declares `PROJECT`, and the ones that must follow it take 101 to 104, which none of the solution's beans uses.

The order decides where appended fields land, whether a customization of the cube-level adjustments store applies at all, and which of two insertions after the same anchor field is kept. A customization of the cube-level adjustments store needs a value below `SIGN_OFF`: the sign-off builds that store while its bean runs, so a later customization is dropped without an error. The sign-off customization appends the `Source`, `Input type` and `_Version` key fields to `PnL`, `TradeSensitivities` and `TradePnLs`, and inserts `Source` and `Input type` after the trade status field on `PnLBaseStore`, `SensiBaseStore` and `BaseStore`.

A project customization that appends a field to `PnL`, `TradeSensitivities` or `TradePnLs` must stay below `SIGN_OFF`. `PROJECT`, and the values up to 104, all stay below it. On `PnLBaseStore`, `SensiBaseStore` and `BaseStore`, an appended project field lands after the inserted key fields whatever order it declares. `PROJECT` remains the right default there, but it does not decide where the field lands.

The example below appends a project field to the `PnL` store.

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before: no @Order, so the bean is applied last, after the sign-off key fields
@Bean
public DatastoreConfiguratorConsumer projectCustomisations() {
    return configurator -> configurator.appendField(PNL_STORE_NAME, new CustomField(MY_FIELD, STRING));
}
// After: PROJECT (100) appends the field before the sign-off key fields at SIGN_OFF (200)
@Bean
@Order(DatastoreCustomisationSpringBeanOrder.PROJECT)
public DatastoreConfiguratorConsumer projectCustomisations() {
    return configurator -> configurator.appendField(PNL_STORE_NAME, new CustomField(MY_FIELD, STRING));
}
```

For the full contract, covering the sort rules, the build-time phase order and how to choose a value, see [What determines the order of customizations?](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-libraries/dev-datastore/dash-implementation-notes.md#what-determines-the-order-of-customizations).

### DLC converter classes removed

`RegexPassThroughGlobToRegexConverter` and `GlobToRegexConverterConfig` (`mr-application`) are deleted. Both have been empty and inert since 6.0.3, when the DLC took over the conversion natively. There is no replacement. A project with its own copy of `mr-application` still has them, and can delete them as hygiene. Deleting `GlobToRegexConverterConfig` also means removing it from the `@Import` list of that copy's `MarketRiskConfig`.

### Porting mr-application changes into your own application module in 6.0.10

The library modules reach a project as Maven artifacts, so the version bump picks their changes up automatically. `mr-application` is the runnable entry point, which most projects copy into a module of their own rather than depend on, so nothing that changes inside it arrives that way.

> [!WARNING]
>
> **Upgrading the Atoti Market Risk version applies none of the changes below.** In an application module built from a copy of `mr-application`, each item has to be copied or re-applied by hand. Anything not taken is simply absent from the build, in most cases with no error at startup to signal it.

Other 6.0.10 changes to `mr-application` that a copy needs are described in their own sections above. For 6.0.9 changes, see [Porting mr-application changes into your own application module](#porting-mr-application-changes-into-your-own-application-module).

> [!NOTE]
>
> Diffing the module against `mr-application` at the 6.0.9 and 6.0.10 tags is the most reliable approach. The tables below say what to look for.

#### application.yaml

| File | Change |
| - | - |
| `application.yaml` | `management.opentelemetry.resource-attributes` replaces the removed `management.otlp.metrics.export.resource-attributes` key. Without this change, the Micrometer OTLP metrics export reports `service.name=unknown_service`. See [Micrometer OTLP resource attributes](#micrometer-otlp-resource-attributes). |

#### Modified classes

| Class | Change |
| - | - |
| `datastore/DatastoreCustomisations` | The `customisations()` bean declares `@Order(DatastoreCustomisationSpringBeanOrder.PROJECT_HOOK)`. Without it, the fields that `loadCustomisations` appends to `PnL`, `TradeSensitivities` or `TradePnLs` land after the sign-off key fields. See [Datastore customization order](#datastore-customization-order). |

## Migrate to 6.0.9

Atoti Market Risk uses Atoti Server 6.1.24 and Atoti UI 5.2.x. For what those releases bring, see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md), the [Atoti UI migration notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md) and the [Atoti Server changelog](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### What you must change

A deployment on the standard configuration, building the project as shipped, needs **no change**. Everything that does need one is listed here; the rest of this page is reference material for these rows.

Changes below reach a project two different ways. Library-module changes arrive with the version bump and apply to every deployment. Changes inside `mr-application` do not, for a project that runs its own copy of it: those have to be ported deliberately, item by item, as [Porting mr-application changes](#porting-mr-application-changes-into-your-own-application-module) sets out. Rows below name the class whenever that distinction decides whether the row applies.

**Initial data load.** This group applies only once the 6.0.9 `InitialDataLoadConfig` is running, that being where both the new `initial-business-dates` semantics and the S3 autodiscovery live. See [Initial data load](#initial-data-load) for the external behavior, and [InitialDataLoadConfig in detail](#initialdataloadconfig-in-detail) for what to port.

| If `InitialDataLoadConfig` is taken from 6.0.9 `mr-application` and your deployment… | Do this |
| - | - |
| sets `mr.data-load.initial-business-dates` to `[]` to autodiscover dates | Remove the property: `[]` now means *load nothing*. |
| sets `dlc.csv.aws.sources` but not `mr.data-load.initial-business-dates` | Dates are now autodiscovered from S3, so an initial load runs for every date found. Set the property to keep control. |
| subclasses or instantiates `InitialDataLoadConfig` | Add the `MeterRegistry` constructor argument, and take `allAvailableDates` to five parameters. |

**Other configuration**

| If your deployment… | Do this |
| - | - |
| sets `mr.open-telemetry.zipkin-span-exporter-url` | Deprecated, removed in 7.0. Point `otel.exporter.otlp.endpoint` at an OTLP collector and drop the property. See [OpenTelemetry export](#opentelemetry-export). |
| has no OTLP collector | Set `mr.enable.tracing.open-telemetry: false` and `management.otlp.metrics.export.enabled: false`, or opt into legacy mode, to avoid repeated export-failure warnings. |
| filters dashboards or alerts on `service.name` | The modern export reports `market-risk-accelerator`, legacy mode `Atoti Server`. Override with `otel.service.name`. |
| enables Atoti Limits (`-P limits`) | Change the `groupId` to `com.activeviam.modules.limits`. The declaration carries no `<version>`, so `limits.version` keeps the client on `activepivot.version`; only a project declaring the dependency outside this build has to state 6.1.24 or later itself. Remove the basic-auth properties, add `service-principal`, and set `atoti-base-url` if the auto-detected URL is unreachable from the Limits server. See [Limits dependency alignment](#limits-dependency-alignment). |
| runs the `snowflake` Spring profile | Migrate to key-pair authentication **before** upgrading: register an RSA public key on the Snowflake user, set `SNOWFLAKE_PRIVATE_KEY_BASE64`, and drop `SNOWFLAKE_PASSWORD`. Staying on password authentication for now means keeping `password:` and **not** adding `private-key-base64`, whose unresolvable placeholder would stop startup. See [Snowflake key-pair authentication](#snowflake-key-pair-authentication). |
| has a `dlc.csv.topics` override that omits `filePattern` to match nothing | It now inherits the code-defined pattern. Set `filePattern` explicitly. This one is in `mr-common-config`, so it reaches every deployment. See [CSV topic override filePattern fallback](#csv-topic-override-filepattern-fallback). |
| serves its own copy of `static/atoti-admin-ui/env.js` | Remove the `doctorPivotApi` block: the `/tree/cubes` and `/tree/measures` endpoints it points at have been deleted along with `DiagnosticsRedirectController`. See [Admin UI measure lineage tab](#admin-ui-measure-lineage-tab). |
| customizes cube dimensions | Keep the hierarchy ordering identical between each base cube and its summary cube. See [Atoti Server upgrade](#atoti-server-upgrade-to-6-1-24). |
| filters logs, dashboards or APM queries on the prefetcher name | Shift post-processors now install `MRDatabaseCachePrefetcher`, not `DatabaseCachePrefetcher`. Widen the filters to accept both. The post-processors are in library modules, so this applies to every deployment. See [cache routing](#service-driven-directquery-cache-routing). |
| monitors adjustment or VaR execution statuses | Both fixes are in `mr-application`, in `signoff/adjustments`, so they only take effect once that code is ported. Once it is, update alerts that treat a long-lived `PENDING` as normal or that trust `EXECUTED`, and drop any alert keyed on the scalar executor's `Failed to run query: ` line. See [VaR scenario resolution](#var-scenario-resolution-failure-handling) and [Adjustment execution](#adjustment-execution-failure-handling). |

**Code**

| If your project… | Do this |
| - | - |
| constructs `BranchAwareAdjustmentRequestDTO` | Add the new `parentBranch` argument after `user`; the code does not compile without it. Passing `null` preserves current behavior. See [Sign-Off and Adjustments Services](#sign-off-and-adjustments-services-dependency-alignment). |
| references `OpenTelemetryProperties.ZIPKIN_SPAN_EXPORTER_URL_DEFAULT` | Removed: remove the reference. Its value was `http://localhost:9411/api/v2/spans`. |
| calls `OpenTelemetryProperties.getZipkinSpanExporterUrl()` | Returns `null` when the property is unset, where it used to return the Zipkin default. Remove the calls; the property is deprecated. |
| calls `GlobalOpenTelemetry.set(...)` after the Spring context starts | Now throws `IllegalStateException`, because the accelerator has already claimed the global slot. Register the SDK before Spring starts (from a `SpringApplicationRunListener`, or a static initializer in the main class) so the accelerator falls through to its existing-instance path, or set `mr.enable.tracing.open-telemetry: false` and wire your own `OpenTelemetry` bean. |
| ships more than one MarketShift `CacheConfiguration` bean | Declare every store as a `CacheConfiguration` bean, remove any single-bean wiring, and move custom shift post-processors to `IMarketShiftDirectQueryCachingPostProcessorEx`. The dispatch lives in `RiskPostProcessorInjector` (`mr-application`), so it takes effect once your project runs the 6.0.9 version of that class. See [cache routing](#service-driven-directquery-cache-routing). |
| subclasses, forks or instantiates the standard shift post-processors or `RiskPostProcessorInjector` | Four source-incompatible changes. Three are in library modules and arrive with the version bump; the `RiskPostProcessorInjector` constructor is only needed if that class is taken from `mr-application`. See [Breaking changes for forks](#breaking-changes-for-forks-of-the-shift-post-processors). |
| autowires `IDatabaseCacheManager` as a required dependency | `databaseCacheManager` is now preview-gated and may not exist. Make the injection optional, or gate it on `@ConditionalOnDirectQueryCacheEnabled`. |
| pins `opentelemetry-logback-appender-1.0` or `opentelemetry-logback-mdc-1.0` | Remove the explicit version; the OpenTelemetry instrumentation BOM manages both. |
| enforces strict dependency convergence | `logback-classic` is now `compile` scope in `mr-application`, so it reaches your compile classpath. Add an explicit version to your dependency management. |

**Build**

| If your project… | Do this |
| - | - |
| has its own application module built from a copy of `mr-application` | Work through [Porting mr-application changes](#porting-mr-application-changes-into-your-own-application-module). Nothing in that module arrives with the version bump, so each POM entry, class and resource has to be taken deliberately, and anything skipped is simply absent, usually with no error at startup. |
| forked the root POM, or imports `activepivot-server-spring` or `common-dependencies-bom` itself | Import the server BOM **first**: the first import wins, and that order is what carries Atoti Server's security pins, embedded Tomcat 10.1.57 among them. Without it the build resolves the older, unpatched versions with no error. Copy the `zipkin-reporter-bom` import ahead of it, and the H2, Hibernate and `lombok` entries. See [Dependency management aligned with Atoti Server](#dependency-management-aligned-with-atoti-server). |
| forked the root POM | Add `<version>1.0.0</version>` to the `org.eclipse.m2e:lifecycle-mapping` plugin, the Eclipse/m2e marker for the `maven-antrun-plugin` executions. Common Parent POM 2.6.0 no longer manages it, and Maven fails outright without a version because the marker resolves inside m2e and exists in no repository. Drop the block if you do not build in Eclipse. |
| forked `mr-application/pom.xml` | Remove the `tomcat-embed-core` exclusion and its explicit `<version>`. |
| declares `signoff-api-lib` or `adjustments-services` itself | Change the group IDs to `com.activeviam.modules.signoff-api` and `com.activeviam.modules`; the artifact IDs are unchanged. See [Sign-Off and Adjustments Services](#sign-off-and-adjustments-services-dependency-alignment). |
| overrides `signoff-api.version` or `adjustments-services.version` | Remove the override: both now follow `activepivot.version`. |
| pins `tomcat.version` | The property is gone; Tomcat follows Atoti Server. Pin the individual artifacts if you need another version. |
| forked `logback-spring-file.xml`, or wrote its own Logback configuration | Give every appender a distinct `fileNamePattern` and `file`. Logback 1.5.34 (up from 1.5.21) adds `FileCollisionAnalyser`, which makes a shared pattern a configuration error, and Spring Boot turns that into a startup failure (`Collision detected. Skipping initialization of appender named [...]`). |
| declares OkHttp, or inherits it from another library | Keep only one of `okhttp` (OkHttp 4) and `okhttp-jvm` (OkHttp 5) on the classpath: they carry the same `okhttp3.*` packages, so Maven cannot mediate them. A `maven-enforcer-plugin` `banDuplicateClasses` rule catches it at build time. |
| needs a version other than the one this release resolves | Declare it in your own `dependencyManagement`; a plain entry there outranks both imported BOMs. |

Hibernate is deliberately held at the 6.6.36.Final that 6.0.8 shipped, rather than taking Atoti Server's 6.4.2.Final, so the content service persistence path is unchanged and needs no migration. See [What moved](#what-moved).

### Sign-Off and Adjustments Services dependency alignment

Both dependencies now track Atoti Server and have moved to a new Maven group. `signoff-api.version` and `adjustments-services.version` resolve to `${activepivot.version}`, 6.1.24 in this release, where they were pinned at 4.2.1 and 4.1.3. The standard build needs no version change, and a project that overrides either property should drop the override. See [Dependencies](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/dependencies.md) for what each release ships.

**Group IDs.** The artifact IDs are unchanged, and the root `pom.xml` manages the versions, so a project importing that `dependencyManagement` needs no `<version>`; one that does not must add an explicit version.

| Artifact | Old group ID | New group ID |
| - | - | - |
| `signoff-api-lib` | `com.activeviam.solutions.signoff-api` | `com.activeviam.modules.signoff-api` |
| `adjustments-services` | `com.activeviam.solutions` | `com.activeviam.modules` |

**`BranchAwareAdjustmentRequestDTO` gains a `parentBranch` argument**, inserted after `user`, so code that constructs the DTO directly does not compile until the argument is added. The signature is now `BranchAwareAdjustmentRequestDTO(String key, String user, String parentBranch, Set<NamedValueDTO> filters, Set<NamedValueDTO> input, String toBranch)`:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before
new BranchAwareAdjustmentRequestDTO(key, user, filters, input, toBranch);
// After
new BranchAwareAdjustmentRequestDTO(key, user, parentBranch, filters, input, toBranch);
```

Passing `null` leaves `parentBranch` unset, the same state as a request deserialized without the field, and the Atoti Market Risk integration tests do exactly that. The field is inert in this release: the what-if submission path reads only `key`, `user` and `toBranch`, and source-data reads stay on the master branch.

### Snowflake key-pair authentication

Snowflake is deprecating single-factor password authentication, so the shipped `snowflake` profile (`application-snowflake.yaml`) now authenticates with a key pair. Deployments running that profile must migrate before upgrading.

`directquery.database.snowflake.password`, backed by `SNOWFLAKE_PASSWORD`, is replaced by `directquery.database.snowflake.additional-options.private-key-base64`, backed by the new `SNOWFLAKE_PRIVATE_KEY_BASE64`. Only these keys change; the rest of the `snowflake` block is unaffected.

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
directquery:
  database:
    snowflake:
      # 6.0.8 had:  password: ${SNOWFLAKE_PASSWORD}
      additional-options:
        private-key-base64: ${SNOWFLAKE_PRIVATE_KEY_BASE64}
```

> [!WARNING]
>
> `SNOWFLAKE_PRIVATE_KEY_BASE64` must be set in the runtime environment before startup: Spring cannot resolve the placeholder otherwise, and the application fails to start. The `password` property still binds if set, so a deployment staying on password authentication temporarily must keep `password: ${SNOWFLAKE_PASSWORD}` and **not** add the `private-key-base64` key.

**Migration.** You need a role that can alter the Snowflake user (`SECURITYADMIN`, for example) and write access to the environment of the Atoti Market Risk process. Step 1 generates the pair, writing `rsa_key.p8` (private) and `rsa_key.pub` (public) to the current directory:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt
openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub

# the value to register: rsa_key.pub without its PEM header, footer and line breaks
grep -v '^-----' rsa_key.pub | tr -d '\n'
```

Step 2 registers the public key:

```sql theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
ALTER USER <snowflake_user> SET RSA_PUBLIC_KEY='<stripped contents of rsa_key.pub>';

-- RSA_PUBLIC_KEY_FP holds a SHA256: fingerprint; an empty value means the key was not registered
DESC USER <snowflake_user>;
```

Step 3 encodes the private key and puts it in the process environment:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
base64 < rsa_key.p8 | tr -d '\n'
```

> [!WARNING]
>
> The private key grants full access to the Snowflake user. Never commit `rsa_key.p8` or its base64 encoding to source control. A shell `export` lasts only as long as that shell: the value has to reach the process environment the way the deployment supplies its other secrets, a container secret or an orchestrator-injected variable, or startup fails on the unresolved placeholder.

Remove the now-unused `SNOWFLAKE_PASSWORD` once the connection works. For the full walkthrough, including the encrypted PKCS#8 variant with `private-key-pwd`, verification and key rotation, see [Snowflake key-pair authentication](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/configuration-getting-started/supported-databases.md#snowflake-key-pair-authentication).

### Deprecated properties

| Deprecated property | Replacement |
| - | - |
| `mr.open-telemetry.zipkin-span-exporter-url` | Configure `otel.exporter.otlp.endpoint` to point at an OTLP collector (an OpenTelemetry Collector or Grafana Alloy, for example). See [OpenTelemetry export](#opentelemetry-export). |

### OpenTelemetry export

Two export methods coexist, both gated behind `mr.enable.tracing.open-telemetry` (default `false`):

* **Modern OTLP, the default.** Traces, metrics and log records go over OTLP, configured with `otel.exporter.otlp.*`, and `service.name` is `market-risk-accelerator`. `otel.exporter.otlp.protocol` selects the transport: `http/protobuf` (default, endpoint `http://localhost:4318`) or `grpc` (`http://localhost:4317`). `otel.exporter.otlp.headers` and `otel.exporter.otlp.compression` apply to both.
* **Legacy Zipkin plus stdout, opt-in.** `mr.open-telemetry.legacy-mode: true` exports spans to Zipkin (`mr.open-telemetry.zipkin-span-exporter-url`, default `http://localhost:9411/api/v2/spans`), writes metrics to stdout through `LoggingMetricExporter` and log records through console logging, and resolves `service.name` to `Atoti Server` when `otel.service.name` is unset.

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
otel:
  exporter:
    otlp:
      # The cloud gateways below are OTLP/HTTP, so protocol stays at its http/protobuf
      # default. Only set "protocol: grpc" against a gRPC receiver, with its own
      # endpoint (http://my-collector:4317).
      endpoint: https://otlp-gateway-prod-eu-west-0.grafana.net/otlp
      # Cloud backends need auth headers on every request, comma-separated
      # key=value, forwarded as-is, no line breaks. For Honeycomb instead:
      #   endpoint: https://api.honeycomb.io
      #   headers: "x-honeycomb-team=<your-api-key>"
      headers: "Authorization=Basic <base64-encoded-instance-id:api-token>"
```

> [!WARNING]
>
> Legacy mode takes precedence over the modern configuration: with `legacy-mode: true`, every `otel.exporter.otlp.*` property is ignored and nothing reaches an OTLP collector even if one is running. An overridden endpoint must also match the chosen protocol: an HTTP endpoint does not accept gRPC traffic, or the reverse, and a mismatch produces repeated export-failure warnings with no data arriving. Ports 4317 and 4318 are conventions only, so confirm the receiver's protocol rather than trusting the port.

`mr.open-telemetry.zipkin-span-exporter-url` is deprecated and scheduled for removal in 7.0. In legacy mode it is the only span destination; in the modern method, setting it adds a Zipkin exporter alongside OTLP and logs a deprecation warning at startup. Most backends (Jaeger >= 1.35, Grafana Tempo, Honeycomb, Datadog) accept OTLP natively; in front of a Zipkin backend, put an [OpenTelemetry Collector](https://opentelemetry.io/docs/collector/) and use its `zipkin` exporter.

**TLS and mTLS.** The OTLP HTTP exporter uses the JVM's default `SSLContext` and trust store; the OTel auto-configure properties (`otel.exporter.otlp.certificate`, `otel.exporter.otlp.client.key` and similar) are **not** read by the accelerator's manual exporter wiring. For an HTTPS endpoint behind an internal CA or a self-signed certificate, import the CA into the JVM trust store or point at your own with `-Djavax.net.ssl.trustStore` and `-Djavax.net.ssl.trustStorePassword`; for mTLS add `-Djavax.net.ssl.keyStore` and `-Djavax.net.ssl.keyStorePassword`. Property-based TLS support is tracked as a follow-up.

#### How the service.name attribute resolves

In the modern (default) method, the `service.name` OTel resource attribute on the OTel SDK pipeline is `market-risk-accelerator`. That pipeline exports the traces, log records and `atoti.*` metrics. In the legacy method it resolves to `Atoti Server` when `otel.service.name` is unset. This attribute covers that pipeline only: the separate Micrometer OTLP metrics export carrying the `mr.*` meters is configured independently, and on this version reports `service.name=unknown_service`. Dashboards, alerts, or trace and metric queries that filter on a specific `service.name` value must match the method in use. Override the value with `otel.service.name` if a specific name is required:

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
otel:
  service:
    name: "Atoti Server"
```

#### How log records are batched

In the modern method, log records use `BatchLogRecordProcessor`. It buffers records and exports them on a scheduled delay (OTel default: about 1 second, up to 512 records per batch). Log records produced in the final second before a JVM crash may be lost. If synchronous log export is required for crash forensics, set `mr.enable.tracing.open-telemetry: false` and wire a custom `SdkLoggerProvider` bean using `SimpleLogRecordProcessor`.

#### How to run without an OTLP collector

If a deployment has no OTLP collector, disable telemetry to avoid repeated export-failure warnings at startup:

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
mr:
  enable:
    tracing:
      open-telemetry: false
management:
  otlp:
    metrics:
      export:
        enabled: false
```

Alternatively, select the legacy method with `mr.open-telemetry.legacy-mode: true` to send spans to Zipkin and metrics and log records to stdout.

### OpenTelemetry: SDK registered as global instance

The accelerator registers its `OpenTelemetrySdk` as the process-wide `GlobalOpenTelemetry`. A Java agent that has already claimed the global (AWS OTel, Datadog, New Relic, Dynatrace, or any other) takes precedence: the accelerator logs a warning, closes its own unused providers and reuses the existing instance. This also applies in legacy mode, where spans are then routed by the agent rather than exported to Zipkin. No action is required.

### Service-driven DirectQuery cache routing

`IMarketShiftDirectQueryCachingPostProcessorEx` is a new sub-interface of `IMarketShiftDirectQueryCachingPostProcessor`, implemented by the standard shift post-processors (`AShiftVectorPostProcessor`, `FXMarketShiftPostProcessor`, `APnlVectorFromRiskSensiPostProcessor`). The MarketShift DirectQuery cache secondary index is added automatically. For the full API, see the [Cache routing](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/customization-and-internals/cache-routing.md) page.

**Single-store 6.0.7 and 6.0.8 wiring keeps working unchanged.** The default `resolveShiftCacheNames` returns the empty set, and `legacyFallbackIfEmpty` substitutes the one registered store name.

**Multi-store wiring.** Declare several `CacheConfiguration` beans. Spring autowires them into the new `marketShiftCacheConfigurations` injection point, and one shift evaluation prefetches every relevant cache. The legacy single-bean point (`marketShiftCacheConfiguration`) still works, wrapping its bean in a singleton list.

> [!WARNING]
>
> With two or more `CacheConfiguration` beans, `RiskPostProcessorInjector` skips the legacy single-bean injection entirely, rather than injecting one declaration-order-dependent bean. A post-processor implementing only the legacy interface then receives no cache configuration and silently prefetches nothing; a startup `WARN` names it. With exactly one bean the fallback goes the other way and *overrides* a differing service result, with a one-time `WARN`. For genuine service-driven routing, declare the routed stores as beans instead of relying on it.

**Service-driven dispatch.** When the store depends on the query coordinates (one store per sensitivity kind, or per risk class), override `IMarketDataRetrievalService.resolveShiftCacheNames` (`common-accelerator-library` GENACL-1449):

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Override
public Set<String> resolveShiftCacheNames(
        String sensitivityKind, String riskClass, String sensitivityName,
        @Nullable List<Object> leafCoordinates) {
    if ("FX".equals(riskClass)) return Set.of(FX_SHIFT_STORE_NAME);
    if ("Vega".equals(sensitivityKind)) return Set.of(VEGA_SHIFT_STORE_NAME);
    return Set.of(DELTA_SHIFT_STORE_NAME);
}
```

`MarketShiftCacheNameResolverUtils.routeViaMarketDataService` runs at prefetch time, expanding the location over `riskClassLevel` × `sensitivityNameLevel` (cube-filter-aware through `PostProcessorUtils.grantedMembersCondition`) up to the per-post-processor `LEAF_EXPANSION_LIMIT` (a measure-builder `parameters[]` key, default 16, not a Spring property). Each surviving point fires one `resolveShiftCacheNames(...)` call and the union of the names is prefetched. FX shifts follow the same path through `IFxShift.resolveShiftCacheNames`, whose default `FXShift` implementation delegates to the service, so overriding the service alone is enough. For a worked example, see the [end-to-end example](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/customization-and-internals/cache-routing.md#end-to-end-example).

#### Breaking changes for forks of the shift post-processors

1. **`RiskPostProcessorInjector` constructor.** The `marketShiftCacheConfiguration` parameter is now a `List<IMarketShiftDirectQueryCachingPostProcessor.CacheConfiguration>`. Update any `super(...)` call or direct construction. **This change is only needed if the class is taken from `mr-application`**, which is source a project copies rather than a library it depends on: a project that has not ported the 6.0.9 version keeps the old constructor and needs no change here. See [Porting mr-application changes](#porting-mr-application-changes-into-your-own-application-module).
2. **`marketShiftCacheConfiguration` field removed** from the three standard post-processors, replaced by `marketShiftCacheConfigurationMap` (`Map<String, ILocationToCachePartitionConverter>`). The `getMarketShiftCacheConfiguration()` accessor is preserved and returns the first entry, so code going through it is unaffected.
3. **Default converter is now `ExpandingLocationConverter`**, not `BestEffortLocationToCachePartitionConverter`. Above the partition levels (wildcard `asOfDate` or `scenarioSet`) it expands the wildcards, cube-filter-aware, where the old converter prefetched nothing: a functional superset, at a higher prefetch volume.
4. **`databaseCacheManager` is `@ConditionalOnDirectQueryCacheEnabled`** (the cache preview defaults to off), so the bean may not exist. `RiskPostProcessorInjector` treats it as `@Nullable`; a required `@Autowired IDatabaseCacheManager` elsewhere fails context startup when the preview is off.

Items 2 to 4 are in library modules (`mr-common-lib` and `mr-sensi-lib` for the post-processors, `mr-sensi-config` for the stock `marketShiftCacheConfiguration` bean, `mr-directquery` for `databaseCacheManager`), so they arrive with the dependency upgrade regardless of how you consume `mr-application`. Only item 1 depends on that.

Post-processors implementing the `Ex` interface install `MRDatabaseCachePrefetcher` instead of the Atoti-core `DatabaseCachePrefetcher`. The two are functionally equivalent for a single registered cache: same `prefetchCacheAsync(...)` shape, same partition derivation. `IPrefetcher.getName()` returns the new class name, so logs, Grafana panels and APM queries filtering on `DatabaseCachePrefetcher` go blank for shift post-processors until they accept `MRDatabaseCachePrefetcher` too. The three standard post-processors are in library modules, so this reaches every deployment, single-store ones included.

### Initial data load

Both changes are on `com.activeviam.mr.application.sources.InitialDataLoadConfig`. **They are only needed if the class is taken from `mr-application`**, which is source a project copies rather than a library it depends on: a project that has not ported the 6.0.9 version keeps the 6.0.8 behavior, whatever `mr.data-load.initial-business-dates` is set to. See [InitialDataLoadConfig in detail](#initialdataloadconfig-in-detail) for what has to be ported.

**Signatures.** The constructor takes a `MeterRegistry`, and `allAvailableDates` takes two more parameters, used to discover dates from AWS S3:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before
new InitialDataLoadConfig(dataLoadProperties)
allAvailableDates(
    @Nullable LocalCsvConfigurationProperties localProperties,
    @Nullable AzureCsvConfigurationProperties azureProperties,
    @Nullable BlobServiceClient blobServiceClient)

// After
new InitialDataLoadConfig(dataLoadProperties, meterRegistry)
allAvailableDates(
    @Nullable LocalCsvConfigurationProperties localProperties,
    @Nullable AzureCsvConfigurationProperties azureProperties,
    @Nullable AwsCsvConfigurationProperties awsProperties,   // new
    @Nullable BlobServiceClient blobServiceClient,
    @Nullable S3Client s3Client)                             // new
```

Inject the `MeterRegistry` via Spring, or pass `new SimpleMeterRegistry()` in tests. `allAvailableDates` is a `@Bean` method, so Spring autowires the two new parameters; both are `@Nullable`, so a non-AWS deployment declares nothing extra.

**Date autodiscovery.** The meaning of an explicit empty list changed for **all** sources; leaving the property unset changed for AWS only:

| `mr.data-load.initial-business-dates` | Old behavior | New behavior |
| - | - | - |
| *(unset)*, local or Azure source | autodiscover dates | unchanged |
| *(unset)*, AWS source | no AWS branch in the discovery method: nothing discovered, nothing loaded | dates discovered from S3, so an initial load runs for every date found |
| `[]` | autodiscover dates | load nothing |
| `["2024-01-01"]` | load that date | unchanged |

An empty list is now how the initial load is suppressed. A deployment that used it to mean "discover everything" must remove the property instead. AWS discovery lists the prefixes matching the `dlc.csv.aws.sources` prefix up to `#{AsOfDate}`; set the property to keep control of what loads.

### Limits dependency alignment

Atoti Limits is an optional solution, licensed separately. Its client library `limits-auto-config-61` only reaches the classpath under the `limits` Maven profile, so pass `-P limits` when building or running. Deployments without Atoti Limits can skip this section.

6.0.9 moves the client library from 4.0.1 to **6.1.24** and its `groupId` from `com.activeviam.solutions.limits` to `com.activeviam.modules.limits`. The version jump is a renumbering, not years of change: Atoti Limits now shares the Atoti Java SDK's version line, so 6.1.24 directly succeeds 4.2.2, and `limits.version` resolves to `${activepivot.version}` rather than a fixed value.

> [!NOTE]
>
> This concerns the **client library** only. The Atoti Limits **server** stays on the 4.x stream, and the 6.1.24 client library is compatible with a 4.2.x server. There is no 6.1.24 Limits server to deploy.

> [!WARNING]
>
> Atoti Sign-Off and Adjustments move group in this release too, to `com.activeviam.modules.signoff-api` and `com.activeviam.modules`; see [Sign-Off and Adjustments Services](#sign-off-and-adjustments-services-dependency-alignment). Renaming the group alone is not enough for any of the three: the old groups publish only 4.x, so each move has to be paired with a 6.1.24 or later version.

#### Maven dependency

The standard project ships the new coordinates and needs no action. A deployment that declares or overrides Atoti Limits itself must change the `groupId` **and** the version together: `com.activeviam.modules.limits` publishes only 6.x and the old group only 4.x, so a 4.x version on the new group resolves to an artifact that does not exist.

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<dependency>
  <groupId>com.activeviam.modules.limits</groupId>
  <artifactId>limits-auto-config-61</artifactId>
  <!-- ${limits.version} inside the Atoti Market Risk build; a literal version elsewhere,
       since ${limits.version} and ${activepivot.version} are only defined there -->
  <version>6.1.24</version>
</dependency>
```

`limits.version` remains available to pin the client library independently of Atoti Server, and any value must be 6.1.24 or later. The declaration in the `limits` profile of `mr-application/pom.xml` carries no version, so only its `groupId` changes.

> [!NOTE]
>
> On Atoti Server 6.2, switch to `limits-auto-config-62`. `limits-auto-config-61` is also published at 6.2.0, so a 6.2.x `activepivot.version` resolves without error but silently loads the auto-configurer targeted at Atoti Server 6.1.

#### Application properties

6.1.24 authenticates with JWT and rejects the basic-auth properties 4.0.1 accepted: remove `limits.autoconfiguration.authentication`, `.limits-authentication` and `.content-server.authentication`. Add `service-principal`, the username Atoti Market Risk authenticates with.

Atoti Limits also pushes limit changes back to Atoti Market Risk to refresh its lookup cache in real time, a mechanism absent from 4.0.1. On a single host, `limits-auto-config-61` auto-detects the callback URL from `server.port` and `server.servlet.context-path`. In containerized or load-balanced deployments where that URL is unreachable from the Limits server, set `atoti-base-url`; without it the connection still succeeds, but limit evaluation results only appear on the next polling cycle.

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
limits:
  autoconfiguration:
    enabled: true                                         # shipped as false
    service-principal: admin                              # new in 6.0.9
    limits-base-url: http://localhost:3090                # the shipped value
    as-of-date: "AsOfDate@Date@Dates"
    atoti-base-url: http://mr-host:10010/mr-application   # new; containerized or load-balanced only
```

`service-principal` and `atoti-base-url` are the only additions; `enabled`, `limits-base-url` and `as-of-date` keep their 6.0.8 meaning. Point `limits-base-url` at wherever the Limits server actually runs.

### Atoti Server upgrade to 6.1.24

From Atoti Server 6.1.20, the distributed query engine builds its location translator once per application ID rather than per cube. Atoti distribution already required every data cube sharing an application to have the same topology (the same hierarchies, levels and measures), and the engine now relies on that directly, so the hierarchy *ordering* must match too.

The base and summary cubes of each domain share one application ID by default (`VaR`, `Sensi`, `PnL`), so the Risk-dimension hierarchy ordering of the VaR-ES and Sensitivity summary cubes has been aligned with their base cubes. The standard configuration needs no action; if you customize cube dimensions, keep base and summary orderings consistent.

### Dependency management aligned with Atoti Server

The root POM now declares the `activepivot-server-spring` BOM ahead of `common-dependencies-bom`, so Atoti Server's pins win where both manage an artifact, and upgrades Common Dependencies BOM and Common Parent POM to 2.6.0 (Spring Boot baseline 3.5.8 to 3.5.16). Under the previous order Atoti Server's pins were overridden, so the application ran older artifacts, including unpatched ones, than the server was tested against. The build changes this may need are in [What you must change](#what-you-must-change).

#### What moved

**Up.** Spring Boot 3.5.16, Spring Framework 6.2.19, Spring Security 6.5.11, Jackson 2.21.4, logback 1.5.21 to 1.5.34, `commons-collections4` 4.6.0, OpenTelemetry 1.49.0 to 1.55.0, and `lombok` 1.18.42 to 1.18.46, pinned here because the version also drives the `lombok-maven-plugin` delombok step. From Atoti Server's security pins: embedded Tomcat 10.1.57, netty 4.1.137.Final, Apache HttpClient 5 5.6.2 and HttpCore 5 5.4.3, `mssql-jdbc` 13.2.1.jre11, thymeleaf 3.1.5.RELEASE, `bcprov-jdk18on` 1.85 and `libthrift` 0.24.0.

All six Tomcat artifacts now ship on one patch release, 10.1.57. In 6.0.8 the `tomcat.version` property and its single `dependencyManagement` entry held `tomcat-embed-core` at 10.1.52, while `tomcat-embed-el`, `tomcat-embed-websocket`, `tomcat-annotations-api`, `tomcat-jdbc` and `tomcat-juli` came from `spring-boot-dependencies` at 10.1.49. Both are gone: the family follows Atoti Server, and `mr-application` drops its now-redundant `tomcat-embed-core` exclusion and explicit version.

For the CVE identifiers, see the `Security` heading of each release in the [Atoti Server 6.1 changelog](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md). Atoti Market Risk 6.0.8 ran Atoti Server 6.1.19, so the fixes span the 6.1.20 to 6.1.24 entries: 17 for embedded Tomcat alone, three of them critical. The Tomcat fixes are itemized in the [Apache Tomcat 10 security advisories](https://tomcat.apache.org/security-10.html).

Jackson is the largest of those jumps, two minor versions from 2.19.4 to 2.21.4. It stays within the 2.x line,
where Jackson keeps its public API and wire format stable, so no behavioral change is expected: databind
defaults, annotations and serialized output are unchanged. It is the version Spring Boot 3.5.16 selects, so
Spring's own converters are tested against it.

**Down.** Two artifacts on the classpath resolve lower than in 6.0.8, both because Atoti Server declares an
older version than the accelerator BOM: `commons-io` 2.21.0 to 2.20.0 and `velocity-engine-core` 2.4.1 to 2.4.
DB2 `jcc` moves 12.1.3.0 to 11.5.9.0 for a bug similar to
[mssql-jdbc#2042](https://github.com/microsoft/mssql-jdbc/issues/2042), but it is managed only and never
reaches the classpath. Nothing else decreases.

**Held back deliberately.** Four families do not take Atoti Server's version:

* **H2** stays at 2.3.232, the version 6.0.8 shipped and the one Spring Boot 3.5.16 selects. H2 changed its database file format in 2.2.220, so Atoti Server's 2.1.214 cannot read a file written by 2.3.232 (`Unsupported database file version or invalid file header`), which is what the shipped content service database and any 6.0.8 deployment's is. [CVE-2022-45868](https://nvd.nist.gov/vuln/detail/CVE-2022-45868), accepted in [PIVOT-8021](https://activeviam.atlassian.net/browse/PIVOT-8021) because the server uses H2 in test scope only, affects just the command-line H2 console, which this project never starts. To take 2.1.214 anyway, set `h2.version` and migrate the file with `SCRIPT`/`RUNSCRIPT`.
* **Hibernate** stays at 6.6.36.Final, the version 6.0.8 shipped. `hibernate-core` reaches the classpath at compile scope through `content-server-storage`, on the content service persistence path, and Atoti Server's 6.4.2.Final comes from [PIVOT-9994](https://activeviam.atlassian.net/browse/PIVOT-9994): 6.4.3.Final failed its CI, and the ticket is in triage proposing the pin be dropped. No CVE is involved. Holding it also keeps ByteBuddy coherent, since 6.4.2.Final declares 1.14.7 against the baseline's 1.17.8, and keeps `hibernate-commons-annotations` 7.0.3.Final and `jandex` 3.2.0 rather than 6.0.6.Final and 3.1.2. To take 6.4.2.Final anyway, set `hibernate-orm.version`. Only `hibernate-core` is pinned here, so any other `org.hibernate.orm` module added to a project (`hibernate-envers`, for instance) must be declared at `${hibernate-orm.version}` too, otherwise it resolves at Atoti Server's 6.4.2.Final and Hibernate supports its modules only as a matched set.
* **`io.zipkin.reporter2`** stays on the version Spring Boot selects, through a `zipkin-reporter-bom` 3.5.3 import ahead of the server BOM. Atoti Server pins 3.4.2, below the 3.5.1 that `opentelemetry-exporter-zipkin` 1.55.0 is compiled against. The family BOM is imported rather than the artifacts listed individually, so `zipkin-sender-pulsar-client` (absent from Atoti Server's 3.4.2 BOM, and therefore resolved from Spring Boot) stays on the same version as the rest. Only the Zipkin export paths use these artifacts (`mr.open-telemetry.legacy-mode=true` and the deprecated `mr.open-telemetry.zipkin-span-exporter-url`), not the default OTLP one. To take 3.4.2, set `zipkin-reporter.version`.
* **OkHttp** resolves at 5.2.1 throughout. `opentelemetry-exporter-sender-okhttp` 1.55.0, behind the default OTLP export, needs OkHttp 5 (`com.squareup.okhttp3:okhttp-jvm`), while `zipkin-sender-okhttp3` still needs OkHttp 4 (`com.squareup.okhttp3:okhttp`): the same `okhttp3.*` packages under two artifact ids, so both would land on the classpath and whichever exporter lost the class-loading order would run against bytecode it was not compiled for. `mr-application` therefore excludes `com.squareup.okhttp3:okhttp` from `opentelemetry-exporter-zipkin`, and both export paths are exercised against 5.2.1.

**Also in this release.** Common Parent POM moves from 2.5.0 to 2.6.0. It manages no dependency version, but moves 17 build plugin versions forward (Surefire 3.5.6, Compiler 3.15.0, JAR 3.5.1, JaCoCo 0.8.15) and carries `spring-boot.version` 3.5.16, so the repackaged fat jar embeds a `spring-boot-loader` matching its Spring Boot libraries where 2.5.0's 3.5.8 loader did not. In `logback-spring-file.xml`, the `MAIN` appender moves to `..._main-plain_...log.zip` to clear its collision with `JSON`; no logger references `MAIN`, so no log file the application writes changes name.

### Properties changed

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property | Change | Old default | New default |
| - | - | - | - |
| `mr.cubes.levels.day-to-day-members` | `Previous=CUB+1` added as the last entry | `[Yesterday=DAY-1, Day-2=DAY-2, Tomorrow=DAY+1, End Of Month=EOM-1, End Of Quarter=EOQ-1, End Of Year=EOY-1]` | `[Yesterday=DAY-1, Day-2=DAY-2, Tomorrow=DAY+1, End Of Month=EOM-1, End Of Quarter=EOQ-1, End Of Year=EOY-1, Previous=CUB+1]` |

**Impact on existing deployments.** Deployments that do not override `mr.cubes.levels.day-to-day-members` gain the `Previous` member in the DayToDay hierarchy of every cube built on the date dimension (Sensitivity, VaR-ES, PnL, and their summary cubes). No existing value changes: DayToDay is a slicer hierarchy, so it does not aggregate across its members, and because `Previous=CUB+1` is appended last the default member of the hierarchy remains `Yesterday=DAY-1`. Queries that enumerate DayToDay members (for example `[Dates].[DateDtD].Members`) now return one additional member, so saved dashboards built on all members show an extra row or column, and any baseline test that pins the member list needs updating. `Previous` resolves to the preceding date actually present in the cube, and returns an empty result rather than an error when no earlier date exists. To keep the earlier member list, override the property with the old default value. `Next=CUB-1` remains opt-in.

### CSV topic override filePattern fallback

`MRNamedDescriptionUtil.merge()` used to set `filePattern` to `null` when a YAML topic override (`dlc.csv.topics`) did not specify one; it now falls back to the base description's `filePattern`. An override that omitted `filePattern` in order to match nothing therefore now matches the code-defined pattern: set the pattern explicitly on any such topic.

### DirectQuery vector layout properties

Four new Spring properties select the vector layout of a store's external table. Set only the stores whose schema uses a layout other than the resolved default.

| Property | Store |
| - | - |
| `mr.directquery.tradepnl-vector-layout` | `TradePnLs` |
| `mr.directquery.tradesensitivities-vector-layout` | `TradeSensitivities` |
| `mr.directquery.marketshift-vector-layout` | `MarketShifts` |
| `mr.directquery.sensiladder-vector-layout` | `SensiLadders` |

They are the declarative equivalent of the manual `migrator.vectorsTableBehaviour(...)` call described in [DirectQuery vector emulation options](#directquery-vector-emulation-options), in the 6.0.8 notes. Each is resolved with `VectorType.valueOf()` after upper-casing, so any constant of `com.activeviam.accelerator.common.directquery.migration.schema.VectorType` is accepted, case-insensitively.

Leaving a property unset is the same as setting `DEFAULT`. Both resolve at runtime from the target database: `NATIVE` where the database stores vectors natively, `ROW` otherwise.

| Value | Layout |
| - | - |
| `DEFAULT` | Resolved from the database, as above. Never resolves to `COLUMN`, which must always be requested explicitly. |
| `ROW` | A separate vector table, one row per value with its index, concatenated back by Atoti |
| `ROW_SAME_TABLE` | As `ROW`, but the vector rows stay in the original table and the scalar fields are duplicated along it, so no second table is created |
| `COLUMN` | One column per vector index, named `<column>_0`, `<column>_1` and so on, up to 250 by default. The base name differs per store: `PNL_VECTOR` on `TradePnLs`, `LADDER` on `TradeSensitivities`, `VALUES` on `MarketShifts`, `SCALE` on `SensiLadders` |
| `NATIVE` | Vectors stored natively by the database; may need an additional translator |

An unrecognized value fails startup with an `IllegalArgumentException` naming the offending property and listing the accepted values, rather than silently falling back to the default.

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
mr:
  directquery:
    tradepnl-vector-layout: COLUMN
```

> [!WARNING]
>
> These properties are applied only where `DirectQueryActivePivotConfig` builds the `Migrator` itself. An application that supplies its own `Migrator` bean overrides that step, and all four are then ignored with no warning and no startup failure.

### VaR scenario resolution failure handling

VaR scenario-based adjustments (`VAR_ADD_ON`, `VAR_OVERRIDE`, `VAR_SCALING`) are fixed in this release (MR-2456). The fix is in `AdjustmentExecutionHelper` and `AdjustmentExecutionConfig`, both in `mr-application`, so a project running its own copy of that module gets it only by porting the 6.0.9 code. See [Porting mr-application changes](#porting-mr-application-changes-into-your-own-application-module). No API or configuration change is required, but the corrected behavior is visible to monitoring and automation:

* Resolution no longer depends on the order the `Scenarios` store returns rows. Rows out of `Index` order, common with several partitions or REST-loaded data, previously threw a silently swallowed `IndexOutOfBoundsException`, leaving the execution intermittently stuck at `PENDING` and caching the partial result for the as-of-date.
* Scenarios that cannot be resolved (a query failure, or no rows for the as-of-date and scenario set) now log under `[ADJUSTMENTS][EXECUTION]` and report `FAILED`, instead of proceeding into a downstream `NullPointerException`. In a bulk execution only the scenario group that failed is marked `FAILED`; the others still execute.
* A scenario set whose `Index` values are not exactly `0..n-1` (a duplicate, a gap or a null) is excluded from resolution and reported `FAILED`, rather than silently resolving to a scenario list mis-aligned with the PnL vector it is applied to. A set that appeared to work on that corrupt behavior now fails, with an error naming it and its `Index` values.

Executions previously stuck at `PENDING` for these reasons now finish as `EXECUTED` or `FAILED`.

### Adjustment execution failure handling

Defects in `AdjustmentExecutionConfig` and `BulkAdjustmentExecutionConfig` are fixed in this release (MR-2455). Both classes are in `mr-application`, so a project running its own copy of that module gets the fix only by porting the 6.0.9 code. See [Porting mr-application changes](#porting-mr-application-changes-into-your-own-application-module). No API or configuration change is required: only the *reported execution status* changes, and it is now accurate, which affects monitoring that relied on the previous behavior:

* Scalar adjustments (`*_ADD_ON`, `*_OVERRIDE`, `*_SCALING`) that threw while generating a value or writing to a store stayed at `PENDING` indefinitely, with nothing logged and the transaction left open. They now log under `[ADJUSTMENTS][EXECUTION]`, roll back the failing store's write and report `FAILED`.
* Cube-level adjustments (`*_CUBE_LEVEL`) that failed reported `EXECUTED`, because `FAILED` was immediately overwritten, for *every* execution in a bulk batch, including one skipped because its fields could not be resolved. Only executions that contributed rows to the committed transaction now report `EXECUTED`.
* Roll-overs (`*_ROLL_OVER`) had the same unguarded body as the scalar executors, so a failure in date parsing, trade selection or tuple generation left the execution at `PENDING`. They now log and report `FAILED`, failing the batch for bulk roll-overs. A bulk roll-over that resolved no books for its desk, or no trades for its book, previously failed only that one execution and left the rest of the batch at `PENDING`; the whole batch is now failed, as it already was on the method's other abort paths.
* All executors now report `FAILED` for an `Error` as well as an `Exception`, and still rethrow the `Error` afterwards, so a JVM-level failure is not swallowed. If setting the terminal status itself fails (an unavailable status service, say), the original failure still reaches the caller with the status-update failure attached as a suppressed exception, where it used to be replaced by it.
* The scalar executor's dedicated `Failed to run query: ` log line is folded into its outer failure handler. The stack trace is still logged under `[ADJUSTMENTS][EXECUTION]`, but alerting keyed on that exact string needs updating. The bulk executor still emits it.

### Admin UI measure lineage tab

The `doctorPivotApi` block has been removed from `static/atoti-admin-ui/env.js`, and the `DiagnosticsRedirectController` serving the legacy `/tree/cubes` and `/tree/measures` endpoints it relied on has been deleted. The measure lineage tab now uses the Atoti Data Lineage APIs embedded in Atoti Server.

If you serve your own copy of `env.js`, remove its `doctorPivotApi` block; the endpoints it points to no longer exist. The unused `dr-pivot.version` POM property has also been removed.

### Porting mr-application changes into your own application module

The library modules (`mr-common-lib`, `mr-sensi-lib`, `mr-var-lib`, `mr-pnl-lib` and their `-config` counterparts) reach a project as Maven artifacts, so the version bump picks their changes up automatically. `mr-application` is the runnable entry point, which most projects copy into a module of their own rather than depend on, so nothing that changes inside it arrives that way.

> [!WARNING]
>
> **Upgrading the Accelerator version applies none of the changes below.** In an application module built from a copy of `mr-application`, each has to be copied or re-applied by hand. Anything not taken is simply absent from the build, in most cases with no error at startup to signal it.

What follows is what 6.0.9 changed in `mr-application`, and it is a decision per item rather than an all-or-nothing upgrade: most rows are feature-scoped, so skip any whose feature is unused. Three are not optional on any upgrade, being compile-level or behavioral changes to code already present: the `InitialDataLoadConfig` constructor now requires a `MeterRegistry` ([below](#initialdataloadconfig-in-detail)), `RiskPostProcessorInjector` takes its cache configuration as a `List` ([Service-driven DirectQuery cache routing](#service-driven-directquery-cache-routing)), and the Limits `groupId` changes for a build using Limits ([Limits dependency alignment](#limits-dependency-alignment)).

> [!NOTE]
>
> Diffing the module against `mr-application` at the 6.0.8 and 6.0.9 tags is the most reliable approach. The tables below say what to look for and which parts are optional.

#### POM

| Change | Needed for |
| - | - |
| Parent version `6.0.8` to `6.0.9` | Always |
| Add `io.opentelemetry:opentelemetry-exporter-otlp` | OTLP export (the new default telemetry path) |
| Add the `com.squareup.okhttp3:okhttp` exclusion on `io.opentelemetry:opentelemetry-exporter-zipkin` | Whenever `opentelemetry-exporter-otlp` is added: its sender needs OkHttp 5 (`okhttp-jvm`) and the Zipkin one OkHttp 4, the same `okhttp3.*` packages under two artifact ids. Without the exclusion both land on the classpath and one exporter runs against bytecode it was not compiled for. See [OkHttp](#what-moved) |
| Add `io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0` | OTLP log-record export |
| Add `io.micrometer:micrometer-registry-otlp` | Micrometer OTLP metric export |
| Add `io.micrometer:micrometer-registry-prometheus` | `/actuator/prometheus`, including the new load timers |
| Change `logback-classic` scope from `runtime` to `compile` | OTLP logging |
| Add `com.activeviam.source:cloud-source-aws` at `${activepivot.version}` | AWS S3 date autodiscovery only |
| Add `org.postgresql:postgresql` | JGroups `JDBC_PING` discovery only |
| Drop the `tomcat-embed-core` exclusion on `spring-boot-starter-web` and its explicit `<version>` | Tomcat now follows Atoti Server, at 10.1.57. See [What moved](#what-moved) |
| Change the Limits `groupId` to `com.activeviam.modules.limits` | See [Limits dependency alignment](#limits-dependency-alignment) |

The new `maven-dependency-plugin` `unpack-shared-metadata` execution only extracts Spring metadata for the Accelerator's own documentation build. Do not port it.

#### Spring factories

Add `mr-application/src/main/resources/META-INF/spring.factories`, a new file in 6.0.9:

```properties theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
org.springframework.boot.env.EnvironmentPostProcessor=\
  com.activeviam.mr.application.config.JGroupsBindAddressPostProcessor,\
  com.activeviam.mr.application.config.JdbcPingEnvironmentPostProcessor,\
  com.activeviam.mr.application.main.OtlpEndpointNormalizer
```

If your module already has a `spring.factories`, merge these entries into the existing `EnvironmentPostProcessor` key rather than replacing the file. Register only the processors whose feature you use.

#### New classes to copy

| Class | Needed for |
| - | - |
| `main/OtlpEndpointNormalizer` | OTLP export (strips a trailing slash from the configured endpoint) |
| `config/JGroupsBindAddressPostProcessor` | `JDBC_PING` discovery |
| `config/JdbcPingEnvironmentPostProcessor` | `JDBC_PING` discovery |
| `sources/DateFileLister`, `sources/LocalDateFileLister`, `sources/S3DateFileLister` | Date autodiscovery |

#### Modified classes

Re-apply these if you have diverged from them, or re-copy them if you have not:

| Class | Change |
| - | - |
| `main/OpenTelemetryTracingConfig` | Substantially rewritten for OTLP, legacy mode and global SDK registration |
| `config/properties/OpenTelemetryProperties` | `legacy-mode` added, Zipkin URL deprecated, `ZIPKIN_SPAN_EXPORTER_URL_DEFAULT` removed |
| `sources/InitialDataLoadConfig` | Three separate features land here; see [below](#initialdataloadconfig-in-detail) |
| `measures/RiskPostProcessorInjector` | Cache configuration is now injected as a `List` |
| `signoff/adjustments/*` | Execution failure handling: the adjustment and VaR scenario fixes, MR-2455 and MR-2456. Without them, failed executions keep reporting `PENDING` or `EXECUTED` |
| `config/resources/StaticResourcesHandler` | An empty or `/` context path is no longer substituted literally into `env.js` |

`main/DiagnosticsRedirectController` was **deleted**. Remove it from your module; the legacy `/tree/cubes` and `/tree/measures` redirects no longer exist.

#### InitialDataLoadConfig in detail

| Change | Needed for |
| - | - |
| The constructor is now `InitialDataLoadConfig(DataLoadProperties, MeterRegistry)`, and each load phase is wrapped in the `recordedLoad(...)` helper that emits `mr.initial.load.phase.duration{topic}` under the overall `mr.initial.load.duration`. Phase values are `AllAttributes`, `AllFacts`, `AllMarketData`, `AllConfiguration` and `SignOff` | Always: the constructor change breaks compilation even if you want none of the timers. Pass the injected registry, or a `SimpleMeterRegistry` in tests |
| The batched load path reading `mr.data-load.initial-load-batch-size`, together with the new `expandLeafTopics` and `expandLeafTopicsInto` helpers | `initial-load-batch-size` batching. Port the property without the helpers and the batched path cannot resolve alias topics |
| `availableDatesAws(...)`, the widened private `loadTopic(...)`, and the new `localDateFileLister(...)` and `s3DateFileLister(...)` `@Bean` methods | AWS S3 date autodiscovery. Without the two bean methods the listers are never wired and discovery falls back silently |
| `logParsingReport(DlcLoadResponse)` | Logging the DLC parsing report after a load |

The externally visible parts of these changes, the `allAvailableDates` signature and the date autodiscovery behavior, are covered in [Initial data load](#initial-data-load).

#### Resources

| Resource | Change |
| - | - |
| `application.yaml` | Added the `management.otlp.metrics.export` block and `mr.enable.tracing.open-telemetry` (both `false` by default); replaced the Limits basic-auth properties with `service-principal` |
| `logback-spring-file.xml` | The `MAIN` appender's `fileNamePattern` moves from `main_` to `main-plain_`, clearing its collision with `JSON`. Required whenever this configuration is used: Logback 1.5.34 makes a shared file name an error, and startup fails with `Collision detected. Skipping initialization of appender named [MAIN]`. No logger references `MAIN`, so no log file the application writes changes name |
| `application-snowflake.yaml` | Switched to key-pair authentication: `password` replaced by `additional-options.private-key-base64`. Copy it only if you run the `snowflake` profile, and read [Snowflake key-pair authentication](#snowflake-key-pair-authentication) first: the new placeholder stops startup until `SNOWFLAKE_PRIVATE_KEY_BASE64` is set |
| `static/atoti-admin-ui/env.js` | Removed the `doctorPivotApi` block |
| `jgroups-protocols/protocol-jdbc-ping.xml` | New file; copy it only if you use `JDBC_PING` discovery |
| `META-INF/additional-spring-configuration-metadata.json` | IDE autocompletion hints only; optional |

> [!WARNING]
>
> Do not copy `application-paas.yaml`, `application-datanode-paas.yaml`, `application-querynode-paas.yaml` or `application-directquery-paas.yaml`. The `paas` profile configures ActiveViam's own hosted test environment and is not intended for customer deployments. A module that already holds copies of these files needs no cleanup: they are inert unless `paas` appears in `SPRING_PROFILES_ACTIVE`.

The Grafana dashboards and the local LGTM stack under `docker/observability/` sit at the repository root rather than inside `mr-application`. They are development tooling and are not required to run the application.

## Migrate to 6.0.8

Atoti Market Risk uses Atoti Server 6.1.19 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Migration Helper REST endpoint

The new `MRMigrationHelperRestController` is automatically registered when running in in-memory mode via `InMemoryDatastoreExtractionMigratorConfig` (`com.activeviam.mr.migration.config`), which is imported by the default `MarketRiskConfig`. If you maintain your own copy of `MarketRiskConfig`, add `InMemoryDatastoreExtractionMigratorConfig.class` to your `@Import` list to pick up the new controller.

> [!NOTE]
>
> The migration helper **requires in-memory data cubes**: it reads rows directly from the in-memory `IDatastore` to produce the CSV exports and the DDL. It therefore does not apply to DirectQuery deployments (`starter.deployment.type=direct-query`) or to query-only nodes (`starter.deployment.type=query-node`); the controller is skipped on both. See the [Migration helper](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/customization-and-internals/migration-helper.md) page in the DirectQuery section for the intended workflow (extract an in-memory dataset, then start the application in DirectQuery mode).

CSV file exports (`POST /extract` and `POST /extractForDatabase/{database}`) are restricted to a configurable base directory via `mr.migration.export.base-dir` (defaults to the JVM temp directory). To allow exports to a custom path, set this property:

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
mr:
  migration:
    export:
      base-dir: /data/mr-exports
```

To disable the endpoint entirely (for example, in production deployments where the extraction helper is not needed), set `mr.migration.export.enabled` to `false` (defaults to `true`):

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
mr:
  migration:
    export:
      enabled: false
```

If your project implements a custom `ISideStoresToMigrate` bean or sets the `storesToMigrate` field on `DirectQueryActivePivotConfig`, note that both are now deprecated. The migration helper controller manages store selection through its `getDefaultExtractionBuilder()` method. You can continue using the deprecated APIs, but they will be removed in a future release.

#### Deprecated APIs

| Deprecated API | Replacement |
| - | - |
| `ISideStoresToMigrate` | Store selection is configured in `MRMigrationHelperRestController.getDefaultExtractionBuilder()` |
| `DirectQueryActivePivotConfig.storesToMigrate` | Store selection is configured in `MRMigrationHelperRestController.getDefaultExtractionBuilder()` |

### REST clients: `Content-Type: application/json` is now required

The `POST /migrationHelper/extract` and `POST /migrationHelper/extractForDatabase/{database}` endpoints now declare `consumes = application/json` and `produces = text/plain;charset=UTF-8` (inherited from the underlying common library REST controller). REST clients that previously omitted the `Content-Type` header on these calls will receive an HTTP **415 Unsupported Media Type** response. Update your scripts to send `Content-Type: application/json` alongside the JSON body.

### DirectQuery vector emulation options

Two new vector emulation modes are available to complement the existing `ROW` mode used by the 6.0.3 [Databricks row-based vectors example](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#databricks-handle-row-based-vector-schema):

* `VectorType.ROW_SAME_TABLE`: vector fields stay inline in the original table with an index column added, which duplicates the scalar fields across the resulting rows. Best for stores that contain only key fields and vector fields, where there is little to duplicate.
* `VectorType.COLUMN`: each vector field is expanded into a fixed number of scalar columns in the same table.

Configure them per-store on the `Migrator` bean exactly like the existing `ROW` mode:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Bean
public Migrator myMigrator() {
    Migrator migrator = new Migrator(datastoreSchemaDescription, activePivotManagerDescription, nameMapper,
            toolbox, directQuerySpringProperties);

    // Inline vector emulation (key + vector fields only):
    migrator.vectorsTableBehaviour(MARKET_SHIFT_STORE_NAME, VectorType.ROW_SAME_TABLE);

    // Column-wise expansion (one column per vector position):
    migrator.vectorsTableBehaviour(SENSI_LADDER_STORE, VectorType.COLUMN);

    return migrator;
}
```

Alternatively, opt every key-only-plus-vector table into `ROW_SAME_TABLE` in one call:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
migrator.autoRowSameTable(true);
```

The same modes can be selected at runtime through the migration helper REST endpoint by passing `vectorStoreBehaviours`, `columnVectorSizes`, or `autoRowSameTable` in the JSON body of `POST /migrationHelper/extract`. Explicit per-table overrides always take precedence over `autoRowSameTable`.

For `COLUMN` mode, schema discovery picks up the columns that actually exist in the live database and adjusts the in-memory schema accordingly, so existing DirectQuery tables continue to work without any size configuration. The size only matters when discovery is not performed, primarily when generating DDL via `GET /migrationHelper/sqlSchema` or when bootstrapping a fresh database. The DDL emitter uses a fixed `<fieldName>_0`, `<fieldName>_1`, … layout; discovery does not require that exact shape.

The global default (**250**) used during DDL generation can be raised via the Spring property:

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
directquery:
  schema:
    default-vector-size: 500
```

For per-field control during DDL generation, pass `columnVectorSizes` in the extraction DTO:

```json theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
{
  "databaseType": "SNOWFLAKE",
  "columnVectorSizes": {
    "TradePnLs": { "PnLVector": 500 },
    "SensiLadders": { "Sensitivities": 1000 }
  }
}
```

### Atoti Server upgrade to 6.1.19

Atoti Market Risk 6.0.8 upgrades to Atoti Server 6.1.19 (from 6.1.17).

**PIVOT-12863 patch files removed.** The patch files for PIVOT-12863 (`CompositeVersionAccessor` and `SqlVersionAccessorWithCache`) that were introduced in 6.0.5 have been removed, as the fix is now included in core. If your project overrides or references these classes, remove those overrides.

**`QueryCubeSync` test utility relocated.** The `QueryCubeSync` test utility class has been relocated from `com.activeviam.activepivot.dist.test.internal.cube` to `com.activeviam.activepivot.dist.querynode.test.internal.cube`. If your test code imports this class, update the import accordingly.

**Distributed messaging API rework.** Atoti Server 6.1.19 also reworks the distributed messaging API. The legacy broadcast-message types (`ABroadcastMessageV2`, `IMessageAnswer`, `IMessageHandler`, `IMessageHandlerRegistrar`, `SyncMessageHandler`, `IBroadcastResult`) have been replaced with the new `Request` / `Answer` / `ProcessedOutput` records and the `CommunicationRegistration` builder.

> [!NOTE]
>
> Atoti Market Risk does not reference any of the distributed messaging classes affected by this change. **No code change is required in projects that build on top of the standard Atoti Market Risk configuration.** The sections below describe the underlying changes for projects that extend the distributed messaging or Snowflake integration directly.

**Removed helper types.** The following helper types are no longer available because their Atoti Server base classes were removed in 6.1.19:

| Removed type | Replacement / notes |
| - | - |
| `com.activeviam.accelerator.common.utils.AUniqueBroadcastMessage` | No replacement; base class `ABroadcastMessageV2` removed from Atoti Server. |
| `com.activeviam.accelerator.common.utils.AUniqueSyncBroadcastMessageHandler` | No replacement; base class `SyncMessageHandler` removed. |
| `com.activeviam.accelerator.common.distribution.SharedMessageHandlerRegistrar` | `DistributedParametersRetriever` registers its handler itself. |
| `com.activeviam.services.ServicesMessageHandlerRegistrar` | `EndPointFinderService` registers its handler itself. |
| `com.activeviam.accelerator.common.parameter.impl.DistributedParametersMessageHandler` | Logic moved into `DistributedParametersRetriever`. |
| `com.activeviam.services.endpointfinder.EndPointFinderMessageHandler` | Logic moved into `EndPointFinderService`. |

If a `Registry.RegistryContributions` setup listed `SharedMessageHandlerRegistrar` or `ServicesMessageHandlerRegistrar`, simply drop those entries.

**Message types are now records.** `DistributedParametersMessage` and `EndPointFinderMessage` are now `record` types implementing `com.activeviam.activepivot.dist.impl.avinternal.communication.Request`. `DistributedParametersData` and `EndPointFinderMessage.EndPointFinderMessageAnswer` now implement `Answer` (the latter also `ProcessedOutput`). Replace getter calls with record accessors (`message.getBranch()` → `message.branch()`, etc.).

**`DistributedParametersRetriever` constructor change.** The retriever now registers its own message handler at construction time via `CommunicationRegistration`, so it needs the `IActivePivotManager`:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before
new DistributedParametersRetriever(parameterSetSelector, epochCacheManager);

// After
new DistributedParametersRetriever(parameterSetSelector, epochCacheManager, activePivotManager);
```

**Snowflake JDBC driver package moves.** The Snowflake JDBC driver bundled with Atoti Server 6.1.19 relocates several public classes. If you reference them in Java imports, update them:

| Class | Old package | New package |
| - | - | - |
| `SFSessionProperty` | `net.snowflake.client.core` | `net.snowflake.client.internal.core` |
| `SnowflakeStatement` | `net.snowflake.client.jdbc` | `net.snowflake.client.api.statement` |

If you have custom JGroups protocol XML files and are upgrading from 6.0.5 (or earlier), also apply the `auth_class` change described in [SharedSecretAuthToken replaces AtotiAuthToken](#sharedsecretauthtoken-replaces-atotiauthtoken) in the 6.0.6 → 6.0.7 section.

### POM file changes

The upgrade bumps the `activepivot.version` and `common-lib.version` properties in the root `pom.xml`; see the [Dependencies](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/dependencies.md) page for the resolved versions per release.

A new `com.activeviam.apps:services` library dependency is also introduced. It contains REST endpoint services (such as `EndPointFinderService` and `LevelPathService`) that were previously bundled inside `com.activeviam.apps:shared` and the Atoti Server core.

**Managed entry to add in the root `pom.xml` `<dependencyManagement>` block:**

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<dependency>
    <groupId>com.activeviam.apps</groupId>
    <artifactId>services</artifactId>
    <version>${common-lib.version}</version>
</dependency>
```

**Direct dependency to add in `mr-application/pom.xml`:**

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<dependency>
    <groupId>com.activeviam.apps</groupId>
    <artifactId>services</artifactId>
</dependency>
```

If your project repackages `mr-application` or maintains a `pom.xml` derived from Atoti Market Risk, add the `services` dependency (no `<version>` needed if you import the Atoti Market Risk BOM or copy the managed entry above).

### FX shift factor moved to IFxShift service

The FX shift factor (`mr.fx.shift-factor`) was previously applied within the measure chain, which caused incorrect results for inverse and cross-currency pairs. The shift factor is now applied directly inside the `IFxShift` service before any pair inversion or cross-currency computation.

> [!WARNING]
>
> If your project uses a non-unit shift factor (`mr.fx.shift-factor` != 1.0), results for inverse and cross-currency FX pairs will change after upgrading. The previous behavior applied the shift factor incorrectly for these pairs, so the new results are mathematically correct. Review your FX risk outputs after migration to confirm the expected values.

**If you use the default `FXShift` implementation** (provided by `FXShiftsServiceConfig`), no action is required. The shift factor is automatically read from `IFxProperties.getShiftFactor()`.

**If you have a custom `IFxShift` implementation**, ensure the shift factor is applied to the raw shift vectors before any inversion or cross-currency resolution.

### FX relative sensitivity formula fix

The `FX_RELATIVE` sensitivity formula in `ASensiFormulaProvider.fxRelativeShiftFormula()` applied the `priceFactor` **after** the non-linear FX inversion, which is mathematically incorrect. The formula has been corrected to apply the `priceFactor` **before** the inversion:

```
// Before (incorrect): invert first, then scale
sensitivity × [(1 - 1/(1 + shift)) × priceFactor]^order / order!

// After (correct): scale first, then invert
sensitivity × [1 - 1/(1 + shift × priceFactor)]^order / order!
```

> [!WARNING]
>
> If your project uses `FX_RELATIVE` sensitivity rules with a `priceFactor` other than 1.0, Taylor VaR and PnL Explain results for FX sensitivities will change after upgrading. The new results are mathematically correct. This fix is consistent with the FX shift factor fix in the `IFxShift` service described above.

### Stable names for hidden technical measures

Hidden intermediate technical measures in the `MTM`, `Notional`, and `OriginalNotional` chains have been renamed. Previously their names were generated automatically by Copper (for example `MTM.SUM__#__0__#__VaR`). These names are now stable, explicit, and include the cube name (for example `MTMVaR-ES Cube.TECHNICAL`).

**Impact on DirectQuery aggregate tables.** If your DirectQuery aggregate table configuration references any of the old auto-generated names, update those references to the new names:

| Cube | Old auto-generated name pattern | New stable name |
| - | - | - |
| VaR-ES Cube | `MTM.SUM__#__…` | `MTMVaR-ES Cube.TECHNICAL` |
| VaR-ES Cube | `Notional.SUM__#__…` | `NotionalVaR-ES Cube.TECHNICAL` |
| VaR-ES Cube | `OriginalNotional.SUM__#__…` | `OriginalNotionalVaR-ES Cube.TECHNICAL` |
| VaR-ES Summary Cube | `MTM.SUM__#__…` | `MTMVaR-ES Summary Cube.TECHNICAL` |
| Sensitivity Cube | `Notional.SUM__#__…` | `NotionalSensitivity Cube.TECHNICAL` |
| Sensitivity Cube | `OriginalNotional.SUM__#__…` | `OriginalNotionalSensitivity Cube.TECHNICAL` |
| PLCube | `Notional.SUM__#__…` | `NotionalPLCube.TECHNICAL` |
| PLCube | `OriginalNotional.SUM__#__…` | `OriginalNotionalPLCube.TECHNICAL` |

**Impact on MDX queries.** If any MDX query targeted one of these technical measures by its auto-generated name, update the measure name accordingly.

**Extenders overriding the suffix.** The `nameTechnicalMeasure(String)` method is a default method on `IMeasureParameters`. If a custom suffix is needed, override it in your `IMeasureParameters` implementation.

**Clash risk for deprecated factory overloads.** The deprecated no-arg factory methods `INotionalMeasures.notional()`, `INotionalMeasures.originalNotional()`, and `IVaRESMeasures.mtmNative()` produce unqualified names such as `Notional.TECHNICAL`. If an extender calls a deprecated overload from more than one cube, startup will fail with a duplicate-measure-name error. Migrate to the cube-aware overloads (`notional(String cube)`, `originalNotional(String cube)`, `mtmNative(String cube)`) without delay.

### Deprecated APIs

The following APIs have been deprecated for removal in a future version:

| Deprecated API | Replacement |
| - | - |
| `IMeasureParameters.getFxShiftFactor()` | Configure `mr.fx.shift-factor`; now applied in the `IFxShift` service |
| `FxRiskPostProcessorBuilder.withShiftFactor(double)` | No replacement needed; shift factor is applied in the `IFxShift` service |
| `ApplyShiftPostProcessorBuilder.withShiftFactor(double)` | No replacement needed; shift factor is applied in the `IFxShift` service |
| `FXShift(String, IMarketDataRetrievalService, String, IRiskFactorFXPairTranslator)` | `FXShift(IFxProperties, IMarketDataRetrievalService, IRiskFactorFXPairTranslator)` |
| `INotionalMeasures.notional()` | `INotionalMeasures.notional(String cube)`: pass the cube name to avoid clashes |
| `INotionalMeasures.originalNotional()` | `INotionalMeasures.originalNotional(String cube)`: pass the cube name to avoid clashes |
| `IVaRESMeasures.mtmNative()` | `IVaRESMeasures.mtmNative(String cube)`: pass the cube name to avoid clashes |

### FXShift constructor change

The `FXShift` class now accepts `IFxProperties` instead of individual `String` parameters for the common currency. The new constructor also reads the shift factor from `IFxProperties.getShiftFactor()`.

If you instantiate `FXShift` directly, update your code:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before (deprecated)
new FXShift("EUR", marketDataRetrievalService, "FX", riskFactorFXPairTranslator);

// After
new FXShift(fxProperties, marketDataRetrievalService, riskFactorFXPairTranslator);
```

### Properties added

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property | Default value | Description |
| - | - | - |
| `mr.migration.export.enabled` | `true` | Whether the `MRMigrationHelperRestController` (the `/migrationHelper` REST endpoints) is registered. Set to `false` to remove the migration helper from deployments that don't need it. |
| `mr.migration.export.base-dir` | `java.io.tmpdir` | Allowed base directory for CSV file exports. Any `outputDirectory` requested by `POST /migrationHelper/extract*` that resolves outside this path after normalization is rejected. |
| `mr.fx.enable-fx-risk-on-var-cube` | `true` | Whether FX risk is included in the VaR cube computation. Set to `false` to exclude FX risk from both the complete and summary VaR chains, and to suppress synthetic `*_FX` Risk Factor members. |

### Exclude FX risk from the VaR cube

The new property `mr.fx.enable-fx-risk-on-var-cube` defaults to `true`. No action is required to preserve the current behavior.

To opt in and exclude FX risk from the VaR cube, set the property to `false`:

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
mr:
  fx:
    enable-fx-risk-on-var-cube: false
```

Setting this property to `false` is incompatible with `mr.fx.enable-var-base-currency-dimension=true`. The application will fail at startup if both properties are set together.

In distributed deployments, set this property on each data node that hosts the VaR cube. Keep the value consistent across all data nodes to avoid schema reconciliation failures at startup. Setting the property on a query node alone has no effect.

## 6.0.6 to 6.0.7

Upgrading from version 6.0.6, see [Atoti Market Risk 6.0.7 Release Notes](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#6-0-7).

Atoti Market Risk uses Atoti Server 6.1.17 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Summary

* **Atoti Server upgrade**: Atoti Server has been upgraded to 6.1.17.
* **Base Currency dimension extracted to conditional beans**: The Base Currency dimension is now registered as a conditional Spring bean in each cube's dimension config, replacing inline static method calls. Action required if you override dimension config classes or call `BaseCurrencyDimensionConfig.fxEffectDimension()` directly in custom dimension builders.
* **Sensitivity cube configuration refactoring**: Taylor-specific dimensions have been extracted into a separate configuration class. Action required if you have custom extensions.
* **New CubeMoveKind date members available**: `Previous=CUB+1` and `Next=CUB-1` can now be configured in `mr.taylor.market-shift-date-specific` and `mr.cubes.levels.day-to-day-members` to enable cube-relative date shifting. These are opt-in features that must be explicitly added to your configuration.
* **JGroups authentication class changed**: The JGroups `AUTH` protocol class has been changed from `AtotiAuthToken` to `SharedSecretAuthToken`. Action required if you have custom JGroups protocol XML files.

### Base Currency dimension extracted to conditional beans

The Base Currency dimension was previously added to each cube via inline calls to `BaseCurrencyDimensionConfig.fxEffectDimension()` inside dimension builder lambdas. These inline calls have been removed. The dimension is now registered as a separate conditional Spring bean in each cube's dimension config class.

The affected classes are:

* `VarESCubeDimensionsConfig`: new bean `varFxEffectDimension`, annotated with `@ConditionalOnVarFxDimensionEnabled`
* `VarESSummaryCubeDimensionsConfig`: new bean `varSummaryFxEffectDimension`, annotated with `@ConditionalOnVarFxDimensionEnabled`
* `SensiCubeDimensionsConfig`: new bean `sensiFxEffectDimension`, annotated with `@ConditionalOnSensiFxDimensionEnabled`
* `SensiSummaryCubeDimensionsConfig`: new bean `sensiSummaryFxEffectDimension`, annotated with `@ConditionalOnSensiFxDimensionEnabled`
* `BaseCurrencyDimensionConfig`: the common `fxEffectDimension` bean is now annotated with `@ConditionalOnSensiFxDimensionEnabled`

**Impact on custom projects**:

If you override any of the above dimension config classes, remove any remaining inline calls to `BaseCurrencyDimensionConfig.fxEffectDimension()` from dimension builder lambdas and define a dedicated conditional bean instead.

If you call `BaseCurrencyDimensionConfig.fxEffectDimension()` directly in a custom dimension builder, replace that call with a bean definition annotated with the appropriate condition annotation, or use the static overload that accepts individual parameters such as `displayCurrencies` and `localRiskMember`.

**No action required if**:

* You use the standard Market Risk configuration without custom extensions
* You do not override any of the dimension config classes listed above

### Configuration changes

#### Taylor dimensions extraction

The following three dimensions have been moved from `SensiCubeDimensionsConfig` to a new configuration class `TaylorDimensionsConfig`:

* Scenario Analysis Hierarchy
* Liquidity Horizon Hierarchy
* Scenario Set Hierarchy

These dimensions are now imported via `TaylorMeasuresConfig`.

**Impact on custom projects**:

If you have custom configuration that extends or overrides `SensiCubeDimensionsConfig`, you may need to update your imports.

If you have custom configuration that directly references these dimension beans, ensure your configuration imports `TaylorDimensionsConfig` or has a dependency on `TaylorMeasuresConfig`.

**No action required if**:

* You use the standard Market Risk configuration without custom extensions
* You do not override Sensitivity cube dimension configuration

#### New CubeMoveKind date members available

The `CUB` prefix is now supported for date shifting in the following properties. The `CUB` prefix stands for **Cube-relative shift**: it resolves to the nearest date that actually exists in the cube (dates are sorted in the cube's natural descending order, from most recent to oldest), as opposed to `DAY` which shifts by a fixed number of business days.

* `mr.taylor.market-shift-date-specific` (MarketShiftDate hierarchy)
* `mr.cubes.levels.day-to-day-members` (Day-to-Day hierarchy)

**To enable CubeMoveKind** add `Previous=CUB+1` and/or `Next=CUB-1` to your configuration:

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
mr:
  taylor:
    market-shift-date-specific:
      - TODAY=DAY0
      - YESTERDAY=DAY-1
      - PREVIOUS=CUB+1
      - NEXT=CUB-1
  cubes:
    levels:
      day-to-day-members:
        - Yesterday=DAY-1
        - Day-2=DAY-2
        - Tomorrow=DAY+1
        - End Of Month=EOM-1
        - End Of Quarter=EOQ-1
        - End Of Year=EOY-1
        - Previous=CUB+1
        - Next=CUB-1
```

Note that the **first entry** in each list becomes the default member of the hierarchy. To make `Previous` the default member, place it first in the list.

### Dependency upgrades

#### JGroups authentication class change

##### SharedSecretAuthToken replaces AtotiAuthToken

The JGroups `AUTH` protocol class has been changed from `com.activeviam.activepivot.dist.impl.internal.distribution.security.impl.AtotiAuthToken` to `com.activeviam.common.distribution.security.SharedSecretAuthToken`.

If you have custom JGroups protocol XML files (`protocol-tcp.xml` or `protocol-udp.xml`), update the `AUTH` element:

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<!-- Before (6.0.6) -->
<AUTH auth_class="com.activeviam.activepivot.dist.impl.internal.distribution.security.impl.AtotiAuthToken"
      auth_token.auth_value="distribution_password"
      auth_token.token_hash="SHA"/>

<!-- After (6.0.7) -->
<AUTH auth_class="com.activeviam.common.distribution.security.SharedSecretAuthToken"
      auth_token.auth_value="distribution_password"
      auth_token.token_hash="SHA"/>
```

**No action required if** you use the standard JGroups protocol files shipped with the accelerator.

## 6.0.5 to 6.0.6

Upgrading from version 6.0.5, see [Atoti Market Risk 6.0.6 Release Notes](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#6-0-6).

Atoti Market Risk uses Atoti Server 6.1.15 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Summary

* **Atoti Server upgrade**: Atoti Server has been upgraded from 6.1.13 to 6.1.15.
* **Atoti What-If upgrade**: Atoti What-If has been upgraded to 4.1.6-AS6.1. To migrate any custom What-If configuration, see the
  [migration guides for this release](https://docs.activeviam.com/solutions/libraries/what-if/5.0/introduction-to-atoti-what-if.md).
* **Common-lib upgrade**: Common-lib has been upgraded from 2.1.11-AS6.1 to 2.1.12-AS6.1.
* **Scenario handling rework**: Scenario index decoding now uses a join-based approach via `ScenarioNameFromJoinPostProcessor`, replacing the old store-based `ScenarioNamePostProcessor`.
* **DirectQuery incremental refresh**: The `IRefreshTask` interface has a new method signature accepting a `ChangeDescription` parameter.
* **Branch permissions config moved**: `ActivePivotBranchPermissionsManagerConfig` has moved from `mr-common-config` to `mr-application`.
* **Measure parameter constructors updated**: `VaRMeasureParameters` and `PnLMeasureParameters` constructors now accept an `IFxProperties` object instead of separate FX parameters.

### API updates

#### `IRefreshTask` interface change

The `IRefreshTask` functional interface has been updated. The old `refresh()` method is now deprecated and replaced by `refresh(@Nullable ChangeDescription changeDescription)`. If you have custom implementations of `IRefreshTask`, update them to accept the new `ChangeDescription` parameter:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before (6.0.5)
IRefreshTask task = () -> { /* refresh logic */ };

// After (6.0.6)
IRefreshTask task = (changeDescription) -> { /* refresh logic, optionally using changeDescription */ };
```

The `ChangeDescription` parameter allows incremental refresh operations. Pass `null` if a full refresh is desired.

#### `VaRMeasureParameters` constructor change

The `VaRMeasureParameters` constructor that accepted separate `String fxRiskClass` and `Double defaultFxRate` parameters has been deprecated. The new constructor accepts an `IFxProperties` object instead:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
// Before (6.0.5)
new VaRMeasureParameters(..., fxProperties.getRiskClassMember(), ..., fxProperties.getDefaultFxRate(), ...);

// After (6.0.6)
new VaRMeasureParameters(..., fxProperties, ..., ...);
```

The same change applies to `PnLMeasureParameters`. If you have custom measure parameter beans (e.g. in classes extending `VarMeasureParametersBeans` or `PnlMeasureParametersBeans`), update the constructor calls accordingly.

#### `RiskDimension.getRiskClassesHierarchyWithNA()` deprecated

The method `RiskDimension.getRiskClassesHierarchyWithNA()` has been deprecated. Its behavior (contributing unknown members with `AUTO_CONTRIBUTE_UNKNOWN_MEMBER_ALWAYS`) has been merged into `getRiskClassesHierarchy()`. Replace any calls to `getRiskClassesHierarchyWithNA()` with `getRiskClassesHierarchy()`.

### Deprecated classes and methods

The following deprecations have been introduced in 6.0.6. These will be removed in a future release.

#### `ActivePivotBranchPermissionsManagerConfig` in `mr-common-config`

The class `com.activeviam.mr.common.datastore.permissions.ActivePivotBranchPermissionsManagerConfig` in the `mr-common-config` module has been deprecated (`@Deprecated(forRemoval = true, since = "6.0.6")`). The replacement class is `com.activeviam.mr.application.config.security.ActivePivotBranchPermissionsManagerConfig` in the `mr-application` module. The new implementation uses `AtotiSecurityProperties` to dynamically resolve admin roles instead of a hardcoded list.

If you have a custom implementation of branch permissions, migrate to extend or replace the new `mr-application` version.

#### Scenario measure methods

Several scenario-related methods have been deprecated in favor of new "Ex" variants that use the `ScenarioNameFromJoinPostProcessor` (join-based) instead of the old `ScenarioNamePostProcessor` (store-based):

| Interface | Deprecated method | Replacement |
| - | - | - |
| `IVaRESMeasures` | `worstScenario()` | `worstScenarioEx()` |
| `IVaRESMeasures` | `bestScenario()` | `bestScenarioEx()` |
| `IFixedConfidenceMeasures` | `scenariosConfidence(String)` | `scenariosConfidenceEx(String)` |
| `IRiskClassFixedConfidenceMeasures` | `scenariosConfidence(String, String)` | `scenariosConfidenceEx(String, String)` |
| `IContextualMeasures` | `contextScenarios()` | `contextScenariosEx()` |
| `IContextualMeasures` | `contextScenarios(String, String)` | `contextScenariosEx(String, String)` |

The new methods require an additional underlier for the scenario index measure. If you override any of these methods, update your implementations to use the new variants.

#### `IMeasureResolver.getMeasureBeans()`

The method `getMeasureBeans()` has been deprecated (since 6.0.5). Use `getCopperBeans()` instead, which returns `Publishable<?>` beans (a broader scope including both measures and non-measure copper elements).

### Scenario join-based configuration

Scenario hierarchies and scenario name decoding have been reworked to use a left-join approach. This is the most significant architectural change in 6.0.6.

#### New classes

* `JoinScenarioHierarchy` (`mr-common-config`): Provides base left-join configurations for scenario analysis, liquidity horizon, and scenario set hierarchies.
* `JoinScenarioHierarchyVaR` (`mr-var-config`): VaR cube-specific scenario join configuration.
* `JoinScenarioHierarchySensi` (`mr-sensi-config`): Sensitivity cube-specific scenario join configuration.
* `ScenarioNameFromJoinPostProcessor` (`mr-common-lib`): New post-processor that decodes scenario indices using the join rather than direct store lookups. Implements `IDistributedPostProcessor` for distributed cube support.

#### New Spring qualifier constants

New qualifier constants have been added to `SpringConstants` for injecting scenario store joins and hierarchies:

| Constant | Description |
| - | - |
| `SP_QUALIFIER__SCENARIO_STORE_NAME_JOIN_VAR` | Scenario store join for VaR cube |
| `SP_QUALIFIER__SCENARIO_STORE_NAME_JOIN_VAR_SUMMARY` | Scenario store join for VaR Summary cube |
| `SP_QUALIFIER__SCENARIO_STORE_NAME_JOIN_SENSI` | Scenario store join for Sensitivity cube |
| `SP_QUALIFIER__SCENARIO_STORE_NAME_JOIN_SENSI_SUMMARY` | Scenario store join for Sensitivity Summary cube |
| `SP_QUALIFIER__SCENARIO_ANALYSIS_HIERARCHY_*` | Scenario analysis hierarchy for each cube |
| `SP_QUALIFIER__LIQUIDITY_HORIZONS_HIERARCHY_*` | Liquidity horizon hierarchy for each cube |

If you have custom cube dimension configurations, update them to use the new join-based hierarchy builders and Spring qualifiers.

### Cube dimension configuration changes

The dimension configuration classes for all cubes have been updated to use the new join-based scenario hierarchies:

* `VarESCubeDimensionsConfig`: New beans `scenarioAnalysisHierarchyVaR()` and `liquidityHorizonHierarchyVaR()` using `JoinScenarioHierarchyVaR`. The deprecated method `scenarioSetLeftJoinVaR()` will be removed in a future release.
* `VarESSummaryCubeDimensionsConfig`: Updated to use `JoinScenarioHierarchyVaR` for summary cube.
* `SensiCubeDimensionsConfig`: Updated to use `JoinScenarioHierarchySensi`.
* `SensiSummaryCubeDimensionsConfig`: Updated to use `JoinScenarioHierarchySensi` for summary cube.

If you maintain custom copies of these configuration classes, align them with the new join-based approach.

The Base Currency and FX Effect hierarchies are added to the VaR cube when `mr.fx.enable-var-base-currency-dimension=true`.

### `EsVaRMetricLevelsProperties` interface extension

The `EsVaRMetricLevelsProperties` interface has four new default methods:

| Method | Default return |
| - | - |
| `getRiskFactor()` | `null` |
| `getRiskClass()` | `null` |
| `getSensitivityName()` | `null` |
| `getSensitivityTypeLevel()` | `null` |

These are used by the multi-jurisdiction FX improvements. If you have custom implementations of this interface, these defaults ensure backward compatibility, but you may want to provide actual level identifiers if you use FX risk features.

### DirectQuery incremental refresh

This release introduces support for incremental refresh of DirectQuery data sources. The `MRDirectQueryRestServices` class now propagates `ChangeDescription` objects through to all `IRefreshTask` instances.

If you have custom refresh tasks or extend the DirectQuery REST services, update your implementations to handle the new `ChangeDescription` parameter. See the [incremental refresh documentation](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/customization-and-internals/directquery-rest-service.md#/refresh-endpoint) for details.

### Dependency version changes

| Dependency | 6.0.5 | 6.0.6 |
| - | - | - |
| Atoti Server | 6.1.13 | 6.1.15 |
| Atoti What-If | 4.0.4-AS6.1 | 4.1.6-AS6.1 |
| Common-lib | 2.1.11-AS6.1 | 2.1.12-AS6.1 |

## 6.0.4 to 6.0.5

### Apply patched Atoti Server 6.1.13 classes.

Atoti Server 6.1.13 has a few issues which require the application of patched classes to every project using DirectQuery features.

We provide these patched classes in the `mr-application` module. If you are not using this module as-is, please copy the following classes to the application module of your project:

`mr-application/src/main/java/com/activeviam/database/composite/internal/version/CompositeVersionAccessor.java`

`mr-application/src/main/java/com/activeviam/databasecache/private_/database/SqlVersionAccessorWithCache.java`

### `SensitivityType` hierarchy

The new property named `mr.sensi.display-taylor-var-by-sensitivity` is by default set to `true`.
If set to `false`, the Taylor VaR by Sensitivity measures are not displayed in the Sensitivity cube.
The [SensitivityType](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/sensitivity-kind.md) hierarchy is created to replace this set of measures.
Set the property `mr.sensi.display-sensitivity-type-hierarchy` to `false` to hide this new hierarchy.
For instance `Delta Taylor VaR` measure is replaced by `Taylor VaR` with filter on `sensitivityType = Delta`.

If the FX effect is categorized as "Delta FX", it is important to hide the original `[Sensitivity] Taylor VaR` measures by setting `mr.sensi.display-taylor-var-by-sensitivity=false`.
The FX effect is only moved on the `[Sensitivities].[SensitivityType]` hierarchy but not on the sensitivities specific measures.

If the hierarchies used to translate the FX effect must contain the desired location or be virtual.
To do so, the Risk Class hierarchy has 'N/A' as default parameter that is used when the 'FX' member is absent.

More precisely, when `mr.fx.enable-fx-risk-location-shift=true`, a location can only be displayed if the respective hierarchies contains the correct members, or are declared as virtual. Otherwise, the FX risk may not be visible in the cube.
To do so, the following analysis hierarchy `HierarchyWithFxRiskFactors` can be used to add the FX risk factor members to the
`Risk Factors@Risk hierarchy`. In the event that the member is not present on the hierarchy and this one is not declared as virtual, the default member will be used.
To display the default member, the property `AUTO_CONTRIBUTE_UNKNOWN_MEMBER_PROPERTY=AUTO_CONTRIBUTE_UNKNOWN_MEMBER_ALWAYS` must be set on the hierarchy.

The translation between the currency pair and the risk factor is done by the `IRiskFactorFXPairTranslator` bean. It may be customized to fit your risk factor naming convention.
Please see the [Relation between RiskFactor and currency pair](https://docs.activeviam.com/solutions/market-risk/6.0/calculations/exchange-rate-and-market-data-api.md#relation-between-riskfactor-and-currency-pair) chapter for more details.

### Properties added

[Sensitivities module properties](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-sensi-config.md):

| Property | Default value | Description |
| - | - | - |
| mr.cubes.levels.base-currency | Base Currency\@Base Currency\@Base Currency | The name of the [Base Currency](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) hierarchy. |
| mr.cubes.levels.fx-effect | FX Attribution\@FX Effect\@Base Currency | The name of the [FX Effect](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) hierarchy. |
| mr.cubes.levels.sensitivity-type-level | SensitivityType\@SensitivityType\@Sensitivities | The name of the [SensitivityType](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/sensitivity-kind.md) hierarchy. |
| mr.fx.enable-fx-risk-location-shift | true | The forex conversion of the VaR generates a specific risk; if true, this risk is classified under Delta/FX, if false, it stays at the current location. |
| mr.fx.enable-var-base-currency-dimension | false | If true, the [Base Currency](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) and the [FX Effect](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) hierarchies are created. |
| mr.fx.fx-risk-member | FX Effect | Name of the member of [FX Effect](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) that holds the forex conversion risk. |
| mr.fx.local-risk-member | Local Risk | Name of the member of [FX Effect](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) that holds the local specific risk. |
| mr.fx.risk-disable-member | Local Risk | Name of the member of [Base Currency](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) used to turn off the forex risk. |
| mr.fx.risk-display-member | Display Ccy | Name of the member of [Base Currency](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/base-currency.md) used to link the forex risk with the display currency. |
| mr.fx.sensitivity-name-member | Delta | Name of the [Sensitivity](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/sensitivities.md) member that holds the forex risk. |
| mr.sensi.display-sensitivity-type-hierarchy | true | The [SensitivityType](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/sensitivity-kind.md) hierarchy is visible on the UI. |
| mr.sensi.display-taylor-var-by-sensitivity | true | The Taylor VaR by sensitivity type metrics are displayed, filtering by [SensitivityType](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/sensitivity-kind.md) should replace them. |
| mr.fx.shift-factor | 1.0 | The scale factor applied to FX shift when computing FX Effect of Taylor VaR. |

In addition:

* The Spring properties `mr.data-load.csv` have been removed, and the default Data Connector properties are now used instead.
* The source definition is described in the [`application.yaml`](../../properties/property-files/application-yaml) configuration file. For convenience, the content specific to Data Connectors is set in the `application-dlc-local-csv.yaml` and `application-dlc-azure-csv.yaml` file.
* The topics used by Atoti Market Risk are defined via Java beans of type `ILoadingTopicDescription` or `IUnloadTopicDescription`. The topics defined as `ILoadingTopicDescription` are still using the `file-patterns` [Configuration Properties](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md), which you can override in the [`application.yaml`](../../properties/property-files/application-yaml) configuration file.

### Migration to Atoti Market Data

The Market Data API, introduced in Atoti Market Risk 5.3, is now an external dependency called Atoti Market Data, using version
1.3.1
.

The market data artifacts (`market-data-lib`, `market-data-config`, and `market-data-spring-boot-starter`) are versioned independently, and the source code is no longer provided alongside the Atoti Market Risk source code.

For more information, see the [Atoti Market Data Documentation](https://docs.activeviam.com/solutions/libraries/market-data/1.3/).

As part of this migration, several changes have been made:

| Property name |
| - |
| `directquery.cache.max-slice-count` |
| `directquery.cache.max-slice-count-default` |

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property | Default value | Description |
| - | - | - |
| mr.enable.cubes.combined | true | Enables the `MRCombinedCube` when set to true. This property has been created to rename and in a future release replace the now deprecated property `mr.enable.cubes.common`. In this release either property can be used and will have the same effect. |
| mr.enable.dtd-absolute-increase | false | If true, the day to day increase formula uses an abolute value. |

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property | Description |
| - | - |
| mr.enable.cubes.common | This has been replaced by `mr.enable.cubes.combined` as this is more consistent with the name of the `MRCombinedCube`. In this release either property can be used and will have the same effect. |

| Cube | Measure | Details |
| - | - | - |
| PLCube, MRCombinedCube | [DTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |
| PLCube, MRCombinedCube | [LTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |
| PLCube, MRCombinedCube | [MTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |
| PLCube, MRCombinedCube | [YTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |

[mr-common-config](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Module | Class name |
| - | - |
| mr-application | `DataLoadControllerConfig` |
| mr-application | `DataLoadControllerFileConfig` |
| mr-common-config | `CSVProperties` |
| mr-common-config | `ACSVSourceConfig` |
| mr-common-config | `AdjustmentAzureCsvSourceConfig` |
| mr-common-config | `AdjustmentCsvSourceConfig` |
| mr-common-config | `AdjustmentCsvSourceParametersProviderConfig` |
| mr-common-config | `CommonCsvSourceParametersProviderConfig` |
| mr-common-config | `CubeMarketDataCsvSourceParametersProviderConfig` |
| mr-common-config | `CurveMarketDataCsvSourceParametersProviderConfig` |
| mr-common-config | `FxRateMarketDataCsvSourceParametersProviderConfig` |
| mr-common-config | `SpotMarketDataCsvSourceParametersProviderConfig` |
| mr-common-config | `SurfaceMarketDataCsvSourceParametersProviderConfig` |
| mr-common-config | `AdjustmentLocalCsvSourceConfig` |
| mr-common-config | `CommonAzureCsvSourceConfig` |
| mr-common-config | `CommonCsvSourceConfig` |
| mr-common-config | `CommonLocalCsvSourceConfig` |
| mr-common-config | `AzureSourceConfig` |
| mr-common-config | `ChannelParameters` |
| mr-common-config | `ChannelParametersHolder` |
| mr-common-config | `ChannelParametersHolderOperator` |
| mr-common-config | `Glob` |
| mr-common-config | `LocalSourceConfig` |
| mr-common-config | `MessageChannelCreator` |
| mr-common-config | `SimpleCsvSourceConfig` |
| mr-common-config | `SimpleJdbcSourceConfig` |
| mr-common-config | `SimpleSourceConfig` |
| mr-common-config | `TopicConfig` |
| mr-common-config | `DataLoadControllerConfigurator` |
| mr-common-config | `IAzureCsvSourceConfig` |
| mr-common-config | `ICsvSourceConfig` |
| mr-common-config | `IJdbcSourceConfig` |
| mr-common-config | `ILocalCsvSourceConfig` |
| mr-common-config | `ISourceConfig` |
| mr-common-config | `ISourceConfiguration` |
| mr-common-config | `ITupleFieldsAware` |
| mr-common-config | `StoreAndScopeToConditionConverter` |
| mr-common-config | `TopicAliasDefines` |
| mr-common-config | `TopicToScopeToLoadConverter` |
| mr-common-config | `TopicToScopeToRemoveWhereConditionConverter` |
| mr-common-config | `ACsvSourceParametersProvider` |
| mr-common-config | `ATopicParameters` |
| mr-common-config | `CsvColumnsProvider` |
| mr-common-config | `CsvColumnsProviderFunction` |
| mr-common-config | `CsvPublisherProvider` |
| mr-common-config | `CsvPublisherProviderFunction` |
| mr-common-config | `CsvTopicColumns` |
| mr-common-config | `CsvTopicPublisher` |
| mr-common-config | `@ConditionalOnAzureData` |
| mr-common-config | `@ConditionalOnAzureSource` |
| mr-common-config | `@ConfigurationDirectQueryWithAzureSource` |
| mr-common-config | `@ConditionalOnLocalData` |
| mr-common-config | `@ConditionalOnLocalSource` |
| mr-common-config | `@ConditionalOnDirectQueryWithLocalSource` |
| mr-pnl-config | `PnLAzureCsvSourceConfig` |
| mr-pnl-config | `PnLCsvSourceConfig` |
| mr-pnl-config | `PnLLocalCsvSourceConfig` |
| mr-pnl-config | `PnLSummaryAzureCsvSourceConfig` |
| mr-pnl-config | `PnLSummaryCsvSourceConfig` |
| mr-pnl-config | `PnLSummaryLocalCsvSourceConfig` |
| mr-pnl-config | `SignoffSummaryPnlPublisher` |
| mr-pnl-config | `PnLCsvSourceParametersProviderConfig` |
| mr-pnl-config | `PnLSummaryCsvSourceParametersProviderConfig` |
| mr-sensi-config | `ASensiCsvSourceConfig` |
| mr-sensi-config | `SensiAzureCsvSourceConfig` |
| mr-sensi-config | `SensiLocalCsvSourceConfig` |
| mr-sensi-config | `ASensiPnLCsvSourceConfig` |
| mr-sensi-config | `SensiPnLAzureCsvSourceConfig` |
| mr-sensi-config | `SensiPnLLocalCsvSourceConfig` |
| mr-sensi-config | `ASensiImportCsvSourceConfig` |
| mr-sensi-config | `SensiImportAzureCsvSourceConfig` |
| mr-sensi-config | `SensiImportLocalCsvSourceConfig` |
| mr-sensi-config | `ScalarSensiCsvSourceParametersProviderConfig` |
| mr-sensi-config | `SignoffSummarySensiPublisher` |
| mr-sensi-config | `BCCubeMarketDataCsvSourceParametersProviderConfig` |
| mr-sensi-config | `BCCurveMarketDataCsvSourceParametersProviderConfig` |
| mr-sensi-config | `BCFxRateMarketDataCsvSourceParametersProviderConfig` |
| mr-sensi-config | `BCSpotMarketDataCsvSourceParametersProviderConfig` |
| mr-sensi-config | `BCSurfaceMarketDataCsvSourceParametersProviderConfig` |
| mr-sensi-config | `DirectQuerySensiCsvSourceParametersProviderConfig` |
| mr-sensi-config | `SensiCsvSourceParametersProviderConfig` |
| mr-sensi-config | `SensiSummaryCsvSourceParametersProviderConfig` |
| mr-sensi-config | `SourceParametersProviderConfig` |
| mr-sensi-config | `SensiSummaryOnMainCsvSourceParametersProviderConfig` |
| mr-var-config | `VaRAzureCsvSourceConfig` |
| mr-var-config | `VaRCsvSourceConfig` |
| mr-var-config | `VaRLocalCsvSourceConfig` |
| mr-var-config | `VaRSummaryAzureCsvSourceConfig` |
| mr-var-config | `VaRSummaryLocalCsvSourceConfig` |
| mr-var-config | `VarSummarySourceConfiguration` |
| mr-var-config | `SignoffSummaryVarPublisher` |
| mr-var-config | `VaRCsvSourceParametersProviderConfig` |
| mr-var-config | `VaRSummaryCsvSourceParametersProviderConfig` |

[mr-sensi-config](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-sensi-config.md):

| Module | Old name | New Name |
| - | - | - |
| mr-common-config | `AdjustmentSourceConfiguration` | `AdjustmentCsvSourceConfig` |
| mr-common-config | `CommonSourceConfiguration` | `CommonCsvSourceConfig` |
| mr-common-config | `MarketDataSourceConfig` | `MarketDataCsvSourceConfig` |
| mr-pnl-config | `PnLSourceConfiguration` | `PnLCsvSourceConfig` |
| mr-sensi-config | `SensiSourceConfiguration` | `SensiCsvSourceConfig` |
| mr-sensi-config | `SensiSummarySourceConfiguration` | `SensiSummaryCsvSourceConfig` |
| mr-sensi-config | `AllBackwardsCompatibleMarketDataSources` | `AllBackwardsCompatibleMarketDataCsvLoadConfig` |
| mr-sensi-config | `SensiCsvSourceParametersProviderConfig` | `SourceParametersProviderConfig` |
| mr-var-config | `VarSourceConfiguration` | `VarCsvSourceConfig` |

#### Refactor of `SensiMeasureParameters`

With the removal of the vector data model, the `SensiMeasureParameters` constructor has been refactored to remove the `boolean isVector` field.

#### DirectQuery configuration

The `DirectQueryActivePivotConfig` class no longer extends the `ADirectQueryApplicationConfig` class from Atoti Server. Atoti Server 6.1.2 introduced some bean name changes in this class that cause bean resolution issues. These will be resolved in a following Atoti Server release, at which time this change can be reversed.

#### Schema rebuild

In the `MarketRiskConfig` class in `mr-application` we create a bean to schedule an Atoti schema rebuild. Previously this would run after 5 minutes and every 30 minutes thereafter. This was more frequent than necessary and may impact performance. We have increased the default to 1,440 minutes (24 hours) so the rebuild occurs once a day. We have also added new properties (`mr.application.rebuild...`) to customize this for your requirements.

#### Sign-Off REST services

The implementation of the Sign-Off REST services now has a Boolean to enable/disable them.
Out of the box, the Sign-Off REST services are disabled until the initial load is completed.
This prevents the Sign-Off server from sending requests on those services before the end of the initial load.

Atoti core exceptions are now used instead of the previously used Javax exceptions.

Error messages and constants have been fixed. Their prefix and/or content was previously incorrect.
In particular, the constant `ERROR_MESSAGE` has been replaced by the constant `ERROR_MESSAGE_NO_VALID_DTO_PROVIDED`.

#### Webservices

The following outdated dependency has been removed from the POM file of the `mr-common-lib` module:

```
<dependency>
    <groupId>javax.ws.rs</groupId>
    <artifactId>javax.ws.rs-api</artifactId>
    <version>2.0</version>
    <scope>compile</scope>
</dependency>
```

The String constant for the `"application/json"` media type from the Spring class `org.springframework.http.MediaType` is used instead of the corresponding
constant from the`javax.ws.rs.core.MediaType` class.

#### Sorting order of beans

The class `StartupSpringBeanOrder` has been added with constants used to define the order in which some of the beans are loaded:
In increasing order:

* `START_MANAGER`: Starts the Atoti Server manager.
* `REGISTER_DATABASE_LISTENERS`: Registers the parent/child listeners.
* `INITIAL_CONFIGURATION_DATA_LOAD`: Starts the initial data load.
* `INITIAL_DATA_LOAD`: Instantiates beans after the initial data load is completed.
* `START_DISTRIBUTED_MESSENGERS`: Starts the distribution messengers.

#### Fix for trailing white space incorrectly added with empty string suffix

The methods `*Suffix` in the class `VaRMetricParametersAndNames` now trim the generated measure names to avoid the incorrect addition of a trailing white space.

#### DirectQuery Cache

This release includes a new DirectQuery caching mechanism that dynamically loads slices of data into memory to improve the performance of retrievals from external stores (stores not joined to the base store).

Currently, this only supports market data stores - those from Atoti Market Data and the additional stores from the `mr-sensi-config` module. Additionally, this is a preview feature that is disabled by default. To enable the feature, set the property: `mr.enable.preview.directquery-cache=true`.

When you are using the cache, a "slice" of market data will be stored in memory when it is required for a query. A slice corresponds to all the market data for a given combination of `asOfDate` and `marketDataSet`. These slices will be added and removed from the cache based on the maximum number of slices that can be held at any one time. You can configure the maximum number of slices for a particular table with the `directquery.cache.max-slice-count` property, otherwise the value set in the `directquery.cache.max-slice-count-default` property will be used.

#### Scalar reference data

The reference dataset that is provided in `mr-application/src/main/resources/data` has been updated so that sensitivities are now in a [scalar format](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivities.md) rather than vectorized. This is primarily for clarity now that the Sensitivities Cube no longer supports a vectorized model. It is still possible to provide [sensitivity vectors](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivities.md) as input, but be aware that these will be converted and stored as scalar values in the application.

#### Distribution and measures

Atoti Market Risk cubes and their summary variants (for example the `VaR-ES Cube` and the `VaR-ES Summary Cube`) are created as a horizontal distribution. This enables Atoti Market Risk to show a single measure (for example `VaR`) with some dates coming from the full cube and other date contributions from the summary cube. This is a useful feature, but it comes with a warning. Atoti Server expects that all cubes in a horizontal distribution have exactly identical measure chains. If they do not, this can lead to errors or incorrect results when queries are executed on a query cube with both cubes. The measure chains in Atoti Market Risk are not identical between main and summary cubes but, in this release, we have made changes to avoid these failure scenarios. We strongly recommend that, if you are using summary cubes, you add any new measures both to the main and summary cubes.

## 6.0.3 to 6.0.4

Upgrading from version 6.0.3, see [Atoti Market Risk 6.0.4 Release Notes](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#6-0-4).

Atoti Market Risk uses Atoti Server 6.1.11 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Summary

* **Migrated to the [DirectQuery Local Cache](https://docs.activeviam.com/products/atoti/server/6.1.11/docs/directquery/directquery_local_cache/)** : The preview DirectQuery cache, included in Atoti Market Risk 6.0.0 has been replaced with the full Atoti Server version.

### Breaking changes

The following classes were used in the configurations or descriptions of the preview DirectQuery cache introduced in Atoti Market Risk 6.0.0. The preview cache was a preview feature, and the cache has now been integrated into Atoti Server. Therefore, **these classes have been removed rather than deprecated**.

* **DirectQueryCacheConfig removed**: This class was used to configure the preview DirectQuery cache and the configuration is no longer required.
* **DQSensiCacheConfig removed**: This class contained correlation/dividend/splitRatio cache descriptions for the preview DirectQuery cache. These descriptions have been moved to their own classes: `CorrelationMarketDataDirectQueryCacheConfig` etc.
* **DirectQueryCacheProperties removed** : This class contained properties to configure the preview DirectQuery cache. The API has been changed to [configure the cache size](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/customization-and-internals/caching-side-stores.md#cache-capacity). These properties are no longer used.

### Configuration properties

#### Properties removed

##### [mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

The two properties listed in the following table were used to configure cache sizes for the preview DirectQuery cache introduced in Atoti Market Risk 6.0.0. The cache has now been integrated into Atoti Server, and, while migrating to this new API, we have changed the API to [configure the cache size](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/customization-and-internals/caching-side-stores.md#cache-capacity).

| Property name |
| - |
| `directquery.cache.max-slice-count` |
| `directquery.cache.max-slice-count-default` |

### Other changes

#### Migrate to the [DirectQuery Local Cache](https://docs.activeviam.com/products/atoti/server/6.1.11/docs/directquery/directquery_local_cache/)

Atoti Market Risk 6.0.0 included the preview for a DirectQuery cache that balanced fast Get-By-Key query performance with controllable memory consumption.
This cache was integrated into Atoti Server 6.1.9 as a robust, fully supported feature. In Atoti Market Risk the preview cache has been removed
and replaced with the Atoti Server version.

This cache is still enabled by setting the property `mr.enable.preview.directquery-cache=true`. With this setting enabled, all market data stores
(specifically CubeMarketData, CurveMarketData, FxRateMarketData, SpotMarketData, SurfaceMarketData, and MarketShifts) are now cached when using DirectQuery.
In previous versions, the MarketShifts store was not cached.

The preview cache used classes in the private module: `com.activeviam.mr.directquery.cache._private`. These classes have been removed.

For details on how to use the cache in your project, see [Cache side stores](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-direct-query/customization-and-internals/caching-side-stores.md).

#### Cache description imports

In Atoti Market Risk 6.0.0, cache descriptions for the preview DirectQuery cache were imported via the `SensiCompleteConfig` and `MRDirectQueryConfig`
classes. The cache has now been integrated into Atoti Server, and all cache descriptions are now imported directly in `MarketRiskConfig`.

#### Data Connectors versioning

The Data Connectors dependencies (Data Load Controllers and Data Extraction Engine) are now versioned alongside Atoti Server. In the future, Data
Connectors documentation will be included with the main Atoti Server documentation. For now, however, you may continue to use the
[previous documentation](https://docs.activeviam.com/products/tools/data-connectors/latest/online-help/). The only change in this release is the introduction of
the `dlc.csv.implicit-topics-enabled` property, which allows you to disable implicit topics entirely for load operations. The default is "true", which means
that implicit topics are enabled. Set to false to disable implicit topics.

## 6.0.2 to 6.0.3

Upgrading from version 6.0.2, see [Atoti Market Risk 6.0.3 Release Notes](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#6-0-3).

Atoti Market Risk uses Atoti Server 6.1.9 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Summary

* **Extensible tail measure types**: You can now define custom tail measure types for use in calculations by `ITailMeasureCalc` and `IWeightedTailMeasureCalc`.
* **DtD % metric formula**: The percentage change metrics named `... DtD % Difference` formula can be changed to use the absolute value of the amount, by default it uses the legacy behaviour.
* **`clear-filter` parameter is taken in account for Drill-up comparative measures**: The parameters `clear-filter` located on `mr.metrics.booking`, `mr.metrics.trades`, `mr.metrics.custom-metrics.*` path is taken in account for the `post-processor=ParentValue` setup.
* **DLC Warning logs and potential errors**: After upgrading to Atoti Market Risk 6.0.3 you may see `WARN` logs such as: `Implicit topic for table '...' cannot be built as the table does not exist in the datastore` when loading data. See more details [here](#dlc-warning-logs-and-potential-errors)

### Breaking changes

* **Added imports to SensiSummaryCsvSourceConfig**: The `SensiSummaryCsvSourceConfig` imports a number of underlying Spring configuration classes that create beans to load Sensitivity Summary stores. We have added imports to this class in Atoti Market Risk 6.0.3 for configuration classes that create DLC load and unload topics for the Correlation, Dividend, and SplitRatio market data stores. These stores are required by the Sensitivity Summary cube and, when running with only the Sensitivity Summary cube enabled, these imports are necessary to enable data loading to the stores. If you do not require these imports, please replace `SensiSummaryCsvSourceConfig` with a custom Spring configuration class, importing only the classes you require. In Atoti Market Risk 6.0.3, `SensiSummaryCsvSourceConfig` imports the following classes:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Import(value = {
        SensiSummaryCsvLoadConfig.class,
        SensiSummaryUnloadConfig.class,
        CommonCsvSourceConfig.class,
        CorrelationMarketDataCsvLoadConfig.class, // added in 6.0.3
        DividendMarketDataCsvLoadConfig.class, // added in 6.0.3
        SplitRatioMarketDataCsvLoadConfig.class, // added in 6.0.3
        CorrelationMarketDataCsvUnloadConfig.class, // added in 6.0.3
        DividendMarketDataCsvUnloadConfig.class, // added in 6.0.3
        SplitRatioMarketDataCsvUnloadConfig.class // added in 6.0.3
})
```

* **Added imports to SensiCsvSourceConfig**: In the case of the main Sensitivity cube. The Correlation, Dividend, and SplitRatio load and unload topic beans were created in the `SensiCsvLoadConfig` and `SensiCsvUnloadConfig` configuration classes. These beans have now been extracted from these classes so they can be used by the Sensitivity Summary cube. Imports have been added to the `SensiCsvSourceConfig` class to configure these beans. As above, if you do not require these imports, please replace `SensiCsvSourceConfig` with a custom Spring configuration class, importing only the classes you require. In Atoti Market Risk 6.0.3, `SensiCsvSourceConfig` imports the following classes:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Import(value = {
        SensiCsvLoadConfig.class,
        SensiCsvUnloadConfig.class,
        SensiSummaryOnMainCsvLoadConfig.class,
        SourceParametersProviderConfig.class,
        CommonCsvSourceConfig.class,
        AdjustmentCsvSourceConfig.class,
        DirectQuerySensiCsvLoadConfig.class,
        CorrelationMarketDataCsvLoadConfig.class, // added in 6.0.3
        DividendMarketDataCsvLoadConfig.class, // added in 6.0.3
        SplitRatioMarketDataCsvLoadConfig.class, // added in 6.0.3
        CorrelationMarketDataCsvUnloadConfig.class, // added in 6.0.3
        DividendMarketDataCsvUnloadConfig.class, // added in 6.0.3
        SplitRatioMarketDataCsvUnloadConfig.class // added in 6.0.3
})
```

* **MRDlcDescriptionConfig import in MarketRiskConfig**:  the class `com.activeviam.mr.common.sources.MRDlcDescriptionConfig` from the `mr-common-config` is now imported in the `MarketRiskConfig` class
  instead of the `com.activeviam.mr.application.sources.MRDlcDescriptionConfig` class defined in the `mr-application` module. If you maintain your own copy of`MarketRiskConfig`,
  you may wish to make a similar change in your project, but this is not required as both classes are still maintained for this version.

### Deprecations

* **CalcType enums**: `ITailMeasureCalc.CalcType` and `IWeightedTailMeasureCalc.CalcType` have been deprecated. There is a new `TailMeasureCalcType` class that allows you to define custom types. All methods that used these enums have also been deprecated and there are new methods using `TailMeasureCalcType`.
* **DLC Converter classes**: `GlobToRegexConverterConfig` and `RegexPassThroughGlobToRegexConverter` were added in Atoti Market Risk 6.0.0 to provide additional functionality to the DLC when loading from cloud sources. This functionality is now part of the DLC and so these classes are not required. They have been deprecated to avoid breaking changes, but they are essentially empty and do not do anything. Removed in [6.0.10](#dlc-converter-classes-removed).
* **MRCombinedCube property**: The property `mr.enable.cubes.common` and the annotation `@ConditionalOnCommonCubeEnabled` are now deprecated. The property `mr.enable.cubes.combined` with a default value of true and the annotation `@ConditionalOnCombinedCubeEnabled` have been introduced to rename and in the future replace `mr.enable.cubes.common` and `@ConditionalOnCommonCubeEnabled` respectively. If you declare both properties, please ensure both are set to true to enable the `MRCombinedCube`.
* **MRDlcDescriptionConfig and MRNamedDescriptionUtil**: `com.activeviam.mr.application.sources.MRDlcDescriptionConfig` and `com.activeviam.mr.application.sources.MRNamedDescriptionUtil` have been deprecated. These class have been copied, otherwise unchanged, to the `mr-common-config` module in the `com.activeviam.mr.common.sources` package.

### DLC Warning logs and potential errors

After upgrading to Atoti Market Risk 6.0.3 you may see `WARN` logs such as: `Implicit topic for table '...' cannot be built as the table does not exist in the datastore` when loading data. This is due to a change in the DLC, which now highlights when you try to load a topic that does not exist. The topic aliases we provide in the [application.yaml](https://docs.activeviam.com/solutions/market-risk/6.0/properties/property-files/application-yaml.md) file load all topics including Sensitivities, VaR, and PnL. When you disable cubes with `mr.enable.cubes...` not all topics are created and so the `WARN` logs will be shown. These logs can be ignored. Or you can modify the aliases to load only the stores necessary for your use-case.

> [!WARNING]
>
> Please be aware that if you instruct the DLC to load a topic that you have not configured, and the topic matches the name of a store in your application, the DLC will throw an error.

### DtD % metric formula

Depending on the `mr.enable.dtd-absolute-increase` property the computation of the `... DtD % Difference` measures have changed.

* If `mr.enable.dtd-absolute-increase=false`, the default and non-breaking behaviour, the formula is $increase=\frac{today-yesterday}{yesterday}$.
* If `mr.enable.dtd-absolute-increase=true`, the formula is $increase=\frac{today-yesterday}{|yesterday|}$.

### Configuration properties

#### Properties added

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property | Default value | Description |
| - | - | - |
| mr.enable.cubes.combined | true | Enables the `MRCombinedCube` when set to true. This property has been created to rename and in a future release replace the now deprecated property `mr.enable.cubes.common`. In this release either property can be used and will have the same effect. |
| mr.enable.dtd-absolute-increase | false | If true, the day to day increase formula uses an abolute value. |

#### Properties deprecated

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property | Description |
| - | - |
| mr.enable.cubes.common | This has been replaced by `mr.enable.cubes.combined` as this is more consistent with the name of the `MRCombinedCube`. In this release either property can be used and will have the same effect. |

### Other changes

#### springdoc-openapi version fix

In Atoti Market Risk version 6.0.2, the wrong version of `springdoc-openapi` was used - version 2.5.x - which is incompatible with the Spring Boot version 3.4.x used by the project.
This has been corrected in version 6.0.3, which now uses `springdoc-openapi` version 2.8.9.

For details on compatibility, see: [https://springdoc.org/faq.html#\_what\_is\_the\_compatibility\_matrix\_of\_springdoc\_openapi\_with\_spring\_boot](https://springdoc.org/faq.html#_what_is_the_compatibility_matrix_of_springdoc_openapi_with_spring_boot)
The main POM file of the project has been updated accordingly: the property `springdoc.version` has now a value equal to
`2.8.9` instead of `2.5.0` previously.

## 6.0.1 to 6.0.2

Upgrading from version 6.0.1, see [Atoti Market Risk 6.0.2 Release Notes](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#6-0-2).

Atoti Market Risk uses Atoti Server 6.1.8 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Summary

* **Properties to enable data overlap**: Cube properties have been added that enable data overlap within a horizontally distributed setup.
* **Updated business calendar logic**: Atoti Market Risk uses a new business calendar for day-to-day shift calculations, considering all days business days. Please see [below for further details](#updated-business-calendar-logic).

#### Updated business calendar logic

Day-to-day shift calculations use an implementation of `IBusinessDayCalendarFactory` to determine business days. The default implementation is now `PassThroughBusinessDayCalendarFactory`, which categorizes all days as business days.

If you need different behavior, you can provide your own implementation by publishing a new bean:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Bean
@Primary
@Qualifier(SP_QUALIFIER__BUSINESS_DAY_CALENDAR_FACTORY)
public IBusinessDayCalendarFactory customBusinessDayCalendarFactory() {
    return new CustomBusinessDayCalendarFactory();
}
```

The previous default implementation was `TargetBusinessDayConvention.Factory`. This provided some simple business day logic, such as skipping weekends and holidays, but it is not appropriate for all cases. You can revert to this implementation by publishing the following bean:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Bean
@Primary
@Qualifier(SP_QUALIFIER__BUSINESS_DAY_CALENDAR_FACTORY)
public IBusinessDayCalendarFactory targetBusinessDayCalendarFactory() {
    return new TargetBusinessDayConvention.Factory();
}
```

### Configuration properties

#### Properties added

##### [mr-combined-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md)

| Property | Default value | Description |
| - | - | - |
| `mr.combined.distribution.enable-data-duplication` | `false` | Set to true to allow duplicate members in the distribution hierarchy of horizontally distributed data cubes. |

This property is defined in the `CombinedDistributionProperties` class, which is enabled in the `MRCombinedCube` class. If you have customized the import structure in your project, please ensure this properties class is enabled in your application to use the property.

##### [mr-pnl-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-pnl-config.md)

| Property | Default value | Description |
| - | - | - |
| `mr.pnl.distribution.cube-priority` | `null` | Specify the priority of the PnL cube in cases of data overlap within a horizontal distribution. |
| `mr.pnl.distribution.summary-cube-priority` | `null` | Specify the priority of the PnL Summary cube in cases of data overlap within a horizontal distribution. |

These properties are defined in the `PnlDistributionProperties` class, which is enabled in the `PnlPropertiesConfig` class. If you have customized the import structure in your project, please ensure this properties class is enabled in your application to use these properties.

##### [mr-sensi-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-sensi-config.md)

| Property | Default value | Description |
| - | - | - |
| `mr.sensi.distribution.cube-priority` | `null` | Specify the priority of the Sensi cube in cases of data overlap within a horizontal distribution. |
| `mr.sensi.distribution.summary-cube-priority` | `null` | Specify the priority of the Sensi Summary cube in cases of data overlap within a horizontal distribution. |

These properties are defined in the `SensiDistributionProperties` class, which is enabled in the `SensiPropertiesConfig` class. If you have customized the import structure in your project, please ensure this properties class is enabled in your application to use these properties.

##### [mr-var-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-var-config.md)

| Property | Default value | Description |
| - | - | - |
| `mr.var.distribution.cube-priority` | `null` | Specify the priority of the VaR cube in cases of data overlap within a horizontal distribution. |
| `mr.var.distribution.summary-cube-priority` | `null` | Specify the priority of the VaR Summary cube in cases of data overlap within a horizontal distribution. |

These properties are defined in the `VarDistributionProperties` class which, is enabled in the `VarPropertiesConfig` class. If you have customized the import structure in your project, please ensure this properties class is enabled in your application to use these properties.

### Measures

#### Modified

| Cube | Measure | Details |
| - | - | - |
| PLCube, MRCombinedCube | [DTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |
| PLCube, MRCombinedCube | [LTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |
| PLCube, MRCombinedCube | [MTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |
| PLCube, MRCombinedCube | [YTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | This measure has returned to the PnL Values folder. It was unintentionally removed in Atoti Market Risk 6.0.0. |

## 6.0.0 to 6.0.1

Upgrading from version 6.0.0, see [Atoti Market Risk 6.0.1 Release Notes](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#6-0-1).

Atoti Market Risk uses Atoti Server 6.1.6 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Summary

* **Configurable FX conversion default rate**: FX conversion post-processors can now be configured to use a default FX rate if the actual rate cannot be computed for the FX pair.

### Deprecations

* **MRDataLoadControllerRestServiceConfig**: Deprecated `MRDataLoadControllerRestServiceConfig` from `mr-application` as this configuration class is no longer used after upgrading to DLC 5.0. This will be removed in the next major version of Atoti Market Risk.

### Configuration properties

#### Properties added

##### [mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md)

| Property | Default value | Description |
| - | - | - |
| `mr.fx.default-fx-rate` | None, the property is nullable. | Configures the default rate used by FX conversion post-processors when the actual rate can't be computed from the FX pair. |

#### Properties modified

##### [mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md)

| Property name | Comment | New value | Old value |
| - | - | - | - |
| `mr.partitioning.as-of-date.partition-type` | The property can now be set to `none` to disable partitioning on the field AsOfDate. The default value remains as `value`. | `none` | N/A |

## 5.4.0 to 6.0.0

Upgrading from version 5.4.0, see [Atoti Market Risk 6.0 Release Notes](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/release-notes.md#6-0-0).

> [!NOTE]
>
> To see what has changed since 6.0.0-Beta, check out [Updates since 6.0 pre-releases](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/updates-since-6.0-prereleases.md).

Atoti Market Risk uses Atoti Server 6.1.5 and Atoti UI 5.2.x.
For new features and fixes included in these releases, please see the [Atoti UI documentation](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-ui.md)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/releases-and-upgrades/changelog.md), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Summary

* **Atoti Server upgrade**: Atoti Market Risk has been upgraded to Atoti Server 6.1.5. This version requires Java 21.
* **Upgraded to JDK 21**: Upgraded from JDK 17 to JDK 21 to utilize the latest features.
* **Deprecated vector sensitivities data model code removed**: Code specific to the vectorized sensitivities data model, which was deprecated in Atoti Market Risk 5.4, has been removed.
* **Move to Atoti Market Data**: The Market Data API, introduced in Atoti Market Risk 5.3, is now an external dependency called Atoti Market Data, using version 1.3.1. For details, see the dedicated [Atoti Market Data documentation](https://docs.activeviam.com/solutions/libraries/market-data/1.3/).
* **Removal of solutions dependency management**: Solution dependencies are now explicitly versioned, without a dependency management import of the Solutions Tools BOM.
* **Upgraded dependencies**: All the Solution's dependencies have been upgraded to their latest releases. See [Dependency versions](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-release/dependencies.md) for the exact version numbers and links to their respective documentation pages.
* **Deprecated market data and FX services removed**: Several deprecated services made obsolete by the move to Atoti Market Data have been removed.
* **Measure chain changes related to Atoti Market Data**: FX conversions and market data retrieval are now done through Atoti Market Data APIs, leading to several measure chain changes.
* **Market data set changes**:  Market data sets have significantly changed in this release. Most notably MarketDataSet is now a field on all base stores ensuring each fact is specifically associated to a set.
* **Liquidity Horizon**: The Liquidity Horizon parameter is now taken into account when computing VaR/Es metrics. To achieve this, the parameter has been moved to the Scenario table.
* **Removed fields from PnL Actual tables**: Fields related to risk factors have been removed from the stores PnL and PnLBaseStore and the cubes PLCube and PL Summary cube.
* **Market data file format configuration clean-up**: Market data file formats now match Atoti Market Data tables, no longer requiring explicit file naming patterns to be declared. Backwards compatibility has been maintained by matching the configured file naming pattern to the deprecated file formats. For details, see [Market data API data loading](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-libraries/dev-market-data/atoti-market-data/data-loading.md).
* **Updated dashboards**:  A number of dashboards have been updated due to market data measure and context value changes. In addition, dashboards have been migrated to use Atoti UI's Investigation feature instead of the story-telling feature, which has been decommissioned. For details, see [Updated dashboards](#updated-dashboards). For more information on the Investigation feature, see [Investigations](https://docs.activeviam.com/data-visualization/atoti-ui/latest/introduction-to-atoti-uidocs/user-guides/advanced/investigations/).
* **Configurable parent-child depth**: You can now configure the maximum depth of parent-child hierarchies.
* **Removal of RoundingMethods and Quantiles stores**: These stores are no longer needed.
* **Added optional LegId attribute**: The attribute LegId has been added to the PLCube to enable sending in trades that will have multiple legs under a single TradeId. Only available when the property `mr.pnl.enable.leg-id` is set to true. LegId should be added to the end of PLActuals and PLPCActuals.csv, and to .json summary export files. Please update database scripts accordingly to use with DirectQuery.
* **Data Connectors 5.0**: This version of Atoti Market Risk uses Atoti Data Connectors 5.0.0, which has a completely reworked API. For details, see [Data Connectors upgrade](#data-connectors-upgrade).
* **New DirectQuery cache**: This release includes a new DirectQuery caching mechanism that pulls slices of market data into memory when required to improve the performance of market data retrievals. This is a preview feature, disabled by default. See [DirectQuery cache](#directquery-cache) for details.
* **Measure folders**: Measures related to a fixed confidence level are now placed in the folders related to fixed confidence levels.
* **Data node market data**: During the initial data load (within the `InitialDataLoadConfig` class), market data is now loaded for all available dates, without taking the DLC scope into account.
* **Base stores and aggregate providers are now partitioned by AsOfDate**: Added the new String property `mr.partitioning.as-of-date.partition-type` to configure the type of partitioning used for the field AsOfDate and the Integer property `mr.partitioning.as-of-date.number-of-partitions` to configure the number of partitions for the field AsOfDate when modulo partitioning is used. AsOfDate uses value partitioning by default.
* **DoctorPivot**: The functionality previously provided by DoctorPivot is now available through Atoti Admin UI in the Measure dependencies tab. The DoctorPivot app no longer exists.
* **Replaced APM starter dependency**: Replaced the dependency `apm` with `atoti-server-apm-starter` in market-risk/pom.xml and added the dependency `atoti-server-apm-starter` to mr-application/pom.xml.

### Breaking Changes

* **Atoti Market Data dependencies**: The way Atoti Market Risk specifies the Atoti Market Data dependency has changed. Please see the full details [below](#migration-to-atoti-market-data).
* **Measure chain changes related to Atoti Market Data**: FX conversions and market data retrieval are now done through Atoti Market Data APIs, leading to several measure chain changes.
* **Rebuild schedule change**: Previously the Atoti schemas would be rebuilt every 30 minutes. This has now changed to once a day, and we have added properties to configure this for your requirements.
* **Removed risk factor FX pair fallback logic**: Removed logic that would default to using the risk factor as a base currency and the display currency as a counter currency when the risk factor did not contain a currency pair in the `XXX/YYY` format.
* **Removed Cash sensitivities**: Cash sensitivities were dependent on risk factor FX pair fallback logic and have therefore been removed.
* **Adjustment Config classes moved**: SupportedAdjustment and AdjustmentExecution config classes have moved from `mr-pnl/sensi/var-config` modules to mr-application to make it easier to disable specific adjustments.
* **Cube-level adjustments**: The implementation of cube-level adjustments has been changed: now only add-ons are supported for cube-level adjustments, and the add-ons are aggregated. Measures with the suffix `_Adjusted` have been removed. The configuration of the initial measures for which cube-level adjustments are now modified to take into account the add-on values, and new measures with the suffix ` Add-on` have been created to display those add-on values. For details, see [Cube-level adjustments](#cube-level-adjustments).
* **Data Connectors 5.0**: This version of Atoti Market Risk uses Atoti Data Connectors 5.0.0, which has a completely reworked API. For details, see [Data Connectors upgrade](#data-connectors-upgrade).
* **Removal of obsolete DispatcherServlet configuration classes**: Removed a configuration class and two utility classes setting up a `DispatcherServletRegistrationBean` as a workaround to Spring Boot incompatibilities in previous versions of Atoti Server. For details, see [DispatcherServlet configuration removal](#dispatcherservlet-configuration-removal).
* **Market data set changes**: MarketDataSet is now a field on all base stores ensuring each fact is specifically associated to a set.
* **Liquidity Horizon**: The parameter has moved to the Scenario table. See [VaRTimePeriod](https://docs.activeviam.com/solutions/market-risk/6.0/cube/context-values.md) context value for the behavior of the field.
* **Removed fields from PnL Actual tables**: The attributes RiskFactor, RiskFactorType,RiskFactorCcy, CurveType, RiskClass and Qualifier have been removed from the stores PnL and PnLBaseStore and the cubes PLCube and PL Summary cube.
* **Removed datastore constant**: `DatastoreConstants.STORE_DATE_FIELD_FORMAT` has been removed. `ILiteralType.LOCAL_DATE` should be used instead.
* **TRADE\_KEY for PNL table**: The value of the `TRADE_KEY` column of the `PNL` table for summary data is now the concatenation of "`Book`#`VaR Inclusion`#`PLDriver`" to avoid collision on the `PLDriver` field.
* **Removed file format details from tuple publisher**: The `MultipleStoreTuplePublisher` no longer contains methods related to file columns and column calculators.
* **Sign-Off**: This release is compatible with Sign-Off 6.0.
* **Updated MarketRiskConfig imports**: `CorporateActionMarketDataRetrievalConfig`, `DividendMarketDataRetrievalConfig`, and `CorrelationMarketDataRetrievalConfig` are no longer imported in `MarketRiskConfig`. They are instead imported in `SensiCompleteConfig` and `SensiSummaryConfig`.
* **Removed properties files**: `jwt.properties` has been removed. The properties from this file have been moved to the main [`application.yaml`](../../properties/property-files/application-yaml) file. `reporting.properties` has been removed. These properties were used for a feature that is no longer present in the application. Both files were previously imported in `MarketRiskConfig` with an `@PropertySource` annotation. This too has been removed.

### Atoti Server upgrade

For details on migrating your code to Atoti Server 6.1.5, see the [Atoti Server migration notes](https://docs.activeviam.com/engine/java-sdk/6.1/release/migration_notes.md).

#### Java 21

Update your Java version to Java 21 or later in order to run Atoti Market Risk.

#### Atoti Spring Boot Starter changes

Atoti Server now ships with a suite of [Spring Boot Starters](https://docs.activeviam.com/engine/java-sdk/6.1/starters/starters_directory.md). These dependencies auto-configure default imports required by Atoti Server, that you may override at runtime.

The following core classes have been removed, as they are now inherited from starters:

* `ActiveViamPropertyFromSpringConfig.class`
* `ActivePivotServicesConfig.class`
* `PartitionManagerConfig.class`
* `ApplicationJwtConfig.class`
* `SameSiteConfig.class`
* `ActiveViamRestServicesConfig.class`
* `ActiveViamWebSocketServicesConfig.class`
* `ContentServerWebSocketServicesConfig.class`
* `ApplicationMonitoringConfig.class`
* `MonitoringRestServicesConfig.class`
* `MonitorConfig.class`
* `JwtRestServiceConfig.class`
* `VersionServicesConfig.class`
* `StreamingMonitorConfig.class`
* `ActivePivotXmlaServletConfig.class`
* All beans with return type `JMXEnabler`

#### Security configuration changes

The upgrade to Atoti Server 6.1.5 includes changes to the security configuration. We expect you to implement your own security, but we provide a sample configuration in the `com.activeviam.mr.application.config.security` package.

> [!WARNING]
>
> This is not a production grade sample.

For details on how to implement your own security, please see the [Atoti Server documentation](https://docs.activeviam.com/engine/java-sdk/6.1/starters/atoti_starter.md#stock-security).

#### DispatcherServlet configuration removal

Older versions of Atoti Server contained incompatibilities with Spring Boot. As a workaround, Atoti Market Risk provided the `DispatcherServletConfig` configuration class, exposing a `DispatcherServletRegistrationBean` registering the `DispatcherServlet` to the Atoti Server
Spring context, and two `ServletContextInitializer` beans, registering SQL driver cleaners and a Java Logging to SLF4J logging bridge.

These workarounds are no longer needed and clash with tests using multiple SQL connections, such as what-if testing with a local content service.

The following classes have been deleted:

| Class | Details |
| - | - |
| `DispatcherServletConfig` | Configuration class containing Spring beans for incompatibility workarounds. |
| `SqlDriverCleaner` | An implementation of a `ServletContextListener` that deregisters SQL drivers when the context is shutting down. |
| `SqlUtil` | Helper class with a single method registering SQL cleaners to a `ServletContext`. |

### Data Connectors upgrade

Atoti Data Connectors 5.0 has a new API that avoids technical beans and instead, makes extensive use of properties.

#### Video overview

Check out our video on migrating to Data Connectors 5.0 in Atoti Market Risk 6.0:

[Migrating to Data Connectors 5.0](https://fast.wistia.net/embed/iframe/pj7m9w73h6)

#### Details of changes

Certain Spring Configuration and classes are no longer useful and have been removed:

> [accordion] Click to see the full list of removed classes.
>
> | Module | Class name |
> | - | - |
> | mr-application | `DataLoadControllerConfig` |
> | mr-application | `DataLoadControllerFileConfig` |
> | mr-common-config | `CSVProperties` |
> | mr-common-config | `ACSVSourceConfig` |
> | mr-common-config | `AdjustmentAzureCsvSourceConfig` |
> | mr-common-config | `AdjustmentCsvSourceConfig` |
> | mr-common-config | `AdjustmentCsvSourceParametersProviderConfig` |
> | mr-common-config | `CommonCsvSourceParametersProviderConfig` |
> | mr-common-config | `CubeMarketDataCsvSourceParametersProviderConfig` |
> | mr-common-config | `CurveMarketDataCsvSourceParametersProviderConfig` |
> | mr-common-config | `FxRateMarketDataCsvSourceParametersProviderConfig` |
> | mr-common-config | `SpotMarketDataCsvSourceParametersProviderConfig` |
> | mr-common-config | `SurfaceMarketDataCsvSourceParametersProviderConfig` |
> | mr-common-config | `AdjustmentLocalCsvSourceConfig` |
> | mr-common-config | `CommonAzureCsvSourceConfig` |
> | mr-common-config | `CommonCsvSourceConfig` |
> | mr-common-config | `CommonLocalCsvSourceConfig` |
> | mr-common-config | `AzureSourceConfig` |
> | mr-common-config | `ChannelParameters` |
> | mr-common-config | `ChannelParametersHolder` |
> | mr-common-config | `ChannelParametersHolderOperator` |
> | mr-common-config | `Glob` |
> | mr-common-config | `LocalSourceConfig` |
> | mr-common-config | `MessageChannelCreator` |
> | mr-common-config | `SimpleCsvSourceConfig` |
> | mr-common-config | `SimpleJdbcSourceConfig` |
> | mr-common-config | `SimpleSourceConfig` |
> | mr-common-config | `TopicConfig` |
> | mr-common-config | `DataLoadControllerConfigurator` |
> | mr-common-config | `IAzureCsvSourceConfig` |
> | mr-common-config | `ICsvSourceConfig` |
> | mr-common-config | `IJdbcSourceConfig` |
> | mr-common-config | `ILocalCsvSourceConfig` |
> | mr-common-config | `ISourceConfig` |
> | mr-common-config | `ISourceConfiguration` |
> | mr-common-config | `ITupleFieldsAware` |
> | mr-common-config | `StoreAndScopeToConditionConverter` |
> | mr-common-config | `TopicAliasDefines` |
> | mr-common-config | `TopicToScopeToLoadConverter` |
> | mr-common-config | `TopicToScopeToRemoveWhereConditionConverter` |
> | mr-common-config | `ACsvSourceParametersProvider` |
> | mr-common-config | `ATopicParameters` |
> | mr-common-config | `CsvColumnsProvider` |
> | mr-common-config | `CsvColumnsProviderFunction` |
> | mr-common-config | `CsvPublisherProvider` |
> | mr-common-config | `CsvPublisherProviderFunction` |
> | mr-common-config | `CsvTopicColumns` |
> | mr-common-config | `CsvTopicPublisher` |
> | mr-common-config | `@ConditionalOnAzureData` |
> | mr-common-config | `@ConditionalOnAzureSource` |
> | mr-common-config | `@ConfigurationDirectQueryWithAzureSource` |
> | mr-common-config | `@ConditionalOnLocalData` |
> | mr-common-config | `@ConditionalOnLocalSource` |
> | mr-common-config | `@ConditionalOnDirectQueryWithLocalSource` |
> | mr-pnl-config | `PnLAzureCsvSourceConfig` |
> | mr-pnl-config | `PnLCsvSourceConfig` |
> | mr-pnl-config | `PnLLocalCsvSourceConfig` |
> | mr-pnl-config | `PnLSummaryAzureCsvSourceConfig` |
> | mr-pnl-config | `PnLSummaryCsvSourceConfig` |
> | mr-pnl-config | `PnLSummaryLocalCsvSourceConfig` |
> | mr-pnl-config | `SignoffSummaryPnlPublisher` |
> | mr-pnl-config | `PnLCsvSourceParametersProviderConfig` |
> | mr-pnl-config | `PnLSummaryCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `ASensiCsvSourceConfig` |
> | mr-sensi-config | `SensiAzureCsvSourceConfig` |
> | mr-sensi-config | `SensiLocalCsvSourceConfig` |
> | mr-sensi-config | `ASensiPnLCsvSourceConfig` |
> | mr-sensi-config | `SensiPnLAzureCsvSourceConfig` |
> | mr-sensi-config | `SensiPnLLocalCsvSourceConfig` |
> | mr-sensi-config | `ASensiImportCsvSourceConfig` |
> | mr-sensi-config | `SensiImportAzureCsvSourceConfig` |
> | mr-sensi-config | `SensiImportLocalCsvSourceConfig` |
> | mr-sensi-config | `ScalarSensiCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `SignoffSummarySensiPublisher` |
> | mr-sensi-config | `BCCubeMarketDataCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `BCCurveMarketDataCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `BCFxRateMarketDataCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `BCSpotMarketDataCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `BCSurfaceMarketDataCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `DirectQuerySensiCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `SensiCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `SensiSummaryCsvSourceParametersProviderConfig` |
> | mr-sensi-config | `SourceParametersProviderConfig` |
> | mr-sensi-config | `SensiSummaryOnMainCsvSourceParametersProviderConfig` |
> | mr-var-config | `VaRAzureCsvSourceConfig` |
> | mr-var-config | `VaRCsvSourceConfig` |
> | mr-var-config | `VaRLocalCsvSourceConfig` |
> | mr-var-config | `VaRSummaryAzureCsvSourceConfig` |
> | mr-var-config | `VaRSummaryLocalCsvSourceConfig` |
> | mr-var-config | `VarSummarySourceConfiguration` |
> | mr-var-config | `SignoffSummaryVarPublisher` |
> | mr-var-config | `VaRCsvSourceParametersProviderConfig` |
> | mr-var-config | `VaRSummaryCsvSourceParametersProviderConfig` |

Certain Spring Configuration and classes have been renamed to follow a common naming pattern:

> [accordion] Click to see the full list of renamed classes.
>
> | Module | Old name | New Name |
> | - | - | - |
> | mr-common-config | `AdjustmentSourceConfiguration` | `AdjustmentCsvSourceConfig` |
> | mr-common-config | `CommonSourceConfiguration` | `CommonCsvSourceConfig` |
> | mr-common-config | `MarketDataSourceConfig` | `MarketDataCsvSourceConfig` |
> | mr-pnl-config | `PnLSourceConfiguration` | `PnLCsvSourceConfig` |
> | mr-sensi-config | `SensiSourceConfiguration` | `SensiCsvSourceConfig` |
> | mr-sensi-config | `SensiSummarySourceConfiguration` | `SensiSummaryCsvSourceConfig` |
> | mr-sensi-config | `AllBackwardsCompatibleMarketDataSources` | `AllBackwardsCompatibleMarketDataCsvLoadConfig` |
> | mr-sensi-config | `SensiCsvSourceParametersProviderConfig` | `SourceParametersProviderConfig` |
> | mr-var-config | `VarSourceConfiguration` | `VarCsvSourceConfig` |

The topics are defined for csv file upload and unload queries in the following spring configuration regrouped in the `*.topics` packages:

> [accordion] Click to see the full list of new classes.
>
> | Module | Name | Kind | Package |
> | - | - | - | - |
> | mr-common-config | `AdjustmentCsvLoadConfig` | CSV file upload | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `AdjustmentUnloadConfig` | Unload query | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `CommonStoreCsvLoadConfig` | CSV file upload | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `CommonStoreUnloadConfig` | Unload query | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `CubeMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `CubeMarketDataUnloadConfig` | Unload query | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `CurveMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `CurveMarketDataUnloadConfig` | Unload query | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `FxRateMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `FxRateMarketDataUnloadConfig` | Unload query | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `SpotMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `SpotMarketDataUnloadConfig` | Unload query | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `SurfaceMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.common.sources.topics` |
> | mr-common-config | `SurfaceMarketDataUnloadConfig` | Unload query | `com.activeviam.mr.common.sources.topics` |
> | mr-sensi-config | `BCCubeMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics.marketdata.backcompat` |
> | mr-sensi-config | `BCCurveMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics.marketdata.backcompat` |
> | mr-sensi-config | `BCFxRateMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics.marketdata.backcompat` |
> | mr-sensi-config | `BCSpotMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics.marketdata.backcompat` |
> | mr-sensi-config | `BCSurfaceMarketDataCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics.marketdata.backcompat` |
> | mr-sensi-config | `DirectQuerySensiCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics` |
> | mr-sensi-config | `SensiCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics` |
> | mr-sensi-config | `SensiCsvUnloadConfig` | Unload query | `com.activeviam.mr.sensi.sources.topics` |
> | mr-sensi-config | `SensiSummaryCsvLoadConfig` | CSV file upload | `com.activeviam.mr.sensi.sources.topics` |
> | mr-sensi-config | `SensiSummaryUnloadConfig` | Unload query | `com.activeviam.mr.sensi.sources.topics` |
> | mr-var-config | `VaRCsvLoadConfig` | CSV file upload | `com.activeviam.mr.var.sources.topics` |
> | mr-var-config | `VaRUnloadConfig` | Unload query | `com.activeviam.mr.var.sources.topics` |
> | mr-var-config | `VaRSummaryCsvLoadConfig` | CSV file upload | `com.activeviam.mr.var.sources.topics` |
> | mr-var-config | `VaRSummaryUnloadConfig` | Unload query | `com.activeviam.mr.var.sources.topics` |

In addition:

* The Spring properties `mr.data-load.csv` have been removed, and the default Data Connector properties are now used instead.
* The source definition is described in the [`application.yaml`](../../properties/property-files/application-yaml) configuration file. For convenience, the content specific to Data Connectors is set in the `application-dlc-local-csv.yaml` and `application-dlc-azure-csv.yaml` file.
* The topics used by Atoti Market Risk are defined via Java beans of type `ILoadingTopicDescription` or `IUnloadTopicDescription`. The topics defined as `ILoadingTopicDescription` are still using the `file-patterns` [Configuration Properties](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md), which you can override in the [`application.yaml`](../../properties/property-files/application-yaml) configuration file.

### Migration to Atoti Market Data

The Market Data API, introduced in Atoti Market Risk 5.3, is now an external dependency called Atoti Market Data, using version 1.3.1.

The market data artifacts (`market-data-lib`, `market-data-config`, and `market-data-spring-boot-starter`) are versioned independently, and the source code is no longer provided alongside the Atoti Market Risk source code.

For more information, see the [Atoti Market Data Documentation](https://docs.activeviam.com/solutions/libraries/market-data/1.3/).

As part of this migration, several changes have been made:

| Type | Change | Description |
| - | - | - |
| Sample data change | Additional rows in the cube market data files. | Added values for `45c` and `45p` moneyness in the cube market data files to account for the removal of cube interpolation in Atoti Market Data. |
| Simplified configuration | Removed configuration in the `MaturityConverterConfig` class. | All `MapperFactory` beans have now been removed, with Atoti Market Data having a simpler API for defining tenor and moneyness conversion. |
| Simplified post-processors | Usage of Atoti Market Data API for FX | The `FxSpotMarketDataPostProcessor` is now an extension of `FxRateMarketDataPostProcessor` using an `IRiskFactorFXPairTranslator` to build the coordinates for retrieval, instead of a completely standalone implementation. |
| Simplified post-processors | New measure builder. | Added `FxSpotMarketDataMeasureBuilder` for an FX rate measure that parses the Risk Factor field for a currency pair. |
| Simplified post-processors | Usage of Atoti Market Data API for FX | The `CubeLevelAdjustmentPostProcessor` implements `IMarketDataRetrievalContainerServiceAware<IDefaultMarketDataRetriever>` instead of `IFXRatesAware`. |
| Additional post-processors | New post-processors and measure builders. | Added `FxConverterMarketDataPostProcessor` and `FxVectorConverterMarketDataPostProcessor`, which multiply the `Number` or `IVector` underliers (respectively) by the internally retrieved FX rate. These post-processors can be initialized using the new `FxConverterMarketDataMeasureBuilder` and `FxVectorConverterMarketDataMeasureBuilder` classes. |
| New currency retriever | Added a querier for the FxRateMarketData store. | Added an `AvailableCurrenciesQuerier`, which runs a query on the `FxRateMarketDataStore` (if it exists) to retrieve the available currencies. This is now used in the `FxHierarchyFromMarketDataStore` and `HierarchyWithFxRiskFactors` classes to determine available currencies, instead of an `IFxRates` service. |

### Removal of deprecated market data and FX services

| Removed | Description | Replacement |
| - | - | - |
| `InterpolationConfiguration` logic | Removed logic for determining whether market data should use interpolation and the pre- and post- interpolation functions to use. | Atoti Market Data APIs and the `CopperMarketDataMeasure` configuration mechanism. |
| `InterpolationFunctionTypeConverter` | Removed a configuration properties converter. | None, interpolation is no longer configured through the old API, so no conversion is required for `InterpolationFunction` objects. |
| `*NoInterpolation*` and `*WithPreAndPostInter*` rules | Removed rules from the sensitivity rule configuration service. | None, interpolation configuration is done through Atoti Market Data APIs. |
| `IFxRates` service and configuration | Removed the configuration for the Atoti Market Risk `IFxRates` service. | FX conversion now uses Atoti Market Data APIs. |
| `AFxRate`, `FXRates`, `FXRateWrapper` and `TestFxRates` | Removed implementations used by the `IFxRates` services. | FX conversion now uses Atoti Market Data APIs. |
| `MarketDataRetrievalService`, `AMarketDataPostProcessor`, `ScalarMarketDataPostProcessor` | Removed market data services and post-processors with Atoti Market Data replacements. | Market data retrieval should use Atoti Market Data APIs as much as possible. |

### Configurable parent child depth

You can now configure the maximum depth of the parent-child hierarchies (books, legal entities, counterparties) with [new properties](#properties-added).

To achieve this, the stores BookHierarchy, CounterpartyHierarchy, LegalEntityHierarchy now also have a variable number of fields to store the corresponding level entries. In addition, the summary flat stores (PnLBaseStore, SensiBaseStore, BaseStore) have a variable number of fields to be in line with the variable depth.

### Removal of risk factor FX pair fallback logic

Previous versions of Atoti Market Risk would parse the risk factor for a currency pair when computing FX-related PnL Explain and when retrieving the FX rate to use for PnL vectors in the VaR cube.

If the risk factor could not be parsed as an `XXX/YYY`-formatted currency pair, the logic would attempt to use the risk factor as a base currency and the display currency as a counter currency for the FX rate.

This fallback logic has now been removed, with VaR Cube PnL conversion using the default FX rate retrieval (which uses the fact currency and the display currency). PnL Explain logic will fail to retrieve an FX rate if the risk factor is not in the correct format.

### Measure chain changes

#### Cube-level adjustments

Cube-level adjustments are no longer defined in the general measure configuration files of each module.
The following `MeasurePublisher` objects have been removed:

| Configuration | Object |
| - | - |
| `VarESCubeMeasuresConfig` | `varEsCubeLevelAdjustmentsMeasures` |
| `SensitivitySignOffMeasuresConfig` | `sensiCubeLevelAdjustmentsMeasures` |
| `PnlCubeMeasuresConfig` | `pnlCubeLevelAdjustmentsMeasures` |

The class `SensitivitySignOffMeasuresConfig` has been removed.

Cube-level adjustments are now defined as a modified configuration of the adjusted measures in the following files, imported in the `MarketRiskConfig` class:

* `VarESCubeLevelAdjustmentsMeasuresConfig`
* `SensiCubeLevelAdjustmentsMeasuresConfig`
* `PnLCubeLevelAdjustmentsMeasuresConfig`

The service class `CubeLevelAdjustmentsMeasureBuilder`, needed for the configuration classes mentioned above, is now also imported in the
`MarketRiskConfig` class.

The class `CubeLevelAdjustedMeasuresBuilder` is not used anymore in the project configuration and is marked as deprecated.

Measures with the suffix `_Adjusted` have been removed. The configuration of the initial measures for which cube-level adjustments are now modified to
take into account the add-on values, and new measures with the suffix ` Add-on` have been created to display those add-on values.

#### PnL

A new `MeasureCreator` method has been added for FX conversion: `IPnLMeasures#convert(MarketDataDateShift shift, NameRetriever<PnLMeasureNames> nameRetriever)`. For this method, a market data set level identifier has been added to the `PnLMeasureParameters` configuration object.

#### Sensitivities

##### API changes

The `CopperMarketDateMeasure` typo has been fixed, with the class now named `CopperMarketDataMeasure`.

New FX-related `MeasureCreator` methods have been added to the factory interfaces:

| Factory | Method | Description |
| - | - | - |
| `IBaseMeasures` | `rate(MarketDataDateShift dateShift, NameRetriever<SensiMeasureNames> nameRetriever)` | Creates an FX rate measure on the given date shift, with the given name. |
| `IBaseMeasures` | `convert(MarketDataDateShift dateShift, NameRetriever<SensiMeasureNames> nameRetriever)` | Converts an underlying scalar measure, on the given date shift, with the given name. |
| `IBaseMeasures` | `convertVector(MarketDataDateShift dateShift, NameRetriever<SensiMeasureNames> nameRetriever)` | Converts an underlying vector measure, on the given date shift, with the given name. |

The replaced methods have been removed:

| Factory | Method | Description |
| - | - | - |
| `ILadderExpansionMeasures` | `ladderExpand()` | FX conversion for the scalar ladder measures. |
| `ILadderExpansionMeasures` | `ladderExpandTechnical()` | FX conversion for the vector ladder measures. |
| `ITaylorVaRMeasures` | `pnlVectorForTaylorVar()` | FX conversion for the vector Taylor VaR measures. |
| `ISensitivityMeasures` | `rate()` | Sensitivity cube FX rate. |
| `ISensitivityMeasures` | `sensitivity()` | FX conversion for scalar sensitivities. |

Additionally, the `ATaylorFactory` factories now implement `IBaseMeasures`, gaining access to the added FX `MeasureCreator` methods.

##### Removal of measures required by vectorized sensitivities

In order to support vectorized sensitivities, the following measures types were required in the sensitivity chain:

| Measure type | Details |
| - | - |
| Vector expansion (e.g. Delta.Native.Vector.Expand) | Expands a vector along one or more pillar axes (tenors, moneyness, maturities). |
| Selection on vector expansion and rebucketing | Ensures the retrieval of either expanded or rebucketed sensitivities depending on fact contribution. |

These measures have now been removed for every sensitivity type, with the chain being simplified to:

| Step | Details |
| - | - |
| Sensitivity value | Retrieved as a native measure from the table, containing values for all sensitivities. |
| Filtering on sensitivity type | Filtering on the specific type required for the chain. |
| Rebucketing | Dynamic rebucketing for sensitivities with at least one pillar axis (CrossGamma, Dividend and Theta are excluded). |
| Native sensitivity | Ensures the currency level needs to be included in the query, as the values are not denominated in the same currency. |
| Currency conversion | Conversion of the values into a common display currency. |

This simplification has resulted in the following changes:

| Measure type | Removed bean method | Removed qualifier | Removed factory method |
| - | - | - | - |
| Vector expansion | \*SkipVectorNativeExpand | SENSI + NATIVE\_VECTOR\_EXPAND | None, the measures were all skipping the vector expansion step in a scalar mode. |
| Selection on vector expansion and rebucketing | \*SensiNativeIntermediate | SENSI + NATIVE\_INTERMEDIATE | `MeasureCreator nativeIntermediate()`, which applied the `UnderlyingMeasureSelectorPostProcessor` to two underlying measures (vector expansion and rebucketing). |

#### VaR

##### FX conversion

New FX-related `MeasureCreator` methods have been added to the factory interface:

| Factory | Method | Description |
| - | - | - |
| `IVaRESMeasures` | `convertWithNotionalCurrency(MarketDataDateShift dateShift, NameRetriever<VarMetricParametersAndNames> nameRetriever)` | Converts an underlying scalar measure, on the given date shift, with the given name. Uses the notional currency as the base currency. |
| `IVaRESMeasures` | `convertVarVector(MarketDataDateShift dateShift, NameRetriever<VarMetricParametersAndNames> nameRetriever)` | Converts an underlying vector measure, on the given date shift, with the given name. |

The replaced methods have been removed:

| Factory | Method | Description |
| - | - | - |
| `IVaRESMeasures` | `mtm()` | FX conversion for the MtM measure. |
| `IVaRESMeasures` | `notional()` | FX conversion for Notional measure. |
| `IVaRESMeasures` | `varFxVector()` | FX conversion for the vector FX-shifted measures. |

### Updated dashboards

* The following dashboards have been updated with the levels `[Sensitivities].[Sensitivity].[SensitivityName]` and `[Risk].[Risk Classes].[RiskClass]` added to their MDX queries so that market data can be displayed.
  * `Atoti MR & PL/Story-Telling Target Views/Delta and Gamma P&L Explain`
  * `Atoti MR & PL/Story-Telling Target Views/Vega P&L Explain`
  * `MR/03 - PnL Explain/02 - Example for one trade`
  * `MR/03 - PnL Explain/03 - Vega Market data`
* The following dashboards have been updated to remove any usage of Cash-related measures:
  * `Atoti MR & PL/How It Works/Computing Greek-Based PL`
  * `Atoti MR & PL/How It Works/How Taylor VaR is computed`
  * `Atoti MR & PL/How It Works/Taylor VaR using previous MD`
  * `Atoti MR & PL/Story-Telling Target Views/Backtesting Risk Factor View`
  * `Atoti MR & PL/Story-Telling Target Views/Investigate Tail for Taylor`
  * `Atoti MR & PL/Story-Telling Target Views/Taylor VaR Risk Factor View`
  * `MR/03 - PnL Explain/01 - PnL explain break-down`

`MR/01 - VaR-ES/03 - VaR Explain Dashboard` has been fixed: a context value that was removed in a previous version was incorrectly used in the dashboard.

* The following dashboards have been migrated to use Atoti UI's Investigation feature instead of the story-telling feature, which has been decommissioned.
  * `Backtesting Investigation`
  * `Backtesting Risk Factor View`
  * `Book and Trade Backtesting`
  * `Computing Greek-Based PL`
  * `How Taylor VaR is computed`
  * `Investigate Tail`
  * `Investigate Tail for Taylor`
  * `P&L anomalies`
  * `PnL & PnL Explain side by side`
  * `Taylor VaR Risk Factor View`
  * `Taylor VaR using previous MD`
  * `Trade by Risk Factor`

### MarketDataSets

Each market data value in Atoti Market Risk is associated with a market data set. This set is used within calculations to ensure the appropriate market data value is retrieved. Prior to this release MarketDataSets was a slicing analysis hierarchy populated from an external store.

With this release MarketDataSet is now a field on each of the base stores. This reflects that each fact is associated to a given market data set and this should be used consistently within calculations. As you can see below, the store definitions and input file formats have been updated to accommodate this change. The MarketDataSets hierarchy is now based on these fields, and the external MarketDataStore has been removed.

By default, MarketDataSets remains a slicing hierarchy. However, we now offer a property (`mr.cubes.levels.slicing-market-data-set`) to toggle this to a non-slicing hierarchy. \[!NOTE] Setting MarketDataSets to non-slicing can have a significant impact on calculations. Please ensure this is appropriate for your use-case.

### Input file formats

#### Modified

| Modification | File | Field | Optional | Description |
| - | - | - | - | - |
| Added field | [PLPCActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-with-product-control-fields.md) | MarketDataSet | No | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | MarketDataSet | No | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [Summary PL.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-without-product-control-summary-fields.md) | MarketDataSet | No | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [Sensitivities.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivities.md) | MarketDataSet | No | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | [CrossSensitivities.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/cross-sensitivities.md) | MarketDataSet | No | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | [Sensitivity Cube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivity-cube.md) | MarketDataSet | No | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | [Summary Sensitivity.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/summary-sensitivity.md) | MarketDataSet | No | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | [TradePnLs.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/trade-pnl.md) | MarketDataSet | No | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [VaR-ES Cube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/var-es-cube.md) | MarketDataSet | No | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [Summary VaR.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/summary-var-fields.md) | MarketDataSet | No | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [PLActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-without-product-control-fields.md) | LegId | Yes | Leg Ids under a single Trade Id to enable sending in trades with multiple legs. Only available when the property [`mr.pnl.enable.leg-id`](../../properties/config-properties/mr-pnl-config) is set to true. |
| Added field | [PLPCActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-with-product-control-fields.md) | LegId | Yes | Leg Ids under a single Trade Id to enable sending in trades with multiple legs. Only available when the property [`mr.pnl.enable.leg-id`](../../properties/config-properties/mr-pnl-config) is set to true. |
| Added field | [TradeAttributes.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/trade-attributes.md) | TradeSource | No | Identifier of the source system the trade was executed in. |
| Added field | [TradeAttributes.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/trade-attributes.md) | TradeStatus | No | Status representing the step in the trade lifecycle. |
| Added field | [TradeAttributes.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/trade-attributes.md) | OriginalNotional | No | Represents the notional at trade date. |
| Added field | [VaR-ES Cube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/var-es-cube.md) | TradeSource | No | Identifier of the source system the trade was executed in. |
| Added field | [VaR-ES Cube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/var-es-cube.md) | TradeStatus | No | Status representing the step in the trade lifecycle. |
| Added field | [Sensitivity Cube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivity-cube.md) | TradeSource | No | Identifier of the source system the trade was executed in. |
| Added field | [Sensitivity Cube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivity-cube.md) | TradeStatus | No | Status representing the step in the trade lifecycle. |
| Added field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | TradeSource | No | Identifier of the source system the trade was executed in. |
| Added field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | TradeStatus | No | Status representing the step in the trade lifecycle. |
| Changed field name | [TradeAttributes.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/trade-attributes.md) | MaturityDate -> TradeMaturityDate | No | Maturity date of the trade. |
| Changed field name | [DynamicMaturities.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/dynamic-maturities.md) | MaturityLabels -> MaturityLabel | No | Name for the bucketed group. |
| Changed field name | [DynamicMoneyness.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/dynamicmoneyness.md) | MoneynessLabels -> MoneynessLabel | No | Name for the bucketed group. |
| Changed field name | [DynamicTenors.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/dynamictenors.md) | TenorLabels -> TenorLabel | No | Name for the bucketed group. |
| Added field | [Scenarios.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/scenarios.md) | Liquidity Horizon | Yes | The liquidity horizon corresponding to the depicted scenario. It has been moved from the main VaR-ES store. |
| Removed field | [SummaryVaR.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/summary-var-fields.md) | Liquidity Horizon | Yes | The liquidity horizon has moved to the Scenarios file. |
| Removed field | [TradePnL.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/trade-pnl.md) | Liquidity Horizon | Yes | The liquidity horizon has moved to the Scenarios file. |
| Removed field | [VaR-ESCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/var-es-cube.md) | Liquidity Horizon | Yes | The liquidity horizon has moved to the Scenarios file. |
| Removed field | [cubeAdjustments.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/cube-adjustments.md) | Digest | | The location digest is no longer used for cube-level adjustments. |
| Changed meaning of field | [cubeAdjustments.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/cube-adjustments.md) | Id | No | The value of this field is now equal to the value of the adjustment source field in the base store, and not to the adjustment execution ID, like before. |
| Removed field | [PLActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-without-product-control-fields.md) | RiskFactor | No | This field is no longer required. |
| Removed field | [PLActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-without-product-control-fields.md) | RiskClass | No | This field is no longer required. |
| Removed field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | RiskFactor | No | This field is no longer required. |
| Removed field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | RiskFactorType | No | This field is no longer required. |
| Removed field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | RiskFactorCcy | No | This field is no longer required. |
| Removed field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | CurveType | No | This field is no longer required. |
| Removed field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | Qualifier | No | This field is no longer required. |
| Removed field | [PLCube.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/plcube.md) | RiskClass | No | This field is no longer required. |
| Removed field | [PLPCActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-with-product-control-fields.md) | RiskFactorId | No | This field is no longer required. |
| Removed field | [PLPCActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-with-product-control-fields.md) | RiskClass | No | This field is no longer required. |
| Removed field | [Summary PL.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-without-product-control-summary-fields.md) | RiskFactor | No | This field is no longer required. |
| Removed field | [Summary PL.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-without-product-control-summary-fields.md) | RiskClass | No | This field is no longer required. |
| Changed field type | [cubeAdjustments.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/cube-adjustments.md) | Value | No | Changed type from String to Double. |
| Changed field type | [cubeAdjustments.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/cube-adjustments.md) | TaskId | No | Not a key field anymore. |

#### Removed

| File | Details |
| - | - |
| CorporateAction.csv | Deprecated file removed. |
| RoundingMethods.csv | File is no longer needed. |
| Quantiles.csv | File is no longer needed. |
| StaticMaturities.csv | The Maturities store has been removed as part of the removal of vectorized sensitivities. This input file format is therefore no longer required. |
| StaticMoneyness.csv | The Moneyness store has been removed as part of the removal of vectorized sensitivities. This input file format is therefore no longer required. |
| StaticTenors.csv | The Tenors store has been removed as part of the removal of vectorized sensitivities. This input file format is therefore no longer required. |
| MarketDataSet.csv | MarketDataSet is now a field on all base stores. |

### Configuration

#### Configuration properties

##### Properties added

[mr-application module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-application.md):

| Property | Default value | Description |
| - | - | - |
| `mr.application.rebuild.initial-delay` | 1440 | The delay (in minutes) between the application start up and the first rebuild of the Atoti schemas. |
| `mr.application.rebuild.interval` | 1440 | After the first rebuild of the Atoti schemas (determined by the initial-delay), this is the interval (in minutes) between ensuing rebuilds. |
| `mr.whatif.file-upload.data.upload-source` | local-csv-source | The *local scv source* used to perform the file upload. For security reason, the uploaded files must be inside the `root-base-dir` folder of the source. |

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property | Default value | Description |
| - | - | - |
| `mr.parent-child.book-depth` | 15 | Maximum level of `BookHierarchy`. |
| `mr.parent-child.legal-entity-depth` | 10 | Maximum level of `LegalEntityHierarchy`. |
| `mr.parent-child.counterparty-depth` | 5 | Maximum level of  `CounterpartyHierarchy`. |
| `mr.cubes.levels.slicing-market-data-set` | true | This toggles whether the market data set hierarchy is slicing or not. Please note this is likely to significantly impact calculations. |
| `mr.cubes.levels.liquidity-horizon-level` | Liquidity Horizon\@Liquidity Horizons\@Risk | The level that contains the liquidity horizon related to the current scenario. |
| `mr.enable.preview.directquery-cache` | false | Set to true to enable a new DirectQuery cache that is available for preview. This caches slices of market data tables in memory to improve the performance of retrieving market data values. The number of slices held at any one time can be configured to optimize memory usage. |
| `directquery.cache.max-slice-count` | | The maximum number of table slices that will be cached in memory for a DirectQuery application. This is a map of table name (from the internal Atoti schema rather than the database) to number of slices. |
| `directquery.cache.max-slice-count-default` | 5 | The maximum number of table slices that will be cached in memory for a DirectQuery application. This default is used for any tables not explicitly mentioned in the `directquery.cache.max-slice-count` property. |
| `mr.partitioning.as-of-date.partition-type` | value | Used to configure the type of partitioning used on the field AsOfDate for base stores and aggregate providers. Set this property to modulo if modulo partitioning should be used. |
| `mr.partitioning.as-of-date.number-of-partitions` | 0 | Used to configure the number of partitions on the field AsOfDate for base stores and aggregate providers when `mr.partitioning.as-of-date.partition-type` equals modulo. This property is ignored when `mr.partitioning.as-of-date.partition-type` equals value. |
| `mr.data-load.initial-load-source` | | If set, the specified source will be used during the initial load. |
| `mr.var.scenario-sets` | Historical, Stressed | Defines the `[Risk][Scenario Sets]` hierarchy default value and the member order. |

[mr-pnl-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-pnl-config.md):

| Property | Default value | Description |
| - | - | - |
| `mr.pnl.enable.leg-id` | false | When true, this adds the hierarchy [Legs](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/booking.md) with the level LegId to the Booking dimension. LegId is an optional field, which can be added to the [PLActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-without-product-control-fields.md) and [PLPCActuals.csv](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/profit-loss-with-product-control-fields.md) input files. |

##### Properties modified

[mr-application module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-application.md):

| Property Name | Comment | New Value | Old Value |
| - | - | - | - |
| `mr.whatif.file-upload.data.whatif` | Default value changed to be on line with the FRTB solution. | what-if | whatif |

[mr-common-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property Name | Comment | New Value | Old Value |
| - | - | - | - |
| `mr.sign-off.common.hierarchy.level2.approved` | This is for compatibility with Sign-off 5.3, ensuring the official sign-off feed status is updated after export. | EXPORT\_SUCCEEDED | APPROVED |
| `mr.common.file-patterns.spot-market-data` | Added a default value to this pattern, matching the value previously defined in `application.yaml`. Setting the pattern to `regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$` enables backwards-compatible data loading. | `glob:**Spot_Market_Data*.csv` | None. |
| `mr.common.file-patterns.curve-market-data` | Added a default value to this pattern, matching the value previously defined in `application.yaml`. Setting the pattern to `regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$` enables backwards-compatible data loading. | `glob:**Curve_Market_Data*.csv` | None. |
| `mr.common.file-patterns.fx-rate-market-data` | Added a default value to this pattern, matching the value previously defined in `application.yaml`. Setting the pattern to `glob:**FXRates*.csv` enables backwards-compatible data loading. | `glob:**FX_Rate_Market_Data*.csv` | None. |
| `mr.common.file-patterns.surface-market-data` | Added a default value to this pattern, matching the value previously defined in `application.yaml`. Setting the pattern to `regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$` enables backwards-compatible data loading. | `glob:**Surface_Market_Data*.csv` | None. |
| `mr.common.file-patterns.cube-market-data` | Added a default value to this pattern, matching the value previously defined in `application.yaml`. Setting the pattern to `regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$` enables backwards-compatible data loading. | `glob:**Cube_Market_Data*.csv` | None. |
| `mr.data-load.format` | Updated the default value to the the current release. | 6.0 | 5.1 |
| `mr.sparse-vectors.enable-for-sensi-stores` | Updated the default value from `[TradeSensitivities:Values, TradeSensitivities:Ladder]` to `TradeSensitivities:Ladder` as the value field of the TradeSensitivities store is now a scalar value rather than a vector. | 6.0 | 5.1 |

Market data properties (e.g. `mr.sensi.market-data.vega.any.custom.interest-rate-risk.market-data-type=cube`) have been updated to reject incorrect (or unsupported) configuration:

| `market-data-type` | `interpolate` | `interpolation-mode` | Details |
| - | - | - | - |
| `Spot` | Hardcoded to false. | None. | Single value spot prices cannot be interpolated. |
| `FX Spot` | Hardcoded to false. | None. | Single value FX rates cannot be interpolated. |
| `Split Ratio` | N/A. | N/A. | No properties are available for the `Split Ratio` measures. |
| `Cube` | Hardcoded to false. | None. | Mathematically possible, but unsupported by our API. |
| `Correlation` | Hardcoded to false. | None. | A correlation value cannot be interpolated. |
| `Dividend` | Hardcoded to false. | None. | Dividend amounts cannot be interpolated. |
| `Theta` | N/A. | N/A. | As a function of the time to maturity, `Theta` cannot be interpolated. |

[mr-pnl-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-pnl-config.md):

| Property Name | Comment | New Value | Old Value |
| - | - | - | - |
| `mr.sign-off.pnl.pnl-cube-adjustments.hierarchies-to-exclude` | Removed MarketDataSet hierarchy from the list of excluded hierarchies so that adjustments can be applied to a single MarketDataSet at a time. | Date\@Dates,MarketDataSets\@MarketData,Sign-off Status\@Sign-off,Types\@PnL,DayToDay\@Dates | Date\@Dates,Sign-off Status\@Sign-off,Types\@PnL,DayToDay\@Dates |
| `mr.sign-off.pnl.pnl-cube-adjustments.hierarchies-to-exclude` | Default value changed. | `Date@Dates,Sign-off Status@Sign-off,DayToDay@Dates` | `Date@Dates,Sign-off Status@Sign-off,Types@PnL,DayToDay@Dates` |

[mr-sensi-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-sensi-config.md):

| Property Name | Comment | New Value | Old Value |
| - | - | - | - |
| `mr.sensi.file-patterns.market-data` | Updated the default pattern to correctly pick up `MarketData.csv` but not `MarketDataSets.csv`. | `regex:^(?=.*MarketData)(?:(?!Sets).)+.csv$` | `regex:^(?i).*MarketData(?<!MarketDataSets).*.csv.*$` |
| `mr.sign-off.sensi.sensi-cube-adjustments.hierarchies-to-exclude` | Removed MarketDataSet hierarchy from the list of excluded hierarchies so that adjustments can be applied to a single MarketDataSet at a time. Added MarketShiftDate and DisplayCurrencies hierarchies to the list of excluded hierarchies as these are slicing hierarchies. | Date\@Dates,Quantiles\@Quantiles,RoundingMethods\@Rounding,Scenario Sets\@Risk,Sign-off Status\@Sign-off,DynamicMaturities\@DynamicBucketing,DynamicMoneyness\@DynamicBucketing,DynamicTenors\@DynamicBucketing,MarketShiftDate\@Dates,displayCurrency\@Currencies,DayToDay\@Dates | Date\@Dates,MarketDataSets\@MarketData,Quantiles\@Quantiles,RoundingMethods\@Rounding,Scenario Sets\@Risk,Sign-off Status\@Sign-off,DynamicMaturities\@DynamicBucketing,DynamicMoneyness\@DynamicBucketing,DynamicTenors\@DynamicBucketing,DayToDay\@Dates |
| `mr.sign-off.sensi.sensi-cube-adjustments.adjustable-measures` | Updated the default value to add the PnL Explain measure. | `[Delta, Gamma, Vega, PnL Explain]` | `[Delta, Gamma, Vega]` |

[mr-var-config module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-var-config.md):

| Property Name | Comment | New Value | Old Value |
| - | - | - | - |
| `mr.sign-off.var.var-cube-adjustments.hierarchies-to-exclude` | Removed MarketDataSet hierarchy from the list of excluded hierarchies so that adjustments can be applied to a single MarketDataSet at a time. Added MarketShiftDate and DisplayCurrencies hierarchies to the list of excluded hierarchies as these are slicing hierarchies. | Date\@Dates,Quantiles\@Quantiles,RoundingMethods\@Rounding,Scenario Sets\@Risk,Sign-off Status\@Sign-off,CalculationIds\@Risk,MarketShiftDate\@Dates,displayCurrency\@Currencies,DayToDay\@Dates | Date\@Dates,MarketDataSets\@MarketData,Quantiles\@Quantiles,RoundingMethods\@Rounding,Scenario Sets\@Risk,Sign-off Status\@Sign-off,CalculationIds\@Risk,DayToDay\@Dates |
| `mr.sign-off.var.var-cube-adjustments.hierarchies-to-exclude` | Default value changed. | `Date@Dates,Quantiles@Quantiles,RoundingMethods@Rounding,Sign-off Status@Sign-off,MarketShiftDate@Dates,displayCurrency@Currencies,DayToDay@Dates` | `Date@Dates,Quantiles@Quantiles,RoundingMethods@Rounding,Scenario Sets@Risk,Sign-off Status@Sign-off,CalculationIds@Risk,MarketShiftDate@Dates,displayCurrency@Currencies,DayToDay@Dates` |

##### Properties removed

[mr-application module](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-application.md):

| Property Name | Comment |
| - | - |
| `mr.whatif.file-upload.data.input` | The input directory is defined by the `root-base-dir` property of the `upload-source` source. |

[mr-common-config](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-common-config.md):

| Property Name | Comment |
| - | - |
| `mr.enable.data-model.scalar-sensitivities` | Scalar sensitivities are now the default and only sensitivities data model. |
| `mr.common.file-patterns.market-data-sets` | The MarketDataSets store has been removed. |
| `mr.common.file-patterns.quantiles` | The Quantiles store has been removed. |
| `mr.common.file-patterns.rounding-methods` | The RoundingMethods store has been removed. |
| `mr.sensi.file-patterns.maturities` | The Maturities store has been removed as part of the removal of vectorized sensitivities. This property is therefore no longer required. |
| `mr.sensi.file-patterns.moneyness` | The Moneyness store has been removed as part of the removal of vectorized sensitivities. This property is therefore no longer required. |
| `mr.sensi.file-patterns.tenors` | The Tenors store has been removed as part of the removal of vectorized sensitivities. This property is therefore no longer required. |
| `mr.sign-off.extraction-templates` | This property defined templates to be used with vectorized sensitivities. As this mode is no longer supported, the property is not required. |
| `mr.sensi.rules.cash` | All properties in this section have been removed as Cash sensitivities are no longer supported by Atoti Market Risk. |
| `mr.sensi.market-data.cash` | All properties in this section have been removed as Cash sensitivities are no longer supported by Atoti Market Risk. |
| `mr.data-load.csv.buffer-size` | Replaced by the Data Connectors API property `dlc.csv.local.sources.[Source Name].source-properties.buffer-size`. |
| `mr.data-load.csv.dataset` | Replaced by the Data Connectors API property `dlc.csv.local.sources.[Source Name].root-base-dir`. |
| `mr.data-load.csv.lines-to-skip` | Replaced by the Data Connectors API properties associated to the topic with the class `CsvParserDescription`. |
| `mr.data-load.csv.parser-threads` | Replaced by the Data Connectors API property `dlc.csv.local.sources.[Source Name].source-properties.parser-threads`. |
| `mr.data-load.csv.separator` | Replaced by the Data Connectors API properties associated to the topic with the class `CsvParserDescription`. |
| `mr.data-load.csv.synchronous-mode` | Replaced by the Data Connectors API property `dlc.csv.local.sources.[Source Name].source-properties.synchronous-mode`. |
| `mr.data-load.source` | The setup relies on the Data Connectors configuration. |

[mr-sensi-config](https://docs.activeviam.com/solutions/market-risk/6.0/properties/config-properties/mr-sensi-config.md):

| Property Name | Comment |
| - | - |
| `mr.sensi.file-patterns.cash` | All properties in this section have been removed as Cash sensitivities are no longer supported by Atoti Market Risk. |
| `mr.sensi.types.cash` | All properties in this section have been removed as Cash sensitivities are no longer supported by Atoti Market Risk. |
| `mr.sensi.file-patterns.corporate-action` | Coporate action is divided in Dividend and Split ratio, the unified file is no longer supported. |

#### Properties files

##### Files added

| File Name | Details |
| - | - |
| [`application-databricks.yaml`](../../properties/profiles/application-databricks-yaml) | This file provides a default set of properties to run in DirectQuery mode using Databricks. This profile allows you to specify environment-specific properties, such as password or database, with environment variables. You can also edit the file with your specific property values. |
| [`application-dlc-azure-csv.yaml`](../../properties/profiles/application-dlc-azure-csv-yaml) | This file provides a default set of properties to configure a local CSV source with DLC. |
| [`application-dlc-local-csv.yaml`](../../properties/profiles/application-dlc-local-csv-yaml) | This file provides a default set of properties to configure an Azure source with DLC. |

##### Files modified

| File Name | Details |
| - | - |
| [`application.yaml`](../../properties/property-files/application-yaml) | DirectQuery properties have been removed from this properties file. These properties are now exclusively in the property file for the specific database: `application-databricks/mssql/snowflake.yaml`. |
| [`application-mssql.yaml`](../../properties/profiles/application-mssql-yaml) | Environment-specific properties, such as username, password, schema, can now be specified with environment variables when using this profile. Additionally, schema validation is now enabled, and clustering is used for all base fields. |
| [`application-snowflake.yaml`](../../properties/profiles/application-snowflake-yaml) | Environment-specific properties, such as username, password, schema, can now be specified with environment variables when using this profile. Additionally, schema validation is now enabled, and clustering is used for all base fields. |

#### Files Removed

* `azureCredentials.properties` has been replaced by the [`application-dlc-azure-csv.yaml`](../../properties/profiles/application-dlc-azure-csv-yaml) profile.
* `jwt.properties` has been removed and the properties from this file are now in the main [`application.yaml`](../../properties/property-files/application-yaml)
* `reporting.properties` has been removed. These properties were used for a feature that is no longer present in the application.
* `apm.properties` has been removed. This file is currently not used in the application.

### Datastores

#### Modified stores

| Modification | Store | Field | Type | Description |
| - | - | - | - | - |
| Added field | [PnL](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/pnl/pnl.md) | MarketDataSet | String | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | PnLBaseStore | MarketDataSet | String | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [Trade Sensitivities](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/trade-sensitivities.md) | MarketDataSet | String | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | SensiBaseStore | MarketDataSet | String | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | [Trade PnLs](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/vares/trade-pnl.md) | MarketDataSet | String | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | BaseStore | MarketDataSet | String | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [PnL](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/pnl/pnl.md) | LegId | String | Leg Ids under a single Trade Id to enable sending in trades that will have multiple legs under a single Trade Id. This is an optional field available when the property mr.pnl.enable.leg-id is set to true. |
| Added field | [Trade Attributes](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/vares/trade-attributes.md) | TradeSource | String | The identifier of the source system the trade was executed in. |
| Added field | [Trade Attributes](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/vares/trade-attributes.md) | TradeStatus | String | The status representing the step in the trade lifecycle. If left blank, this field will default to LIVE. |
| Added field | [Trade Attributes](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/vares/trade-attributes.md) | OriginalNotional | Double | The notional at trade date. |
| Added field | BaseStore | TradeSource | String | The identifier of the source system the trade was executed in. |
| Added field | BaseStore | TradeStatus | String | The status representing the step in the trade lifecycle. If left blank, this field will default to LIVE. |
| Added field | SensiBaseStore | TradeSource | String | The identifier of the source system the trade was executed in. |
| Added field | SensiBaseStore | TradeStatus | String | The status representing the step in the trade lifecycle. If left blank, this field will default to LIVE. |
| Added field | PnLBaseStore | TradeSource | String | The identifier of the source system the trade was executed in. |
| Added field | PnLBaseStore | TradeStatus | String | The status representing the step in the trade lifecycle. If left blank, this field will default to LIVE. |
| Added field | [Scenarios](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/vares/scenarios.md) | LiquidityHorizon | Integer | The Liquidity Horizon in days. This field is optional. |
| Removed field | [Trade PNL](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/vares/trade-pnl.md) | LiquidityHorizon | Integer | The field has been moved to the Scenarios store. |
| Changed field name | [Trade Sensitivities](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/trade-sensitivities.md) | TenorLabels -> TenorLabel | String | The tenor label, corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Changed field name | [Trade Sensitivities](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/trade-sensitivities.md) | TenorDates -> TenorDate | Date | An explicit tenor date, which is used to sort tenors and to re-bucket sensitivities (if supported). |
| Changed field name | [Trade Sensitivities](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/trade-sensitivities.md) | MaturityLabels -> MaturityLabel | String | Name for the bucketed group. |
| Changed field name | [Trade Sensitivities](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/trade-sensitivities.md) | MaturityDates -> MaturityDate | Date | An explicit maturity date, which is used to sort tenors and to re-bucket sensitivities (if supported). |
| Changed field name | [Trade Sensitivities](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/trade-sensitivities.md) | Values -> Value | Double | A sensitivity value. |
| Changed field name | PnLBaseStore | MaturityDate -> TradeMaturityDate | Date | The maturity date of the trade. |
| Changed field name | SensiBaseStore | MaturityDate -> TradeMaturityDate | Date | The maturity date of the trade. |
| Changed field name | BaseStore | MaturityDate -> TradeMaturityDate | Date | The maturity date of the trade. |
| Changed field name | [Trade Attributes](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/vares/trade-attributes.md) | MaturityDate -> TradeMaturityDate | Date | The maturity date of the trade. |
| Changed field name | [DynamicTenors](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/dynamic-ten-mat-mon.md) | TenorLabels -> TenorLabel | String | The label corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Changed field name | [DynamicMaturities](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/dynamic-ten-mat-mon.md) | TenorLabels -> TenorLabel | String | The label corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Changed field name | [DynamicMoneyness](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/sensitivities/dynamic-ten-mat-mon.md) | TenorLabels -> TenorLabel | String | The label corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Renamed store | [CubeLevelAdjustments](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/cube-level-adjustments.md) | SignOffDigestStore -> CubeLevelAdjustments | | |
| Removed field | [CubeLevelAdjustments](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/cube-level-adjustments.md) | Digest | String | The location digest is no longer used for cube-level adjustments. |
| Changed field name and configuration | [CubeLevelAdjustments](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/cube-level-adjustments.md) | MandateId -> TaskId. Not a key field anymore | String | The name of the task for which the adjustment was created. |
| Changed field type | [CubeLevelAdjustments](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/cube-level-adjustments.md) | Value | String -> Double | This field contains the adjusted value which should be a double in all cases. |
| Removed field | [PnL](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/pnl/pnl.md) | RiskFactor | String | This field is no longer required. |
| Removed field | [PnL](https://docs.activeviam.com/solutions/market-risk/6.0/datastore/pnl/pnl.md) | RiskClass | String | This field is no longer required. |
| Removed field | PnLBaseStore | RiskFactor | String | This field is no longer required. |
| Removed field | PnLBaseStore | RiskFactorType | String | This field is no longer required. |
| Removed field | PnLBaseStore | RiskFactorCcy | String | This field is no longer required. |
| Removed field | PnLBaseStore | CurveType | String | This field is no longer required. |
| Removed field | PnLBaseStore | Qualifier | String | This field is no longer required. |
| Removed field | PnLBaseStore | RiskClass | String | This field is no longer required. |

#### Deleted stores

**Stores relating to the removal of the vectorized sensitivity data model**

The following stores have been deleted due to the removal of the vectorized sensitivity data model:

* mr-sensi-config/src/main/java/com/activeviam/mr/sensi/datastore/description/complete/stores/MarketDataStoreConfig.java. If you continue to use the deprecated
  market data API, you can find this store configuration in the `MarketDataStoreConfig` class. You will need to import this class to use the store.
* mr-sensi-config/src/main/java/com/activeviam/mr/sensi/datastore/description/complete/stores/CorporateActionStoreConfig.java
* mr-sensi-config/src/main/java/com/activeviam/mr/sensi/datastore/description/complete/stores/TenorsStoreConfig.java.
* mr-sensi-config/src/main/java/com/activeviam/mr/sensi/datastore/description/complete/stores/VectorMarketDataStoreConfig.java
* mr-sensi-config/src/main/java/com/activeviam/mr/sensi/datastore/description/complete/stores/VectorTradeSensitivitiesStoreConfig.java
* mr-sensi-config/src/main/java/com/activeviam/mr/sensi/datastore/description/summary/VectorSensiAggregatedStoreConfig.java
* mr-sensi-config/src/main/java/com/activeviam/mr/sensi/datastore/description/summary/VectorSensiFlatStoreConfig.java

> [!NOTE]
>
> If you were using the Tenor, Maturity, or Moneyness stores for the `StoreQueryMaturityConverter`, the configuration for these classes has
> been removed. To continue using this, please add a store configuration for each.

**Other stores**

| Store | Details |
| - | - |
| Quantiles | No longer needed. |
| RoundingMethods | No longer needed. |
| MarketDataSets | MarketDataSet is now an additional field on all base stores. |

### Database

#### Modified tables

| Modification | Table | Field | Type | Description |
| - | - | - | - | - |
| Added field | [PNL](https://docs.activeviam.com/solutions/market-risk/6.0/database/pnl.md) | MARKET\_DATA\_SET | String | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [TRADE\_SENSITIVITIES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities.md) | MARKET\_DATA\_SET | String | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | [TRADE\_SENSITIVITIES\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities_vector.md) | MARKET\_DATA\_SET | String | The market data set that was used when the sensitivity was calculated. This will be used to retrieve appropriate market data values for PnL Explain and Taylor VaR computations. |
| Added field | [TRADEPNLS](https://docs.activeviam.com/solutions/market-risk/6.0/database/tradepnls.md) | MARKET\_DATA\_SET | String | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [TRADEPNLS\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/tradepnls_vector.md) | MARKET\_DATA\_SET | String | The market data set that should be used when retrieving rates for FX conversion. |
| Added field | [TRADE\_ATTRIBUTES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_attributes.md) | TRADE\_SOURCE | String | Identifier of the source system the trade was executed in. |
| Added field | [TRADE\_ATTRIBUTES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_attributes.md) | TRADE\_STATUS | String | Status representing the step in the trade lifecycle. |
| Added field | [TRADE\_ATTRIBUTES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_attributes.md) | ORIGINAL\_NOTIONAL | Double | Represents the notional at trade date. |
| Added field | [SCENARIOS](https://docs.activeviam.com/solutions/market-risk/6.0/database/scenarios.md) | LIQUIDITY\_HORIZON | Integer | The Liquidity Horizon in days. This field is optional. |
| Removed field | [TRADEPNLS](https://docs.activeviam.com/solutions/market-risk/6.0/database/tradepnls.md) | LIQUIDITY\_HORIZON | Integer | The field has been moved to the SCENARIOS table. |
| Removed field | [TRADEPNLS\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/tradepnls_vector.md) | LIQUIDITY\_HORIZON | Integer | The field has been moved to the SCENARIOS table. |
| Changed field name | [TRADE\_SENSITIVITIES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities.md) | TENOR\_LABELS -> TENOR\_LABEL | String | The tenor label, corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Changed field name | [TRADE\_SENSITIVITIES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities.md) | TENOR\_DATES -> TENOR\_DATE | Date | An explicit tenor date, which is used to sort tenors and to re-bucket sensitivities (if supported). |
| Changed field name | [TRADE\_SENSITIVITIES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities.md) | MATURITY\_LABELS -> MATURITY\_LABEL | String | Name for the bucketed group. |
| Changed field name | [TRADE\_SENSITIVITIES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities.md) | MATURITY\_DATES -> MATURITY\_DATE | Date | An explicit maturity date, which is used to sort tenors and to re-bucket sensitivities (if supported). |
| Changed field name | [TRADE\_SENSITIVITIES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities.md) | VALUES -> VALUE | Double | A sensitivity value. |
| Changed field name | [TRADE\_SENSITIVITIES\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities_vector.md) | TENOR\_LABELS -> TENOR\_LABEL | String | The tenor label, corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Changed field name | [TRADE\_SENSITIVITIES\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities_vector.md) | TENOR\_DATES -> TenorDate | Date | An explicit tenor date, which is used to sort tenors and to re-bucket sensitivities (if supported). |
| Changed field name | [TRADE\_SENSITIVITIES\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities_vector.md) | MATURITY\_LABELS -> MATURITY\_LABEL | String | Name for the bucketed group. |
| Changed field name | [TRADE\_SENSITIVITIES\_VECTOR](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_sensitivities_vector.md) | MATURITY\_DATES -> MATURITY\_DATE | Date | An explicit maturity date, which is used to sort tenors and to re-bucket sensitivities (if supported). |
| Changed field name | [TRADE\_ATTRIBUTES](https://docs.activeviam.com/solutions/market-risk/6.0/database/trade_attributes.md) | MATURITY\_DATE -> TRADE\_MATURITY\_DATE | String | The maturity date of the trade. |
| Changed field name | [DYNAMIC\_TENORS](https://docs.activeviam.com/solutions/market-risk/6.0/database/dynamic_tenors-dynamic_maturities-dynamic_moneyness.md) | TENOR\_LABELS -> TENOR\_LABEL | String | The label corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Changed field name | [DYNAMIC\_MATURITIES](https://docs.activeviam.com/solutions/market-risk/6.0/database/dynamic_tenors-dynamic_maturities-dynamic_moneyness.md) | TENOR\_LABELS -> TENOR\_LABEL | String | The label corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Changed field name | [DYNAMIC\_MONEYNESS](https://docs.activeviam.com/solutions/market-risk/6.0/database/dynamic_tenors-dynamic_maturities-dynamic_moneyness.md) | TENOR\_LABELS -> TENOR\_LABEL | String | The label corresponding to the vertex of the risk factor, such as 3M, 5Y, and so on. |
| Renamed table | [CUBE\_LEVEL\_ADJUSTMENTS](https://docs.activeviam.com/solutions/market-risk/6.0/database/cube_level_adjustments.md) | SIGN\_OFF\_DIGEST\_STORE -> CUBE\_LEVEL\_ADJUSTMENTS | | |
| Removed field | [CUBE\_LEVEL\_ADJUSTMENTS](https://docs.activeviam.com/solutions/market-risk/6.0/database/cube_level_adjustments.md) | DIGEST | String | The location digest is no longer used for cube-level adjustments. |
| Changed field name and definition | [CUBE\_LEVEL\_ADJUSTMENTS](https://docs.activeviam.com/solutions/market-risk/6.0/database/cube_level_adjustments.md) | MANDATE\_ID -> TASK\_ID. Not a key field anymore | String | The name of the task for which the adjustment was created. |
| Changed field type | [CUBE\_LEVEL\_ADJUSTMENTS](https://docs.activeviam.com/solutions/market-risk/6.0/database/cube_level_adjustments.md) | Value | String -> Double | This field contains the adjusted value which should be a double in all cases. |
| Removed field | [PNL](https://docs.activeviam.com/solutions/market-risk/6.0/database/pnl.md) | RISK\_FACTOR | String | This field is no longer required. Please note this field was a primary key. Data must be modified accordingly to avoid primary key collisions. |
| Removed field | [PNL](https://docs.activeviam.com/solutions/market-risk/6.0/database/pnl.md) | RISK\_CLASS | String | This field is no longer required. |
| Changed value | [PNL](https://docs.activeviam.com/solutions/market-risk/6.0/database/pnl.md) | TRADE\_KEY | String | The value is now the concatenation of "`Book`#`VaR Inclusion`#`PLDriver`" to avoid collision on the `PLDriver` field. |

#### Deleted tables

| Table | Details |
| - | - |
| QUANTILES | Table is no longer needed. |
| ROUNDING\_METHODS | Table is no longer needed. |
| MARKET\_DATA\_SET | MarketDataSet is now a field on all base tables. |

### Cube schema

#### Added

| Cube | Dimension | Hierarchy | Levels | Datastore fields | Details |
| - | - | - | - | - | - |
| PLCube | Booking | Legs | LegId | LegId | This optional attribute was added to enable sending in trades that will have multiple legs under a single TradeId. Only available when the property [`mr.pnl.enable.leg-id`](../../properties/config-properties/mr-pnl-config) is set to true. |
| All | TradeAttributes | TradeSources | TradeSource | TradeSource | Added to identify the source system the trade was executed in. |
| All | TradeAttributes | TradeStatuses | TradeStatus | TradeStatus | Added to analyse and break down the dtd pnl differences to find the components due to new trades, amended trades and cancelled trades. |

#### Modified

| Cube | Dimension | Hierarchy | Levels | Datastore fields | Details |
| - | - | - | - | - | - |
| All | TradeAttributes | MaturityDates -> TradeMaturityDates | MaturityDate -> TradeMaturityDate | MaturityDate | Renamed to distinguish between the MaturityDate hierarchy in the TradeSensitivities cube. |
| All | MarketData | MarketDataSets | MarketDataSet | MarketDataSet | This level was previously based on the [MarketDataSets store](#deleted-stores). It is now based on the MarketDataSet field that has been added to each [base store](#modified-stores). |

#### Removed

| Cube | Dimension | Hierarchy | Levels |
| - | - | - | - |
| VaR-ES Cube | Quantiles | Quantiles | \[ALL, QuantileName] |
| VaR-ES Cube | Rounding | RoundingMethods | \[ALL, MethodName] |
| PLCube | Risk | RiskFactors | \[ALL, RiskFactor] |
| PLCube | Risk | RiskFactorTypes | \[ALL, RiskFactorType] |
| PLCube | Risk | RiskFactorCurrencies | \[ALL, RiskFactorCcy] |
| PLCube | Risk | CurveTypes | \[ALL, CurveType] |
| PLCube | Risk | Qualifiers | \[ALL, Qualifier] |
| PLCube | Risk | RiskClasses | \[ALL, RiskClass] |
| PL Summary Cube | Risk | RiskFactors | \[ALL, RiskFactor] |
| PL Summary Cube | Risk | RiskFactorTypes | \[ALL, RiskFactorType] |
| PL Summary Cube | Risk | RiskFactorCurrencies | \[ALL, RiskFactorCcy] |
| PL Summary Cube | Risk | CurveTypes | \[ALL, CurveType] |
| PL Summary Cube | Risk | Qualifiers | \[ALL, Qualifier] |
| PL Summary Cube | Risk | RiskClasses | \[ALL, RiskClass] |
| VaR-ES Cube | Risk | ScenarioIndex | \[All, ScenarioIndex] |
| Sensitivity Cube | Risk | ScenarioIndex | \[All, ScenarioIndex] |

> [!NOTE]
>
> As part of the removal of the vectorized sensitivities data model we have removed configuration of dimensions for it, but no actual dimension has been removed.

### Measures

#### Added

| Cube | Measure | Details |
| - | - | - |
| PLCube | [DTD PnL Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for DTD PnL for cube-level adjustments (if any). |
| PLCube | [PnL Notional](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/notional.md) | The notional of the trade, in the PLCube. |
| PLCube | [PnL Notional Native](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/notional.md) | The notional of the trade, in the native currency, in the PLCube. |
| PLCube | [PnL Original Notional](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/notional.md) | The notional at trade date, in the PLCube. If the trade is amended or partially terminated, the changed value will be sent to `Notional`. |
| PLCube | [PnL Original Notional Native](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/notional.md) | The notional at trade date, in the native currency, in the PLCube. |
| Sensitivity Cube | [FX Rate Current](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/market-data.md) | An FX rate between the currency in the `Currencies` hierarchy and the display currency, for the current as-of date. |
| Sensitivity Cube | [FX Rate Previous](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/market-data.md) | An FX rate between the currency in the `Currencies` hierarchy and the display currency, for the previous as-of date. |
| Sensitivity Cube | [FX Rate Next](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/market-data.md) | An FX rate between the currency in the `Currencies` hierarchy and the display currency, for the next as-of date. |
| Sensitivity Cube | \_\_ScenarioIndex\_Sensi | Hidden measure replacing the deleted `[Risk].[ScenarioIndex]` hierarchy. This measure is also defined within a bean with the qualifier `SCENARIO_VECTOR_INDEX_SENSI`. |
| Sensitivity Cube | [Delta Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for Delta for cube-level adjustments (if any). |
| Sensitivity Cube | [Gamma Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for Gamma for cube-level adjustments (if any). |
| Sensitivity Cube | [PnL Explain Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for PnL Explain for cube-level adjustments (if any). |
| Sensitivity Cube | [Vega Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for Vega for cube-level adjustments (if any). |
| Sensitivity Cube | [Sensitivity Notional](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/notional.md) | The notional of the trade, in the Sensitivity cube. If the trade is amended or partially terminated, the changed value will be sent to `Notional`. |
| Sensitivity Cube | [Sensitivity Notional Native](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/notional.md) | The notional of the trade, in the native currency, in the Sensitivity cube. |
| Sensitivity Cube | [Sensitivity Original Notional](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/notional.md) | The notional at trade date, in the Sensitivity cube. If the trade is amended or partially terminated, the changed value will be sent to `Notional`. |
| Sensitivity Cube | [Sensitivity Original Notional Native](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/notional.md) | The notional at trade date, in the native currency, in the Sensitivity cube. |
| VaR-ES Cube | [Original Notional](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/notional.md) | The notional at trade date, in the VaR-ES cube. If the trade is amended or partially terminated, the changed value will be sent to `Notional`. |
| VaR-ES Cube | [Original Notional Native](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/notional.md) | The notional at trade date, in the native currency, in the VaR-ES cube. |
| VaR-ES Cube | \_\_ScenarioIndex\_VaR | Hidden measure replacing the deleted `[Risk].[ScenarioIndex]` hierarchy. This measure is also defined within a bean with the qualifier `SCENARIO_VECTOR_INDEX_VAR`. |
| VaR-ES Cube | [ES Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for ES for cube-level adjustments (if any). |
| VaR-ES Cube | [ETG Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for ETG for cube-level adjustments (if any). |
| VaR-ES Cube | [VaE Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for VaE for cube-level adjustments (if any). |
| VaR-ES Cube | [VaR Add-on](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/adjustments.md) | Measure present only if sign-off features are enabled. Manual add-ons for VaR for cube-level adjustments (if any). |

#### Modified

| Cube | Measure | Details |
| - | - | - |
| PLCube | [DTD PnL](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/pnl/pnl-values.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to DTD PnL value (if any). |
| Sensitivity Cube | [Delta](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/sensitivities.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to Delta value (if any). |
| Sensitivity Cube | [Gamma](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/sensitivities.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to Gamma value (if any). |
| Sensitivity Cube | [PnL Explain](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/pnl-explain.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to PnL Explain value (if any). |
| Sensitivity Cube | [Vega](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/sensitivities.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to Vega value (if any). |
| VaR-ES Cube | [ES](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/expected-shortfall.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to ES value (if any). |
| VaR-ES Cube | [ETG](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/expected-tail-gain.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to ETG value (if any). |
| VaR-ES Cube | [VaE](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/value-at-earning.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to VaE value (if any). |
| VaR-ES Cube | [VaR](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/var/value-at-risk.md) | Measure modified only if sign-off features are enabled. Manual add-ons for cube-level adjustments are added to VaR value (if any). |

* All measures in the `Value at Risk` folder have moved to the `Value At Risk` folder, and those in `Value at Earnings` have moved to `Value At Earnings`.

* Confidence level-specific measures can now be found in the correct folders corresponding to the associated confidence level.
  The default implementation of methods in the interface `IFixedConfidenceMeasures` has been changed accordingly.

##### Market data

Sensitivity- and risk-class-agnostic market data measures have been added, replacing the previously visible FX-converted and `Native` measures.

For sensitivities that used a single type of market data (for example, CrossGamma only uses Spot market data), the PnL Explain chains have been updated to use those market data types directly.
When a sensitivity uses multiple types of market data depending on risk class, such as Delta with Spot for equities and Curve for GIRR, the top level market data measures have been
updated to behave as a location-based switcher between the available market data types.

For details about the market data measures made available in Market Risk 6.0.0, the [Market Data](https://docs.activeviam.com/solutions/market-risk/6.0/cube/measures/sensi/market-data.md) section covers the types of market data available
in the Sensitivity Cube as well as which market data types are used for each sensitivity. A complete list of measures is also available.

#### Removed

| Cube | Measure | Details |
| - | - | - |
| PLCube | DTD PnL\_Adjusted | Manual add-ons for cube-level adjustments are now added directly to DTD PnL value (if any). |
| Sensitivity Cube | Correlation FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | CrossGamma FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Delta FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Dividend FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Gamma FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Theta FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Vanna FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Vega FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Volga FX Rate | Replaced with the `FX Rate Current` measure. |
| Sensitivity Cube | Cash measures | All Cash measures have been removed without a replacement. |
| Sensitivity Cube | Delta\_Adjusted | Manual add-ons for cube-level adjustments are now added directly to Delta value (if any). |
| Sensitivity Cube | Gamma\_Adjusted | Manual add-ons for cube-level adjustments are now added directly to Gamma value (if any). |
| Sensitivity Cube | PnL Explain\_Adjusted | Manual add-ons for cube-level adjustments are now added directly to PnL Explain value (if any). |
| Sensitivity Cube | Vega\_Adjusted | Manual add-ons for cube-level adjustments are now added directly to Vega value (if any). |
| VaR-ES Cube | ES\_Adjusted | Manual add-ons for cube-level adjustments are now added directly to ES value (if any). |
| VaR-ES Cube | VaR\_Adjusted | Manual add-ons for cube-level adjustments are now added directly to VaR value (if any). |

##### Vector-specific measures

All vector counterparts of the sensitivities measures have been removed. This affects any annotated `CopperMeasure` bean with
`@ConditionalOnVectorizedSensitivity`.

### Context values

#### Added

| Name | Details |
| - | - |
| [VaRTimePeriod](https://docs.activeviam.com/solutions/market-risk/6.0/cube/context-values.md) | The VaR time period context value works in conjunction with the Liquidity Horizon field. |

### Other changes

#### Adjustments

The [MarketDataSet level](https://docs.activeviam.com/solutions/market-risk/6.0/cube/dimensions/marketdata.md) is now a required input for all adjustments. See the `SupportedAdjustments(Sensi/PnL/VaR)Config` classes
for full configuration. This reflects the fact that MarketDataSet is now a [base store field](#modified-stores).

Currency is now an optional filter for the PnL Roll-over adjustment. This means that adjustments for native PnL measures contain all necessary filters.

The inputs to all supported adjustments, as defined in the `SupportedAdjustments<cube>Config` files, all now include a label. This is used by the UI to make it clearer what value the user is expected to provide. Similarly, the Currency input for all cube-level adjustments now includes a level path. This allows the UI to provide appropriate values for that field.

#### DLC

The `StaticSensiPillars` topic alias has been removed. This was used to load data into the `Tenors`, `Maturities`, and `Moneyness` stores. These stores have been removed as part of the removal of vectorized sensitivities, so this topic is no longer required.

The `SignOffDigestStore` topic has been renamed to `CubeLevelAdjustments` to reflect the new name of the store and this has been moved from the `Attributes` alias to a new `SignOff` alias to reflect the fact that not all projects use Sign-Off.

#### Removed duplicate store field constant

The store field constant `STORE_DATE_FIELD_FORMAT` was duplicated and bore the same value in each case. We have kept the iteration in
`DatastoreConstants` (`mr-common-config`) and removed the following ones:

* com/activeviam/mr/pnl/datastore/description/complete/PnLStoreConfig.java
* com/activeviam/mr/var/datastore/description/complete/VaRStoreConfig.java

#### FXShifts

`FXShiftsServiceConfig` has been split out of the existing `FXRatesServiceConfig` class. To use the market shift service (`IFxShift`), you must now import the
`FXShiftsServiceConfig` class. By default, it is imported in `MarketRiskConfig`.

#### Removal of deprecated code

##### Code

| Class | Status | Details |
| - | - | - |
| mr-common-config/src/main/java/com/activeviam/mr/common/config/spring/annotations/ConditionalOnScalarSensitivity.java | Removed | No longer required |
| mr-common-config/src/main/java/com/activeviam/mr/common/config/spring/annotations/ConditionalOnVectorizedSensitivity.java | Removed | No longer required |
| mr-common-config/src/main/java/com/activeviam/mr/common/config/spring/conditions/beans/BeanScalar.java | Removed | No longer required |
| mr-common-config/src/main/java/com/activeviam/mr/common/config/spring/conditions/beans/BeanVectorised.java | Removed | No longer required |
| mr-common-config/src/main/java/com/activeviam/mr/common/config/spring/conditions/configuration/ConfigurationScalar.java | Removed | No longer required |
| mr-common-config/src/main/java/com/activeviam/mr/common/config/spring/conditions/configuration/ConfigurationVectorised.java | Removed | No longer required |
| mr-sensi-config/src/main/java/com/activeviam/mr/sensi/cube/complete/dimensions/VectorRiskDimensionConfig.java | Removed | No longer required |
| mr-sensi-config/src/main/java/com/activeviam/mr/sensi/sources/impl/SensiTradeStoreTuplePublisher.java | Removed | No longer required |
| mr-sensi-lib/src/main/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/MarketDataPostProcessor.java | Removed | Legacy Market Data API |
| mr-sensi-lib/src/main/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/PnLExplainCrossPostProcessor.java | Removed | Vector counterpart |
| mr-sensi-lib/src/main/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/PnLExplainPostProcessor.java | Removed | Vector counterpart |
| mr-sensi-lib/src/main/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/PnlVectorFromCrossRiskSensiPostProcessor.java | Removed | Vector counterpart |
| mr-sensi-lib/src/main/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/ShiftVectorPostProcessor.java | Removed | No longer required |
| mr-sensi-lib/src/main/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/TenorMaturityAndMoneynessVectorExpand.java | Removed | No longer required |
| mr-sensi-lib/src/main/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/VectorAggregationPostProcessor.java | Removed | No longer required |

##### Adjustments

The following methods have been removed:

* SupportedAdjustmentsSensiConfig.sensiadd-on
* SupportedAdjustmentsSensiConfig.sensiScaling
* SupportedAdjustmentsSensiConfig.sensiOverride
* AdjustmentsExecutionSensiConfig.getSensiScalingExecution
* AdjustmentsExecutionSensiConfig.getSensiOverrideExecution

These methods were used to create and support adjustment types for the vectorized model of the sensitivities cube. The `Add-on`, `Override`, and `Scaling`
adjustments are still available when using the scalar model of the sensitivities cube.

##### DEE Templates

The following DEE templates (found in `mr-application/src/main/resources/dee-templates`) were used for vectorized sensitivities. They have been removed in this
release:

* SensiCubeExport
* SensiAggregatedCubeExport

The `CubeAdjustmentTemplate` DEE template (found in `mr-application/src/main/resources/dee-templates`) has been updated to use the `CubeLevelAdjustments` store.

#### Cube-level adjustments

Cube-level adjustments now rely on the creation of facts added to the base store (and on entries added to stores referenced by the base store if needed)
to define the location at which they are applied, and on entries in an isolated store to define the measures for which they are defined, along with the adjusted values.
Only *add-ons* are now supported for cube-level adjustments. The add-ons are aggregated using dynamic aggregation on the adjustment source field of the base store
of the cube for which the adjustment is created.
The notion of location digest has been removed from the logic used for cube-level adjustments.
Please see additional details in [Testing custom adjustment types](https://docs.activeviam.com/solutions/market-risk/6.0/dev/dev-sign-off/signoff-adjustment-test-custom.md#cube-level-adjustments).

Measures with the suffix `_Adjusted` have been removed. The configuration of the initial measures for which cube-level adjustments are now modified to
take into account the add-on values, and new measures with the suffix ` Add-on` have been creat to display those add-on values.

The store `SignOffDigestStore` has been renamed to `CubeLevelAdjustments` and its field updated - please see description of the changes in the [Datastores](#datastores) and
[Database](#database) sections.

The following method has been removed:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
CubeLevelAdjustedMeasuresBuilder.buildAdjustmentMeasures(ICanStartBuildingMeasures builder,
String pluginKey,
List<String> adjustableMeasures,
LevelIdentifier asOfDateLevel,
LevelIdentifier displayCurrencyLevel,
LevelIdentifier marketDatSetLevel,
List<HierarchyIdentifier> hierarchiesToExlude,
LevelIdentifier signOffStatusLevel,
String otherMember,
String formatter)
```

#### Supported Adjustments definitions

* The Type level and the Instrument Type level have been added to the  `SupportedAdjustmentDTO` `SupportedAdjustmentsPnLConfig.pnlCubeLevelAdjustment()`.
* The Scenario Set, Calculation Id and Instrument Type levels have been added to the  `SupportedAdjustmentDTO` `SupportedAdjustmentsVaRConfig.varEsCubeLevelAdjustment()`.
* The Instrument Type level has been added to the  `SupportedAdjustmentDTO` `SupportedAdjustmentsSensiConfig.sensiCubeLevelAdjustment()`.

##### Tests

###### Removed

| Test | Details |
| - | - |
| mr-application-tests/src/test/java/com/activeviam/mr/application/modes/OnlySensiCubeProfileWithOldDataTest.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/application/modes/StandardAggProfileTest.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/application/modes/StandardProfileMultilevelScopeTest.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/application/modes/StandardProfileTest.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/application/sources/AzureDataLoadingTest.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/application/whatif/rest/SensiBookScalingRestServiceStandardIT.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/application/whatif/rest/SensiVectorScalingRestServiceStandardIT.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/application/whatif/rest/SensiVectorSubstitutionRestServiceStandardIT.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/regression/ReferenceRegressionTestCombinedIT.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/regression/ReferenceRegressionTestIT.java | Vector-specific test |
| mr-application-tests/src/test/java/com/activeviam/mr/signoff/MarketRiskSignOffApplicationTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/DeltaPnLExplainPostProcessorsInterpolation2Test.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/DeltaPnLExplainPostProcessorsInterpolationDisabledTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/DeltaPnLExplainPostProcessorsRiskClassTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/DeltaPnLExplainPostProcessorsTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/TaylorVaRLadderVectorTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/VegaPnLExplainPostProcessorsInterpolation2Test.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/VegaPnLExplainPostProcessorsInterpolationDisabledTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/VegaPnLExplainPostProcessorsInterpolationTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/VegaPnLExplainPostProcessorsRiskClassTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/VegaPnLExplainPostProcessorsTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/calculations/VolgaTaylorVaRTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/config/CashGreekSensiCubeMeasureConfigTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/config/CorrelationGreekSensiCubeMeasureConfigTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/measures/config/ThetaGreekSensiCubeMeasureConfigTest.java | Vector-specific test |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/services/impl/MarketDataRetrievalServiceTest.java | Vector-specific test |
| mr-sensi-lib/src/test/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/APnlVectorFromRiskSensiPostProcessorTest.java | Vector-specific test |
| mr-sensi-lib/src/test/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/PnlVectorFromCrossRiskSensiPostProcessorTest.java | Vector-specific test |
| mr-sensi-lib/src/test/java/com/activeviam/mr/sensi/calculations/postprocessors/impl/PnlVectorFromRiskSensiPostProcessorTest.java | Vector-specific test |

###### Modified

| Test | Details |
| - | - |
| mr-application-tests/src/test/java/com/activeviam/mr/application/integration/ARealTimeTest.java | Converted to scalar data model. |
| mr-application-tests/src/test/java/com/activeviam/mr/application/integration/RealTimeTest.java | Converted to scalar data model. |
| mr-application-tests/src/test/java/com/activeviam/mr/application/modes/OnlySensiSummaryCubeProfileTest.java | Converted to scalar data model. |
| mr-application-tests/src/test/java/com/activeviam/mr/application/modes/OnlySensiCubeProfileTest.java | Converted to scalar data model. |
| mr-application-tests/src/test/java/com/activeviam/mr/application/modes/RealTimeBehaviourTestIT.java | Converted to scalar data model. |
| mr-common-config/src/test/java/com/activeviam/mr/common/config/spring/properties/FeaturePropertiesTest.java | Removed test for property. |
| mr-sensi-config/src/test/java/com/activeviam/mr/sensi/services/impl/ScalarMarketDataRetrievalServiceTest.java | Includes the removed MarketData and CorporateAction stores for testing purposes as the MarketDataRetrievalService is not removed yet. |

#### Refactor of `SensiMeasureParameters`

With the removal of the vector data model, the `SensiMeasureParameters` constructor has been refactored to remove the `boolean isVector` field.

#### DirectQuery configuration

The `DirectQueryActivePivotConfig` class no longer extends the `ADirectQueryApplicationConfig` class from Atoti Server. Atoti Server 6.1.2 introduced some bean name changes in this class that cause bean resolution issues. These will be resolved in a following Atoti Server release, at which time this change can be reversed.

#### Schema rebuild

In the `MarketRiskConfig` class in `mr-application` we create a bean to schedule an Atoti schema rebuild. Previously this would run after 5 minutes and every 30 minutes thereafter. This was more frequent than necessary and may impact performance. We have increased the default to 1,440 minutes (24 hours) so the rebuild occurs once a day. We have also added new properties (`mr.application.rebuild...`) to customize this for your requirements.

#### Sign-Off REST services

The implementation of the Sign-Off REST services now has a Boolean to enable/disable them.
Out of the box, the Sign-Off REST services are disabled until the initial load is completed.
This prevents the Sign-Off server from sending requests on those services before the end of the initial load.

Atoti core exceptions are now used instead of the previously used Javax exceptions.

Error messages and constants have been fixed. Their prefix and/or content was previously incorrect.
In particular, the constant `ERROR_MESSAGE` has been replaced by the constant `ERROR_MESSAGE_NO_VALID_DTO_PROVIDED`.

#### Webservices

The following outdated dependency has been removed from the POM file of the `mr-common-lib` module:

```
<dependency>
    <groupId>javax.ws.rs</groupId>
    <artifactId>javax.ws.rs-api</artifactId>
    <version>2.0</version>
    <scope>compile</scope>
</dependency>
```

The String constant for the `"application/json"` media type from the Spring class `org.springframework.http.MediaType` is used instead of the corresponding
constant from the`javax.ws.rs.core.MediaType` class.

#### Sorting order of beans

The class `StartupSpringBeanOrder` has been added with constants used to define the order in which some of the beans are loaded:
In increasing order:

* `START_MANAGER`: Starts the Atoti Server manager.
* `REGISTER_DATABASE_LISTENERS`: Registers the parent/child listeners.
* `INITIAL_CONFIGURATION_DATA_LOAD`: Starts the initial data load.
* `INITIAL_DATA_LOAD`: Instantiates beans after the initial data load is completed.
* `START_DISTRIBUTED_MESSENGERS`: Starts the distribution messengers.

#### Fix for trailing white space incorrectly added with empty string suffix

The methods `*Suffix` in the class `VaRMetricParametersAndNames` now trim the generated measure names to avoid the incorrect addition of a trailing white space.

#### DirectQuery Cache

This release includes a new DirectQuery caching mechanism that dynamically loads slices of data into memory to improve the performance of retrievals from external stores (stores not joined to the base store).

Currently, this only supports market data stores - those from Atoti Market Data and the additional stores from the `mr-sensi-config` module. Additionally, this is a preview feature that is disabled by default. To enable the feature, set the property: `mr.enable.preview.directquery-cache=true`.

When you are using the cache, a "slice" of market data will be stored in memory when it is required for a query. A slice corresponds to all the market data for a given combination of `asOfDate` and `marketDataSet`. These slices will be added and removed from the cache based on the maximum number of slices that can be held at any one time. You can configure the maximum number of slices for a particular table with the `directquery.cache.max-slice-count` property, otherwise the value set in the `directquery.cache.max-slice-count-default` property will be used.

#### Scalar reference data

The reference dataset that is provided in `mr-application/src/main/resources/data` has been updated so that sensitivities are now in a [scalar format](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivities.md) rather than vectorized. This is primarily for clarity now that the Sensitivities Cube no longer supports a vectorized model. It is still possible to provide [sensitivity vectors](https://docs.activeviam.com/solutions/market-risk/6.0/input-files/sensitivities.md) as input, but be aware that these will be converted and stored as scalar values in the application.

#### Distribution and measures

Atoti Market Risk cubes and their summary variants (for example the `VaR-ES Cube` and the `VaR-ES Summary Cube`) are created as a horizontal distribution. This enables Atoti Market Risk to show a single measure (for example `VaR`) with some dates coming from the full cube and other date contributions from the summary cube. This is a useful feature, but it comes with a warning. Atoti Server expects that all cubes in a horizontal distribution have exactly identical measure chains. If they do not, this can lead to errors or incorrect results when queries are executed on a query cube with both cubes. The measure chains in Atoti Market Risk are not identical between main and summary cubes but, in this release, we have made changes to avoid these failure scenarios. We strongly recommend that, if you are using summary cubes, you add any new measures both to the main and summary cubes.
