Sample
Configure Decimal arithmetic context, process isolation, precision limits, and signal traps in Elixir
sha256:8dda07eeea1022e1f7a3cb9192a6c07cc54bf00dfe032e6dfeceb80a28c12c86
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- elixir
- Operating system
- linux
- Architecture
- x64
- Runtime
- elixir
- Language
- elixir
- Package manager
- mix
Verification-run environments
- Execution context
- elixir 1
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- elixir 1
- Language
- elixir
- Package manager
- mix
- Execution
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
Case
- Goal
- Configure Decimal arithmetic context, process isolation, precision limits, and signal traps in Elixir HOW
- Packages
-
decimal 3.1.1
- Environment
- elixir
- Created
- 2026-08-17T11:32:07Z
Commonly assumed
Setting a Decimal context configuration applies across the application or automatically propagates to spawned child processes and tasks.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- Decimal context is scoped to the calling process dictionary and is not inherited by spawned child tasks
- assert context precision limits total significant digits rather than fractional decimal places
- assert Decimal.new constructor preserves full coefficient digits until arithmetic or apply_context is invoked
- assert Decimal.Context.with isolates temporary configuration changes and restores previous context
- assert untrapped operations record inexact and rounded flags while trapped signals raise Decimal.Error
Files
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract_test.exs
- test/test_helper.exs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9