Cockpit · primitives library
Cockpit kit — the primitives showcase
Every Desk Cockpit primitive in every state (healthy / degraded / killed / idle-positive / loading / stale), on the canonical design system. Three ★ signature elements — KillGauge, RefusalFeed, AttributionWaterfall. Data is synthetic (a showcase, no live API). Doctrine: history, not a number · fail-closed · idle = "capital parked" is positive · tabular figures · no gamification.
○ prefers-reduced-motion: off · synthetic fixture data · toggle EN|RU in the header
1 · StaleGuard
The fail-closed freshness substrate. Fresh → green live stamp; 6-min-old → grey + 'stale' + explicit 'not refreshing'; no-timestamp → fail-closed stale; loading → skeleton; error → explicit offline.
healthy (fresh)
Equity
$100,180
degraded (stale 6m)
Equity
$100,180
fail-closed (no ts)
Equity
$100,180
loading
error / offline
2 · MetricStat
Number + label + Δ + trend, tabular figures. Null → '—' (never 0). idle → POSITIVE teal.
healthy + Δ + trend
Total return
+2.14%
+0.18%degraded (down)
APY today
3.10%
-0.4%killed / breach
Drawdown
-10.40%
-2.1%idle-POSITIVE
Cash buffer
38.00%
capital parked — a working state
fail-closed (null)
Sharpe
—
THIN — n/a
stale
Equity
$100,180
3 · TimeToggle
One shared window selector. Controlled.
active: 7D
4 · KillGauge / KillPanel
★ SIGNATUREOne kill-condition as a manometer. Needle at live value, arc fills toward threshold, tone escalates green→amber→kill-red. UNKNOWN condition = explicit grey, NO fabricated headroom.
healthy (safe headroom)
Drawdown
SAFEdegraded (nearing)
Drawdown
SOFTkilled (breached)
Drawdown
BREACHEDfail-closed UNKNOWN
Sharpe floor
UNKNOWNKillPanel (healthy grid) — idle-positive book
Drawdown
SAFESharpe floor
UNKNOWNRed flags (held)
SAFEKillPanel (breached)
Drawdown
BREACHEDKillPanel (empty → fail-closed)
5 · AttributionWaterfall / AttributionBar
★ SIGNATUREP&L by source; the waterfall SUMS to total. price≈0 renders as a faint sliver → proves market-neutrality by eye. Non-reconciling → red badge, NOT rescaled.
healthy (reconciles)
degraded (does NOT reconcile — no rescale)
fail-closed (empty)
AttributionBar (compact, same data)
6 · RefusalFeed
★ SIGNATUREThe public refusal ledger — the moat. ts · opportunity · reason · exp-edge · fee-drag · verdict + verified proof badge. Chain badge 3-state (verified/broken/absent-neutral).
healthy (verified chain)
Implied yield is tail-risk compensation, not mispriced carry — structural haircut vetoes entry.
Verify it yourself
python3 verify_spa.py decision_log.jsonldegraded (BROKEN chain — never green)
Implied yield is tail-risk compensation, not mispriced carry — structural haircut vetoes entry.
fail-closed (absent chain → neutral, empty rows)
7 · DecisionFeed
The full decisions ledger (ENTRY ∥ REFUSAL ∥ ALERT). Filter tabs. Shares the row renderer with RefusalFeed.
Implied yield is tail-risk compensation, not mispriced carry — structural haircut vetoes entry.
Fixed carry to maturity clears the RWA floor risk-adjusted after fees.
Utilization spiked above 92% — monitoring exit liquidity.
8 · RiskStrip
delta-band (±0.5%) · drawdown vs ladder · deployed vs idle (idle POSITIVE) · margin health.
healthy
degraded
killed
fail-closed (nulls → '—', margin n/a paper)
9 · EquityChart
Net-of-fees curve + drawdown shading + gate/refusal markers. CRITICAL: evidenced bars SOLID teal, backfill/warmup bars DASHED grey — a backfill peak never looks like real track.
healthy (evidenced + backfill split, markers)
fail-closed (insufficient history)
10 · RegimeBadge
Funding regime + streak + vol + cycle. Unknown → muted, never fabricated STABLE.
stable
high yield
volatile
fail-closed unknown
11 · PositionTable
Paper book legs (spot long / perp short / lend), venue, notional, funding, net carry APY. Honestly labeled PAPER (no on-chain fills). Empty = idle-POSITIVE.
healthy
| Asset | Leg | Venue | Notional | Funding accr. | Net carry APY |
|---|---|---|---|---|---|
| eETH | spot long | Aave | $320.0k | $1,240 | +6.80% |
| ETH | perp short | Hyperliquid | $318.0k | $2,110 | +4.20% |
| USDC | lend | Morpho | $150.0k | $640 | — |
idle-POSITIVE (flat book)
Book flat — capital parked ✓
No positions is a working state (no risk not worth taking), not an error.
fail-closed (offline)
12 · LiqNavTierChart
Exit-NAV by ticket size — the liquidation-NAV ladder. Haircut climbs with size; flagged/depth-limited tiers amber; uncovered size = a HOLE, not a fabricated fill.
healthy (with a depth hole)
fail-closed (empty)
13 · TournamentLeaderboard
rank · strategy · risk-adj metric · capital · trend · status (champion/challenger/killed). Null metric → n/a (never a fabricated Sharpe); killed row unmistakably kill-toned.
healthy (incl. a killed row)
| # | Strategy | Net return | Capital | Trend | Status |
|---|---|---|---|---|---|
| 1 | FixedCarry-sUSDe | +5.80% | $500.0k | champion | |
| 2 | eth_lst_neutral | +4.10% | $250.0k | challenger | |
| 3 | RWA-floor | +3.40% | $0 | ▲ | paper |
| 4 | LRT-carry-degen | n/a | $0 | killed |
fail-closed (empty)