feat(studio): add Tessera fair-value preset and staleness chip - #11
Open
92Infinitus92 wants to merge 4 commits into
Open
92Infinitus92 wants to merge 4 commits into
92Infinitus92 wants to merge 4 commits into
Conversation
|
92Infinitus92
force-pushed
the
feat/tessera-support
branch
from
September 1, 2026 13:38
4d980e0 to
dc538f3
Compare
|
92Infinitus92
force-pushed
the
feat/tessera-support
branch
from
September 2, 2026 05:46
dc538f3 to
79ee47f
Compare
|
92Infinitus92
force-pushed
the
feat/tessera-support
branch
from
September 3, 2026 06:22
79ee47f to
636cce9
Compare
|
No other concrete issues found in the PR changes. Tests could not run because |
Tests weren’t run; dependencies are not installed. |
92Infinitus92
force-pushed
the
feat/phoenix-eternal-ui-integrated
branch
from
September 9, 2026 11:51
e01ff36 to
3a7d038
Compare
This was referenced Sep 9, 2026
The PMM fair-value dialog picks a market from the tessera-fair-value template's constant catalog and posts a human price through the Tessera MCP tool. Every atomic ratio is derived backend-side from the two mints' decimals, so there is no price math in the client. The staleness chip reads each market's own freshness_limit_slots out of the same catalog and passes its negation as the slot lead, because the limit differs per market. It goes through create_scenario and the tessera-stale-quote template rather than a protocol-specific tool.
updateActionInSlot rebuilt an edited action without its original backend override, so editing a persisted override (Tessera's "Keep quote fresh") dropped persist on save. Carry original through the edit.
Load market choices through MCP and add the depth-stress AI prompt. Preserve selected accounts and wide integer values when editing scenario actions, with component regressions.
92Infinitus92
force-pushed
the
feat/tessera-support
branch
from
September 15, 2026 05:23
4a243ee to
520906f
Compare
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.
Pairs with LimeChain/surfpool#11 (the
create_tessera_fair_value_scenariotool and the tessera templates) — merge after it, the preset needs that backend.Stacked on #9 — reuses its string-values scenarios API, the constant-catalog fetch and the MCP creator seam.
create_tessera_fair_value_scenarioMCP tool — no client-side math, the backend derives both ratio fields.scenarioTemplate,createScenarioWithMcpTool,ScenarioCreationResult) — expect a small, mechanical conflict on those lines when this merges alongside the phoenix branch.Greptile Summary
The PR adds a Tessera fair-value preset, live market discovery with a free-text fallback, Tessera scenario-editor support, and stale-quote/depth-stress AI prompts.
Confidence Score: 5/5
The PR appears safe to merge with its explicitly paired Surfpool backend change.
No blocking failure remains; the only prior finding was invalidated after the paired backend PR was verified to register the required Tessera tool and template.
Important Files Changed
Sequence Diagram
sequenceDiagram actor User participant UI as Studio UI participant MCP as Surfpool MCP participant Store as Scenario Store UI->>MCP: list_tessera_markets MCP-->>UI: "markets[{label,address}]" User->>UI: Select market and enter price UI->>MCP: "create_tessera_fair_value_scenario({market?, price})" MCP->>Store: Validate market and create overrides Store-->>MCP: Scenario ID MCP-->>UI: "{url: /scenarios?id=...&tab=editor}" UI-->>User: Open scenario editorReviews (9): Last reviewed commit: "fix(studio): reconcile market selection ..." | Re-trigger Greptile