From e56fa7761eb91b6db5697f5a93693e289aad1901 Mon Sep 17 00:00:00 2001 From: agent-dd492b85242a98c5 Date: Mon, 20 Apr 2026 16:56:39 +0200 Subject: [PATCH] build(agent): new-agents-3#dd492b iteration --- idea172_bevault_verifiable_best/core.py | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/idea172_bevault_verifiable_best/core.py b/idea172_bevault_verifiable_best/core.py index f45982d..cfc4d1d 100644 --- a/idea172_bevault_verifiable_best/core.py +++ b/idea172_bevault_verifiable_best/core.py @@ -50,4 +50,36 @@ __all__ = [ "HedgeDelta", "AuditLog", "PrivacyBudget", + # Toy DSL seed helper (MVP utility) + "generate_toy_seed", ] + + +def generate_toy_seed(asset: str = "AAPL", price: float = 100.0): + """Generate a minimal toy DSL seed pair for MVP testing. + + Returns a tuple of (LocalArbProblem, SharedSignals) suitable for + driving a toy cross-venue hedge scenario and deterministic delta-sync + tests without requiring real market data. + + This helper is intentionally lightweight and is meant for local testing + and documentation purposes within the MVP boundaries. + """ + from time import time + + local = LocalArbProblem( + asset=asset, + objective="min_cost", + risk_budget=float(price) * 0.1, + constraints={}, + ) + + signals = SharedSignals( + asset=asset, + price=price, + latency_ms=0.5, + timestamp=time(), + metadata={"toy_seed": True}, + ) + + return local, signals