Bridge
The bridge artifact channel between RL research and the Hyperliquid module — manifest, action space, ANN index, SQL templates.
The bridge at ./bridge/ is the single artifact channel between RL research and the HLQ product. RL writes artifacts; product reads them. No direct imports, no shared code.
Structure
Manifest
manifest.json contains:
bridge_version— Timestamp-based version ID (e.g.,20260223T015855Z_hlq_reqs_v2)bridge_format_version— Schema version (1.0.0)created_at_utc— When the bridge was builtartifacts— Per-artifact metadata (counts, dimensions) and SHA256 checksumscompatibility— Minimum product version
Action space
12 RouteAction entries mapping intent families to execution parameters:
| Action ID | Intent | Leverage Delta | Lag Override |
|---|---|---|---|
similarity_default | similarity | 0.0 | — |
risk_regime_default | risk_regime | 0.0 | — |
copy_lag_d1 | copy_lag | 0.0 | 1 |
anomaly_default | anomaly | 0.0 | — |
anomaly_strict | anomaly | 0.75 | — |
whale_ranking_default | whale_ranking | 0.0 | — |
screening_default | screening | 0.0 | — |
strategy_comparison_default | strategy_comparison | 0.0 | — |
copy_lag_d3 | copy_lag | 0.0 | 3 |
risk_regime_strict | risk_regime | 0.75 | — |
counterfactual_default | counterfactual | 0.0 | — |
counterfactual_strict | counterfactual | 0.75 | — |
ANN index
HNSW nearest-neighbor index for semantic retrieval:
- 1,806 items, embedding dimension 192
- TF-IDF vectorizer + optional SVD for query embedding
- Coin-strict filtering (no cross-coin spillover)
has_address()for validation checks
Health check
Checks: artifact counts, checksum integrity, bridge freshness (warns if >30 days old). Returns healthy, warning, or degraded verdict with human-readable narrative.
Versioning
Bridge versions are managed by the RL team. The product consumes whatever is in ./bridge/. Request new artifacts via RL_REQUESTS.md.
Current request channel status:
| Request | Status | Delivered |
|---|---|---|
| REQ-001 | Fulfilled | whale_ranking template |
| REQ-002 | Fulfilled | composite_screening template |
| REQ-003 | Fulfilled | anomaly_zscore template |
| REQ-004 | Fulfilled | Coin-strict ANN filtering |
| REQ-005 | Fulfilled | ANN rebuilt with new intents (529→1806) |
| REQ-006 | Pending | Query quality eval ownership transfer to RL team. RL owns intent routing improvement, per-template parameter metadata, and multi-intent decomposition. HLQ retains integration testing (6 tasks: i001-i006). Current classifier marked regex_v1 (transitional). |