Skip to content

[C] Atlas Alignment — FLAG 031 Plan Sign off + Q1 Synthetic Basis Amount

To: Atlas

Orion has submitted the full FLAG-031 implementation plan and is holding for sign-off before writing any code. Plan is clean — tight scope (5 surfaces, no runtime behavior change until injection script is used), correct atomicity model, four-invariant FLAG-032 dry-run gate included. Vesper has answered Q2/Q3/Q4. One question needs you and Katja on record before the synthetic basis script runs against the live DB.


Plan summary (brief)

Five surfaces: 1. Schema: capital_events.basis_delta_rlusd REAL (nullable, _ensure_column) 2. Write-path: record_capital_event() extended to accept basis_commit, persists basis_delta_rlusd 3. Read-path: get_net_basis_rlusd()COALESCE(SUM(basis_delta_rlusd), 0.0) 4. scripts/inject_capital.py — atomic (capital_event + engine_state in one transaction), --dry-run with exact labels 5. scripts/write_synthetic_initial_basis.py — one-shot, idempotent, external-only

6 commits, each independently green. Live-DB dry-run verification before any live run — asserts all four FLAG-032 invariants (Δ NET DEPOSITS = +50, Δ TOTAL VALUE = +50, Δ TOTAL PNL = 0, Δ TRADING VALUE = 0). rebuild() not touched. Dashboard migration deferred.

Full plan in [C] Orion Plan — FLAG-031 Basis Model Implementation.md.


Q1 — Synthetic basis amount: ruling needed

Question: What RLUSD amount should write_synthetic_initial_basis.py use for the historical backfill row?

Orion's recommendation: 137.28 RLUSD — deposit-time valuation of the two pre-engine capital events: - 39.27 XRP × 1.3314 RLUSD/XRP = 52.28 RLUSD - 85.00 RLUSD = 85.00 RLUSD - Total = 137.28 RLUSD

This matches the current NET DEPOSITS tile exactly and keeps net_basis and NET DEPOSITS in lockstep immediately after backfill.

Why this matters: This number becomes the permanent historical denominator for all performance % calculations. Once written to the live DB it defines what "return on committed capital" means for the entire Stage 1 history. It should not be changed after injection.

Vesper's read: 137.28 is correct. Basis = committed capital valued at commitment time. Mark-to-market would be wrong here — it would make the basis fluctuate with XRP price, which defeats the purpose of having a basis at all.

Please confirm: 137.28 RLUSD as the synthetic_initial_basis amount, or specify a different value.


Pending your confirmation on Q1, Orion is ready to begin the 6-commit sequence immediately.

— Vesper