Repository navigation
6.33.0
FX Options - Populate option features and add SimpleExotic qualifiers
Background
Issue #5014 reports that FX exotic options ingested from FpML were labelled incorrectly. The FpML mappings did not populate OptionPayout.feature, so the qualification functions could not distinguish a barrier, touch or average-rate option from a plain vanilla. Qualify_ForeignExchange_VanillaOption also deliberately accepted options carrying only an averagingFeature. FX digital (touch) options were mapped without an underlier, so they failed Qualify_AssetClass_ForeignExchange and received no ISDA label.
This release applies the change from #5242 (CDM 8) to 6.x.x. The 6.x.x option feature model differs from CDM 7/8, so the mapping has been adapted:
- In 6.x.x, knock-in / knock-out triggers live on
OptionFeature.knock(Knock { knockIn, knockOut }).Barrieronly hasbarrierCap/barrierFloor, which describe the direction the trigger is approached from, not knock-in / knock-out. FpML barriers and touches are therefore mapped tofeature.knock, and the Barrier and Digital qualifiers testfeature -> knock exists. - In 6.x.x,
OptionFeature.averagingFeatureis typedAveragingCalculationdirectly. There is noAveragingFeaturewrapper and noaveragingInOut.
What is being released?
Ingestion mapping
- In
ingest-fpml-confirmation-product-fxoption-func.rosetta:MapFxOptionPayoutnow populatesfeature.knockfrom FpML<features><barrier>(Knockin→knockIn,Knockout→knockOut) andfeature.averagingFeaturefrom<features><asian>.- Barrier trigger levels carry
unit/perUnitOfderived from the barrier'squotedCurrencyPair. averagingFeature(AveragingCalculation) is populated.averagingMethod.isWeightedis derived from the presence ofrateObservation/averageRateWeightingFactor. FpML does not carry the averaging method or rounding for FX average-rate options, so these default toArithmeticandNearest(market convention for FX average-rate options).
- In
ingest-fpml-confirmation-product-fxdigitaloption-func.rosetta:MapFxDigitalOptionPayoutnow populatesfeature.knockfrom FpML<touch>(Touch→knockIn,Notouch→knockOut). Trigger levels carryunit/perUnitOffrom the touch'squotedCurrencyPair.- The underlier is mapped as
Cashin the base currency of the touch'squotedCurrencyPair, using the same convention as vanilla FX options. It is only mapped when a<touch>is present.
Qualification (product-qualification-func.rosetta)
- New
Qualify_ForeignExchange_SimpleExotic_Barrier: FX option with a knock feature, underlier and strike. - New
Qualify_ForeignExchange_SimpleExotic_Digital: FX option with a knock feature and no strike (binary / touch). - New
Qualify_ForeignExchange_SimpleExotic_Asian: FX option with an averaging feature, underlier and strike. Qualify_ForeignExchange_VanillaOptionnow requiresfeature is absent. TheaveragingFeature only existscarve-out is removed, so average-rate options no longer qualify as both vanilla and Asian.
Samples / expectations
- Regenerated 21 FX trade-state outputs across
fpml-5-10,fpml-5-12andfpml-5-13(fx-ex12, 13, 16–22), the 5 correspondingtest-pack-translate-*configs, the matchingexpected-output/*.difffiles and the ingest diagnostics.
Documentation
- New
ingest/README-INCOMPLETE-SAMPLES.mdlists theinput/*incomplete-*sample folders and explains why their FpML to CDM ingestion is not yet complete.
Backwards Compatibility
| Area | Impact |
|---|---|
| Wire / schema | None. No types or attributes added, removed or changed. |
| Function API | Additive: three new qualification functions. No signatures changed. |
| Semantic / qualification | Behaviour change. FX barrier options now qualify as ForeignExchange_SimpleExotic_Barrier and average-rate options as ForeignExchange_SimpleExotic_Asian; both were previously ForeignExchange_VanillaOption. FX touch / no-touch options now qualify as ForeignExchange_SimpleExotic_Digital; they previously had no ISDA label. Any FX option carrying an averagingFeature no longer qualifies as ForeignExchange_VanillaOption. Ingested FX barrier and digital options now carry feature.knock, and digital options now carry an underlier. |
| Expectations | modelValidationFailures is unchanged for the barrier and average-rate samples. It improves by 1 (5 → 4) for the touch samples fx-ex16–19, which now have an underlier. |
Review Directions
Changes can be reviewed in PR: #5247
Event Qualification Functions - Updated Qualify_FullReturn
Background
During qualification testing for trade terminations on products containing collateral (such as Repurchase Agreements), both Qualify_Termination and Qualify_FullReturn evaluated to True simultaneously.
Because Qualify_FullReturn was incorrectly evaluating the AssetPayout under the collateral portfolio path rather than the root trade product path, its criteria formed a strict superset of Qualify_Termination whenever collateral was present. This overlap caused a qualification collision resulting in a null eventQualifier.
What is being released?
Qualify_FullReturn(cdm.event.qualification:func): updated theAssetPayoutcheck to target the primary trade product economics instead of the nested collateral portfolio.
Review Directions
Changes can be reviewed in PR: #5378
Build Modernization - Introduce thin Maven Profile for Minimal Runtime Distribution
Background
The current cdm-java (rosetta-source) distribution bundles a significant volume of supplemental resources into the primary runtime artifact. This results in an artifact size of approximately 65 MB in Maven Central, which leads to unnecessary memory overhead and an expanded security surface area in production and cloud-native environments.
By decoupling the core generated model logic from these supplemental files, this release provides a "thin JAR" alternative that improves deployment efficiency, reduces class-loading times, and simplifies security compliance audits.
What is being released?
thinMaven profile: an opt-in build configuration that generates a lean runtime artifact.- Secondary artifact with a Maven classifier: the
thinclassifier generates a secondary, lean JAR (e.g.cdm-java-thin.jar) alongside the standard distribution, ensuring full backwards compatibility for existing pipelines. - Targeted resource exclusions: the following resources are excluded from the
thinartifact:
<excludes>
<exclude>build-resources/**</exclude>
<exclude>cdm-sample-files/**</exclude>
<exclude>config/**</exclude>
<exclude>functions/**</exclude>
<exclude>ingest/**</exclude>
<exclude>ingestions/**</exclude>
<exclude>mapping-analytics/**</exclude>
<exclude>result-json-files/**</exclude>
<exclude>schemas/**</exclude>
<exclude>**/rosetta/*.rosetta</exclude>
</excludes>
Backwards Compatibility
No breaking changes. The standard cdm-java artifact is unchanged; the thin artifact is an additional, opt-in output.
Review Directions
The build can be verified locally by running mvn clean install -Pthin -DskipTests. This produces both the standard JAR and the new -thin.jar artifact in the target directory and the local .m2 repository.
Changes can be reviewed in PR: #4865
Infrastructure - Dependency Licence Scan Fix and Bundle Update
Background
The dependency licence scan always passed, because it counted disallowed licences with an unquoted echo, so the count never went above one (issue #2889). This release applies the same fix already released on master (#5355) and 7.x.x (#5357).
What is being released?
- The licence scan now checks every dependency against an allowlist in
.github/license-scanning/allowed-licenses.txt, and fails on anything not on it. The allowlist accepts permissive licences (Apache 2.0, BSD, MIT, public domain, the QuickFIX Software License) and the weak-copyleft licences FINOS allows as dependencies (EPL 1.0/2.0, CDDL 1.1, MPL 2.0). A dependency passes if any of its licences is on the list. - On 6.x.x only, the allowlist also accepts the "Rosetta Licence" as a named exception, because
cdm-javadepends at compile scope oncom.regnosys:ingest-test-framework, whichCdmRuntimeModuleuses for its JSON schema parsers. Master and 7.x.x no longer have this dependency. antlr-runtime3.2 publishes no licence in its POM, solicense-overrides.xmlrecords its BSD licence.NOTICE.mdnow carries the acknowledgment that the QuickFIX Software License requires, sincecdm-javadepends onquickfixj-basethroughrosetta-common.rosetta.bundle.versionupdated from 11.139.0 to 11.141.1, which stopsrosetta-commonexportingrune-maven-pluginat compile scope. Unlike on master and 7.x.x, the Eclipse/Xtext jars remain runtime dependencies on 6.x.x, becauseingest-test-frameworkbrings inrune-lang.
Backwards Compatibility
No breaking changes. This is a build and dependency change only, with no model changes.
Review Directions
Changes can be reviewed in PR: #5358
Infrastructure - Dependency and CVE Update
Background
This release updates the Rosetta DSL, bundle, FpML as Rune and Jackson dependencies, including a Guava CVE fix delivered through the DSL.
What is being released?
Version updates
DSL9.97.4 →9.98.0Bundle11.141.1 →11.143.0- Updates Jackson to 2.23.0, the DSL to 9.98.0 and Guava to 33.8.0-jreFpML as Rune2.14.0 →2.16.0Jackson2.18.12 →2.23.0, so the model uses the Jackson version the DSL and bundle are built against
Backwards Compatibility
No breaking changes. There are no model changes in this section.
Review Directions
Changes can be reviewed in PRs: #5366