rippled fixes a rules guard that reset the number scale, a bug visible only in tests
The XRP Ledger server rippled merged pull request 8724 on Tuesday 24 November, a fix to a small piece of internal machinery called CurrentTransactionRulesGuard. The guard now restores the Number mantissa scale that was active before it was created, in addition to the saved rules it already restored.
The problem lay in what the guard did on exit. Setting the current transaction rules also sets the mantissa scale that the ledger's Number type uses, and when the guard was destroyed it called that setter again with the rules it had saved. If no rules had been saved, the setter chose the large scale. That overrode any scale an outer guard had set, for example the small scale that the AMM test suite deliberately uses.

The author, mvadari, is explicit that this matters for tests rather than for the live network. In production no outer scale guard is active, so the scale the guard now restores is the same one the old code would have selected. The fix is listed as a libxrpl change, meaning it can affect libxrpl and the code that depends on it, but it is not a new public API, not a breaking change and not a peer protocol change.
The bug surfaced during other work. A change to how the JTX test framework fills in fees ran the fee calculation, and with it this guard, inside tests that expect a fixed scale. The AMM and AMMExtended suites then computed the expected LP tokens with a different mantissa scale than the ledger itself used. A new unit test checks that an outer small scale survives a nested guard whose rules select a large one, and with the fix the AMM, AMMExtended, Number, Vault and Loan suites pass, 25 suites with no failures, when rebased on the related change.
The pull request also notes that AI assistance, from Claude, was used for the investigation and the draft of the change.