Skip to content

amazon-science/ammo / ai_cli_session/.codex/skills/ammo

Profile and optimize GPU kernels for vLLM inference on NVIDIA GPUs. Use when targeting a specific model, hardware, dtype, parallelism, and workload to improve latency.

FileKindSize
RUNTIME.mdmarkdown4.9 KB
SKILL.mdskill md18.5 KB
agents/ammo-auditor.mdmarkdown9.1 KB
agents/ammo-champion.mdmarkdown9.6 KB
agents/ammo-delegate.mdmarkdown3.2 KB
agents/ammo-implementer.mdmarkdown13.8 KB
agents/ammo-investigator.mdmarkdown4.0 KB
agents/ammo-report.mdmarkdown2.9 KB
agents/ammo-researcher.mdmarkdown10.3 KB
agents/ammo-resolver.mdmarkdown4.4 KB
agents/ammo-transcript-monitor.mdmarkdown7.8 KB
agents/openai.yamlexecutablescript313 B
data/ATTRIBUTION.mdmarkdown1.4 KB
data/gsm8k_full.jsonexecutablescript735.5 KB
data/gsm8k_subset.jsonexecutablescript116.8 KB
eval/EVAL-SKILL.mdexecutablescript21.8 KB
eval/agents/transcript_grader.mdexecutablescript18.0 KB
eval/causal/__init__.pyexecutablescript137 B
eval/causal/agents/causal_analyzer.mdexecutablescript10.5 KB
eval/causal/build_dag.pyexecutablescript21.6 KB
eval/causal/diff_versions.pyexecutablescript38.5 KB
eval/causal/extract_events.pyexecutablescript36.3 KB
eval/causal/generate_postmortem.pyexecutablescript17.0 KB
eval/causal/score_nodes.pyexecutablescript21.5 KB
eval/causal/templates/narrative_template.mdexecutablescript472 B
eval/causal/templates/viz_template.htmlexecutablescript9.5 KB
eval/causal/tests/__init__.pyexecutablescript151 B
eval/causal/tests/conftest.pyexecutablescript448 B
eval/causal/tests/fixtures/sample_session.jsonlexecutablescript10.4 KB
eval/causal/tests/fixtures/sample_session_data.jsonexecutablescript3.4 KB
eval/causal/tests/fixtures/sample_snapshot.jsonexecutablescript2.5 KB
eval/causal/tests/test_build_dag.pyexecutablescript2.7 KB
eval/causal/tests/test_diff_versions.pyexecutablescript13.5 KB
eval/causal/tests/test_extract_events.pyexecutablescript3.7 KB
eval/causal/tests/test_generate_postmortem.pyexecutablescript3.1 KB
eval/causal/tests/test_score_nodes.pyexecutablescript3.3 KB
eval/scripts/aggregate_versions.pyexecutablescript15.2 KB
eval/scripts/archive_run.pyexecutablescript9.1 KB
eval/scripts/codex_session.pyexecutablescript10.6 KB
eval/scripts/generate_dashboard.pyexecutablescript5.3 KB
eval/scripts/parse_artifacts.pyexecutablescript48.1 KB
eval/scripts/parse_session_logs.pyexecutablescript51.3 KB
eval/scripts/rescore_archived.pyexecutablescript5.5 KB
eval/scripts/score_campaign.pyexecutablescript43.8 KB
eval/scripts/snapshot_changes.pyexecutablescript11.1 KB
eval/scripts/verify_citations.pyexecutablescript8.8 KB
eval/tests/test_dashboard_bugs.pyexecutablescript8.8 KB
eval/tests/test_parse_session_logs.pyexecutablescript3.9 KB
eval/tests/test_parse_session_logs_round_inference.pyexecutablescript11.0 KB
eval/tests/test_score_campaign_diluted.pyexecutablescript9.4 KB
eval/viewer/dashboard_template.htmlexecutablescript15.1 KB
instrumentation/sitecustomize.pyexecutablescript3.6 KB
orchestration/audit-protocol.mdmarkdown9.3 KB
orchestration/debate-protocol.mdmarkdown11.2 KB
orchestration/integration-logic.mdmarkdown10.3 KB
orchestration/parallel-tracks.mdmarkdown8.9 KB
references/artifact-layout.mdexecutablescript22.4 KB
references/audit-invariants.mdmarkdown10.6 KB
references/champion-common-patterns.mdmarkdown3.4 KB
references/crossover-probing.mdexecutablescript4.7 KB
references/cudagraph-safety.mdmarkdown2.7 KB
references/debate-rules.mdmarkdown4.7 KB
references/debate-scoring-rubric.mdexecutablescript16.7 KB
references/e2e-delta-math.mdexecutablescript17.9 KB
references/e2e-latency-guide.mdexecutablescript9.6 KB
references/fusion-feasibility-heuristics.mdmarkdown5.6 KB
references/gpu-pool.mdexecutablescript5.4 KB
references/impl-track-rules.mdexecutablescript13.8 KB
references/nsys-profiling-guide.mdmarkdown9.8 KB
references/optimization-categories.mdexecutablescript11.0 KB
references/shutdown-protocol.mdexecutablescript3.1 KB
references/technology-selection.mdmarkdown5.0 KB
references/torch-compile-contract.mdmarkdown13.8 KB
references/validation-defaults.mdexecutablescript34.2 KB
references/workload-invocation.mdexecutablescript4.9 KB
references/writing-style.mdexecutablescript6.9 KB
scripts/ammo_state.pyexecutablescript142.0 KB
scripts/artifact_layout.jsonconfig16.3 KB
scripts/check_projection_accuracy.pyexecutablescript11.7 KB
scripts/create_evidence_template.pyexecutablescript9.7 KB
scripts/create_worktree_with_build.shexecutablescript10.2 KB
scripts/generate_validation_report.pyexecutablescript35.7 KB
scripts/gpu_reservation.pyexecutablescript27.1 KB
scripts/hook_cmd_classify.pyscript13.3 KB
scripts/mine_trace.pyscript29.4 KB
scripts/monitor_queue_ack.pyexecutablescript6.1 KB
scripts/ncu_sanity.shexecutablescript5.2 KB
scripts/ncu_sanity_driver.pyexecutablescript8.5 KB
scripts/new_target.pyexecutablescript22.0 KB
scripts/preflight_vllm_api.pyexecutablescript12.3 KB
scripts/reconcile_track_state.pyexecutablescript15.8 KB
scripts/remove_worktree_cleanup.shexecutablescript1.1 KB
scripts/resolve_codex_transcript.pyexecutablescript3.6 KB
scripts/run_vllm_bench_latency_sweep.pyexecutablescript249.6 KB
scripts/transcript_filter.pyexecutablescript38.4 KB
scripts/transitions.jsonexecutablescript1.5 KB
scripts/verify_validation_gates.pyexecutablescript88.8 KB
tests/agents/test-champion.mdexecutablescript20.4 KB
tests/agents/test-impl-champion.mdexecutablescript14.3 KB
tests/agents/test-implementer.mdexecutablescript15.8 KB
tests/agents/test-orchestrator.mdexecutablescript33.8 KB
tests/agents/test-researcher.mdexecutablescript21.0 KB
tests/agents/test-transcript-monitor.mdexecutablescript13.4 KB
tests/fixtures/diluted_pass/legacy_no_phase.golden.mdmarkdown1.1 KB
tests/fixtures/diluted_pass/legacy_no_phase.golden.summary.jsonconfig582 B
tests/fixtures/diluted_pass/legacy_no_phase.jsonconfig400 B
tests/fixtures/diluted_pass/legacy_scalar_phase.golden.mdmarkdown2.0 KB
tests/fixtures/diluted_pass/legacy_scalar_phase.golden.summary.jsonconfig1.0 KB
tests/fixtures/diluted_pass/legacy_scalar_phase.jsonconfig626 B
tests/fixtures/mining/real_campaign_bottleneck_analysis.mdmarkdown20.7 KB
tests/run_all.shexecutablescript1.6 KB
tests/scripts/test_transcript_filter.pyexecutablescript41.1 KB
tests/test_agent_runtime_contracts.pyexecutablescript1.8 KB
tests/test_ammo_state.pyexecutablescript71.7 KB
tests/test_artifact_layout_manifest.pyscript11.6 KB
tests/test_audit_started.pyscript18.2 KB
tests/test_correctness_comparator.pyscript12.6 KB
tests/test_diluted_pass.pyscript24.4 KB
tests/test_drift_compat.pyscript5.1 KB
tests/test_evidence_freshness.pyexecutablescript5.6 KB
tests/test_fail_closed.pyexecutablescript14.7 KB
tests/test_gpu_reservation.pyexecutablescript24.8 KB
tests/test_gpu_reservation_session_id.pyexecutablescript11.2 KB
tests/test_guidance_semantic_contract.pyscript24.9 KB
tests/test_hook_cmd_classify_parity.pyscript11.7 KB
tests/test_hook_semantics.pyexecutablescript95.3 KB
tests/test_mine_trace.pyscript24.2 KB
tests/test_mining_invalidated_schema.pyexecutablescript9.4 KB
tests/test_new_target_dp_ep.pyexecutablescript7.4 KB
tests/test_new_target_v2_scaffold.pyexecutablescript13.1 KB
tests/test_parse_artifacts.pyexecutablescript3.0 KB
tests/test_policy_convergence.pyscript797 B
tests/test_preflight_vllm_api.pyscript13.3 KB
tests/test_projection_accuracy_v2.pyexecutablescript4.1 KB
tests/test_reconcile_track_state.pyexecutablescript18.2 KB
tests/test_resolve_codex_transcript.pyexecutablescript3.1 KB
tests/test_state_schema_semantics.pyexecutablescript7.6 KB
tests/test_status_set_sync.pyexecutablescript9.1 KB
tests/test_sweep_baseline_from_arm.pyscript11.0 KB
tests/test_sweep_decode_capture.pyexecutablescript31.8 KB
tests/test_sweep_dp.pyexecutablescript45.4 KB
tests/test_sweep_fresh_cache.pyscript5.5 KB
tests/test_sweep_profiler_guard.pyscript22.6 KB
tests/test_sweep_real_prompts.pyscript20.1 KB
tests/test_sweep_refactor.pyexecutablescript37.6 KB
tests/test_sweep_round_slot.pyexecutablescript7.4 KB
tests/test_validation_report_phase_triage.pyexecutablescript10.0 KB
tests/test_validation_report_v2.pyexecutablescript6.2 KB
tests/test_verify_validation_gates.pyexecutablescript52.9 KB
tests/test_workload_matrix.pyexecutablescript19.3 KB

