> ## 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 guide explains the changes required to migrate to the stated version
of the Atoti FRTB.

## 6.0.9 to 6.0.10

### Who needs to act

Find the rows below that describe the deployment, and read the sections they name. A deployment matching none of them needs no action.

**Every deployment**

| If the deployment... | Read |
| - | - |
| Reports Crypto 2b, FX Vega, CSR Euler allocations or Pro-Rata below a reference level, exports Curvature or Vega sensitivities, or feeds RRAO from `Trade_Attributes.csv` | [Number and output changes](#number-and-output-changes) |
| Runs on one node or distributed; the partitioning restriction applies to both | [Post-processor partitioning levels](#post-processor-partitioning-levels): distributed deployments validate measure values on query and data nodes |
| Runs DirectQuery on Snowflake | [Snowflake key-pair authentication](#snowflake-key-pair-authentication) |
| Sets a parent-child depth below 1 | [Parent-child hierarchy depth validated at startup](#parent-child-hierarchy-depth-validated-at-startup) |
| Sets the `ReferenceCurrency` context value in a dashboard or an MDX query | [ReferenceCurrency context value no longer exposed](#referencecurrency-context-value-no-longer-exposed) |
| Filters traces or dashboards on the `atoti.server` scope | [Tracing scope renamed](#tracing-scope-renamed) |
| Calls the diagnostics, What-If, distributed discovery or migration helper endpoints | [REST API changes](#rest-api-changes) |
| Wants a new opt-in treatment | [Opt-in features](#opt-in-features) |

**Customized projects only**

| If the project... | Read |
| - | - |
| Declares explicit dependencies or versions in its POM | [Build and dependencies](#build-and-dependencies) |
| Constructs `BranchAwareAdjustmentRequestDTO` with arguments | [Sign-Off and Adjustments Services dependency alignment](#sign-off-and-adjustments-services-dependency-alignment) |
| Calls a member listed in [API signature changes](#api-signature-changes) | That table; the compiler names each one |
| Subclasses a post-processor | • [Post-processor interface migration](#post-processor-interface-migration) • [Partitioning manager beans no longer used](#partitioning-manager-beans-no-longer-used) • [GrossJTD and VegaExpand output type validated](#grossjtd-and-vegaexpand-output-type-validated) • [AggregatesMap changes](#aggregatesmap-changes) • [CSR bucket-indices helper](#csr-bucket-indices-helper) |
| Calls the parameter-lookup helpers | • [Parameter lookups return empty collections](#parameter-lookups-return-empty-collections) • [Common Library upgrade to 2.1.17](#common-library-upgrade-to-2-1-17) |
| Sorts or modifies a collection the accelerator returns | [Unmodifiable collections](#unmodifiable-collections) |
| Reads `ALL_FIELDS` of a file-constants class | [Parser column constants immutable](#parser-column-constants-immutable) |
| Calls `AggregatesMap` or the CSR calculation helpers | • [AggregatesMap changes](#aggregatesmap-changes) • [CSR bucket-indices helper](#csr-bucket-indices-helper) |
| Declares datastore customizations or extends the starter configuration | • [Datastore customization order](#datastore-customization-order) • [Crypto 2a exchange bean moved](#crypto-2a-exchange-bean-moved) |
| Customizes the trade-scaling What-If | [Trade-scaling What-If definitions split](#trade-scaling-what-if-definitions-split) |
| Adds an Atoti Limits connector 4.2.0 or earlier | [Level path endpoint served by the Atoti Limits connector](#level-path-endpoint-served-by-the-atoti-limits-connector) |
| Constructs `TradesTuplePublisher` itself | [Trade attributes RRAO synthesis now opt-in](#trade-attributes-rrao-synthesis-now-opt-in) |

### Number and output changes

#### Crypto 2b measures removed

`Crypto 2b Risk Weight` and `Crypto 2b` are removed, and `Portfolio Risk Charge` no longer includes the Crypto 2b term. The exposure measures and the data loading pipeline stay, under the `StandardisedApproach\Crypto 2b` folder, with unchanged names. Remove the `sa.crypto.group-2b.risk-weight` row from any local copy of `FRTBParameters.csv`. `Crypto 2b Exposure Max` returns an empty value instead of `0` when both exposures are empty. The `Crypto2bRw` post-processor and the `FRTBParameters.CRYPTO_2B_RW` constant are removed.

#### Pro-Rata below a reference level on the pro-rata hierarchy

With `ReferenceLevel` on the pro-rata hierarchy, the allocation proceeds one level at a time. Pro-Rata figures change for that configuration. No action is required. See the [release notes](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-release/release-notes.md#pro-rata-allocation-below-a-reference-level-on-the-pro-rata-hierarchy).

#### Optionality flags on exported Curvature and Vega data

The ETL sets `Optionality` and `OriginalOptionality` to `Y` on Curvature and Vega sensitivities, where they took the store default `N`. Calculations are unchanged. An export of sensitivity data that includes those columns shows `Y` for those rows, and the `Optionality` hierarchy is now visible in the SA cube.

#### Trade attributes RRAO synthesis now opt-in

The ETL no longer reads the deprecated `ResidualRisk`, `ExoticUnderlying`, `OtherResidualRiskType` and `RRAOCategory` columns of `Trade_Attributes.csv`. Move that data to `RRAO_Trade.csv`. To keep the old behavior while migrating, set `rrao.use-trade-attributes=true`; the property is removed in 6.1.0. A project constructing `TradesTuplePublisher(datastore, summary)` must use the 3-argument constructor to pass the flag; the 2-argument one passes `false`.

#### Fixes that change reported numbers

No action is required for these; see the [changelog](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-release/changelog.md) for each fix.

* FX Vega is computed with the FX vertex configuration instead of the Equity one; figures change where the two differ.
* The FX Delta and Curvature risk weight measures report a blank value for the N/A bucket.
* The `SQUARE` operation of the `SIMPLE_MATH` post-processor returns the square instead of its input.
* Under DirectQuery, a parameter set two or more hops from the root regains the overrides inherited from an intermediate ancestor, as it always did in memory. Bucket, quality or sector can change.
* The CSR Euler capital allocation no longer shares one bucket-correlation cache across risk classes and parameter sets, so Euler figures can change for a query that spans two parameter sets.

#### Post-processor partitioning levels

The shipped post-processors forbid the levels below from their partitioning, on a single node as well as across nodes; rows marked unchanged behaved the same at 6.0.9. Distributed deployments validate measure values on query and data nodes after upgrading. For custom post-processors, see [Post-processor interface migration](#post-processor-interface-migration).

| Class | Levels forbidden from partitioning |
| - | - |
| `ARiskPosition`, the base of every Delta and Vega risk position | Risk factor |
| `AWeightedSensitivitiesAggregatesMap` | The sensitivity levels the aggregates map is indexed by; every level before |
| `ACurvatureCVR`, `CurvatureRiskPositionMax`, `CurvatureToDeltaShift` | Risk measure |
| `CurvatureRiskPosition` | Risk measure, underlying |
| `RiskCharge` | Risk measure (curvature charges only), bucket (every risk class but Crypto 2a) |
| `CSRSecNonCTPMatrixMultiplication` | Pool, underlying, attachment, detachment |
| `SES` | Risk class, risk factor |
| `ALookbackPostProcessor`, `Outlier` | As of date |
| `IMCC` | As of date, above the risk class level only; unchanged |
| `PValue` | Every level; never partitioned; unchanged |
| `ProRata` | The pro-rata and reference-level hierarchies |
| `ScaledVectorValue` | The levels of its `removePartitionLevels` property, as before |

### Configuration and dashboard changes

#### Snowflake key-pair authentication

The shipped DirectQuery configuration uses key-pair authentication, as Snowflake is deprecating passwords. `directquery.database.snowflake.password` still binds but should no longer be used.

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

1. Generate a PKCS#8 RSA key pair: `openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt`, then `openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub`.
2. Register the public key on the Snowflake user: `ALTER USER <user> SET RSA_PUBLIC_KEY='<key without header, footer and line breaks>'`.
3. Set `SNOWFLAKE_PRIVATE_KEY_BASE64` to `base64 < rsa_key.p8 | tr -d '\n'`, and drop `SNOWFLAKE_PASSWORD`.

For the full walkthrough, see [Snowflake key-pair authentication](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/supported-databases/connect-to-database.md#snowflake-key-pair-authentication).

#### Parent-child hierarchy depth validated at startup

`parent-child.book-depth` and `parent-child.legal-entity-depth` below `1` are rejected at startup. The defaults, `15` and `5`, are unchanged.

#### Tracing scope renamed

The accelerator traces under its own OpenTelemetry scope, `atoti.frtb`, instead of `atoti.server`. Update any monitoring filter or dashboard keyed on the old scope. See [Tracing](https://docs.activeviam.com/solutions/frtb/6.0/configuration/startup-properties.md#tracing).

#### ReferenceCurrency context value no longer exposed

The `ReferenceCurrency` context value no longer appears in the Context Values drawer and can no longer be set. A saved dashboard or an MDX query that sets `ReferenceCurrency` must set the current member of `displayCurrency` instead. Capital numbers are unchanged.

### REST API changes

#### Diagnostics redirect endpoints removed

`DiagnosticsRedirectController` is removed. `GET /tree/cubes` and `GET /tree/measures?pivotId=...` return `404`. Call the platform measure-lineage diagnostics endpoint directly, as the shipped Atoti Admin UI does.

#### parentBranch on the What-If submit endpoint

`POST /services/rest/whatif/{operationId}/submit` now honors `parentBranch`: when `toBranch` does not exist, it is created from that branch instead of from the current head; when `toBranch` exists, `parentBranch` is ignored. An unknown or unreadable `parentBranch` is rejected with `400`. A request that already sends `parentBranch` is now acted upon; confirm it names the intended branch.

#### Trade duplication requires a suffix

The `scaleTrade` endpoint rejects `duplicate=true` without a `suffix` as `400 Bad Request`. Send a non-empty `suffix` with every duplication request.

#### Distributed discovery no longer fails when a data cube never joins

The discovery REST endpoint succeeds where it threw `IllegalStateException` for a query-cube measure whose data-cube measure never joined the cluster; the measure falls back to the `Object` type. Only code relying on that exception is affected.

#### Migration helper REST controller

`MigrationHelperRestController` is replaced by `FRTBMigrationHelperRestController`, and the local `com.activeviam.frtb.migration.export` package by the Common Library's `com.activeviam.accelerator.common.directquery.migration.export`:

| Old import | New import |
| - | - |
| `...frtb.migration.export.rest.impl.MigrationHelperRestController` | `...frtb.migration.export.rest.impl.FRTBMigrationHelperRestController` |
| `...frtb.migration.export.rest.entities.dto.DatabaseExtractionDTO` | `...accelerator.common.directquery.migration.export.rest.entities.dto.DatabaseExtractionDTO` |
| `...frtb.migration.export.rest.entities.dto.PerformanceModifiers` | `...accelerator.common.directquery.migration.export.rest.entities.dto.PerformanceModifiers` |
| `...frtb.migration.export.handlers.file.LocalFileOutputHandler` | `...accelerator.common.directquery.migration.export.handlers.file.LocalFileOutputHandler` |

`DatabaseExtractionDTO` is immutable and built with `DatabaseExtractionDTO.builder()...build()` instead of setters. Two properties are new: `frtb.migration.export.enabled` (default `true`) and `frtb.migration.export.base-dir` (default `${java.io.tmpdir}`). A request whose `outputDirectory` is outside `base-dir` is rejected; set `base-dir` to the export directory. The generated DDL now creates the `BOOK_HIERARCHY` and `LEGAL_ENTITY_HIERARCHY` tables, which the deployment populates itself; see [Populating hierarchy tables from parent-child stores](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/customization-and-internals/migration-rest-service.md#populating-hierarchy-tables-from-parent-child-stores).

#### Level path endpoint served by the Atoti Limits connector

Atoti FRTB no longer serves `GET /services/rest/v1/levelPath/{cubeId}`. The Atoti Limits server calls it through the Limits connector to resolve parent-child hierarchies for limits.

| Limits connector | What to do |
| - | - |
| `com.activeviam.modules.limits:limits-auto-config-61` 6.1.20 and later | None; the connector registers the endpoint |
| `com.activeviam.solutions.limits:limits-auto-config-61` 4.2.1 and 4.2.2 | None; the connector imports the endpoint |
| `com.activeviam.solutions.limits:limits-auto-config-60` or `-61` 4.2.0 and earlier | Register the endpoint in the project |

With connector 4.2.0 or earlier, the Limits server's calls to the endpoint fail. Import `LevelPathRestService` from a configuration class the application context loads, by import or component scan:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.activeviam.services.levelpath.LevelPathRestService;

@Configuration
@Import(LevelPathRestService.class)
public class LevelPathRestServiceConfig {
}
```

Do not add it with connector 4.2.1 or later; with 6.1.20 and later, startup fails with `Ambiguous mapping`.

### Opt-in features

Each `enabled` property defaults to `false`, and nothing changes until it is set.

#### EU delegated act support

The new `EU-DA` parameter set changes no number under any other parameter set while the RRAO Zero Risk Weight flag is off. Its two opt-in treatments, `frtb.eu-da.rrao-zero-risk-weight.enabled` and `frtb.eu-da.drc-contractual-maturity.enabled`, have manual steps for pinned parser columns, DirectQuery databases, the `SACubeRRAOExport` extract and customized projects. See [How to enable the opt-in treatments](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/jurisdictions/eu-da.md#how-to-enable-the-opt-in-treatments) on the EU-DA page.

#### Optionality Service curvature-shift alignment

`optionality-service.align-with-curvature-shift=true` aligns `OptionalityService` with the `CurvatureToDeltaShift` post-processor: GIRR is matched by `Bucket` on `Yield` curves, Equity by `Underlying` on `Spot` risk factors, and an existing `Y` is never overwritten with `N`. This can change capital numbers, so validate before enabling in production. `OptionalityService` is deprecated since 6.0.10. In 6.1.0 the property and the legacy matching are removed, the aligned behavior becomes the only one, and a new interface replaces subclassing; the extension points `curvatureKeys`, `underlyings` and `condition` go with the legacy path.

#### Pro-Rata totals across several hierarchies

With `frtb.pro-rata.multi-hierarchy-totals=true` and a combination such as `BookHierarchy;Risk Classes` appended to `pro-rata.hierarchies.list`, which ships no combination, the Total column is the sum of the risk classes. See [ProRataHierarchy](https://docs.activeviam.com/solutions/frtb/6.0/cube/context-values/context-values-intro.md#proratahierarchy). An overridden `parentLocation` on a `ProRata` subclass is not consulted for the summed totals.

```properties theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
frtb.pro-rata.multi-hierarchy-totals=true
pro-rata.hierarchies.list=,Books,Desks,Legal Entities,BookHierarchy,LegalEntityHierarchy,BookHierarchy;Risk Classes
```

### Build and dependencies

#### Atoti Server upgrade to 6.1.24

Atoti FRTB moves from Atoti Server 6.1.19 to 6.1.24, with `common-parent-pom` and `common-dependencies-bom` 2.6.0. No Atoti Server Java API used by Atoti FRTB changed. The Atoti Server BOM is now imported ahead of `common-dependencies-bom`, so its dependency versions win; for the versions and CVEs, see the [Atoti Server 6.1 changelog](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md). Hibernate moves from 6.6.36.Final to 6.6.53.Final, the Spring Boot selection, and H2 stays at 2.3.232. Two dependencies resolve lower than before and are left so: `commons-io` 2.21.0 to 2.20.0 and `velocity-engine-core` 2.4.1 to 2.4.

No action is required unless the deployment overrides `h2.version` or `hibernate-orm.version`. Such an override works only for a deployment that inherits this POM through `<parent>`; a deployment importing it with `<scope>import</scope>` must declare its own `dependencyManagement` entry instead.

#### Common Library upgrade to 2.1.17

Two lookup contracts and the DirectQuery `Migrator` change without a compile error:

| Member | Change | What to do |
| - | - | - |
| `IParameterRetriever.lookup(..., ICondition, ...)` | Returns an empty collection, never `null` | Replace null checks with `isEmpty()` |
| `IParameterRetriever.lookup(..., Map<String, Object> key, ...)` | Returns `null` where it threw `ActiveViamRuntimeException` | Null-check the result |
| `IParameterSetSelector.select` | May return `null` | Handle a `null` result |
| `AParameterRetriever.lookupAll` | A `null` from a subclass override is normalized to an empty map | Replace null checks with `isEmpty()` |
| `Migrator.buildDirectQuerySchema(List, List)` | Deprecated and no longer called | Move the override to the 3-argument overload |

`DatabaseDiscovery.discoverAndFix` also validates the aggregate tables; a missing table or column throws `DatabaseDiscoveryException`.

#### ActivePivot Maven artifact rename

`activepivot-impl` and `activepivot-intf` are replaced by `core`. A POM declaring either artifact explicitly must declare `com.activeviam.activepivot:core` instead. Transitive users need no change. See the [Atoti Server 6.1 migration notes](https://docs.activeviam.com/engine/java-sdk/6.1/release/migration_notes.md).

#### Sign-Off and Adjustments Services dependency alignment

`signoff-api-lib` moves to group ID `com.activeviam.modules.signoff-api` and `adjustments-services` to `com.activeviam.modules`. Artifact IDs, packages and Spring configuration are unchanged.

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

Both versions now default to `${activepivot.version}`. Neither library publishes a build for every Atoti Server patch, so a project that overrides `activepivot.version` must confirm both have a matching version, or pin `signoff-api.version` and `adjustments-services.version` to the last published one.

The `BranchAwareAdjustmentRequestDTO` constructor `(key, user, filters, input, toBranch)` is replaced by `(key, user, parentBranch, filters, input, toBranch)`. A call to the old form no longer compiles, and a precompiled caller fails with `NoSuchMethodError`. The no-argument constructor and setters are unchanged.

### Java customizations

The sections below apply only to projects with custom code. A standard deployment needs none of them.

#### API signature changes

Each change below fails to compile where the row says so, and the compiler names the member.

| Member | 6.0.9 | 6.0.10 | What to do |
| - | - | - | - |
| `FRTBConfig.startManager()`, `waitForAggregateProviderFeeding()` | no argument | `(FrtbTracing)` | Only a subclass of `FRTBConfig` overriding the method is affected; a `startManager` bean declared in the project's own configuration still replaces the accelerator's. Add the parameter, injected from `FrtbTracingConfig`, and pass it through. Check that the override carries `@Override`, or it silently becomes dead code |
| `CommonDimensionsConfig.getSARiskDimension`, `getSaDefaultRiskChargeDimension`, `CubesDimensionsConfig` constructor | | add `EuDelegatedActProperties` | Pass the bean through. The 6.0.9 forms are deprecated and still compile; they build the cube without the `RRAO Zero Risk Weight` and `DRC Contractual Maturity` hierarchies |
| `FRTBActivePivotManagerDescriptionConfig` constructor | | adds `IDatastoreConfigurator`, `Collection<Collection<Set<StoreField>>>` | Pass the arguments |
| `FileUploadRestServiceController` constructor | | adds `ISimulationPersistenceManager` | Pass the argument |
| `SourceTopicAliasesConfig` constructor | implicit | `(boolean categoriesEnabled)` | Pass the argument |
| `TargetDescriptionsConfig`, `AliasesDescriptionConfig`, `ConfigurationSourceDescription`, `CategoriesConfig`, `WhatIfConfig`, `FRTBParentChildServiceConfig`, `FRTBRegistryConfig`, `AdjustmentExecutionConfig`, `LocalContentServiceConfig`, `ActivePivotBranchPermissionsManagerConfig` | field injection, implicit constructor | constructor injection | A subclass declares a constructor taking the same beans and calls `super(...)`; `new X()` no longer compiles. `FRTBRegistryConfig.env` is removed |
| `DirectQueryApplicationConfig` | raw, `(IToolbox, IActivePivotBranchPermissionsManagerConfig, ...)` | `DirectQueryApplicationConfig<T>`, `(IDatabaseTools<T>, IBranchPermissionsManager, ..., FrtbTracing)` | Supply the type argument of the target database and the new parameters |
| `CSRNSDeltaCalculations.gammaCorrelations`, `gammaSectorCorrelations` (overloads taking `bucketIndices`) | | add `riskClass` before `bucketIndices` | Pass `FRTBConstants.CSR_NS` or `CSR_SEC_CTP`. Apply together with [CSR bucket-indices helper](#csr-bucket-indices-helper) |
| `CurvatureRiskPosition.getRho`, `EquityCurvatureRiskPosition.getRho` | `protected Double` | `protected double` | Change the override. A path returning `null` throws `NullPointerException` once unboxed, so give it a number |
| `AScaledSensitivity.scaleFactor`, `DoubleDiff.SCALE_STEP_SIZE_DEFAULT` | `Double` | `double` | Only `!= null`, `.equals` or `.doubleValue()` on the result break |
| `ARiskPosition`, `ARiskMeasureDoubleSums`, `CurvatureRiskPosition`, `ESForRiskCapital`, `ESForRiskCapitalEuler`, `ESCurrentRatio` | `protected static Logger LOGGER` | Lombok `@Slf4j`, private `log` | Annotate the subclass with `@Slf4j` and log through its own `log` |
| `TailVaROperator`, `ApplyScenarioOperator` | `protected NumberFormat numberFormat` | removed | Declare a formatter in the subclass |
| `StaticAnalysisHierarchy.comparator` | `IComparator<Object>` | `IComparatorDescription` | Change the field type; confirm member ordering afterwards |
| Stress calibration `computePrefetches` (`ESPnLVector`, `ESPnLVectorExpand`, `SlidingWindowES`, `SlidingWindowExpand`, `SlidingWindowScenarioExpand`, `StressCalibrationES`) | `Collection<? extends IPrefetchRequest<Void>>` | `Collection<IPrefetchRequest<Void>>` | Match the return type |
| `AWSCommonConnector.rootDirectory`, `AzureCommonConnector.rootDirectory` | raw `ACloudDirectory` | `ACloudDirectory<S3Entity>`, `ACloudDirectory<IAzureEntity>` | Declare the same type in an override |
| `FileUploadQueryNodeRestController.getDataNodeFiles()` | `throws Exception` | no throws clause; `LOGGER` is `final` | Drop the clause from an override |
| `FileUploadWhatIfService.resolvePath`, `LOGGER` | `protected` | `private` | Remove the override and the reference; there is no replacement |
| `TailVaROperator.ComparableVectorEntry` | inner class | `static` | Use `new TailVaROperator.ComparableVectorEntry(v, i)` |
| `KeyObjects.FieldValuePair`, `KeyObjects.UnModKeys` | inner classes | `static`, deprecated for removal; `new KeyObjects()` no longer compiles | Use `new KeyObjects.FieldValuePair(k, v)`; plan their removal |
| `AggregatesMap.Key.clone()` | | `copy()` | Rename the call |
| `DatastoreConfig.STORE_DATE_FIELD_FORMAT`, `ParameterSetDatastoreConfig.STORE_DATE_FIELD_FORMAT` | assembled string | `ILiteralType.LOCAL_DATE` | Only a hardcoded copy of the old string needs changing |
| About twenty-five `public` and `protected` fields, mostly loggers and `PLUGIN_KEY` constants | | `final` | Only an assignment breaks |

#### Post-processor interface migration

Post-processors across `frtb-core` implement `IDistributedPostProcessor` instead of `IPostProcessorPartitioningManagerAware`. A subclass that referenced the `partitioningManager` or `partitioningManagerFactory` field, or overrode `setPartitioningManagerFactory`, no longer compiles: drop that wiring. A client post-processor implementing `IPostProcessorPartitioningManagerAware` directly still works; migrating it is recommended.

A subclass of `ABasicPostProcessor` or `ABaseDynamicAggregationPostProcessor` needs nothing more: `canBeDistributed` returning `true` is correct and `reduce` needs no aggregation. A post-processor that fans out across a breakdown, or aggregates across a level, follows two rules, both driven by one predicate so they cannot drift apart:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Override
public void setPartitioningLevels(ILocation location, Collection<ILevelInfo> partitioningLevels) {
    super.setPartitioningLevels(location, partitioningLevels);
    partitioningLevels.removeIf(this::isForbiddenPartitioningLevel);
}

@Override
public boolean canBeDistributed(ILocation location, Collection<ILevelInfo> distributingLevels) {
    return distributingLevels.stream().noneMatch(this::isForbiddenPartitioningLevel);
}
```

* `setPartitioningLevels` removes exactly the levels a prefetch changes on the requested location, such as a `childLocation` drill-down; a `setFilter` pin to a constant or an `ancestorLocation` call does not count. It always calls `super` first. A class extending `AAdvancedPostProcessor` directly must declare the override.
* `canBeDistributed` returns `true` unconditionally for a post-processor that reads the database, through `getDatastore()`, an `IDatabaseVersion`, a store cursor or an `IUnfilteredParameterRetriever`; one that resolves everything through `IParameterRetriever` defers to the predicate. `ScaledVectorValue` is the reference implementation.

The levels the shipped post-processors forbid are listed under [Post-processor partitioning levels](#post-processor-partitioning-levels).

#### Partitioning manager beans no longer used

`postProcessorPartitioningManagerFactory`, `postProcessorPartitioningManagerAllAddedLevelDescriptions` and `postProcessorPartitioningManagerAllRemovedLevelDescriptions` on `FRTBPostProcessorConfig` are deprecated for removal. No shipped post-processor implements `IPostProcessorPartitioningManagerAware` any more, so an override of either bean no longer affects them; a client post-processor implementing that interface still receives the factory built from both. Re-express the customization by overriding `setPartitioningLevels` on the post-processors concerned.

#### GrossJTD and VegaExpand output type validated

The output type of a `GROSS_JTD` or `VEGA_EXPAND` measure is read from its `outputType` property and must be a nullable double; another type fails at startup with `PostProcessorInitializationException`. A measure configuring no `outputType` keeps the nullable double as before.

#### Parameter lookups return empty collections

Fifteen parameter-lookup members return an empty collection or array instead of `null` when no tuple matches, and are annotated `@NonNull`: the `ConfigurationParametersUtils` members `getVertices` (both), `getGIRRVegaResidualMaturities`, `getAllVertices` (both), `getAllUnderlyingVertices`, `getGIRRVerticesWeightingsQuery`, `getLHtoIndexMap`, `getIndexToLHMap`, `getCSRBuckets`, `getGIRRMajorCurrencies` and `getCsrNonSecHighRatings`; `DRCJTDCalculations.getDRCRiskWeights` and `getERBARiskWeights`; and `LiquidityHorizonCoefficient.retrieveLiquidityHorizonsToIndexesMap`. Code compiles unchanged, but a `== null` branch applying a local default no longer runs. Replace null checks with emptiness checks:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
double[] vertices = ConfigurationParametersUtils.getVertices(...);
if (vertices.length == 0) {
    vertices = defaultVertices();
}
```

#### Unmodifiable collections

`AWeightedSensitivitiesAggregatesMap.toHierarchyInfos`, `ConfigurationParametersUtils.getCSRBuckets` and `getGIRRMajorCurrencies`, `ZeroRiskWeightFilter.getMembers`, `ARiskMeasureDoubleSums.leafCoordinates`, `CategoriesConfig.categoriesTuples`, `InitialDataLoadDates.initialLoadAsOfDates` and `InitialDataLoadDatesCloudConfig.initialLoadAsOfDatesCloud` return unmodifiable lists, as do the `DimensionsConstants.SAME_DIFFERENT_ORDER` and `TYPE_AND_MATURITY_LEVELS_ORDER` constants. Code that sorts, adds to or replaces an element of the result throws `UnsupportedOperationException` at runtime. Wrap the result in `new ArrayList<>(...)` first.

#### Parser column constants immutable

`ALL_FIELDS` in `RraoFileConstants`, `RraoSummaryFileConstants`, `BookDescriptionFileConstants`, `TradeAttributesFileConstants`, `DRCFileConstants` and `DRCSummaryFileConstants` is built with `List.of`, and the matching `FileColumnsConfig` beans return unmodifiable lists. `ALL_FIELDS.add(...)` throws `UnsupportedOperationException` at startup; build a new list instead. A column appended by a property, such as the regulatory book classification or the EU-DA columns, is added to the bean only, so `getColumnIndex` returns `-1` for it: read column positions from the injected bean.

#### AggregatesMap changes

`AggregatesMap.Key.set(int, Object)`, `Key.set(Object...)` and `Key.map(int, Object)` keep their signatures but no longer insert an unmapped coordinate; they look it up and leave the dimension unmapped. `Key.accumulate(Object...)` is the inserting replacement, `createKey` still inserts as before, `AggregatesMap.lookupKey(Object...)` builds a key by lookup only, and `Key.getMapped(int)` can now return a negative value. `Key.get(int)` and `AggregatesMap.add(Key, double)` throw `IllegalStateException` on an unmapped coordinate. `AggregatesMap.get(Key)` no longer mutates the map, and returns `0.0` instead of throwing on an empty zero-dimension map.

Code using the old accumulation pattern, `key.set(...)` then `add(key, value)`, compiles unchanged and throws at query time: switch it to `key.accumulate(...)`. `AggregatesMap.publish()` is new and must be called once after the last `add` and before the map is shared across threads; a subclass of `AWeightedSensitivitiesAggregatesMap` overriding `compute` must call it.

#### CSR bucket-indices helper

`CSRNSDeltaCalculations.bucketIndices` and `CSRSecCTPDeltaCalculations.bucketIndices` return `BucketIndices` instead of `IDictionary<Object>`, and `evaluateRiskChargeDoubleSums`, `gammaCorrelations` and `gammaSectorCorrelations` take it. `BucketIndices` exposes `size()`, `getPosition(Object)` and `read(int)`, which returns `String` and throws `ArrayIndexOutOfBoundsException` out of range. No numeric output changes.

A subclass of `CSRNSDeltaRiskChargeDoubleSums`, `CSRNSVegaRiskChargeDoubleSums`, `CSRSecCtpDeltaRiskChargeDoubleSums` or `CSRSecCtpVegaRiskChargeDoubleSums` that touches the bucket-indices parameter in `getUnderlyingParameters`, `evaluateRiskMeasureDoubleSums` or `getVectorSize` still compiles, because those members take `Object`, and fails at query time with `ClassCastException`. Update it to `BucketIndices`.

#### Datastore customization order

Every shipped `DatastoreConfiguratorConsumer` bean declares an `@Order` from `DatastoreCustomisationSpringBeanOrder`, and the customization list is no longer filtered on `@Qualifier(SP_QUALIFIER__CUSTOMISATIONS)`; the constant is deprecated for removal and a bean still carrying it is applied as before. A project declaring its own consumers must annotate each one; `PROJECT` places a field before the sign-off key fields. Two silent changes to check: an unqualified consumer bean is now applied at startup, and a project injecting the qualified list no longer receives the shipped beans, so inject by type.

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Bean
@Order(DatastoreCustomisationSpringBeanOrder.PROJECT)
public DatastoreConfiguratorConsumer projectCustomisations() {
    return configurator -> configurator.appendField(SA_SENSITIVITIES_STORE_NAME, new CustomField(MY_FIELD, STRING));
}
```

For the contract, see [What determines the order of datastore customizations?](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-ref-impl/dev-datastore/customization-order.md).

#### Crypto 2a exchange bean moved

`addCrypto2aExchangeToUnderlyingStore` now lives in `FeatureDatastoreCustomisationsConfig`. A project that overrides, excludes or references the bean through `DatastoreCustomisationsConfig` must retarget it. Other projects need no action.

#### Trade-scaling What-If definitions split

`TradeRescaleRestServiceController` uses two definitions, `TradeDuplicateSimulationDefinition` and `TradeScalingSimulationDefinition`, configured through `TradeRescaleStoreFields`. The former `TradeDuplicateAndRescaleSimulationDefinition` still works and is deprecated for removal; persisted simulations and REST payloads naming its plugin key continue to run. Migrate customizations to the two new ones. `TradeScaleDTO` is removed.

## 6.0.8 to 6.0.9

### Summary

* [SACubeRRAOExport column header rename](#sacuberraoexport-column-header-rename): `OtherResidualRiskType` renamed to `RRAOCategory`.
* [Distributed messaging API](#distributed-messaging-api-if-customized): Messaging classes replaced with `CommunicationRegistration` API.

### SACubeRRAOExport column header rename

The `SACubeRRAOExport` DEE template now exports the `RRAO Category` column under the header `RRAOCategory` instead of `OtherResidualRiskType`. Downstream consumers that parse the export by header name must be updated from `OtherResidualRiskType` to `RRAOCategory`.

### Distributed messaging API (if customized)

This section applies only if your project customizes distributed messaging classes.

The `IMessageHandlerRegistrar` pattern introduced in 6.0.8 has been replaced. The following classes have been removed:

* `BusinessDayCalendarMessageHandler`
* `FrtbCoreMessageHandlerRegistrar`
* `DatastoreMetadataMessenger`

`BusinessDayCalendarMessage` is now a Java `record` implementing `Request` (from `com.activeviam.activepivot.dist.impl.avinternal.communication`). Its answer is a nested `record` implementing `Answer` and `ProcessedOutput`.

Handler registration is done inline using the `CommunicationRegistration` fluent API instead of the `@AtotiExtendedPluginValue` annotation.

Before (6.0.8):

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@AtotiExtendedPluginValue(intf = IMessageHandlerRegistrar.class, key = "FrtbCoreMessageHandlerRegistrar")
public class FrtbCoreMessageHandlerRegistrar implements IMessageHandlerRegistrar {
    @Override
    public void registerHandlers(IDistributedMessenger messenger, IMultiVersionActivePivot pivot) {
        IMessageHandlerRepository repository = messenger.getMessageHandlerRepository();
        repository.setMessageHandler(BusinessDayCalendarMessage.class, new BusinessDayCalendarMessageHandler());
    }
}
```

After (6.0.9):

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
this.messageSender = CommunicationRegistration.startRegistering(BusinessDayCalendarMessage.class)
        .onMessageReceived((message, cubeIdentifier) -> {
            // handler logic inline
            return result;
        })
        .processOutput((message, pairs) -> {
            // merge results
            return mergedAnswer;
        })
        .registerOrReplace(manager);
```

The `DistributedParametersRetriever` constructor now requires an additional `IActivePivotManager` parameter. Update any custom instantiations accordingly.

## 6.0.7 to 6.0.8

### Summary

* [New DLC Unload Topic Aliases](#new-dlc-unload-topic-aliases): Purely additive — no migration required.
* [OpenTelemetry configuration changes](#opentelemetry-configuration-changes): `tracing.enabled` property removed; exporters now disabled by default.
* [JGroups protocol files](#jgroups-protocol-files): `AtotiAuthToken` replaced with `SharedSecretAuthToken`.
* [Distributed messaging API](#distributed-messaging-api-if-customized-2): New `IMessageHandlerRegistrar` pattern for custom message handlers.
* [Import changes](#import-changes): Constants moved from `AxisHierarchyBase` to `IAxisHierarchyDescription`.

### New DLC Unload Topic Aliases

Eight new unload topic aliases have been added to allow selective, per-cube data unloading via DLC: `UnloadSA`, `UnloadIMA`, `UnloadIMADRC`, `UnloadPL`, `UnloadStressCalibration`, `UnloadCommon`, `UnloadParameters`, and `UnloadAllData`. No migration is required; these are purely additive. See [Unload Topic Aliases](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-ref-impl/dev-dlc/dlc-frtb-config.md#unload-topic-aliases) for details.

### OpenTelemetry configuration changes

OpenTelemetry has been upgraded and simplified:

* SDK: 1.49.0 → 1.56.0
* Instrumentation: 1.33.0-alpha → 2.22.0 (stable)

**Breaking changes:**

1. **`tracing.enabled` property removed** — The `OpenTelemetryTracingConfig` class has been removed. Tracing is now configured entirely through OpenTelemetry Spring Boot auto-configuration.

2. **Exporters disabled by default** — OpenTelemetry exporters (`traces`, `metrics`, `logs`) are now set to `none` by default. Previously, tracing was enabled by default when `tracing.enabled=true`.

**Migration steps:**

* The `tracing.enabled` property can be removed from your configuration as it is no longer used.
* If you were using `tracing.enabled=false` to disable tracing: No action needed (tracing is now off by default).
* If you were using `tracing.enabled=true` with `-Dotel.java.global-autoconfigure.enabled=true`, replace with the new VM flags:

Before:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
-Dotel.java.global-autoconfigure.enabled=true
```

After:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
-Dotel.traces.exporter=otlp -Dotel.metrics.exporter=otlp -Dotel.logs.exporter=otlp
```

### JGroups protocol files

The `AtotiAuthToken` class has been replaced with `SharedSecretAuthToken`. Update all JGroups protocol XML files to use the new class name.

Before:

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<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:

```xml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
<AUTH auth_class="com.activeviam.common.distribution.security.SharedSecretAuthToken"
      auth_token.auth_value="distribution_password"
      auth_token.token_hash="SHA"/>
```

### Distributed messaging API (if customized)

This section applies only if your project customizes distributed messaging classes.

The following API changes have been made:

* `IAuthenticatedBroadcastMessage` now takes 1 type parameter instead of 3. Update any class that implements or references this interface.
* `BusinessDayCalendarMessage` has been simplified to `AUniqueBroadcastMessage<BusinessDayCalendarMessageAnswer>`. Handler logic previously embedded in the message class now lives in `BusinessDayCalendarMessageHandler`.
* `DatastoreMetadataMessenger` is deprecated for removal. Its third type parameter has changed from `IDistributedHierarchyManager` to `Void`.
* Custom message handlers should now implement `IMessageHandlerRegistrar` and register using `@AtotiExtendedPluginValue(intf = IMessageHandlerRegistrar.class)`, rather than embedding logic in the message class itself.

### Import changes

The constants `AUTO_CONTRIBUTE_UNKNOWN_MEMBER_ALWAYS` and `AUTO_CONTRIBUTE_UNKNOWN_MEMBER_PROPERTY` have moved from `AxisHierarchyBase` to `IAxisHierarchyDescription`. Update any imports or references in your project.

Before:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
import static com.activeviam.activepivot.core.impl.internal.cube.hierarchy.axis.impl.AxisHierarchyBase.AUTO_CONTRIBUTE_UNKNOWN_MEMBER_ALWAYS;
import static com.activeviam.activepivot.core.impl.internal.cube.hierarchy.axis.impl.AxisHierarchyBase.AUTO_CONTRIBUTE_UNKNOWN_MEMBER_PROPERTY;
```

After:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
import static com.activeviam.activepivot.core.intf.api.description.IAxisHierarchyDescription.AUTO_CONTRIBUTE_UNKNOWN_MEMBER_ALWAYS;
import static com.activeviam.activepivot.core.intf.api.description.IAxisHierarchyDescription.AUTO_CONTRIBUTE_UNKNOWN_MEMBER_PROPERTY;
```

## 6.0.6 to 6.0.7

No migration needed.

## 6.0.5 to 6.0.6

### Summary

* [Changes to the frtb-starter](#changes-to-the-frtb-starter): Updates to the frtb-starter to allow file uploads to be run without executing simulations.

#### Changes to the frtb-starter

* The `IFileUploadDataNodeClient` interface has been updated in the `frtb-starter` module, the method `createBranchForUIWithoutSimulation` has been added to it.

* The class `FileUploadQueryNodeService` has been changed extensively. It needs to be copied as is to your upgraded project.

* In the class `FileUploadQueryNodeRestController`, the method `resetDataNodeFiles` does not throw an exception in its signature any more:

6.0.5:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
  protected Map<String, FileUploadPayload> resetDataNodeFiles() throws Exception {...}
```

6.0.6:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
  protected Map<String, FileUploadPayload> resetDataNodeFiles() {...}
```

* The method `createBranchForUI` has been updated:

6.0.5:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@PostMapping(value = "/upload/{branch}")
@DependsOn(value = { "dataLoadController" })
public boolean createBranchForUI(
        @PathVariable("branch") String branch,
        @RequestParam("files") String[] files
) {
    if (files == null || files.length == 0) {
        return false;
    }
    try {
        Map<String, FileUploadPayload> dataNodeFiles = getDataNodeFiles();
        var branchCreated = fileUploadQueryNodeService.createBranchForUI(branch, files, dataNodeFiles);
        if (branchCreated) {
            Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
            String userName = authentication.getName();
            IDatabaseSimulationDefinition definition = new FileUploadSimulationDefinition(files);
            var permissions = new BranchPermissions(Set.of(userName), IBranchPermissions.ALL_USERS_ALLOWED);
            branchPermissionsManager.setBranchPermissions(branch, permissions);
            workflow.execute(new DatabaseSimulation(FILE_UPLOAD_WHATIF_NAME, definition, userName, branch));
        }
        return branchCreated;
    } catch (Exception e) {
        throw new FRTBServiceException(
                HttpStatus.INTERNAL_SERVER_ERROR,
                "Unable to copy the files from stage folder to what-if folder.",
                "Ensure that the files being requested are available to copy via the retrieveStagedFile endpoint",
                e
        );
    }
}
```

6.0.6:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@PostMapping(value = "/upload/{branch}")
  @DependsOn(value = { "dataLoadController" })
  public boolean createBranchForUI(
  		@PathVariable("branch") String branch,
  		@RequestParam("files") String[] files
  ) {
  	if (files == null || files.length == 0) {
  		return false;
  	}
  	try {
  		Map<String, FileUploadPayload> dataNodeFiles = getDataNodeFiles();
  		Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
  		String userName = authentication.getName();
  		IDatabaseSimulationDefinition definition = new FileUploadSimulationDefinition(files);
  		var sim = new DatabaseSimulation(FILE_UPLOAD_WHATIF_NAME, definition, userName, branch);
  		var status = workflow.execute(sim).getStatus();
  		if (!status.equals(DatabaseSimulationStatus.COMPLETED)) {
  			switch (status) {
  				case FAILED -> throw new ActiveViamSimulationException(sim);
  				case UNAUTHORISED -> throw new ActiveViamUnauthorizedException();
  				case UNKNOWN -> throw new ActiveViamUnknownSimulationException(sim.getSimulationId());
  				default -> {
  					return false;
  				}
  			}
  		} else {
  			return fileUploadQueryNodeService.createBranchForUI(branch, files, dataNodeFiles).equals(DatabaseSimulationStatus.COMPLETED);
  		}
  	} catch (Exception e) {
  		switch (e) {
  			case ActiveViamSimulationException activeViamSimulationException -> throw activeViamSimulationException;
  			case ActiveViamUnauthorizedException activeViamUnauthorizedException -> throw activeViamUnauthorizedException;
  			case ActiveViamUnknownSimulationException activeViamUnknownSimulationException -> throw activeViamUnknownSimulationException;
  			default -> throw new FRTBServiceException(
  					HttpStatus.INTERNAL_SERVER_ERROR,
  					"Unable to execute file-upload what-if simulation. Please check the logs for more information.",
  					"Ensure that the files being requested are available to copy via the retrieveStagedFile endpoint",
  					e
  			);
  		}

  	}
  }
```

* In the class `FileUploadPayload`, the Lombok `@EqualsAndHashCode` annotation has been added, the `topics` attribute is now a set instead of a list,
  and the visibility of the `topics` and `filePathSeparator` attributes has been changed:

6.0.5:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Data
@NoArgsConstructor
public class FileUploadPayload implements Serializable {
public String filePathSeparator;
public List<FileUploadTopic> topics;
private static final long serialVersionUID = 4349458336474922225L;

  /**
   * Constructor
     *
     * @param topics A List of {@link FileUploadTopic}s.
     */
  public FileUploadPayload(List<FileUploadTopic> topics) {
        this.topics = topics;
        this.filePathSeparator = File.separator;
  }
```

6.0.6:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class FileUploadPayload implements Serializable {
private String filePathSeparator;
private Set<FileUploadTopic> topics;

  private static final long serialVersionUID = 4349458336474922225L;

  /**
   * Constructor
     *
     * @param topics A Set of {@link FileUploadTopic}s.
     */
  public FileUploadPayload(Set<FileUploadTopic> topics) {
        this.topics = topics;
        this.filePathSeparator = File.separator;
  }
```

* The class `FileUploadRestServiceController` has been changed extensively. It needs to be copied as is to your upgraded project.
* In the class `FileUploadTopic`, the Lombok `@EqualsAndHashCode` annotation has been added, the `files` attribute is now a set instead of a list,
  and the visibility of the `files` and `name` attributes has been changed:

6.0.5:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Data
@NoArgsConstructor
public class FileUploadTopic implements Serializable {
  public String name;
  public List<String> files;
  private static final long serialVersionUID = 4349474967374902823L;

  /**
   * Constructor
   *
   * @param name  Topic Name.
   * @param files List of file paths.
   */
  public FileUploadTopic(String name, List<String> files) {
    this.name = name;
    this.files = files;
  }
```

6.0.6:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class FileUploadTopic implements Serializable {
  private String name;
  private Set<String> files;
  private static final long serialVersionUID = 4349474967374902823L;

  /**
   * Constructor
   *
   * @param name  Topic Name.
   * @param files Set of file paths.
   */
  public FileUploadTopic(String name, Set<String> files) {
    this.name = name;
    this.files = files;
  }
```

* In the `CommonDimensionsConfig` class, hard-coded strings have been replaced by constants:

6.0.5:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
 public static ICanBuildCubeDescription<IActivePivotInstanceDescription> getHiMedLowDimension(ICanStartBuildingDimensions builder) {
 	//@formatter:off
 	var hierarchy = ConstantHierarchy
 				.hierarchy(CORRELATION_SCENARIO_HIERARCHY)
 				.withLevel(CORRELATION_SCENARIO_LVL)
 					.withComparator(new CustomComparator<>(List.of("High", "Medium", "Low", "Reference"), List.of()))
 				.withLevelPath(null, "High")
 				.withLevelPath(null, "Medium")
 				.withLevelPath(null, "Low")
 				.withLevelPath(null, "Reference")
 				.build();
 	return builder
 			.withDimension(CORRELATION_SCENARIO_DIM)
 			.withAnalysisHierarchy(hierarchy)
 			.withAggregationProcedure(AnalysisHierarchyExpansionProcedure.PLUGIN_KEY)
 			.end();
 	//@formatter:on
 }
```

6.0.6:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
public static ICanBuildCubeDescription<IActivePivotInstanceDescription> getHiMedLowDimension(ICanStartBuildingDimensions builder) {
  	//@formatter:off
  	var hierarchy = ConstantHierarchy
  				.hierarchy(CORRELATION_SCENARIO_HIERARCHY)
  				.withLevel(CORRELATION_SCENARIO_LVL)
  					.withComparator(new CustomComparator<>(List.of(
  							CORRELATION_SCENARIO_HIGH,
  							CORRELATION_SCENARIO_MED,
  							CORRELATION_SCENARIO_LOW,
  							CORRELATION_SCENARIO_REF), List.of()))
  				.withLevelPath(null, CORRELATION_SCENARIO_HIGH)
  				.withLevelPath(null, CORRELATION_SCENARIO_MED)
  				.withLevelPath(null, CORRELATION_SCENARIO_LOW)
  				.withLevelPath(null, CORRELATION_SCENARIO_REF)
  				.build();
  	return builder
  			.withDimension(CORRELATION_SCENARIO_DIM)
  			.withAnalysisHierarchy(hierarchy)
  			.withAggregationProcedure(AnalysisHierarchyExpansionProcedure.PLUGIN_KEY)
  			.end();
  	//@formatter:on
  }
```

## 6.0.4 to 6.0.5

### Summary

* **Crypto 2a Support**: Added configuration, cube dimensions, measures, and starter module components to support Group 2a cryptoassets.
* **SBM Correlation Scenarios**: Introduced a new cube dimension allowing user-defined correlation scenarios for enhanced control over SBM risk calculations.

### Configuration files

#### Parameters

The following parameters have been added to the file [FRTBParameters.csv](https://docs.activeviam.com/solutions/frtb/6.0/configuration/frtbparameters.md):

| Parameter | Parameter Name | Default Value |
| - | - | - |
| Delta risk weight in \[SCO60.73] | sa.crypto.group-2a.delta.risk-weight | 1 |
| Vega risk weight in \[SCO60.73] | sa.crypto.group-2a.vega.risk-weight | 1 |
| Delta $\rho_{kl}$ in \[SCO60.76] | sa.crypto.group-2a.delta.rho-correlation | 0.94 |
| Vega $\rho_{kl}$ in \[SCO60.76] | sa.crypto.group-2a.vega.rho-correlation | 0.94 |
| Curvature risk weight in \[SCO60.81] | sa.crypto.group-2a.vega.risk-weight | 1 |

#### Vertices

The following vertices have been added to the file [Vertices.csv](https://docs.activeviam.com/solutions/frtb/6.0/configuration/vertices.md):

| Index | Vertex | FRTB Risk Class | Risk Measure | Date | ParameterSet |
| - | - | - | - | - | - |
| 0 | 0.5 | Crypto 2a | Vega | 2016-01-01 | |
| 1 | 1 | Crypto 2a | Vega | 2016-01-01 | |
| 2 | 3 | Crypto 2a | Vega | 2016-01-01 | |
| 3 | 5 | Crypto 2a | Vega | 2016-01-01 | |
| 4 | 10 | Crypto 2a | Vega | 2016-01-01 | |

### Configuration properties

#### Properties added

| Property | Default value | Description |
| - | - | - |
| frtb.crypto-2a.apply-correlation-stress | *false* | If set to false, the stress scenarios are ignored, and the same correlation constants are used for the ‘high’, ‘medium’ and ‘low’ scenarios. If set to true, the correlations for the ‘high’, ‘medium’ and ‘low’ scenarios are calculated in alignment with {baselLink("MAR", 21, 6)}. |
| frtb.crypto-2a.exchange-stored | *false* | Enables the addition of the optional Crypto2aExchange field in the [UnderlyingDescription](https://docs.activeviam.com/solutions/frtb/6.0/datastore/standardisedapproach/underlying-desc.md) store. |

### Datastores

#### Added stores

| Store | Details |
| - | - |
| Crypto2aDeltaDoubleSums | Crypto 2a Delta Double Sums store. This is a technical store used for the crypto 2a calculations. |
| Crypto2aVegaDoubleSums | Crypto 2a Vega Double Sums store. This is a technical store used for the crypto 2a calculations. |

#### Modified stores

| Modification | Store | Field | Type | Description |
| - | - | - | - | - |
| Added | [UnderlyingDescription](https://docs.activeviam.com/solutions/frtb/6.0/datastore/standardisedapproach/underlying-desc.md) | Crypto2aExchange | String | Optional field. The exchange where the crypto asset is traded. Disabled by default. See [Crypto 2a UnderlyingDescription](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/crypto-2a/datastore-ref-impl/underlying-desc.md). |

### Cube schema

#### Added

| Cube | Dimension | Hierarchy | Levels | Datastore fields | Details |
| - | - | - | - | - | - |
| StandardisedApproach | Correlation Scenario | Correlation Scenario | [Scenario](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/correlation-scenario.md) | The members do not come from the datastore, they are defined in the definition of the hierarchy directly. See [Correlation Scenario](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/correlation-scenario.md) | Users can now directly influence which correlation scenario is applied in the [`SBM Risk Charge`](../../cube/measures/standardisedapproach/aggregated-riskcharge-by-class#sbm-risk-charge) and related measures. |
| StandardisedApproach | Double Sums | Crypto 2a Delta Double Sums | [Crypto 2a Risk Factor](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/double-sums.md#crypto-2a-delta-double-sums) | Field Crypto2aRiskFactor in store Crypto2aDeltaDoubleSums (technical store) | This hierarchy is used to describe factors determining delta risk factor correlations for the Crypto 2a risk class. |
| StandardisedApproach | Double Sums | Crypto 2a Vega Double Sums | [Crypto 2a Risk Factor](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/double-sums.md#crypto-2a-vega-double-sums) | Field Crypto2aRiskFactor in store Crypto2aVegaDoubleSums (technical store) | This hierarchy is used to describe factors determining vega risk factor correlations for the Crypto 2a risk class. |
| StandardisedApproach | Buckets | Crypto 2a Buckets | [Crypto 2a Bucket](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/buckets.md#crypto-2a-buckets) | Field Bucket in store [UnderlyingDescription](https://docs.activeviam.com/solutions/frtb/6.0/datastore/standardisedapproach/underlying-desc.md) | Sensitivity buckets for the Crypto 2a risk class. |
| StandardisedApproach | Risk | Crypto 2a Exchange | [Crypto 2a Exchange](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#crypto-2a-exchange-optional) | Field Crypto2aExchange in store [UnderlyingDescription](https://docs.activeviam.com/solutions/frtb/6.0/datastore/standardisedapproach/underlying-desc.md) | The exchange where the crypto asset is traded. This hierarchy is only added if the `frtb.crypto-2a.exchange-stored` property is set to true. |

### Measures

#### Added

| Cube | Measure | Details |
| - | - | - |
| StandardisedApproach | [Crypto 2a](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/standardisedapproach/crypto-2a.md) | Support for Cryptoassets Group 2a |

### Integration of Crypto 2a into the frtb-starter module

The following classes have been added to the `frtb-starter` module:

* `Crypto2aService`
* `Crypto2aConfig`

and are imported in the `FRTBConfig` class:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}

  // Crypto 2a Configuration
  Crypto2aConfig.class,
  Crypto2aService.class
```

The `Crypto2aConfigurationProperties` is now included in the list of configuration properties classes in the class `FRTBConfig`:

```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
@EnableConfigurationProperties({
        ...
		Crypto2aConfigurationProperties.class
})
```

The following classes have been modified to take into account the datastore and cube dimensions modifications needed:

* `CommonDimensionsConfig`
  * In the `getSARiskDimension` method, the argument `Crypto2aConfigurationProperties crypto2aProp` has been added.

    Before:

    ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
    public static ICanBuildCubeDescription<IActivePivotInstanceDescription> getSARiskDimension(ICanStartBuildingDimensions builder) {
    ```

    Now:

    ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
    public static ICanBuildCubeDescription<IActivePivotInstanceDescription> getSARiskDimension(ICanStartBuildingDimensions builder,
    		Crypto2aConfigurationProperties crypto2aProp) {
    ```
  * The implementation of that method has been changed to add the [Crypto 2a Exchange](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#crypto-2a-exchange-optional) hierarchy:

    Before:

    ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
    return builder
        .withDimension(RISK_DIM)
            .withHierarchy(RISK_CLASSES_HIERARCHY)
                .withLevel(RISK_CLASS_LVL)

     ...

            .withLevel(CRYPTO_2B_DIRECTION_LVL, DRC_DIRECTION_HIERARCHY);
    ```

    Now:

    ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
    var riskDimension = builder
            .withDimension(RISK_DIM)
                .withHierarchy(RISK_CLASSES_HIERARCHY)
                    .withLevel(RISK_CLASS_LVL)

         ...

    		if(crypto2aProp.isExchangeStored()){
    		riskDimension = riskDimension
    				.withHierarchy(CRYPTO_2A_EXCHANGE_LVL)
    					.withLevel(CRYPTO_2A_EXCHANGE_LVL,CRYPTO_2A_EXCHANGE);
    	}

        return riskDimension;
    ```

* The following method has been added:
  ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
  public static ICanBuildCubeDescription<IActivePivotInstanceDescription> getHiMedLowDimension(ICanStartBuildingDimensions builder) {
  	//@formatter:off
  	var hierarchy = ConstantHierarchy
  				.hierarchy(CORRELATION_SCENARIO_HIERARCHY)
  				.withLevel(CORRELATION_SCENARIO_LVL)
  					.withComparator(new CustomComparator<>(List.of("High", "Medium", "Low", "Reference"), List.of()))
  				.withLevelPath(null, "High")
  				.withLevelPath(null, "Medium")
  				.withLevelPath(null, "Low")
  				.withLevelPath(null, "Reference")
  				.build();
  	return builder
  			.withDimension(CORRELATION_SCENARIO_DIM)
  			.withAnalysisHierarchy(hierarchy)
  			.withAggregationProcedure(AnalysisHierarchyExpansionProcedure.PLUGIN_KEY)
  			.end();
  	//@formatter:on
  }
  ```

* `CubesDimensionsConfig`

  The `Crypto2aConfigurationProperties crypto2aProp` configuration properties are now used in the `standardisedApproachCubeDimensions` bean,
  and the new  [Correlation Scenario](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/correlation-scenario.md) dimension has been added to that bean.

  Before:

  ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
    @Qualifier("DimensionsStandardisedApproachCube")
  @Order(20)
  @Bean
  public DimensionsAdder standardisedApproachCubeDimensions(
          ParentChildProperties parentChildProperties,
          ParameterSetConfig parameterSetConfig
  ) {
      return merge(
              builder -> CommonDimensionsConfig.getBookingDimension(builder, irtDeskGroupsEnabled),
              builder -> CommonDimensionsConfig.getOrganizationDimension(builder, parentChildProperties),
              castToDimensionsAdder(categoriesHierarchyAdder),
              CommonDimensionsConfig::getSARiskDimension,

              ...

              CommonDimensionsConfig::getSaDefaultRiskChargeDimension,
              b -> CommonDimensionsConfig.getParameterSetsDimension(b, parameterSetConfig.root()),
              this::getDisplayCurrencyDimension);
  }
  ```

  Now:

  ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
  @Qualifier("DimensionsStandardisedApproachCube")
  @Order(20)
  @Bean
  public DimensionsAdder standardisedApproachCubeDimensions(
          ParentChildProperties parentChildProperties,
          ParameterSetConfig parameterSetConfig,
          Crypto2aConfigurationProperties crypto2aProp
  ) {
      return merge(
              builder -> CommonDimensionsConfig.getBookingDimension(builder, irtDeskGroupsEnabled),
              builder -> CommonDimensionsConfig.getOrganizationDimension(builder, parentChildProperties),
              castToDimensionsAdder(categoriesHierarchyAdder),
              b -> CommonDimensionsConfig.getSARiskDimension(b, crypto2aProp),
              CommonDimensionsConfig::getMarketDataDimension,

              ...

              CommonDimensionsConfig::getSaDefaultRiskChargeDimension
  			CommonDimensionsConfig::getHiMedLowDimension,
              b -> CommonDimensionsConfig.getParameterSetsDimension(b, parameterSetConfig.root()),
              this::getDisplayCurrencyDimension);
  }
  ```

* `DatastoreCustomisationsConfig`

  The following bean has been added:

  ```java theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
  @Qualifier(SP_QUALIFIER__CUSTOMISATIONS)
  @Bean
  @ConditionalOnExchangeDatastoreFieldEnabled
  DatastoreConfiguratorConsumer addCrypto2aExchangeToUnderlyingStore() {
  	return this::addCrypto2aExchangeToUnderlyingStore;
  }

  private void addCrypto2aExchangeToUnderlyingStore(IDatastoreConfigurator configurator) {
  	configurator.appendField(UNDERLYING_DESCRIPTION_STORE_NAME, new CustomField(
  			FieldDescription.builder()
  					.name(UNDERLYING_DESCRIPTION_STORE_CRYPTO_EXCHANGE)
  					.dataType(STRING)
  					.build()));
  }
  ```

### Miscellaneous

The following dependency has been added to the `frtb-starter` POM file:

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

## 6.0.3 to 6.0.4

### Summary

* **Atoti What-If upgrade**: Atoti What-If has been upgraded to 4.1.1-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).

## 6.0.2 to 6.0.3

### Summary

* Virtual hierarchies can be set with the property `frtb.configuration.virtual-hierarchies`.
* The new `Curvature CVR` measure will be disabled by default in 6.0.x versions of Atoti FRTB. To enable it, set the property `frtb.curvature-cvr.enabled=true` in the `application.yaml` file.
* Cube distribution can now handle data overlap. This means it is possible to have several data cubes with duplicated data. you need to set `frtb.distribution.enable-data-duplication=true`.
* `HistoricalDatesProvider` no longer queries the base stores for the list of historical dates. This is achieved by using the database statistics to gather the set of unique dates. The `HistoricalDatesProvider` can be reverted to the previous behavior of executing distinct datastore queries by setting the property `frtb.historical-dates-provider.is-using-approximate-members=false`.
* The zero risk-weight can now be specified per obligor and jurisdiction, defaulting to 0%.

### Breaking changes

None.

### Deprecations

* **Cube distribution by field**: Distribution of data cubes across nodes by defining clustering fields is deprecated, it should be done with distribution levels.

### Input file formats

#### Added

| File | Details |
| - | - |
| [DRC\_Public\_Sector\_Obligor\_Risk\_Weights.csv](https://docs.activeviam.com/solutions/frtb/6.0/input-files/sa-drc-public-sector-obligor-risk-weights.md) | Use this file to configure specific zero risk-weights per obligor and jurisdiction. |

### Configuration properties

#### Properties added

| Property | Default value | Description |
| - | - | - |
| frtb.configuration.virtual-hierarchies | *Empty* | A list of hierarchies to set as virtual. |
| frtb.curvature-cvr.enabled | *false* | Enables the new Curvature CVR measures. |
| frtb.distribution.levels.sa-cube | *AsOfDate\@Date\@Dates* | The levels used for the *StandardisedApproachCube* distribution. |
| frtb.distribution.levels.ima-cube | *AsOfDate\@Date\@Dates* | The levels used for the *InternalModelApproachCube* distribution. |
| frtb.distribution.levels.ima-drc-cube | *AsOfDate\@Date\@Dates* | The levels used for the *IMADRCCube* distribution. |
| frtb.distribution.levels.pl-cube | *AsOfDate\@Date\@Dates* | The levels used for the *PLCube* distribution. |
| frtb.distribution.levels.stress-calibration-cube | *AsOfDate\@Date\@Dates* | The levels used for the *StressCalibrationCube* distribution. |
| frtb.distribution.priority.sa-cube | *Empty* | The priority of the *StandardisedApproachCube* in cases of data overlap within a horizontal distribution. |
| frtb.distribution.priority.ima-cube | *Empty* | The priority of the *InternalModelApproachCube* in cases of data overlap within a horizontal distribution. |
| frtb.distribution.priority.ima-drc-cube | *Empty* | The priority of the *IMADRCCube* in cases of data overlap within a horizontal distribution. |
| frtb.distribution.priority.pl-cube | *Empty* | The priority of the *PLCube* in cases of data overlap within a horizontal distribution. |
| frtb.distribution.priority.stress-calibration-cube | *Empty* | The priority of the *StressCalibrationCube* in cases of data overlap within a horizontal distribution. |
| frtb.distribution.enable-data-duplication | *false* | Set to true to allow duplicate members in the distribution level of horizontally distributed data cubes. |
| directquery.incremental-refresh | *Empty* | Configures [increment refresh templates](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/customization-and-internals/incremental-refresh.md). |
| frtb.historical-dates-provider.is-using-approximate-members | *true* | If true (default), the `HistoricalDatesProvider` will use the database statistics to gather the unique set of dates from the stores. If false, it will revert to the previous behavior of executing distinct datastore queries. |
| frtb.historical-dates-provider.stores-to-scan | *\[PLTrades, IMATrades, DRCIMABase, SASensitivities, StressCalibrationTrades]* | The list of stores to scan to collect the historical dates from. |
| frtb.historical-dates-provider.as-of-date-field | *AsOfDate* | The name of the date field to use when querying the stores for historical dates. |

#### Properties deprecated

| Property name | Comment |
| - | - |
| sa.cube.distributing.field | replaced by `frtb.distribution.levels.sa-cube` |
| ima.cube.distributing.field | replaced by `frtb.distribution.levels.ima-cube` |
| ima-drc.cube.distributing.field | replaced by `frtb.distribution.levels.ima-drc-cube` |
| pl.cube.distributing.field | replaced by `frtb.distribution.levels.pl-cube` |
| stress-calibration.cube.distributing.field | replaced by `frtb.distribution.levels.stress-calibration-cube` |

### Properties files

#### Files Modified

##### frtb-data-load.properties

New properties:

| Property Name | Comment | Value |
| - | - | - |
| drc.public-sector.obligor-risk-weights.file-pattern | File pattern used to load the [PublicSectorObligorRiskWeights](https://docs.activeviam.com/solutions/frtb/6.0/datastore/standardisedapproach/public-sector-obligor-risk-weights.md) store. | `**/DRC_Public_Sector_Obligor_Risk_Weights*.csv{,.gz}` |

### Datastores

#### Added stores

| Store | Details |
| - | - |
| [PublicSectorObligorRiskWeights](https://docs.activeviam.com/solutions/frtb/6.0/datastore/standardisedapproach/public-sector-obligor-risk-weights.md) | This store contains optional risk-weights for public sector obligors applied to zero risk-weight exposures in the DRC non-securitisations calculation. |

### Databases

#### Added tables

| Table | Details |
| - | - |
| [PUBLIC\_SECTOR\_OBLIGOR\_RISK\_WEIGHTS](https://docs.activeviam.com/solutions/frtb/6.0/database/public_sector_obligor_risk_weights.md) | This store contains optional risk-weights for public sector obligors applied to zero risk-weight exposures in the DRC non-securitisations calculation. |

### Measures

#### Added

| Cube | Measure | Details |
| - | - | - |
| StandardisedApproach | Curvature CVR | This measure uses the underlying **Curvature CVR Up** or **Curvature CVR Down** measure depending on the “direction” of the **Risk Position Scenario** at the **Bucket** level. A new intermediate measure **Curvature Bucket Scenario** evaluates the **Risk Position Scenario** measure at the **Book** level.  This measure has been added for the following **risk classes** within **sa-sbm**: - [Commodity](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/commodity/calculations/query-time-core/curv-cvr.md) - [CSR non-Sec](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/csr-non-sec/calculations/query-time-core/curv-cvr.md) - [CSR Sec CTP](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/csr-sec-ctp/calculations/query-time-core/curv-cvr.md) - [CSR Sec non-CTP](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/csr-sec-non-ctp/calculations/query-time-core/curv-cvr.md) - [Equity](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/equity/calculations/query-time-core/curv-cvr.md) - [FX](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/fx/calculations/query-time-core/curv-cvr.md) - [GIRR](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-cvr.md) |
| StandardisedApproach | [Crypto 2b](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/standardisedapproach/crypto-2b.md#crypto-2b-exposure-max) | Support for Cryptoassets Group 2b |

## 6.0.1 to 6.0.2

No migration needed.

## 6.0.0 to 6.0.1

No migration needed.

### Breaking changes

None

### Summary

* Upgraded to Data Connectors 5.0.4

## 5.3.0 to 6.0.0

Upgrading from version **5.3.0**, see [Atoti FRTB 6.0 Release Notes](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-release/release-notes.md#600).

Atoti FRTB uses Atoti Server 6.1.7 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/5.2/)
and [Atoti UI Migration Notes](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/), and the [release notes for Atoti Server](https://docs.activeviam.com/engine/java-sdk/6.1/release/changelog.md).

### Breaking changes

* **Measure Configuration**: The text replacement template for measure configuration now uses the pattern `#{_name_}` instead of `${_name_}`. See [Startup Properties](#startup-properties).
* **frtb-application module**: Some of the content of the `frtb-starter` module has been moved to the new `frtb-application` module.
* **DLC 5.0 Upgrade**: With the new version of the DLC, the configuration of the ETL has been simplified.
* **What-if endpoints**: The (undocumented) what-if REST endpoints used by the Switch Desk Model and Switch Book Desk what-if simulations have changed.
* **DoctorPivot endpoint**: DoctorPivot is now embedded within the AdminUI. See [Relocation of DoctorPivot](#relocation-of-doctorpivot) for more.

### Headline announcement

* **Upgraded to Atoti Server 6.1.7** : Upgraded to the latest Atoti Server.
* **Upgraded to JDK 21** : Upgraded from JDK 17 to JDK 21 to utilize the latest features.
* **Removed ActiveMonitor** : The Active-Monitor module and related features have been removed.
* **frtb-application module**: The `frtb-application` module replaces the `frtb-starter` module. All customizations should now be done in the
  `frtb-application` module, or in a new module based on the `frtb-application` module.
* **Sign-Off Service Availability**: The Sign-Off REST service now throws `ServiceUnavailableException`s until the initial data loading phase has been completed.
  The Sign-Off REST service now provides a GET `/enabled` endpoint to check if the service is currently enabled.
* **Simplified OpenTelemetry Configuration**: Atoti FRTB now relies on OpenTelemetry's GlobalOpenTelemetry to configure the export of logs and metrics.
* **OpenRewrite recipes** As an experimental feature, OpenRewrite recipes have been added to automate some of the migration steps.

### OpenRewrite recipes

> [!NOTE]
>
> These OpenRewrite recipes are included as **an experimental feature, and feedback is welcome** on their usefulness during migration.
> This feedback can then be evaluated for potential inclusion of the feature in future releases.
> Please report any issues encountered through the normal Jira channels.

To help with upgrades, a set of OpenRewrite recipes is provided that can be used to automatically
perform some of the migration steps from 5.3 to 6.0.

The recipes included in this release are:

| Recipe Name | Description |
| - | - |
| `com.activeviam.frtb.Migrate_6_0` | Runs all 6.0 migration recipes. |
| `com.activeviam.frtb.FileUpload_6_0` | Updates the properties for the file-upload what-if. This includes:Renames `csvSource.subdirectory.dataset.whatif` to `file-upload.csv-source-subdirectory`, Adds `file-upload.staging-directory` as the combination of `input.data.root.dir.path` (or `csv-source.dataset`) and `csvSource.subdirectory.dataset.stage` by referencing the old properties. |
| `com.activeviam.frtb.DQAutoVectorizer_6_0` | Deletes the old, unused `activeviam.directquery.enableAutoVectorizer` property. |
| `com.activeviam.frtb.DataDirectories_6_0` | Updates the properties configuring the data directories. This includes:Standardizes the case of `csv-source`., Adds `csv-source.dataset-historical=${csv-source.dataset}/historical`., Adds `csv-source.dataset-configuration=${csv-source.dataset}/configuration`. |

See [Using OpenRewrite in Atoti FRTB](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-getting-started/migration-open-rewrite.md) for instructions on how to run the recipes.

### `frtb-application` module

The new `frtb-application` Maven module has been split out of the `frtb-starter` Maven module.

#### Components moved

The following components have been moved into the new module:

* `FRTBApplication` class including the `main()` method.
* Spring security configuration
* OpenTelemetry configuration
* Logging configuration
* Content Service configuration
* Configuration files

#### Configuration classes moved

For the full list of configuration classes that have
been moved into the `frtb-application` module, see the [Moved Classes](#moved-classes) section.

#### Data & Test folders moved

The sample data located at `/frtb-starter/src/test/resources/` has been moved out of the `frtb-starter` module to the `/sample-data/` folder located at the root of the project.

The tests included in the `frtb-starter` module have been moved into the new `frtb-application-tests` module.

### OpenTelemetry Configuration

The previous OpenTelemetry configuration has been replaced with a simple `OpenTelemetry` bean.

To enable the autoconfiguration of this bean, set `-Dotel.java.global-autoconfigure.enabled=true` on the command line.

### FX Translation Risk

The field "Translation Risk Currency" has been added to support loading translation risk for different reporting currencies.
It is now possible to load different translation risks for different reporting currencies.

This field is only used if `FXComplexTrade=Y` (otherwise the translation risk is calculated automatically).

* If this field is empty, the sensitivity is not treated as translation risk but instead treated normally.
* If this field is set, then the sensitivity will be interpreted as translation risk for that currency.
  It will be filtered and only used if the translation risk currency is the same as the reporting currency.

### Alternative root parameter sets

The [property](https://docs.activeviam.com/solutions/frtb/6.0/configuration/startup-properties.md) `parameter-set.root` has been added to specify the root parameter set in the configuration and input files.

It is expected that input files are generated for the parameter set specified in this property.

Additionally, the configuration files containing parameters will need to be adapted to the new root parameter set.

* Previously, when no parameter set was specified in the configuration it was assumed to be "BCBS".
  Now, these parameters will default to the specified root parameter set.
* Parameter configuration will need to be modified for the new root parameter set.

For example, for the bucket used for CSR non-Sec covered bonds, the [FRTBParameters.csv](https://docs.activeviam.com/solutions/frtb/6.0/configuration/frtbparameters.md) file contains:

| Name | Value | Date | ParameterSet |
| - | - | - | - |
| `sa.csr-nonsec.bucket.covered-bonds` | 8 | 2016-01-01 | |
| `sa.csr-nonsec.bucket.covered-bonds` | 10 | 2016-01-01 | CRR2 |

If you want to set CRR2 as the root parameter set, the above two lines can change to become:

| Name | Value | Date | ParameterSet |
| - | - | - | - |
| `sa.csr-nonsec.bucket.covered-bonds` | 8 | 2016-01-01 | BCBS |
| `sa.csr-nonsec.bucket.covered-bonds` | 10 | 2016-01-01 | |

So that the value in the CRR2 parameter set is still "10", and the value for the BCBS parameter set is still "8".

### Summing Sensitivities

When multiple sensitivities with the same key fields are loaded, they are now summed.
Previously this was only done when processing a chunk within a file, now it is done across the whole transaction.

The following [configuration](https://docs.activeviam.com/solutions/frtb/6.0/configuration/startup-properties.md#summing-duplicate-sensitivities) has been added to `application.yaml` and will sum sensitivities and PVs for the `SASensitivities` store,
making sure that the currency and a few other fields are the same.

```yaml theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
datastore-sum-duplicates:
  SASensitivities:
    matching: ["Ccy", "RiskWeight", "FXOtherCcy", "Direction"]
    summing: ["Sensitivity", "Shift_Up_PV", "Shift_Down_PV", "PresentValue", "Notional", "Adjustment"]
```

### FRTB Modules

#### Removed

| Module | Details |
| - | - |
| `frtb-activemonitor` | ActiveMonitor and associated configurations have been removed from Atoti FRTB. |

#### Added

| Module | Details |
| - | - |
| `frtb-application` | Provides an example Spring Boot Application for Atoti FRTB. \* Contains simple configurations required to run Atoti FRTB.\* Is intended to be used as a reference for clients to build their own applications as this module is not production-ready. \* Provides various Spring profiles outlining the properties required to run the application in different environments.  For example, the profile `dist-query-node` activates the `application-dist-query-node.yaml` configuration file which defines the properties required to run the application as a distributed query node. tipTo help ease upgrade efforts, move all customizations into your new module. |

### DLC 5.0 upgrade

The upgrade to DLC 5.0 has brought some significant changes to the ETL configuration.
For non-FRTB specific DLC migration,
please see the [DLC 5.0 Migration Guide](https://docs.activeviam.com/products/tools/data-connectors/latest/online-help/dev-release/migrate.html#dlc-500-migration).

DLC configurations for Atoti FRTB have now been organized into `FrtbDlcConfig`.

#### Loading Topic Configurations

Before the DLC redesign, `ChannelParameters` were being used to encapsulate DLC configurations into beans.
Now, configurations that were previously found as `ChannelParameters` beans can be found as Topic Descriptions in the following classes:

| Old Class | New Class |
| - | - |
| `AConfigurationSourceConfig` | `ConfigurationSourceDescription` |
| `ASourceConfig` | `SourceDescription` |
| `ASensiSourceConfig` | `SensiSourceDescription` |

**Column calculators** are now configured as DLC `CustomFieldDescription` beans and have been organized into `CustomFieldDescriptionConfig`.
The DLC implicitly adds `CSVColumnParser` column calculators based on the store being targeted.
Those calculators have therefore been removed from the topic configurations.
The new DLC also lets you configure [parser overrides](https://docs.activeviam.com/solutions/libraries/data-load-controller/configuration/parser-overrides.md).
In Atoti FRTB they can be found in `ColumnParserOverridesDescriptionConfig`.

**Tuple publishers** are now configured as DLC `TargetDescription` beans and have been organized into `TargetDescriptionsConfig`.

#### Unloading Topic Configurations

Unloading topics are now completely separate from loading topics. They are configured in `UnloadTopicDescriptionsConfig`.

#### Topic Aliases

| Old Class | New Class |
| - | - |
| `SourceTopicAliases` | `AliasesDescriptionConfig` |

#### Topic Ordering Logic

| Old Class | New Class |
| - | - |
| `FRTBLoadDataTxControllerTask` | `FrtbLoadOperation` |

#### ETL Extension Updates

See the following sections on how the ETL extensions have changed with the new DLC:

* [Adding and Populating a New Store](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-extensions/etl/creating-and-loading-a-custom-store.md)
* [Adding Columns to an Existing File and Store](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-extensions/etl/add-and-load-new-column-to-existing-file.md)
* [Enriching File Fields by Adding Column Calculators](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-extensions/etl/enriching-file-field-adding-column-calculators.md)

#### Removed classes

See the [list of classes removed as part of the DLC 5.0 upgrade](#click-to-see-the-full-list-of-removed-classes).

#### Video overview

See the following video on migrating to Data Connectors 5.0 in Atoti FRTB 6.0:

[https://fast.wistia.com/embed/iframe/faoz6lr367](https://fast.wistia.com/embed/iframe/faoz6lr367)

### Input file formats

#### Modified

| Modification | File | Field | Optional | Description |
| - | - | - | - | - |
| Added | [SBM\_Delta\_Sensitivities.csv](https://docs.activeviam.com/solutions/frtb/6.0/input-files/delta-trade.md) | Translation Risk Ccy | Y | FX only. Indicates the sensitivity represents translation risk; set to the reporting currency. |
| Added | [SBM\_Summary\_Delta\_Sensitivities.csv](https://docs.activeviam.com/solutions/frtb/6.0/input-files/delta-summary.md) | Translation Risk Ccy | Y | FX only. Indicates the sensitivity represents translation risk; set to the reporting currency. |
| Added | [Trade\_Attributes.csv](https://docs.activeviam.com/solutions/frtb/6.0/input-files/trade-attributes.md) | Inclusion | Y | Indicates if the trade should be included ("Y") or not by default in the calculations. Default is 'Y' |

### Startup properties

The file [frtb-config.properties](https://docs.activeviam.com/solutions/frtb/6.0/configuration/frtb-config_properties.md) is now loaded into the Spring Boot environment. As a result, the properties in this file can be overridden on the command line.

The file `measures-config.json` is now also loaded into the Spring Boot environment.  The json file is converted to properties with the prefix "measures".

The text replacement template in these files now uses the pattern `#{_name_}` instead of `${_name_}`.
The `${_name_}` pattern can still be used for Spring Boot's property placeholders.

| Property Name | Comment | Value | Default Definition in File |
| - | - | - | - |
| `dlc.enabled` | Enables or disables the Data Load Controller. | `true` or `false` | application.yaml |
| `file-upload.staging-directory` | The staging directory for the File Upload. | `${csv-source.dataset}/stage` | application.properties |
| `file-upload.csv-source-subdirectory` | The sub-directory of files on which the What-If is executed. | `true` or `false` | application.properties |
| `csv-source.dataset-historical` | Path to the directory containing historical files to load. | \$\{csv-source.dataset}/historical | application.properties |
| `csv-source.dataset-configuration` | Path to the directory containing the configuration files to load. | sample-data/configuration | application.properties |
| `parameter-set.root` | Root parameter set. | Defaults to "BCBS" | |
| `datastore-sum-duplicates._store-name_.matching` | List of names of fields that must match when summing duplicates for the store *store-name*. If missing, all fields are matched; if empty, no fields are matched. | | |
| `datastore-sum-duplicates._store-name_.summing` | List of names of fields that should be summed when there are duplicates for the store *store-name*. | | |
| [`directquery.aggregate-tables`](../dev-direct-query/configuration-getting-started/configuration-properties#aggregate-tables) | Configuration of the [Aggregate Tables](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-direct-query/customization-and-internals/aggregate-tables.md) to be used when running with DirectQuery. | Mapping of aggregate tables per cube | application.yaml |
| `whatif.datastore..*` | Simple datastore changes what-if simulations. See [Simple Datastore Changes](https://docs.activeviam.com/solutions/frtb/6.0/what-if/what-if-simple-datastore-changes.md). | `inclusion-change` what-if simulation definition. | application.yaml |

**Updated properties:** [changed values](#changed-values) or [renamed](#renamed)

Changed values:&#x20;

| Property Name | Comment | New Value | Old Value | Default Definition in File |
| - | - | - | - | - |
| `activeviam.jwt.expiration` | Value changed from an `int` of seconds to a `Duration`. Note that an integer value will be picked up as milliseconds now. | `12h` (`Duration`) | `43200` (seconds) | jwt.properties |
| `csv-source.dataset` | Split out to `csv-source.dataset-historical`, `csv-source.dataset-configuration` and `csv-source.dataset` | sample-data/data | data | application.properties |
| `data.extraction.templates.base.dir.path` | Updated for new structure | frtb-application/src/main/resources/DEETemplateOrders | ./src/main/resources/DEETemplateOrders | application.properties |

Renamed&#x20;

| Old Property | New Property | Comment | Default Definition in File |
| - | - | - | - |
| `csv-source.parserThreads` | `csv-source.parser-threads` | The naming convention has changed from camel case to kebab case, but the old property key will still work. | application.properties |
| `csv-source.bufferSize` | `csv-source.buffer-size` | The naming convention has changed from camel case to kebab case, but the old property key will still work. | application.properties |
| `aws.accessKeyId` | `aws.accessKeyId` | Previously managed by FRTB, now inheriting AWS SDK property `aws.accessKeyId` in `DefaultCredentialsProvider` | frtb-cloud.properties |
| `aws.secretKey` | `aws.secretAccessKey` | Previously managed by FRTB, now inheriting AWS SDK property `aws.secretAccessKey` in `DefaultCredentialsProvider` | frtb-cloud.properties |
| `azure.connection.string` | `dlc.azure.connection-string` | Previously managed by FRTB, now inheriting DLC property `dlc.azure.connection-string` for `DefaultAzureClientConfig` | frtb-cloud.properties |

**Deleted properties:**

| Property Name | Comment | Deleted from File |
| - | - | - |
| `activeviam.directquery.enableAutoVectorizer` | The property is no longer being used. | application.properties |
| `input.data.root.dir.path` | This is now a part of `file-upload.staging-directory` | application.properties |
| `csvSource.subdirectory.dataset.stage` | This is now a part of `file-upload.staging-directory` | application.properties |
| `csvSource.subdirectory.dataset.whatif` | This is now `file-upload.csv-source-subdirectory` | application.properties |
| `cloudSource.dataset` | `csv-source.dataset-historical`, `csv-source.dataset-configuration` and `csv-source.dataset` are now shared between cloud sources and local | frtb-cloud.properties |
| `cloud.fetch.thread` | No longer configurable | frtb-cloud.properties |
| `dlc.audit-logging.enabled` | DLC event handlers are no longer a part of the new DLC | application.properties |

### Configuration files

#### Files Modified

##### [FRTBParameters.csv](https://docs.activeviam.com/solutions/frtb/6.0/configuration/frtbparameters.md)

| Modification | Parameter | Type | Default | Description |
| - | - | - | - | - |
| Deprecated (for removal) | `sa.drc.no-maturity-floor-when-offsetting` | boolean | `false` | Parameter is no longer needed [ref](https://www.eba.europa.eu/single-rule-book-qa/qna/view/publicId/2024_7129) |

##### [frtb-config.properties](https://docs.activeviam.com/solutions/frtb/6.0/configuration/frtb-config_properties.md)

| Modification | Parameter | Type | Default | Description |
| - | - | - | - | - |
| Changed Default | `sa.drc.strict-long-short` | boolean | `true` | Changed default to true. |

### Datastores

#### Modified stores

| Modification | Store | Field | Type | Description |
| - | - | - | - | - |
| Added | [Trade Mapping](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/trademapping.md) | Inclusion | String | Indicates if the trade should be included (“Y”) or not by default in the calculations. |
| Added | [SaSensitivities](https://docs.activeviam.com/solutions/frtb/6.0/datastore/standardisedapproach/sa-sensitivities.md) | Translation Risk Ccy | STRING | FX only. Indicates the sensitivity represents translation risk; set to the reporting currency. |

### Databases

#### Modified tables

| Modification | Table | Field | Type | Description |
| - | - | - | - | - |
| Added | [SASENSITIVITIES](https://docs.activeviam.com/solutions/frtb/6.0/database/sasensitivities.md) | TRANSLATION\_RISK\_CCY | String | FX only. Indicates the sensitivity represents translation risk; set to the reporting currency. |
| Added | [TRADE\_MAPPING](https://docs.activeviam.com/solutions/frtb/6.0/database/trade_mapping.md) | INCLUSION | String | Indicates if the trade should be included (“Y”) or not by default in the calculations. |

### Cube schema

#### Added

| Cube | Dimension | Hierarchy | Levels | Datastore fields | Details |
| - | - | - | - | - | - |
| All | Booking | Inclusion | [Inclusion](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/booking.md#inclusion) | [TradeMapping](https://docs.activeviam.com/solutions/frtb/6.0/datastore/global/trademapping.md).Inclusion | This hierarchy is used to indicate which trades should be included in the calculations. |

### Modified Classes

The following classes have been added, removed or had their function replaced with new classes.

#### Added Classes

| Added | Rationale |
| - | - |
| `DatastoreChangeSimulations` | WhatIf definitions have been restructured. |
| `SummingDuplicateKeyHandler` | DuplicateKeyHandler that sums tuples. |
| `TableSecurityConfig` | Configures the security roles for the actions that can be taken on the datastore. |
| `OpenTelemetryTracingConfig` | Configures the OpenTelemetry service for the application. |

#### Removed Classes

##### DataLoadController

The following classes related to the DLC and data loading have been removed as part of the DLC 5.0 upgrade.

> [accordion] Click to see the full list of removed classes.
>
> | Removed | Replacement | Rationale |
> | - | - | - |
> | `ICsvSourceConfig` | | DLC 5.0 reduces complexity. |
> | `IJdbcSourceConfig` | | DLC 5.0 reduces complexity. |
> | `ISourceConfig` | | DLC 5.0 reduces complexity. |
> | `ACSVSourceConfig` | | DLC 5.0 reduces complexity. |
> | `AConfigurationSourceConfig` | `ConfigurationSourceDescription` | The source itself is now configured as multiple a Source Descriptions. ChannelParameters found in this class are now configured as Topic Descriptions. |
> | `ASensiSourceConfig` | `SensiSourceDescription` | The source itself is now configured as multiple a Source Descriptions. ChannelParameters found in this class are now configured as Topic Descriptions. |
> | `ASourceConfig` | `SourceDescription` | The source itself is now configured as multiple a Source Descriptions. ChannelParameters found in this class are now configured as Topic Descriptions. |
> | `SensiSourceConfig` | | DLC 5.0 reduces complexity. |
> | `ConfigurationSourceConfig` | | DLC 5.0 reduces complexity. |
> | `SourceConfig` | | DLC 5.0 reduces complexity. |
> | `SourceTopicAliases` | `AliasesDescriptionConfig` | Aliases are now configured as AliasesDescription. |
> | `CompositeTopicConfig` | | DLC 5.0 reduces complexity. |
> | `TopicConfig` | | DLC 5.0 reduces complexity. |
> | `DataLoadControllerFileConfig` | | DLC 5.0 reduces complexity. |
> | `SimpleCsvSourceConfig` | | DLC 5.0 reduces complexity. |
> | `SimpleJdbcSourceConfig` | | DLC 5.0 reduces complexity. |
> | `SimpleSourceConfig` | | DLC 5.0 reduces complexity. |
> | `ITuplePublisherDlcHealthEventHandler` | | DLC 5.0 handles events itself. |
> | `TuplePublisherDlcHealthEventHandler` | | DLC 5.0 handles events itself. |
> | `TuplePublisherDlcTuplesAdded` | | DLC 5.0 handles events itself. |

##### WhatIf

The following classes have been replaced with `DatastoreChangeSimulations` because the configuration of WhatIfs has changed.

| Removed |
| - |
| `BookDeskSwitchSubmissionDTO` |
| `DeskModelSwitchSubmissionDTO` |
| `BookDeskSwitchRestServiceController` |
| `DeskModelSwitchRestServiceController` |
| `BookDeskSwitchSimulationDefinition` |
| `DeskModelSwitchSimulationDefinition` |

##### Services

| Removed | Replacement | Rationale |
| - | - | - |
| `DataAvailability` | | Distribution no longer requires relying on checking if data is available. |
| `JsonDataLoader` | | Unused. |
| `FRTBI18nConfig` | Atoti Server autoconfigured starters. | This class is now autoconfigured by Atoti Server. |

#### Moved Classes

| Class | Previous Module & Package | New Module & Package |
| - | - | - |
| `LocalContentServiceConfig` | `frtb-starter/com.activeviam.frtb.starter.cfg.impl` | `frtb-application/com.activeviam.frtb.application.config.content` |
| `RemoteContentServiceConfig` | `frtb-starter/com.activeviam.frtb.starter.cfg.impl` | `frtb-application/com.activeviam.frtb.application.config.content` |
| `BasicAuthenticationProviderConfig` | `frtb-accelerator/com.activeviam.frtb.ref.cfg.impl.security` | `frtb-application/com.activeviam.frtb.application.config.security` |
| `SecurityConfig` | `frtb-accelerator/com.activeviam.frtb.ref.cfg.impl` | `frtb-application/com.activeviam.frtb.application.config.security` |
| `UserDetailsServiceConfig` | `frtb-starter/com.activeviam.frtb.starter.cfg.impl.security` | `frtb-application/com.activeviam.frtb.application.config.security` |

### Migrating to using Atoti Starters

Atoti Server now provides Spring Boot Starters to aid in application development. These starters will auto-configure some basic and required beans
for the application to run. Atoti FRTB has been updated to use these starters. The following changes have been made:

| Change | Description |
| - | - |
| Removal of `JMXEnabler` Beans | The `JMXEnabler` beans have been removed from Atoti FRTB as the Atoti Server's Starters provide these beans automatically. |
| Removed `FRTBI18nConfig` Configuration Class | This class is now autoconfigured by Atoti Server. |
| Removed `SameSiteConfig` | The SameSite config is handled by Spring. |

### Historical Date Provider Service

The historical dates used for the `Lookback` hierarchy measures are now configurable via a `IHistoricalDatesProvider` bean. By default, a
`HistoricalDatesProvider` (configured in `HistoricalDatesProviderConfig`) will be created that provides all `AsOfDate`s available in all base stores.

### Sign-Off REST services

The implementation of the Sign-Off REST service now has a Boolean to enable state flag.
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.
The status of the Sign-Off service can be retrieved through a GET request at `/enabled`.

Atoti Server 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`. The exception message prefix has been changed from `"[EXPORT]"` to `"[SIGN-OFF]"` in the
error message constants.

### Relocation of DoctorPivot

[DoctorPivot](https://docs.activeviam.com/solutions/frtb/6.0/dev/dev-core/frtb-dev-drpivot.md) has been moved from the endpoint `/frtb-starter/doctorpivot` to now being embedded within the AdminUI's **Measures dependencies** tab which is located
at: `/frtb-starter/admin/ui/index.html#/measures-dependencies`.
