lnd/simulation/refresh_dashboard.sh
Olaoluwa Osuntokun 16f93016de simulation/command-center: add paradigm-ceiling section and drift page
In this commit, we fold the two newest findings into the site without
touching the approved design. The settled result, exp-011's paradigm
ceiling, becomes a new findings section: three independent lineages
converge within 0.014 objective of one another on the same
interval-belief design, shown as a dot plot against the lnd and seed
baselines, with the two unrewarded inventions and the honest limits
(three samples, shared reflection-model culture) called out alongside.

The in-flight experiment gets its own page instead: drift.html, a
third nav tab covering the virtual clock and background traffic
mechanics, the pre-evolution baseline in which the champions' hard
bounds survive drift while lnd's decay still trails, and a ledger of
what each possible outcome of the live code_drift1 run would mean.
Keeping a verdictless experiment out of the findings page preserves
that page's register, and the new tab gives future in-flight chapters
a home.

The masthead, timeline, and live-run telemetry now reflect eleven
experiments with code_drift1 running, and refresh_dashboard.sh
bundles the new page so scheduled publishes carry it. Published as
Litbucket version 36.
2026-07-24 17:31:33 -07:00

35 lines
1.6 KiB
Bash
Executable file

#!/usr/bin/env bash
# Refresh the command-center dashboard from the latest GEPA run artifacts
# and republish to Litbucket. Deterministic part of the periodic refresh;
# a scheduled agent runs this and layers content edits on top.
#
# Usage: refresh_dashboard.sh <run-name> <scratch-dir>
set -euo pipefail
RUN_NAME="${1:?usage: refresh_dashboard.sh <run-name> <scratch-dir>}"
SCRATCH="${2:?usage: refresh_dashboard.sh <run-name> <scratch-dir>}"
REPO="$(cd "$(dirname "$0")/.." && pwd)"
SITE="$REPO/simulation/command-center"
# Export the latest run lineage into the site's data dir (local serve at
# :8777 picks this up on reload automatically).
python3 "$REPO/simulation/export_run.py" \
--run-dir "$SCRATCH/runs/$RUN_NAME" \
--output-dir "$SCRATCH/outputs/$RUN_NAME" \
--out "$SITE/data/run.json" \
--run-id "$RUN_NAME"
# Bundle and publish a new version to Litbucket.
BUNDLE="$(mktemp -d)/command-center.zip"
(cd "$SITE" && zip -qr "$BUNDLE" \
index.html findings.html drift.html style.css app.js data/)
export LITBUCKET_ENDPOINT="${LITBUCKET_ENDPOINT:-https://litbucket-api.staging.lightningcluster.com}"
litbucket --json publish "$BUNDLE" \
--name "LN Routing Evolution Command Center" \
--slug lnd-routing-command-center \
--team labs \
--description "GEPA-driven evolution of lnd pathfinding: the findings write-up (mainnet validation, paradigm-over-parameters, anatomy of the evolved routers, the paradigm ceiling), the drift chapter (virtual clock plus background traffic, exp-008), and live run telemetry with candidate lineage and the corpus explorer."
rm -f "$BUNDLE"