Skip to content

Crucible Dashboard Guide

Purpose: Launch and navigate the Streamlit-based command center. Commands: crucible dashboard or streamlit run dashboard/app.py

Quick Start

# Install dependencies  (ui extra transitively includes analysis)
pip install "crucible[ui]"
# or: uv sync --extra ui

# Launch the dashboard
crucible dashboard

# Or directly with Streamlit
streamlit run dashboard/app.py --server.port 8501

The dashboard opens at http://localhost:8501.

The sidebar provides 19 panels organized into functional areas:

🔬 Overview

Panel Description
Overview Project summary, quick actions, and recent run metrics.

🎛️ Command Center & Experiments

Panel Description
Run Experiment Select an experiment YAML, configure mode (single/matrix), set flags (--no-baseline, --publication-mode), and run with real-time output streaming.
Control Panel Chain management (fork, status, setup, reset), baseline capture/verify, cleanup (cache/states/checkpoints), and export runs.
Experiment History Filterable table with outcome/attack/timeline charts, CSV download.

📡 Monitoring

Panel Description
Chain Monitor Real-time Anvil chain status, block numbers, and health checks.
Topology View Visual topology graph showing connected chains and bridge plugins.
Agent Reasoning LLM agent reasoning traces and tool call history.

📊 Analysis

Panel Description
Run Details Select a run to see its manifest, gas profile chart, and all 6 JSONL artifact streams in tabs.
Compare Runs Side-by-side comparison of run.jsonl, events.jsonl, storage_diffs.jsonl, and gas_profile.jsonl for determinism verification.
Log Browser Browse raw JSONL streams from any log directory.
Estimates Estimate RPC requests and cache size for an experiment before running it.

🩺 Diagnostics

Panel Description
Doctor Run environment validation checks (Foundry, Python, config, ports) with pass/fail metrics.
Evidence View attack evidence metadata, fidelity levels, and damage estimates.

🔧 Tools

Panel Description
Checkpoints View saved checkpoints by run ID.
Attack Extract Auto-generate an attack pack scaffold from an on-chain transaction hash.
Bundle Management Hash and verify publication bundle integrity.
Cache Management Inspect, fingerprint, verify, and clean the fork cache.
ABI Registry List, validate, and fetch contract ABIs from Etherscan/Sourcify.
Plugin Validation List and validate all discovered plugins.

Job Manager

When a CLI operation is executed via the dashboard (e.g., experiment run, fork, doctor), the job executes within a background thread featuring real-time output streaming. The sidebar displays the active job status:

  • Running — Auto-refreshes every 2 seconds with a toast notification
  • Success — Displays execution line count
  • Failed — Displays error traceback and return code
  • 🛑 Terminated — Manual stop

Active jobs may be terminated directly from their respective panels.

Theme

Toggle between light and dark mode in the sidebar.

Architecture

dashboard/
  app.py              # Streamlit entry point (sidebar nav, routing, theme)
  state.py            # Job manager (background CLI execution, output streaming)
  components.py       # Shared helpers (JSONL loaders, charts, global state)
  panels/
    overview.py       # Metrics, charts, recent runs, attack pack cards
    operations.py     # Run Experiment, Control Panel
    analysis.py       # History, Run Details, Compare Runs, Log Browser
    diagnostics.py    # Doctor, Estimates, Evidence
    tools.py          # Extract, Bundle, Cache, ABI, Plugin, Checkpoints