eval/viewer/dashboard_template.html

View on GitHub
<!DOCTYPE html>
<!-- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
     SPDX-License-Identifier: CC-BY-NC-4.0 -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AMMO Eval Dashboard</title>
<style>
  :root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --surface2: #0f3460;
    --accent: #e94560;
    --text: #eee;
    --text-muted: #aaa;
    --green: #4caf50;
    --red: #e94560;
    --yellow: #ffc107;
    --blue: #2196f3;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'SF Mono', 'Fira Code', monospace; background: var(--bg); color: var(--text); }
  header { background: var(--surface); padding: 16px 24px; border-bottom: 2px solid var(--accent); display: flex; justify-content: space-between; align-items: center; }
  header h1 { font-size: 18px; }
  header .meta { font-size: 12px; color: var(--text-muted); }
  .tabs { display: flex; background: var(--surface); border-bottom: 1px solid #333; }
  .tab { padding: 10px 20px; cursor: pointer; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; }
  .tab:hover { color: var(--text); }
  .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .content { padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
  .panel { display: none; }
  .panel.active { display: block; }
  table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
  th { background: var(--surface2); padding: 8px 12px; text-align: left; font-weight: 600; border-bottom: 1px solid #444; }
  td { padding: 8px 12px; border-bottom: 1px solid #222; }
  tr:hover td { background: rgba(233,69,96,0.05); }
  .badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
  .badge-green { background: rgba(76,175,80,0.2); color: var(--green); }
  .badge-red { background: rgba(233,69,96,0.2); color: var(--red); }
  .badge-yellow { background: rgba(255,193,7,0.2); color: var(--yellow); }
  .badge-blue { background: rgba(33,150,243,0.2); color: var(--blue); }
  .delta-pos { color: var(--green); }
  .delta-neg { color: var(--red); }
  .delta-zero { color: var(--text-muted); }
  .score-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--surface2); width: 80px; position: relative; vertical-align: middle; }
  .score-bar-fill { height: 100%; border-radius: 4px; }
  .chart-container { background: var(--surface); border-radius: 8px; padding: 20px; margin: 16px 0; }
  .chart-placeholder { text-align: center; padding: 40px; color: var(--text-muted); }
  h2 { font-size: 16px; margin: 20px 0 12px; color: var(--accent); }
  h3 { font-size: 14px; margin: 16px 0 8px; }
  .detail-toggle { cursor: pointer; color: var(--blue); font-size: 12px; }
  .detail-toggle:hover { text-decoration: underline; }
  .detail-content { display: none; margin: 8px 0 16px 16px; padding: 12px; background: var(--surface); border-radius: 4px; font-size: 12px; }
  .detail-content.open { display: block; }
  .stat { display: inline-block; margin-right: 16px; }
  .stat-value { font-size: 24px; font-weight: 700; }
  .stat-label { font-size: 11px; color: var(--text-muted); }
  .empty-state { text-align: center; padding: 60px; color: var(--text-muted); }
  .target-filter { margin: 12px 0; }
  .target-filter select { background: var(--surface); color: var(--text); border: 1px solid #444; padding: 6px 10px; border-radius: 4px; font-family: inherit; font-size: 12px; }
  canvas { max-width: 100%; }
</style>
</head>
<body>

<header>
  <h1>AMMO Eval Dashboard</h1>
  <div class="meta" id="headerMeta"></div>
</header>

<div class="tabs">
  <div class="tab active" data-tab="trend">Trend</div>
  <div class="tab" data-tab="leaderboard">Leaderboard</div>
  <div class="tab" data-tab="changes">Change Correlation</div>
  <div class="tab" data-tab="detail">Run Detail</div>
</div>

<div class="content">
  <!-- Trend View -->
  <div class="panel active" id="panel-trend">
    <h2>Performance Trend</h2>
    <div class="target-filter">
      <label>Target: </label>
      <select id="trendTargetSelect"></select>
    </div>
    <div class="chart-container" id="trendChartContainer">
      <canvas id="trendChart"></canvas>
      <noscript><div class="chart-placeholder">Enable JavaScript for charts</div></noscript>
    </div>
    <div id="trendTable"></div>
  </div>

  <!-- Leaderboard -->
  <div class="panel" id="panel-leaderboard">
    <h2>Per-Target Leaderboard</h2>
    <div id="leaderboardContent"></div>
  </div>

  <!-- Change Correlation -->
  <div class="panel" id="panel-changes">
    <h2>Change Correlation</h2>
    <p style="font-size:12px;color:var(--text-muted);margin-bottom:12px;">Shows how each skill revision changed the metrics vs the previous version.</p>
    <div id="changesContent"></div>
  </div>

  <!-- Run Detail -->
  <div class="panel" id="panel-detail">
    <h2>Run Details</h2>
    <div id="detailContent"></div>
  </div>
</div>

<script>
/*__EMBEDDED_DATA__*/

// ---- Tab Navigation ----
document.querySelectorAll('.tab').forEach(tab => {
  tab.addEventListener('click', () => {
    document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
    document.querySelectorAll('.panel').forEach(p => p.classList.remove('active'));
    tab.classList.add('active');
    document.getElementById('panel-' + tab.dataset.tab).classList.add('active');
  });
});

// ---- Helpers ----
const D = typeof EMBEDDED_DATA !== 'undefined' ? EMBEDDED_DATA : {versions:[], reference_targets:[], leaderboard:{}};
const versions = D.versions || [];
const targets = D.reference_targets || [];

function fmt(v, dec=2) { return v != null ? Number(v).toFixed(dec) : 'N/A'; }
function fmtPct(v) { return v != null ? (v*100).toFixed(1)+'%' : 'N/A'; }
function deltaClass(v) { return v > 0.001 ? 'delta-pos' : v < -0.001 ? 'delta-neg' : 'delta-zero'; }
function deltaStr(v, dec=2) { if (v == null) return '-'; const s = v > 0 ? '+' : ''; return s + v.toFixed(dec); }
function scoreColor(s) { return s >= 7 ? 'var(--green)' : s >= 5 ? 'var(--yellow)' : 'var(--red)'; }
function scoreBar(s) {
  if (s == null) return '';
  const pct = Math.min(100, s * 10);
  return `<span class="score-bar"><span class="score-bar-fill" style="width:${pct}%;background:${scoreColor(s)}"></span></span> ${fmt(s,1)}`;
}

// ---- Header ----
document.getElementById('headerMeta').textContent =
  `${versions.length} version(s) | ${targets.length} target(s) | Updated: ${D.last_updated || 'unknown'}`;

// ---- Trend View ----
const trendSelect = document.getElementById('trendTargetSelect');
targets.forEach(t => {
  const opt = document.createElement('option');
  opt.value = t.slug;
  opt.textContent = t.slug + (t.model_type ? ` (${t.model_type})` : '');
  trendSelect.appendChild(opt);
});

function renderTrend(targetSlug) {
  const rows = versions.map(v => {
    const s = (v.summary || {})[targetSlug] || {};
    return {
      id: v.version_id,
      desc: v.description || '',
      score: (s.overall_score||{}).mean,
      scoreStd: (s.overall_score||{}).stddev,
      speedup: (s.e2e_speedup||{}).mean,
      speedupStd: (s.e2e_speedup||{}).stddev,
      shipped: (s.shipped_count||{}).mean,
    };
  }).filter(r => r.score != null || r.speedup != null);

  // Table
  let html = '<table><tr><th>#</th><th>Version</th><th>Description</th><th>Score</th><th>E2E Speedup</th><th>Shipped</th></tr>';
  rows.forEach((r, i) => {
    html += `<tr>
      <td>${i+1}</td>
      <td style="font-size:11px">${r.id}</td>
      <td>${r.desc}</td>
      <td>${scoreBar(r.score)}${r.scoreStd ? ' <span style="color:var(--text-muted);font-size:11px">+/-'+fmt(r.scoreStd,2)+'</span>' : ''}</td>
      <td>${r.speedup ? fmt(r.speedup,3)+'x' : 'N/A'}${r.speedupStd ? ' <span style="color:var(--text-muted);font-size:11px">+/-'+fmt(r.speedupStd,3)+'</span>' : ''}</td>
      <td>${r.shipped != null ? fmt(r.shipped,1) : 'N/A'}</td>
    </tr>`;
  });
  html += '</table>';
  document.getElementById('trendTable').innerHTML = html;

  // Chart (if Chart.js loaded)
  renderTrendChart(rows);
}

function renderTrendChart(rows) {
  const canvas = document.getElementById('trendChart');
  if (!canvas || typeof Chart === 'undefined') return;

  if (window._trendChart) window._trendChart.destroy();
  const ctx = canvas.getContext('2d');
  window._trendChart = new Chart(ctx, {
    type: 'line',
    data: {
      labels: rows.map((r,i) => '#'+(i+1)),
      datasets: [{
        label: 'Overall Score',
        data: rows.map(r => r.score),
        borderColor: '#e94560',
        backgroundColor: 'rgba(233,69,96,0.1)',
        yAxisID: 'y',
        tension: 0.3,
      },{
        label: 'E2E Speedup',
        data: rows.map(r => r.speedup),
        borderColor: '#4caf50',
        backgroundColor: 'rgba(76,175,80,0.1)',
        yAxisID: 'y1',
        tension: 0.3,
      }]
    },
    options: {
      responsive: true,
      interaction: { mode: 'index', intersect: false },
      plugins: { tooltip: {
        callbacks: { title: (items) => rows[items[0].dataIndex]?.desc || '' }
      }},
      scales: {
        y: { type:'linear', display:true, position:'left', title:{display:true,text:'Score (0-10)'}, min:0, max:10 },
        y1: { type:'linear', display:true, position:'right', title:{display:true,text:'Speedup (x)'}, min:1.0, grid:{drawOnChartArea:false} },
      }
    }
  });
}

trendSelect.addEventListener('change', () => renderTrend(trendSelect.value));
if (targets.length > 0) renderTrend(targets[0].slug);

// ---- Leaderboard ----
function renderLeaderboard() {
  let html = '';
  targets.forEach(t => {
    const slug = t.slug;
    html += `<h3>${slug} <span class="badge badge-blue">${t.model_type||''}</span></h3>`;
    const rows = versions.map(v => {
      const s = (v.summary||{})[slug]||{};
      return {
        id: v.version_id, desc: v.description||'',
        score: (s.overall_score||{}).mean, scoreStd: (s.overall_score||{}).stddev,
        speedup: (s.e2e_speedup||{}).mean, speedupStd: (s.e2e_speedup||{}).stddev,
        shipped: (s.shipped_count||{}).mean,
      };
    }).filter(r => r.speedup != null).sort((a,b) => (b.speedup||0) - (a.speedup||0));

    if (rows.length === 0) { html += '<p style="color:var(--text-muted)">No data</p>'; return; }

    html += '<table><tr><th>Rank</th><th>Version</th><th>Description</th><th>Score</th><th>E2E Speedup</th><th>Shipped</th></tr>';
    rows.forEach((r, i) => {
      const isBest = i === 0;
      html += `<tr${isBest ? ' style="background:rgba(76,175,80,0.08)"' : ''}>
        <td>${isBest ? '<span class="badge badge-green">1st</span>' : i+1}</td>
        <td style="font-size:11px">${r.id}</td><td>${r.desc}</td>
        <td>${scoreBar(r.score)}</td>
        <td><strong>${fmt(r.speedup,3)}x</strong>${r.speedupStd ? ' +/-'+fmt(r.speedupStd,3) : ''}</td>
        <td>${fmt(r.shipped,1)}</td>
      </tr>`;
    });
    html += '</table>';
  });
  document.getElementById('leaderboardContent').innerHTML = html || '<div class="empty-state">No data yet</div>';
}
renderLeaderboard();

// ---- Change Correlation ----
function renderChanges() {
  let html = '';
  targets.forEach(t => {
    const slug = t.slug;
    html += `<h3>${slug}</h3>`;
    html += '<table><tr><th>Version</th><th>Description</th><th>Score Delta</th><th>Speedup Delta</th></tr>';
    versions.forEach(v => {
      const d = (v.deltas||{})[slug]||{};
      html += `<tr>
        <td style="font-size:11px">${v.version_id}</td><td>${v.description||''}</td>
        <td class="${deltaClass(d.delta_score)}">${deltaStr(d.delta_score,2)}</td>
        <td class="${deltaClass(d.delta_speedup)}">${deltaStr(d.delta_speedup,3)}x</td>
      </tr>`;
    });
    html += '</table>';
  });
  document.getElementById('changesContent').innerHTML = html || '<div class="empty-state">Need 2+ versions for deltas</div>';
}
renderChanges();

// ---- Run Detail ----
const DONUT_COLORS = ['#e94560','#4caf50','#ffc107','#2196f3','#aaa'];
function renderDetail() {
  let html = '';
  const donutQueue = [];
  versions.slice().reverse().forEach(v => {
    html += `<div style="margin-bottom:24px">`;
    html += `<h3>${v.version_id}</h3><p style="font-size:12px;color:var(--text-muted)">${v.description||''} | ${v.created_at||''}</p>`;
    const rd = v.run_details || {};
    Object.entries(rd).forEach(([target, runs]) => {
      html += `<h3 style="font-size:13px;margin-top:12px">${target}</h3>`;
      runs.forEach(run => {
        const sc = run.scorecard;
        const uid = `${v.version_id}_${target}_${run.run_name}`.replace(/[^a-zA-Z0-9]/g,'_');
        html += `<span class="detail-toggle" onclick="document.getElementById('${uid}').classList.toggle('open')">${run.run_name} — Score: ${fmt(sc.overall_score,1)}/10</span>`;
        html += `<div class="detail-content" id="${uid}">`;
        html += `<table><tr><th>Dimension</th><th>Score</th><th>Weight</th><th>Contribution</th></tr>`;
        Object.entries(sc.dimensions||{}).forEach(([dim, data]) => {
          html += `<tr><td>${dim.replace(/_/g,' ')}</td><td>${data.score != null ? fmt(data.score,1) : 'N/A'}</td><td>${fmtPct(data.weight)}</td><td>${fmt(data.weighted_contribution,2)}</td></tr>`;
        });
        html += '</table>';
        // Dimension donut chart canvas
        const donutId = uid + '_donut';
        html += `<canvas id="${donutId}" width="200" height="200" style="max-width:200px;max-height:200px;margin:8px 0"></canvas>`;
        donutQueue.push({ canvasId: donutId, dimensions: sc.dimensions || {} });
        // Raw metrics
        const rm = sc.raw_metrics || {};
        html += `<p style="margin-top:8px;font-size:11px">Speedup: ${fmt(rm.cumulative_speedup_vs_round1,3)}x | Shipped: ${rm.shipped_optimizations||0} | Rounds: ${rm.total_rounds||'?'} | Status: ${rm.campaign_status||'?'}</p>`;
        html += '</div>';
      });
    });
    html += '</div>';
  });
  document.getElementById('detailContent').innerHTML = html || '<div class="empty-state">No runs archived yet</div>';
  // Render donut charts after DOM update (graceful degradation if Chart.js not loaded)
  if (typeof Chart !== 'undefined') {
    donutQueue.forEach(item => {
      const canvas = document.getElementById(item.canvasId);
      if (!canvas) return;
      const dims = Object.entries(item.dimensions);
      if (dims.length === 0) return;
      const labels = dims.map(([d]) => d.replace(/_/g, ' '));
      const data = dims.map(([, d]) => d.weighted_contribution || 0);
      const colors = dims.map((_, i) => DONUT_COLORS[i % DONUT_COLORS.length]);
      new Chart(canvas.getContext('2d'), {
        type: 'doughnut',
        data: { labels, datasets: [{ data, backgroundColor: colors, borderWidth: 0 }] },
        options: {
          responsive: false,
          plugins: {
            legend: { display: true, position: 'right', labels: { color: '#eee', font: { size: 10 } } },
            tooltip: { callbacks: { label: (ctx) => `${ctx.label}: ${fmt(ctx.raw,2)} (score ${fmt(dims[ctx.dataIndex][1].score,1)})` } }
          }
        }
      });
    });
  }
}
renderDetail();
</script>

<!-- Optional: Chart.js CDN for trend charts (degrades gracefully if unavailable) -->
<script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js" defer
  onload="if(targets.length>0)renderTrend(trendSelect.value);renderDetail()"></script>

</body>
</html>
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall