Conversation
Single-file static HTML canvas demo (lab/index.html, 1212 lines) walking
through the meridian autonomous RWA market-making agent in eight scenes:
1. Oracle waterfall Chainlink + rates + custodian feeds
arrive with confidence + freshness
2. Fair value & spread Weighted-average fair value; spread by
geography (US 5 bps, EM 30 bps, Restricted
closed). Uses the real _geography_adjustment
table from rwa_market_maker.py.
3. Quotes go out Bid/ask posted to maker venue,
geography-gated (Restricted gets null)
4. Fill arrives Taker hits the US bid; pool inventory
shifts; mid-price updates
5. Inventory rebalance RWA inventory drifts +12%; agent routes
through resolver to bring back to target
6. Idle yield park Idle CR8-USD float → Lucidly syUSD
7. Circuit breaker MeridianVault.setCircuitBreaker(true) on
oracle staleness or 3-sigma divergence —
uses the real on-chain function
8. End-of-cycle report P&L per geography, fills, inventory delta,
yield earned
Palette flipped from Mixdown: cyan primary, gold secondary; cool slate
gradient vs Mixdown's warm amber. Restricted-zone elements rendered in
'hot' red. CSS-var names unchanged so the engine code is byte-identical
to Mixdown — just swapped values.
New visual primitives:
- drawGeoLanes() horizontal banded US/EM/Restricted underlay
- oracle agent type (diamond/purple) — Chainlink/rates/custodian
- lucidly agent type (green circle) — syUSD destination
Real meridian-repo references woven in:
- OracleAdapter, StrategyExecutor, RiskManager (actual module names)
- MeridianVault.setCircuitBreaker(bool) (actual on-chain function)
- rwa_market_maker.py _geography_adjustment table values
Companion lab/SCENES.md (109 lines) documents the scene contract for
fork-and-extend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Single-file static HTML canvas demo at
lab/index.html(1212 lines) walking through the meridian autonomous RWA MM agent in 8 scenes. Sibling to the Mixdown lab at muzix.kcolbchain.com/mixdown.html.Scenes:
_geography_adjustmenttable fromrwa_market_maker.py.MeridianVault.setCircuitBreaker(true)on oracle staleness / 3-sigma divergence (real on-chain fn)Palette: cyan primary / gold secondary (flipped from Mixdown's warm amber); cool slate gradient.
New:
drawGeoLanes()for US/EM/Restricted underlay,oracleandlucidlyagent types. Real meridian-repo references woven in:OracleAdapter/StrategyExecutor/RiskManagermodules;MeridianVault.setCircuitBreaker;rwa_market_maker.pygeo-adjustment table.lab/SCENES.md(109 lines) documents the scene contract.