28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools
JavaScript agent-skillsai-toolsanthropicclaudeclaude-codecritical-thinkingdecision-makingfirst-principlesmental-modelsproblem-solvingsystems-thinking
feat(evals): SQLite store + self-contained HTML dashboard
Travis Boudreaux5fcfabce6101
diff --git a/evals/dashboard.html b/evals/dashboard.htmlnew file mode 100644index 0000000..5a2c932--- /dev/null+++ b/evals/dashboard.html@@ -0,0 +1,276 @@+<!DOCTYPE html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Thinking Skills — Eval Dashboard</title>+<style>+ :root{+ --bg:#0e1116; --panel:#161b22; --panel2:#1c232c; --border:#2b3340; --text:#e6edf3;+ --muted:#8b96a5; --green:#3fb950; --amber:#d29922; --red:#f85149; --blue:#58a6ff; --violet:#bc8cff;+ }+ *{box-sizing:border-box}+ body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}+ header{padding:24px 28px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#161b22,#0e1116)}+ h1{margin:0 0 4px;font-size:22px} h2{font-size:15px;margin:0 0 12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}+ .sub{color:var(--muted);font-size:13px}+ .wrap{max-width:1280px;margin:0 auto;padding:0 28px 80px}+ section{margin:34px 0}+ .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}+ .card{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px}+ .card .big{font-size:26px;font-weight:700} .card .lbl{color:var(--muted);font-size:12px;margin-top:2px}+ .card .note{font-size:11px;color:var(--muted);margin-top:6px}+ .panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:18px}+ .grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px} @media(max-width:900px){.grid2{grid-template-columns:1fr}}+ table{width:100%;border-collapse:collapse;font-size:13px}+ th,td{padding:7px 9px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}+ th{color:var(--muted);font-weight:600;cursor:pointer;user-select:none;position:sticky;top:0;background:var(--panel)}+ th:hover{color:var(--text)}+ td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}+ tr:hover td{background:#1b2230}+ .pill{display:inline-block;padding:1px 8px;border-radius:20px;font-size:11px;font-weight:600}+ .g{background:rgba(63,185,80,.15);color:var(--green)} .a{background:rgba(210,153,34,.15);color:var(--amber)}+ .r{background:rgba(248,81,73,.15);color:var(--red)} .m{background:rgba(248,81,73,.22);color:#ff8d85}+ .dim{color:var(--muted)}+ .bar{height:8px;border-radius:4px;background:#222b36;overflow:hidden;display:inline-block;width:80px;vertical-align:middle}+ .bar>i{display:block;height:100%}+ .controls{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}+ select,input{background:var(--panel2);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:6px 10px;font:inherit}+ .legend{display:flex;gap:16px;font-size:12px;color:var(--muted);flex-wrap:wrap}+ .rev{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px;margin-bottom:14px}+ .rev h3{margin:0 0 4px;font-size:15px} .rev .who{color:var(--blue);font-weight:600}+ .rev .quote{border-left:3px solid var(--violet);padding:6px 12px;margin:10px 0;color:#cdd6e0;font-style:italic;background:#12161d}+ .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}+ .tag{background:#202832;border:1px solid var(--border);border-radius:6px;padding:2px 8px;font-size:12px;color:#c7d0da}+ details{margin-top:8px} summary{cursor:pointer;color:var(--muted)}+ .matrix td{text-align:center} .matrix td.s{text-align:left;font-weight:600}+ .scatter-pt{cursor:pointer} .axislbl{fill:var(--muted);font-size:11px} .gridline{stroke:#222b36}+ .foot{color:var(--muted);font-size:12px;margin-top:40px;border-top:1px solid var(--border);padding-top:16px}+ code{background:#202832;padding:1px 5px;border-radius:4px;font-size:12px}+</style>+</head>+<body>+<header>+ <h1>Thinking Skills — Eval Dashboard</h1>+ <div class="sub" id="runmeta"></div>+</header>+<div class="wrap">++ <section>+ <h2>Headline</h2>+ <div class="cards" id="headline"></div>+ </section>++ <section class="grid2">+ <div class="panel">+ <h2>Rubric vs Behavioral lift (orthogonality)</h2>+ <div id="scatter"></div>+ <div class="legend">+ <span><b style="color:var(--green)">●</b> proven</span>+ <span><b style="color:var(--amber)">●</b> tie</span>+ <span><b style="color:var(--red)">●</b> regresses</span>+ <span class="dim">x = Tier 1 rubric /5 · y = length-controlled win-rate</span>+ </div>+ </div>+ <div class="panel">+ <h2>Tier 1 dimension averages</h2>+ <div id="dims"></div>+ <div class="legend"><span class="dim">Discrimination (boundaries / when-not-to-use) is the systemic weak point.</span></div>+ </div>+ </section>++ <section>+ <h2>Per-skill scorecard</h2>+ <div class="controls">+ <select id="fcat"></select>+ <select id="fverdict">+ <option value="">All verdicts</option><option>proven</option><option>unproven-tie</option><option>regresses</option>+ </select>+ <label><input type="checkbox" id="fmislead"> mislead-flagged only</label>+ <input id="fsearch" placeholder="filter skill…" style="flex:1;min-width:140px">+ <span class="dim" id="rowcount"></span>+ </div>+ <div class="panel" style="overflow:auto;max-height:620px"><table id="score"><thead></thead><tbody></tbody></table></div>+ <div class="legend" style="margin-top:8px"><span class="dim">n=3 problems/skill → per-skill is directional; trust the aggregate + patterns. ML = Tier 1 "would mislead an agent".</span></div>+ </section>++ <section class="grid2">+ <div class="panel">+ <h2>Tier 2 — Routing / invocation</h2>+ <div id="tier2"></div>+ </div>+ <div class="panel">+ <h2>Trigger vs instruction probe</h2>+ <div class="sub" style="margin-bottom:8px">Does the full SKILL.md beat a 2-sentence trigger?</div>+ <table id="trigger"><thead><tr><th>Skill</th><th class="num">skill>placebo</th><th class="num">skill>trigger</th><th>Read</th></tr></thead><tbody></tbody></table>+ <table id="haiku" style="margin-top:14px"><thead><tr><th>Capability curve</th><th class="num">haiku</th><th class="num">sonnet</th></tr></thead><tbody></tbody></table>+ </div>+ </section>++ <section>+ <h2>Adversarial review — holistic (3 frontier models)</h2>+ <div id="holistic"></div>+ </section>++ <section>+ <h2>Adversarial review — per-skill verdict matrix</h2>+ <div class="panel" style="overflow:auto"><table id="matrix" class="matrix"><thead></thead><tbody></tbody></table></div>+ <div class="legend" style="margin-top:8px"><span class="dim">⚠ = "would mislead an agent". All reviewed skills got "sharpen" unanimously.</span></div>+ </section>++ <section id="expsection">+ <h2>Lift experiments (worktree-tracked)</h2>+ <div class="sub" style="margin-bottom:10px">Every experiment — run, merged, discarded, or planned — is tracked in <code>experiments.db</code> with a unique id. Lifts are directional (n=3, underpowered) until re-run on the expanded set.</div>+ <div class="panel" style="overflow:auto"><table id="exp"><thead><tr><th>Experiment id</th><th>Hyp</th><th>Title</th><th>Status</th><th class="num">Baseline→Result</th><th class="num">Lift</th><th>Skills</th></tr></thead><tbody></tbody></table></div>+ </section>++ <div class="foot" id="foot"></div>+</div>++<script>+const DATA = {"run":{"id":"run1","created_at":"2026-05-31T11:23:19.481Z","solver":"claude-sonnet-4-6","judge":"gemini-3.1-pro-preview","router":"claude-sonnet-4-6"},"experiments":[{"id":"exp-cap-effort-1a38f2","hypothesis":"CAP-EFFORT","title":"Capability-substitution: effort sweep (bayesian on medical)","intervention":"capability-sweep","scope_skills":"bayesian","status":"evaluated","baseline_win_rate":null,"result_win_rate":0.6,"lift_pp":0,"n_problems":80,"merge_recommended":0,"branch":null,"notes":"slope of lift vs effort-rank = 0.00 pp/step → flat/no interaction. cells: low:+0pp, medium:+5pp, high:+5pp, max:+0pp. ISOLATION ON. CAVEAT: out-of-domain (medical), n=20/cell, none significant."},{"id":"exp-cap-model-d71454","hypothesis":"CAP-MODEL","title":"Capability-substitution: model sweep (bayesian on medical)","intervention":"capability-sweep","scope_skills":"bayesian","status":"evaluated","baseline_win_rate":null,"result_win_rate":0.25,"lift_pp":5,"n_problems":60,"merge_recommended":0,"branch":null,"notes":"slope of lift vs model-rank = 5.00 pp/step → COMPLEMENTS (helps more at high capability). cells: haiku:-15pp, sonnet:+0pp, opus:-5pp. ISOLATION ON. CAVEAT: generic Bayesian skill on out-of-domain medical MCQs; n=20/cell not significant. Directionally the guide HURT the weakest model (haiku -15pp) — opposite of substitution."},{"id":"exp-cap-model-indomain-46bf11","hypothesis":"CAP-MODEL-INDOMAIN","title":"In-domain capability ladder (skill vs placebo, 10 software/decision skills)","intervention":"capability-ladder-indomain","scope_skills":"thinking-second-order,thinking-inversion,thinking-opportunity-cost,thinking-theory-of-constraints,thinking-systems,thinking-pre-mortem,thinking-via-negativa,thinking-occams-razor,thinking-first-principles,thinking-debiasing","status":"evaluated","baseline_win_rate":null,"result_win_rate":0.633,"lift_pp":0,"n_problems":90,"merge_recommended":0,"branch":null,"notes":"IN-DOMAIN (software/decision), pairwise, fixed judge gemini-3.1-pro-preview, isolation ON. slope=0.0pp/step → flat/no interaction. tiers: haiku:67%(p=0.1), sonnet:57%(p=0.584), opus:67%(p=0.1). POOLED across tiers: 57W/33L (n=90) = 63% beats placebo, 95% CI [53,73], p=0.015 SIGNIFICANT. Flat slope = constant lift across capability (no substitution). Contrast: out-of-domain medical HURT haiku — that was a domain-mismatch artifact. Isolated 63% > contaminated 56% → contamination had suppressed measured lift."},{"id":"exp-eval-swe-five-whys-plus-f3bd","hypothesis":"EVAL-SWE-five-whys-plus","title":"five-whys-plus SWE-bench fault localization (NATIVE software debugging)","intervention":"per-skill-eval","scope_skills":"five-whys-plus","status":"evaluated","baseline_win_rate":0.822,"result_win_rate":0.889,"lift_pp":6.7,"n_problems":45,"merge_recommended":0,"branch":null,"notes":"ELEVATE-leaning (ns) NATIVE-DOMAIN. placebo 82% skill 89% Δ6.7pp p=0.248 n=45."},{"id":"exp-eval-swe-five-whys-plus-powered-27da","hypothesis":"EVAL-SWE-five-whys-plus-powered","title":"five-whys-plus SWE-bench localization POWERED n=150","intervention":"per-skill-eval","scope_skills":"five-whys-plus","status":"evaluated","baseline_win_rate":0.833,"result_win_rate":0.873,"lift_pp":4,"n_problems":150,"merge_recommended":1,"branch":null,"notes":"ELEVATE (SIGNIFICANT) NATIVE-DOMAIN POWERED. placebo 83% skill 87% Δ4pp p=0.041 disc=6 n=150."},{"id":"exp-eval-swe-occams-razor-6fe5","hypothesis":"EVAL-SWE-occams-razor","title":"occams-razor SWE-bench fault localization (NATIVE software debugging)","intervention":"per-skill-eval","scope_skills":"occams-razor","status":"evaluated","baseline_win_rate":0.844,"result_win_rate":0.889,"lift_pp":4.4,"n_problems":45,"merge_recommended":0,"branch":null,"notes":"ELEVATE-leaning (ns) NATIVE-DOMAIN. placebo 84% skill 89% Δ4.4pp p=0.617 n=45."},{"id":"exp-eval-swe-occams-razor-powered-827a","hypothesis":"EVAL-SWE-occams-razor-powered","title":"occams-razor SWE-bench localization POWERED n=150","intervention":"per-skill-eval","scope_skills":"occams-razor","status":"evaluated","baseline_win_rate":0.827,"result_win_rate":0.847,"lift_pp":2,"n_problems":150,"merge_recommended":0,"branch":null,"notes":"ELEVATE-leaning (ns) NATIVE-DOMAIN POWERED. placebo 83% skill 85% Δ2pp p=0.45 disc=7 n=150."},{"id":"exp-eval-swe-scientific-method-6c6c","hypothesis":"EVAL-SWE-scientific-method","title":"scientific-method SWE-bench fault localization (NATIVE software debugging)","intervention":"per-skill-eval","scope_skills":"scientific-method","status":"evaluated","baseline_win_rate":0.844,"result_win_rate":0.844,"lift_pp":0,"n_problems":45,"merge_recommended":0,"branch":null,"notes":"no effect NATIVE-DOMAIN. placebo 84% skill 84% Δ0pp p=1 n=45."},{"id":"exp-eval-swe-scimethod-v2-6e54","hypothesis":"EVAL-SWE-scientific-method-v2","title":"scientific-method REWORK (agent-native differential) SWE-bench n=150","intervention":"rework-then-eval","scope_skills":"scientific-method-v2","status":"evaluated","baseline_win_rate":0.84,"result_win_rate":0.893,"lift_pp":5.3,"n_problems":150,"merge_recommended":0,"branch":null,"notes":"ELEVATE-leaning (ns) Original scientific-method was 0pp; reworked to agent-native evidence-ranked differential. placebo 84% v2 89% Δ5.3pp p=0.061 n=150."},{"id":"exp-eval-swe-systems-e784","hypothesis":"EVAL-SWE-systems","title":"systems SWE-bench fault localization (NATIVE software debugging)","intervention":"per-skill-eval","scope_skills":"systems","status":"evaluated","baseline_win_rate":0.8,"result_win_rate":0.889,"lift_pp":8.9,"n_problems":45,"merge_recommended":0,"branch":null,"notes":"ELEVATE-leaning (ns) NATIVE-DOMAIN. placebo 80% skill 89% Δ8.9pp p=0.221 n=45."},{"id":"exp-eval-swe-systems-powered-fdfc","hypothesis":"EVAL-SWE-systems-powered","title":"systems SWE-bench localization (POWERED n=150)","intervention":"per-skill-eval","scope_skills":"systems","status":"evaluated","baseline_win_rate":0.8,"result_win_rate":0.853,"lift_pp":5.3,"n_problems":150,"merge_recommended":1,"branch":null,"notes":"ELEVATE (SIGNIFICANT) NATIVE-DOMAIN POWERED. placebo 80% skill 85% Δ5.3pp p=0.043 disc=12 n=150."},{"id":"exp-eval-bayesian-6cc36d","hypothesis":"EVAL-bayesian","title":"bayesian correctness (authored base-rate MCQ)","intervention":"per-skill-eval","scope_skills":"bayesian","status":"evaluated","baseline_win_rate":0.975,"result_win_rate":1,"lift_pp":2.5,"n_problems":40,"merge_recommended":0,"branch":null,"notes":"INCONCLUSIVE-CEILING. placebo 98% (no headroom), skill 100%, Δ2.5pp p=1 n=40. Frontier model already at ceiling on textbook items → skill redundant at this difficulty; re-test with harder embedded items (placebo target 30-70%). HAIKU re-run also 100% placebo=skill (0 discordant) → ceiling across the haiku→sonnet ladder; the human failure mode is solved at textbook difficulty. Real verdict needs adversarially-hard embedded items."},{"id":"exp-eval-debiasing-5ddb2d","hypothesis":"EVAL-debiasing","title":"debiasing correctness (authored bias MCQ)","intervention":"per-skill-eval","scope_skills":"debiasing","status":"evaluated","baseline_win_rate":1,"result_win_rate":0.975,"lift_pp":-2.5,"n_problems":40,"merge_recommended":0,"branch":null,"notes":"INCONCLUSIVE-CEILING. placebo 100% (no headroom), skill 98%, Δ-2.5pp p=1 n=40. Frontier model already at ceiling on textbook items → skill redundant at this difficulty; re-test with harder embedded items (placebo target 30-70%). HAIKU re-run also 100% placebo=skill (0 discordant) → ceiling across the haiku→sonnet ladder; the human failure mode is solved at textbook difficulty. Real verdict needs adversarially-hard embedded items."},{"id":"exp-eval-fermi-d708c6","hypothesis":"EVAL-fermi-estimation","title":"fermi-estimation correctness (jeggers/fermi, within-1-OOM)","intervention":"per-skill-eval","scope_skills":"fermi-estimation","status":"evaluated","baseline_win_rate":0.425,"result_win_rate":0.375,"lift_pp":-5,"n_problems":40,"merge_recommended":0,"branch":null,"notes":"KILL/REWORK. Isolated, judge-bias-free. skill 38% vs placebo 43% (Δ-5pp, McNemar p=0.724, n=40); trigger=43%=placebo. Full guide no better than placebo/trigger on objective Fermi estimation. Caveat: ns at n=40."},{"id":"exp-eval-occams-razor-9125ab","hypothesis":"EVAL-occams-razor","title":"occams-razor correctness (MedReason differential-dx, PROXY domain)","intervention":"per-skill-eval","scope_skills":"occams-razor","status":"evaluated","baseline_win_rate":0.4,"result_win_rate":0.45,"lift_pp":5,"n_problems":40,"merge_recommended":0,"branch":null,"notes":"ELEVATE-leaning (Δ+, ns). Isolated, headroom present (placebo 40%). PROXY domain (medical differential dx, not native software). placebo 40% skill 45% Δ5pp p=0.617 n=40."},{"id":"exp-eval-scientific-method-ad5105","hypothesis":"EVAL-scientific-method","title":"scientific-method correctness (MedReason differential-dx, PROXY domain)","intervention":"per-skill-eval","scope_skills":"scientific-method","status":"evaluated","baseline_win_rate":0.475,"result_win_rate":0.425,"lift_pp":-5,"n_problems":40,"merge_recommended":0,"branch":null,"notes":"KILL/REWORK (headroom, no lift). Isolated, headroom present (placebo 48%). PROXY domain (medical differential dx, not native software). placebo 48% skill 43% Δ-5pp p=0.617 n=40."},{"id":"exp-l1-0eadc0","hypothesis":"L1","title":"Bifurcation: conceptual skills → trigger cards","intervention":"conceptual-to-trigger","scope_skills":"occams-razor,five-whys-plus,inversion,systems","status":"superseded","baseline_win_rate":0.333,"result_win_rate":0.584,"lift_pp":25.1,"n_problems":12,"merge_recommended":1,"branch":"exp/exp-l1-0eadc0","notes":"clean +25pp, no per-skill regression; aligns with committee #1 (verbose conceptual files are net-negative). Merge-ready pending powered re-run. Branch exp/exp-l1-0eadc0 [SUPERSEDED by paired-design re-run]"},{"id":"exp-l1-e2c034","hypothesis":"L1","title":"Bifurcation: conceptual skills → trigger cards","intervention":"conceptual-to-trigger","scope_skills":"occams-razor,five-whys-plus,inversion,systems","status":"evaluated","baseline_win_rate":0.5,"result_win_rate":0.792,"lift_pp":29.2,"n_problems":12,"merge_recommended":1,"branch":"exp/exp-l1-e2c034","notes":"paired head-to-head, length-balanced, same-run. modified beats original 79% (n=12, 95% CI [56,98], p=0.046, SIGNIFICANT). commit 3b5bbfc23."},{"id":"exp-l2-cd88d6","hypothesis":"L2","title":"LLM-native rewrite of human-artifact skills","intervention":"llm-native-rewrite","scope_skills":"regret-minimization,debiasing,bayesian,circle-of-competence","status":"superseded","baseline_win_rate":0.292,"result_win_rate":0.417,"lift_pp":12.5,"n_problems":12,"merge_recommended":0,"branch":"exp/exp-l2-cd88d6","notes":"net +12.5pp but MIXED: debiasing +67 / regret +33 helped, bayesian -17 / circle -33 regressed. Merge only debiasing+regret rewrites after a powered run. [SUPERSEDED by paired-design re-run]"},{"id":"exp-l2-faa385","hypothesis":"L2","title":"LLM-native rewrite of human-artifact skills","intervention":"llm-native-rewrite","scope_skills":"regret-minimization,debiasing,bayesian,circle-of-competence","status":"evaluated","baseline_win_rate":0.5,"result_win_rate":0.667,"lift_pp":16.7,"n_problems":12,"merge_recommended":0,"branch":"exp/exp-l2-faa385","notes":"paired head-to-head, length-balanced, same-run. modified beats original 67% (n=12, 95% CI [41,93], p=0.289, directional). commit bf241fc0f."},{"id":"exp-stack-1864ae","hypothesis":"STACK","title":"Skill stacking: first-principles+second-order+red-team","intervention":"stack-3-skills","scope_skills":"first-principles,second-order,red-team","status":"evaluated","baseline_win_rate":0.5,"result_win_rate":0.778,"lift_pp":27.8,"n_problems":9,"merge_recommended":0,"branch":null,"notes":"length-controlled, isolation ON. stack beats placebo 78% (p=0.074), beats SINGLE skill 72% (p=0.221). directional synergy, n=9 underpowered."},{"id":"exp-apull-planned","hypothesis":"APULL","title":"Active-pull consult_mental_model tool","intervention":"architecture-active-pull","scope_skills":"","status":"planned","baseline_win_rate":null,"result_win_rate":null,"lift_pp":null,"n_problems":null,"merge_recommended":0,"branch":null,"notes":"planned — intervention not yet implemented / needs Class-B (distractor) eval"},{"id":"exp-l3-planned","hypothesis":"L3","title":"Procedural skills as executable checklists","intervention":"executable-checklist","scope_skills":"bayesian,debiasing,pre-mortem,opportunity-cost","status":"planned","baseline_win_rate":null,"result_win_rate":null,"lift_pp":null,"n_problems":null,"merge_recommended":0,"branch":null,"notes":"planned — intervention not yet implemented / needs Class-B (distractor) eval"},{"id":"exp-l4-planned","hypothesis":"L4","title":"Universal \"When NOT to use\" boundaries","intervention":"add-boundaries","scope_skills":"ALL","status":"planned","baseline_win_rate":null,"result_win_rate":null,"lift_pp":null,"n_problems":null,"merge_recommended":0,"branch":null,"notes":"planned — intervention not yet implemented / needs Class-B (distractor) eval"},{"id":"exp-l5-planned","hypothesis":"L5","title":"Consolidate 5 overlap clusters","intervention":"consolidate-clusters","scope_skills":"bayesian+probabilistic,inversion+pre-mortem,model-selection→router","status":"planned","baseline_win_rate":null,"result_win_rate":null,"lift_pp":null,"n_problems":null,"merge_recommended":0,"branch":null,"notes":"planned — intervention not yet implemented / needs Class-B (distractor) eval"},{"id":"exp-vgate-planned","hypothesis":"VGATE","title":"Post-skill verifier / reversion gate","intervention":"harness-verifier","scope_skills":"","status":"planned","baseline_win_rate":null,"result_win_rate":null,"lift_pp":null,"n_problems":null,"merge_recommended":0,"branch":null,"notes":"planned — intervention not yet implemented / needs Class-B (distractor) eval"}],"headline":{"tier0_strict":90,"tier0_loose":92,"tier1_avg":4.22,"tier1_mislead":6,"tier2_lenient":99,"tier2_strict":90,"tier3_mean":0.565,"tier3_proven":22,"tier3_total":36},"dims":{"fidelity":4.948717948717949,"applicability":4.333333333333333,"actionability":4,"discrimination":3.3846153846153846,"discoverability":4.410256410256411},"scorecard":[{"name":"thinking-second-order","short":"second-order","category":"Decision","is_meta":0,"strict":78,"loose":92,"rubric":4.2,"fidelity":4,"applicability":5,"actionability":5,"discrimination":3,"discoverability":4,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-socratic","short":"socratic","category":"Cognitive","is_meta":0,"strict":78,"loose":92,"rubric":3.8,"fidelity":5,"applicability":4,"actionability":4,"discrimination":2,"discoverability":4,"weakest":"discrimination","mislead":1,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-debiasing","short":"debiasing","category":"Cognitive","is_meta":0,"strict":72,"loose":83,"rubric":3,"fidelity":5,"applicability":3,"actionability":1,"discrimination":2,"discoverability":4,"weakest":"actionability","mislead":0,"win_rate":0,"lift":-3,"verdict":"regresses","vocab_only":0},{"name":"thinking-dual-process","short":"dual-process","category":"Cognitive","is_meta":0,"strict":89,"loose":100,"rubric":3.8,"fidelity":5,"applicability":2,"actionability":3,"discrimination":4,"discoverability":5,"weakest":"applicability","mislead":0,"win_rate":1,"lift":3,"verdict":"proven","vocab_only":0},{"name":"thinking-occams-razor","short":"occams-razor","category":"Decision","is_meta":0,"strict":89,"loose":100,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":4,"discrimination":5,"discoverability":5,"weakest":"actionability","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":1},{"name":"thinking-inversion","short":"inversion","category":"Decision","is_meta":0,"strict":83,"loose":92,"rubric":4.4,"fidelity":5,"applicability":5,"actionability":5,"discrimination":2,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":1},{"name":"thinking-leverage-points","short":"leverage-points","category":"Systems","is_meta":0,"strict":83,"loose":92,"rubric":4.2,"fidelity":5,"applicability":4,"actionability":5,"discrimination":3,"discoverability":4,"weakest":"discrimination","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":1},{"name":"thinking-map-territory","short":"map-territory","category":"Cognitive","is_meta":0,"strict":83,"loose":92,"rubric":4,"fidelity":5,"applicability":4,"actionability":4,"discrimination":2,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-model-combination","short":"model-combination","category":"Meta","is_meta":1,"strict":94,"loose":100,"rubric":4.4,"fidelity":5,"applicability":5,"actionability":3,"discrimination":5,"discoverability":4,"weakest":"actionability","mislead":0,"win_rate":null,"lift":null,"verdict":null,"vocab_only":null},{"name":"thinking-opportunity-cost","short":"opportunity-cost","category":"Decision","is_meta":0,"strict":94,"loose":100,"rubric":4.6,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":0},{"name":"thinking-kepner-tregoe","short":"kepner-tregoe","category":"Decision","is_meta":0,"strict":78,"loose":83,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":5,"discrimination":4,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":1},{"name":"thinking-model-router","short":"model-router","category":"Meta","is_meta":1,"strict":78,"loose":83,"rubric":3.4,"fidelity":4,"applicability":5,"actionability":2,"discrimination":2,"discoverability":4,"weakest":"actionability","mislead":0,"win_rate":null,"lift":null,"verdict":null,"vocab_only":null},{"name":"thinking-systems","short":"systems","category":"Systems","is_meta":0,"strict":78,"loose":83,"rubric":3.8,"fidelity":5,"applicability":4,"actionability":4,"discrimination":2,"discoverability":4,"weakest":"discrimination","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":0},{"name":"thinking-bayesian","short":"bayesian","category":"Cognitive","is_meta":0,"strict":89,"loose":92,"rubric":3.8,"fidelity":5,"applicability":4,"actionability":3,"discrimination":3,"discoverability":4,"weakest":"actionability","mislead":1,"win_rate":0.5,"lift":0,"verdict":"unproven-tie","vocab_only":0},{"name":"thinking-ooda","short":"ooda","category":"Systems","is_meta":0,"strict":89,"loose":92,"rubric":4.4,"fidelity":5,"applicability":4,"actionability":4,"discrimination":4,"discoverability":5,"weakest":"applicability","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-pre-mortem","short":"pre-mortem","category":"Decision","is_meta":0,"strict":89,"loose":92,"rubric":3.2,"fidelity":5,"applicability":2,"actionability":2,"discrimination":3,"discoverability":4,"weakest":"applicability","mislead":1,"win_rate":1,"lift":3,"verdict":"proven","vocab_only":0},{"name":"thinking-archetypes","short":"archetypes","category":"Systems","is_meta":0,"strict":83,"loose":83,"rubric":4.2,"fidelity":5,"applicability":4,"actionability":5,"discrimination":2,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-cynefin","short":"cynefin","category":"Systems","is_meta":0,"strict":100,"loose":100,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":5,"discrimination":5,"discoverability":4,"weakest":"discoverability","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-feedback-loops","short":"feedback-loops","category":"Systems","is_meta":0,"strict":83,"loose":83,"rubric":4.2,"fidelity":5,"applicability":5,"actionability":4,"discrimination":4,"discoverability":3,"weakest":"discoverability","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":1},{"name":"thinking-five-whys-plus","short":"five-whys-plus","category":"Systems","is_meta":0,"strict":100,"loose":100,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":5,"discrimination":4,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":0},{"name":"thinking-lindy-effect","short":"lindy-effect","category":"Innovation/Risk","is_meta":0,"strict":100,"loose":100,"rubric":4.6,"fidelity":5,"applicability":5,"actionability":4,"discrimination":5,"discoverability":4,"weakest":"actionability","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":2},{"name":"thinking-model-selection","short":"model-selection","category":"Meta","is_meta":1,"strict":100,"loose":100,"rubric":4.4,"fidelity":5,"applicability":5,"actionability":3,"discrimination":5,"discoverability":4,"weakest":"actionability","mislead":0,"win_rate":null,"lift":null,"verdict":null,"vocab_only":null},{"name":"thinking-probabilistic","short":"probabilistic","category":"Cognitive","is_meta":0,"strict":100,"loose":100,"rubric":4.6,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-reversibility","short":"reversibility","category":"Decision","is_meta":0,"strict":100,"loose":100,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":5,"discrimination":5,"discoverability":4,"weakest":"discoverability","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-thought-experiment","short":"thought-experiment","category":"Innovation/Risk","is_meta":0,"strict":100,"loose":100,"rubric":4.6,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":1,"lift":3,"verdict":"proven","vocab_only":0},{"name":"thinking-circle-of-competence","short":"circle-of-competence","category":"Cognitive","is_meta":0,"strict":94,"loose":92,"rubric":2.4,"fidelity":5,"applicability":1,"actionability":1,"discrimination":2,"discoverability":3,"weakest":"applicability","mislead":1,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-effectuation","short":"effectuation","category":"Product","is_meta":0,"strict":94,"loose":92,"rubric":4.2,"fidelity":5,"applicability":3,"actionability":3,"discrimination":5,"discoverability":5,"weakest":"actionability","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-first-principles","short":"first-principles","category":"Decision","is_meta":0,"strict":94,"loose":92,"rubric":3.8,"fidelity":5,"applicability":4,"actionability":2,"discrimination":3,"discoverability":5,"weakest":"actionability","mislead":1,"win_rate":1,"lift":3,"verdict":"proven","vocab_only":0},{"name":"thinking-jobs-to-be-done","short":"jobs-to-be-done","category":"Product","is_meta":0,"strict":94,"loose":92,"rubric":4.6,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.333,"lift":-1,"verdict":"regresses","vocab_only":0},{"name":"thinking-margin-of-safety","short":"margin-of-safety","category":"Innovation/Risk","is_meta":0,"strict":94,"loose":92,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":5,"discrimination":4,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.5,"lift":0,"verdict":"unproven-tie","vocab_only":0},{"name":"thinking-red-team","short":"red-team","category":"Innovation/Risk","is_meta":0,"strict":94,"loose":92,"rubric":4.6,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-regret-minimization","short":"regret-minimization","category":"Decision","is_meta":0,"strict":94,"loose":92,"rubric":2.8,"fidelity":5,"applicability":2,"actionability":1,"discrimination":4,"discoverability":2,"weakest":"actionability","mislead":1,"win_rate":0,"lift":-3,"verdict":"regresses","vocab_only":2},{"name":"thinking-scientific-method","short":"scientific-method","category":"Systems","is_meta":0,"strict":94,"loose":92,"rubric":4.4,"fidelity":5,"applicability":5,"actionability":5,"discrimination":2,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-steel-manning","short":"steel-manning","category":"Cognitive","is_meta":0,"strict":94,"loose":92,"rubric":4.6,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-theory-of-constraints","short":"theory-of-constraints","category":"Systems","is_meta":0,"strict":94,"loose":92,"rubric":4.4,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":4,"weakest":"discrimination","mislead":0,"win_rate":1,"lift":3,"verdict":"proven","vocab_only":0},{"name":"thinking-via-negativa","short":"via-negativa","category":"Innovation/Risk","is_meta":0,"strict":94,"loose":92,"rubric":4.2,"fidelity":5,"applicability":4,"actionability":4,"discrimination":3,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":1},{"name":"thinking-bounded-rationality","short":"bounded-rationality","category":"Cognitive","is_meta":0,"strict":89,"loose":83,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":5,"discrimination":5,"discoverability":4,"weakest":"discoverability","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-fermi-estimation","short":"fermi-estimation","category":"Innovation/Risk","is_meta":0,"strict":89,"loose":83,"rubric":4.8,"fidelity":5,"applicability":5,"actionability":5,"discrimination":4,"discoverability":5,"weakest":"discrimination","mislead":0,"win_rate":0.667,"lift":1,"verdict":"proven","vocab_only":0},{"name":"thinking-triz","short":"triz","category":"Innovation/Risk","is_meta":0,"strict":89,"loose":83,"rubric":4.4,"fidelity":5,"applicability":5,"actionability":5,"discrimination":3,"discoverability":4,"weakest":"discrimination","mislead":0,"win_rate":0,"lift":-3,"verdict":"regresses","vocab_only":1}],"tier2":{"lenient":99,"strict":90,"by_type":[{"type":"ambiguous","total":16,"correct":15,"acc":0.938},{"type":"negative","total":16,"correct":16,"acc":1},{"type":"positive","total":39,"correct":39,"acc":1}],"discrimination_errors":[{"case_id":"inversion-launch-plan","expected":"thinking-inversion","chosen":"thinking-pre-mortem"},{"case_id":"scientific-method-perf-investigation","expected":"thinking-scientific-method","chosen":"thinking-five-whys-plus"},{"case_id":"ambig-which-bug-cause","expected":"thinking-scientific-method","chosen":"thinking-five-whys-plus"},{"case_id":"ambig-confidence-in-estimate","expected":"thinking-probabilistic","chosen":"thinking-bayesian"},{"case_id":"ambig-unexpected-metric-drop","expected":"thinking-scientific-method","chosen":"thinking-five-whys-plus"},{"case_id":"ambig-overconfident-plan","expected":"thinking-debiasing","chosen":"thinking-pre-mortem"}],"misroutes":[{"case_id":"ambig-pick-database","type":"ambiguous","expected":"thinking-reversibility","chosen":"thinking-regret-minimization"}]},"trigger":[{"skill":"thinking-second-order","sp":0.333,"st":0},{"skill":"thinking-first-principles","sp":0.667,"st":0.333},{"skill":"thinking-occams-razor","sp":0.333,"st":0.333},{"skill":"thinking-theory-of-constraints","sp":1,"st":0.333},{"skill":"thinking-debiasing","sp":0.333,"st":0.667},{"skill":"thinking-opportunity-cost","sp":1,"st":0.667},{"skill":"thinking-pre-mortem","sp":1,"st":0.667},{"skill":"thinking-bayesian","sp":0.667,"st":1}],"haiku":[{"skill":"thinking-debiasing","haiku_wr":0.333,"sonnet_wr":0},{"skill":"thinking-first-principles","haiku_wr":0.333,"sonnet_wr":1},{"skill":"thinking-occams-razor","haiku_wr":1,"sonnet_wr":0.333},{"skill":"thinking-pre-mortem","haiku_wr":1,"sonnet_wr":1},{"skill":"thinking-second-order","haiku_wr":0.667,"sonnet_wr":0.667},{"skill":"thinking-systems","haiku_wr":0.333,"sonnet_wr":0.333}],"holistic":[{"model":"gpt-5.5-pro","overall":"The collection is useful as a prompting reference, but much less proven as an autonomous-agent capability layer. Its main failure is not bad mental-model summaries; it is that many skills are human coaching/workshop artifacts translated too literally, with weak stop conditions, weak non-use guidance, and too much risk of framework theater or prompt bloat.","contrarian":"The best product may not be 39 auto-invoked skills. For frontier coding agents, most leaf skills are likely prompt bloat; the durable value is a much smaller failure-mode checklist plus a router that mostly says 'do not use a mental model; gather evidence, run the test, inspect the code, and make the smallest safe change.'","eval_would_catch":false,"router":"A router is the right shape for 39 skills, but this router is a static hand-maintained taxonomy that will rot. It lacks confidence scores, precedence rules, a strong NONE path, disambiguation questions, token-cost awareness, and generated metadata from the leaf skills. At scale, domain x problem-type tables become brittle because real tasks span domains and often need either no skill or a short sequence; model-selection should be merged into the router, while model-combination should be an output mode rather than a separate destination.","weakest":[{"skill":"thinking-circle-of-competence","why":"Faithful for humans but badly adapted to LLMs: asking an agent about its track record, lived expertise, or competence boundary invites anthropomorphic hallucination instead of concrete tool-backed uncertainty management."},{"skill":"thinking-regret-minimization","why":"Mostly incoherent as an agent skill. 'Project to age 80' is human life-planning theater, not a useful coding-agent procedure unless rewritten as an interview protocol for the user's values and long-horizon tradeoffs."},{"skill":"thinking-pre-mortem","why":"Written like instructions for facilitating a team workshop, not for an autonomous agent executing a technical task. It risks causing the agent to ask for meetings or brainstorm theatrically instead of stress-testing its own plan."},{"skill":"thinking-debiasing","why":"A generic executive checklist with little software-specific worked application. It identifies bias names but does not show how an AI agent should change a concrete engineering decision or when the checklist is overkill."},{"skill":"thinking-bayesian","why":"Mathematically respectable but dangerous in agent contexts because it encourages fake numeric priors and posterior arithmetic on invented probabilities, producing false rigor in debugging or product decisions."},{"skill":"thinking-dual-process","why":"Anthropomorphizes System 1/System 2 concepts. LLMs do not have gut feelings, fatigue, or intuition in the Kahneman sense; the skill needs to map to actual agent behaviors like zero-shot guessing vs deliberate evidence gathering."},{"skill":"thinking-first-principles","why":"Leans on SpaceX-style mythology and under-warns against reinventing standard secure conventions. In software, 'challenge assumptions' can become rolling custom auth, custom crypto, or bespoke infrastructure for no gain."},{"skill":"thinking-model-router","why":"Conceptually important but thin: no worked routing example, no confidence/none path strong enough, no maintenance mechanism, and too much overlap with model-selection and model-combination."}],"merges":[{"skills":["thinking-model-router","thinking-model-selection"],"why":"These are two versions of the same dispatch problem. Keep one router with confidence, NONE, and COMBINE outcomes; delete or fold model-selection into it."},{"skills":["thinking-bayesian","thinking-probabilistic"],"why":"Both cover uncertainty, confidence, calibration, and belief updates. Split only if Bayesian is explicitly about base-rate/likelihood-ratio updates and probabilistic is about forecasting ranges; otherwise merge."},{"skills":["thinking-inversion","thinking-pre-mortem","thinking-red-team"],"why":"All are attack-the-plan/failure-path lenses. They differ by stance, but natural prompts will not reliably distinguish them; better as one adversarial-risk skill with modes."},{"skills":["thinking-systems","thinking-feedback-loops","thinking-leverage-points","thinking-archetypes"],"why":"These are a systems-dynamics family. Keeping all four is defensible only if descriptions and router rules sharply separate map-the-system, identify loops, choose interventions, and diagnose recurring archetypes."},{"skills":["thinking-five-whys-plus","thinking-scientific-method","thinking-kepner-tregoe"],"why":"The root-cause cluster is over-fragmented. Agents need one diagnosis router: simple causal chain, falsifiable hypothesis testing, or multi-factor KT analysis."},{"skills":["thinking-occams-razor","thinking-via-negativa"],"why":"Both often push toward simplification/subtraction. They should at least cross-reference and share a Chesterton's Fence guardrail to avoid deleting necessary complexity."}],"missing":["Goodhart's Law / Campbell's Law for metric-driven incentives, dashboards, OKRs, eval gaming, and agent reward hacking","Chesterton's Fence as a first-class guardrail before via-negativa, simplification, or refactoring","Expected value / decision theory with value of information, not just Bayesian belief updating","Reference class forecasting / outside view as a concrete antidote to planning fallacy","Causal inference and counterfactual reasoning for experiments, A/B tests, and observational metrics","Threat modeling such as STRIDE or attack trees; generic red-team is too broad for security-sensitive agent work","Normal Accident Theory / Swiss cheese model for socio-technical incidents and complex-system safety","Principal-agent / incentive design for org, sales, review-process, and marketplace failures","Cost of delay / WSJF for engineering prioritization under time pressure","Evidence ladder for agents: when to inspect files, run tests, search docs, ask the user, or stop"],"improvements":[{"idea":"Rewrite every skill as an agent-executable protocol: inputs, evidence required, tool-use guidance, stop conditions, when NOT to use, neighboring-skill disambiguation, and expected output shape.","impact":"high","effort":"high"},{"idea":"Collapse or sharply disambiguate the root-cause, systems, attack-the-plan, belief-update, and meta clusters; update frontmatter with trigger, exclude, and neighbor metadata.","impact":"high","effort":"med"},{"idea":"Replace human-centric examples with fully worked software/product/agent examples showing how the skill changes the decision, not just how to fill a template.","impact":"high","effort":"med"},{"idea":"Add an overuse/harm eval suite and adversarial controls before treating behavioral lift as a quality gate.","impact":"high","effort":"med"},{"idea":"Add explicit anti-hallucination guards for quantitative skills: no invented priors, no fake exact estimates, cite measurement or use qualitative likelihood bands.","impact":"high","effort":"low"},{"idea":"Make the router generate NONE, SINGLE, or COMBINE with confidence and a one-sentence reason; default to NONE for routine implementation tasks.","impact":"med","effort":"med"}],"eval_flaws":["Tier 3 is too small: three problems per skill gives noisy, non-actionable per-skill verdicts, yet the language around 'proven' and 'unproven' sounds stronger than the statistics support.","The behavioral problems are synthetic and skill-targeted by the same worldview that wrote the use-case research, so the eval risks measuring dataset alignment rather than real-world lift.","There is no overuse/harm suite. A skill can win on tailored positive cases while degrading routine coding tasks, standard-library decisions, security-sensitive work, or cases where no framework should be invoked.","Tier 2 is artificial: giving a model all 39 descriptions and asking for one label is not the same as Claude Code's real auto-invocation behavior in partial, messy context.","Lenient routing accuracy hides the exact redundancy problem the eval claims to measure; accepting sibling skills makes overlap look harmless.","The judge is still an LLM judging prose. Cross-family helps, but it does not eliminate preference for verbosity, confident structure, or familiar framework moves.","No adversarial controls: wrong skill, shuffled skill, misleading skill, irrelevant skill, and concise trigger-only baselines are necessary to separate true reasoning lift from context/structure/placebo effects.","No cost accounting. A skill that improves answer quality by 2% while adding 3k tokens and doubling latency may be net negative for an agent.","Tier 1 fidelity is not source-grounded enough; a judge model can bless polished pop-science distortions unless claims are checked against references or expert-written rubrics."]},{"model":"gemini-3.1-pro-preview","overall":"The collection acts as highly articulate 'consultantware': it provides polished frameworks that look impressive but risk severely encumbering an AI agent's execution agility. While the models represent sound human reasoning, forcing frontier LLMs to output 12-point checklists or 5-level causality chains frequently causes them to hallucinate evidence to fill the template. Without aggressive boundaries on 'when NOT to use', this plugin will actively degrade agent performance by applying heavy philosophical machinery to trivial engineering tasks.","contrarian":"The entire premise of teaching frontier models 'mental models' via 2000-word markdown files is fundamentally backwards. Claude 3.5 Sonnet already possesses these concepts in its weights. By forcing the model to read a rigid framework document, you aren't teaching it how to think; you are distracting it from the actual task by forcing it to play a roleplaying game of 'consultant filling out a checklist'. The most effective version of this plugin wouldn't use markdown documents at all—it would just be 39 highly-optimized, 2-sentence prompt injections.","eval_would_catch":false,"router":"The static markdown matrix design of `thinking-model-router` is an anti-pattern for autonomous agents. It introduces a mandatory multi-turn latency tax (Agent asks router -> Router responds -> Agent loads actual skill). At scale, this breaks. Routing should be implicit, handled by vector search over highly-tuned, situational description triggers (as hinted in section F), not by forcing the agent to read a map of 38 tools to decide what to do.","weakest":[{"skill":"thinking-map-territory","why":"Fundamentally incompatible with how LLMs operate. An agent only has access to its context window (the map); asking it to 'distrust the representation and verify against reality' is an impossible instruction that will lead to circular reasoning."},{"skill":"thinking-debiasing","why":"The 12-point checklist is far too verbose and abstract. It lacks concrete software engineering triggers, guaranteeing the agent will waste tokens generating generic corporate filler to satisfy the template rather than making a better technical decision."},{"skill":"thinking-five-whys-plus","why":"Forces deep causal chains even for shallow problems. For an autonomous coding agent, a missing semicolon does not need a systemic sociological post-mortem; applying this skill to routine bugs will paralyze the agent in endless root-cause speculation."}],"merges":[{"skills":["thinking-inversion","thinking-pre-mortem","thinking-red-team"],"why":"All three serve the exact same function for an agent: 'generate failure scenarios and mitigate them'. The nuanced psychological differences between 'working backward' and 'adversarial attack' are lost on an LLM executing a task. Merge into `thinking-failure-analysis`."},{"skills":["thinking-model-router","thinking-model-selection","thinking-model-combination"],"why":"Triple-layered meta-overhead. Agents do not need to be taught *how* to select a model using a model; they need clear invocation triggers. Merge into a single dispatch prompt or drop entirely."},{"skills":["thinking-bayesian","thinking-probabilistic"],"why":"Operationally identical for an LLM generating text. Both mean 'update your confidence based on new evidence'. The distinction is pedantic and wastes context."}],"missing":["thinking-divide-and-conquer (Bisection): The most practical engineering model. Halving search spaces systematically (binary search/git bisect logic) for debugging.","thinking-technical-debt: A framework for calculating the tradeoff between shipping speed and maintenance burden, critical for autonomous agents deciding whether to hack a fix or refactor.","thinking-cap-theorem-tradeoffs: Specific engineering tradeoff analysis (Consistency vs Availability vs Partition Tolerance) mapped to general architectural decisions."],"improvements":[{"idea":"Add mandatory 'DO NOT USE WHEN' anti-triggers to the YAML descriptions to prevent false-positive invocations on routine coding tasks.","impact":"high","effort":"low"},{"idea":"Condense the markdown templates. Remove the philosophical background and attribution quotes; reduce to just the situational trigger and the specific prompt instructions. Save context window.","impact":"high","effort":"med"},{"idea":"Merge the 5 overlap clusters identified in the research into single, highly robust skills to drastically improve semantic routing accuracy.","impact":"med","effort":"high"}],"eval_flaws":["Tier 3 relies on an LLM judge evaluating the *reasoning output* rather than the *execution outcome*. LLMs inherently suffer from verbosity bias; the judge will likely rate a long, structured 'Second-Order Thinking' output higher than a concise, correct answer, even if the structured output hallucinated details or wasted tokens.","No measurement of token cost or latency degradation introduced by loading and following these massive markdown templates."]},{"model":"deepseek-v4-pro","overall":"This is a thoughtfully curated collection with genuinely well-written SKILL.md files — the source-material fidelity is high and the template discipline is strong. But it was designed for human readers and ported to agents without adapting for how LLMs actually fail (they don't have System 1 'gut feelings,' they have sycophancy, recency bias, and context-window blind spots). The quality signal is structural lint measuring header conformance, not reasoning improvement — a skill can score 100% and still be reasoning-neutral. The collection earns its place, but needs consolidation of 5 overlap clusters, universal 'when NOT to use' boundaries, and a behavioral eval that controls for the massive confound between skill substance and extra context length.","contrarian":"The behavioral eval is well-designed but measures the wrong intervention. The treatment condition injects a full SKILL.md (2000-4000 words) — testing 'does reading a textbook chapter help?' not 'does the mental model help?' For skills the model already knows from pretraining (first-principles, Occam's razor, Socratic method, thought experiments), the verbose guide is unnecessary noise — the model already has the reasoning pattern. The right test is a third condition: give the solver ONLY the skill name and a 2-sentence trigger summary. Skills where the trigger alone matches the full-guide lift are cases where the SKILL.md is dead weight — the collection should ship those as lightweight triggers, not textbooks. Skills where the full guide beats the trigger are the ones where the procedural content actually adds novel capability beyond pretraining. This distinction — trigger vs. instruction — is the difference between a skill collection that's genuinely useful to an agent and one that's mostly ceremonial.","eval_would_catch":true,"router":"The domain×problem-type dispatch matrix is the right architecture for N=39, but the implementation has three structural problems. First, it's a static lookup table pretending to be a skill — it doesn't teach a transferable meta-skill, it teaches 'consult this specific markdown table I maintain.' At N=100, manual maintenance breaks. Second, it conflates two different documents with different optimization targets: a human-browsable reference (should be conceptual, organized by problem families) and an agent-facing dispatch mechanism (should be a structured taxonomy with high-precision trigger phrases). Smashing them together gives you neither. Third, it has no feedback loop — routing mistakes are never captured or used to improve dispatch weights. A self-correcting router that tracks which routes led to good outcomes would compound in value. The router is worth keeping but needs to evolve from a static table to a lightweight classifier with trigger-phrase optimization and an error-correction feedback path.","weakest":[{"skill":"thinking-dual-process","why":"The System 1/System 2 framework doesn't map to LLM cognition. LLMs don't have 'gut feelings,' 'intuition,' or an 'automatic mode' in the human sense — they have token probabilities. Asking an agent to 'trust its intuition' or 'recognize when System 1 is driving' is anthropomorphizing noise. The skill is well-written for humans but actively misleading for an AI agent that doesn't have the cognitive architecture it describes."},{"skill":"thinking-model-selection","why":"A 3000-word way of saying 'don't use the same hammer for every nail.' It's 80% redundant with thinking-model-router (which already contains the domain×problem-type dispatch matrix) and ~40% redundant with thinking-cynefin (which already classifies problems by domain to match approach). Its weighted-scoring selection criteria table (with explicit percentage weights) is ceremony without payoff — an agent doesn't need a 5-criterion weighted matrix to decide which framework to apply. The router does the same job more concretely."},{"skill":"thinking-inversion","why":"Functionally identical to thinking-pre-mortem for an AI agent. Both produce: (1) enumerate failure modes, (2) prioritize by severity, (3) convert to mitigations. The distinction — 'list ways to guarantee failure' vs 'assume failure happened, explain why' — is a human facilitation technique (pre-mortem's 'prospective hindsight' framing increases participation in groups), not a distinct analytical method. Inversion's own SKILL.md admits the overlap in a section titled 'Combining with Pre-Mortem' and includes the question 'If this fails spectacularly, what will the postmortem say?' — which is literally the pre-mortem's framing."},{"skill":"thinking-thought-experiment","why":"Teaches something LLMs already do fluently as a baseline capability. 'What-if' reasoning — imagining a hypothetical, pushing parameters to extremes, tracing counterfactuals — is one of the things transformer models do best natively. The SKILL.md adds classification taxonomies ('hypothetical scenario,' 'extreme case,' 'counterfactual') around a capability the model already has. It's unlikely to show behavioral lift because the baseline solver already does competent thought experiments without the guide. This is a skill that names and structures rather than corrects a failure mode."},{"skill":"thinking-kepner-tregoe","why":"Over-engineered for agent use. The multi-phase PA/DA/PPA/RA structure with weighted-scoring matrices and explicit percentage weights is the right tool for a human vendor-selection board that needs defensible documentation — it's the wrong tool for an AI agent trying to deliver a crisp, useful answer. The skill is ~375 lines and reads like a corporate decision-making manual. It overlaps with five-whys-plus on root cause (its own description says 'beyond 5 Whys') and with debiasing on structured evaluation. A lighter-weight 'structured decision analysis' skill covering the essential pattern (separate facts from speculation, weight criteria explicitly, check for confirmation bias) would have higher agent utility at lower context cost."}],"merges":[{"skills":["thinking-inversion","thinking-pre-mortem"],"why":"Both produce the same output (enumerated failure modes → mitigations) via indistinguishable processes for an LLM. Merge into a single skill — keep pre-mortem's 'prospective hindsight' framing as the primary technique (it has stronger research backing for risk identification) and fold inversion's 'anti-goal checklist' pattern in as a complementary variant. One skill serving one job: 'surface failure paths the optimistic plan is hiding.'"},{"skills":["thinking-bayesian","thinking-probabilistic"],"why":"Bayesian updating IS the mechanism for probabilistic reasoning. The probabilistic skill is essentially 'express beliefs as probabilities and calibrate' while Bayesian is 'update those probabilities with evidence' — you can't do one without the other. For an agent, these are a single mental move. A merged skill covering base-rate anchoring → probability expression → evidence update → calibration tracking would be more coherent and eliminate a router ambiguity."},{"skills":["thinking-model-selection","thinking-model-router"],"why":"Model-selection is doing 80% of what the router does but less well. The router already contains the domain×problem-type dispatch matrix that model-selection is trying to build. Merge model-selection's content (particularly its 'model failure modes' and 'when to abandon a model' sections, which are genuinely useful and missing from the router) into the router and eliminate model-selection as a standalone skill."}],"missing":["Cost of delay / decision velocity: a framework for calculating when the cost of further deliberation exceeds the expected value of a better decision. Reversibility touches on 'decide faster for Type 2' but never quantifies the tradeoff. An agent that can say 'waiting another day costs $X in lost opportunity; your uncertainty reduction from more research is worth at most $Y' would prevent the single most common agent failure mode — analysis paralysis disguised as thoroughness.","Stakeholder mapping / organizational power analysis: the collection assumes problems are solved by better reasoning, not by navigating organizational reality. No skill addresses 'what's the right technical answer?' vs 'what will actually happen given who holds power, budget, and veto rights?' — a critical gap for any agent giving advice in real organizations.","Information foraging / when to stop researching: bounded rationality touches on satisficing but doesn't give a concrete stopping heuristic for the pattern 'I could learn more, but should I?' An agent needs a framework for the marginal value of information vs the cost of delay — distinct from both bounded rationality and opportunity cost.","Assumption articulation / surfacing implicit premises: first principles challenges assumptions but doesn't teach the skill of making them explicit in the first place. The most common engineering reasoning error is acting on unstated assumptions ('of course the API will be available,' 'obviously the data fits in memory'). A dedicated skill for 'before you analyze, write down every assumption you're making' would have high agent utility.","Escalation / when to pull in more resources or defer: no skill addresses when an agent (or the human it's advising) should stop trying to solve something solo. For agentic work this is critical — an agent stubbornly tackling a problem it's ill-equipped for wastes compute and trust."],"improvements":[{"idea":"Add explicit 'when NOT to use' boundaries and anti-patterns to every single skill (only ~12/39 currently have them). For an autonomous agent that auto-loads skills, a skill without boundaries is a hazard — it invites over-application. This is the single highest-leverage content fix.","impact":"high","effort":"medium"},{"idea":"Rewrite all 39 descriptions to be situation-named and ≤200 characters. The current descriptions describe the framework ('apply Donella Meadows' feedback loop framework') rather than the trigger ('when a system runs away, stalls, or oscillates despite effort'). Situation-named descriptions are what make skills fire at the right moment — this is the difference between a skill that triggers correctly and one that never fires (or fires everywhere).","impact":"high","effort":"low"},{"idea":"Consolidate the 5 overlap clusters into sharper, fewer skills. The root-cause cluster (five-whys-plus / scientific-method / kepner-tregoe) and the attack-the-plan cluster (inversion / pre-mortem / red-team) are the highest-priority merges. Each cluster should produce one definitive skill with clear internal differentiation between the variants, not three competing skills with near-identical descriptions.","impact":"high","effort":"high"},{"idea":"Add a placebo-length control condition to the Tier 3 behavioral eval. Inject a neutral filler text of equivalent word count into the baseline condition so that any measured lift can be attributed to the skill's reasoning content rather than to having more tokens to think with. This is a one-line code change with massive validity implications.","impact":"high","effort":"low"},{"idea":"Develop a companion set of 5-8 skills targeting LLM-specific failure modes (context-window recency bias, sycophancy toward user framing, inability to hold multiple calibrated hypotheses, over-reliance on authoritative-sounding text, failure to express calibrated uncertainty) alongside the current human-bias-focused skills. The collection addresses how humans fail; it doesn't address how LLMs fail — and those are different failure modes.","impact":"high","effort":"high"}],"eval_flaws":["Tier 3 confounds skill substance with context length. The treatment condition gets the full SKILL.md injected (often 2000–4000 words of additional context), while baseline gets nothing. A skill showing 'lift' could just be benefiting from more tokens to think with — there's no placebo-length control (e.g., baseline + filler text of equivalent length). This is the single largest threat to the behavioral eval's validity and it goes unaddressed.","Three problems per skill (108 problems / 36 leaf skills) is statistically insufficient for per-skill verdicts. The binomial noise on 3 trials is enormous — a genuinely useful skill can go 0-3 (~12.5% chance even at 50% true win-rate) and get flagged 'unproven.' The aggregate mean has power, but individual 'unproven' flags are unreliable at this sample size.","'Acceptable' sets in Tier 2 routing mask the real discrimination problem. If five-whys-plus, scientific-method, and kepner-tregoe are all 'acceptable' answers to an incident-analysis prompt, the router reports 100% accuracy while the practical experience is 'whichever fires first' — which is noise. The metric should separately track unique-correct vs acceptable-any hits and penalize the latter.","Tier 1's 'would mislead an agent' flag is judged by an LLM that shares the same blind spots as the agent. There's no ground-truth check — no Tier 3 behavioral evidence that skills flagged 'misleading' actually cause worse decisions. The judge's assessment is self-referential.","No real-world instrumentation tier. The most important metric — 'do users actually invoke these skills and report value?' — is entirely absent. An anonymous telemetry Tier 4 tracking invocation frequency, session outcomes, and explicit user feedback in actual Claude Code usage would be the highest-signal tier of all.","Tier 3 is biased toward 'gotcha' problems where naive reasoning falls into a named failure mode. This measures whether a skill prevents a specific mistake, but doesn't measure whether it adds analytical depth in ambiguous situations where there isn't an obvious trap. Skills like Cynefin, leverage-points, and model-combination may add genuine value without 'beating a naive strawman' — and Tier 3 would underrate them."]}],"perskill_models":["deepseek-v4-pro","gemini-3.1-pro-preview","gpt-5.5-pro"],"perskill_skills":["thinking-bayesian","thinking-circle-of-competence","thinking-debiasing","thinking-first-principles","thinking-model-router","thinking-pre-mortem","thinking-regret-minimization","thinking-systems"],"perskill_cells":{"thinking-bayesian|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-bayesian|gpt-5.5-pro":{"verdict":"sharpen","mislead":true},"thinking-circle-of-competence|deepseek-v4-pro":{"verdict":"sharpen","mislead":true},"thinking-circle-of-competence|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-circle-of-competence|gpt-5.5-pro":{"verdict":"sharpen","mislead":true},"thinking-debiasing|deepseek-v4-pro":{"verdict":"sharpen","mislead":true},"thinking-debiasing|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-debiasing|gpt-5.5-pro":{"verdict":"sharpen","mislead":true},"thinking-first-principles|deepseek-v4-pro":{"verdict":"sharpen","mislead":true},"thinking-first-principles|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-first-principles|gpt-5.5-pro":{"verdict":"sharpen","mislead":true},"thinking-model-router|deepseek-v4-pro":{"verdict":"sharpen","mislead":true},"thinking-model-router|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-model-router|gpt-5.5-pro":{"verdict":"sharpen","mislead":true},"thinking-pre-mortem|deepseek-v4-pro":{"verdict":"sharpen","mislead":true},"thinking-pre-mortem|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-pre-mortem|gpt-5.5-pro":{"verdict":"sharpen","mislead":true},"thinking-regret-minimization|deepseek-v4-pro":{"verdict":"sharpen","mislead":true},"thinking-regret-minimization|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-regret-minimization|gpt-5.5-pro":{"verdict":"sharpen","mislead":true},"thinking-systems|deepseek-v4-pro":{"verdict":"sharpen","mislead":true},"thinking-systems|gemini-3.1-pro-preview":{"verdict":"sharpen","mislead":true},"thinking-systems|gpt-5.5-pro":{"verdict":"sharpen","mislead":true}}};+const $=(s,el=document)=>el.querySelector(s);+const pct=v=>v==null?'—':Math.round(v*100)+'%';+const cls=(v,a,b)=>v>=a?'g':(v>=b?'a':'r');+function badge(t,c){return '<span class="pill '+c+'">'+t+'</span>';}++// ---- run meta + headline ----+const r=DATA.run;+$('#runmeta').innerHTML='Run <code>'+r.id+'</code> · solver <code>'+r.solver+'</code> · judge <code>'+r.judge+'</code> · router <code>'+r.router+'</code> · built '+(r.created_at||'').slice(0,16).replace('T',' ');+const h=DATA.headline;+$('#headline').innerHTML=[+ ['Tier 0 structural', h.tier0_strict+'%', 'strict · '+h.tier0_loose+'% substance-aware','Header conformance (the old metric)'],+ ['Tier 1 rubric', h.tier1_avg+'/5', h.tier1_mislead+' flagged misleading','LLM-graded reasoning content'],+ ['Tier 2 routing', h.tier2_lenient+'%', 'strict/unique '+h.tier2_strict+'%','Right skill fires; negatives decline'],+ ['Tier 3 behavioral', pct(h.tier3_mean), h.tier3_proven+'/'+h.tier3_total+' proven','Length-controlled skill vs placebo'],+].map(c=>'<div class="card"><div class="big">'+c[1]+'</div><div class="lbl">'+c[0]+'</div><div class="note">'+c[2]+'</div><div class="note">'+c[3]+'</div></div>').join('');++// ---- scatter: rubric vs win-rate ----+(function(){+ const W=560,H=300,pad=42; const xs=v=>pad+(v-2)/(5-2)*(W-pad-14); const ys=v=>H-pad-(v)/(1)*(H-pad-16);+ const col={proven:'var(--green)','unproven-tie':'var(--amber)',regresses:'var(--red)'};+ let s='<svg viewBox="0 0 '+W+' '+H+'" width="100%">';+ // gridlines+ s+='<line class="gridline" x1="'+xs(4)+'" y1="14" x2="'+xs(4)+'" y2="'+(H-pad)+'"/>';+ s+='<line class="gridline" x1="'+pad+'" y1="'+ys(.5)+'" x2="'+(W-14)+'" y2="'+ys(.5)+'"/>';+ // axes labels+ [2,3,4,5].forEach(v=>{s+='<text class="axislbl" x="'+xs(v)+'" y="'+(H-pad+16)+'" text-anchor="middle">'+v+'</text>';});+ [0,.5,1].forEach(v=>{s+='<text class="axislbl" x="'+(pad-8)+'" y="'+(ys(v)+4)+'" text-anchor="end">'+pct(v)+'</text>';});+ s+='<text class="axislbl" x="'+(W/2)+'" y="'+(H-6)+'" text-anchor="middle">Tier 1 rubric /5</text>';+ s+='<text class="axislbl" transform="translate(12,'+(H/2)+') rotate(-90)" text-anchor="middle">behavioral win-rate</text>';+ DATA.scorecard.filter(d=>!d.is_meta&&d.rubric!=null&&d.win_rate!=null).forEach(d=>{+ const jx=(d.short.length%5-2)*1.6; // tiny deterministic jitter to separate ties+ s+='<circle class="scatter-pt" cx="'+(xs(d.rubric)+jx)+'" cy="'+(ys(d.win_rate)+jx)+'" r="5" fill="'+(col[d.verdict]||'var(--muted)')+'" opacity=".82"><title>'+d.short+'\nrubric '+d.rubric+' · win '+pct(d.win_rate)+(d.mislead?' · ⚠mislead':'')+'</title></circle>';+ });+ s+='</svg>'; $('#scatter').innerHTML=s;+})();++// ---- dimension bars ----+(function(){+ const dims=DATA.dims, keys=['fidelity','applicability','actionability','discrimination','discoverability'];+ $('#dims').innerHTML='<table>'+keys.map(k=>{const v=dims[k];const c=k==='discrimination'?'var(--red)':'var(--blue)';+ return '<tr><td style="text-transform:capitalize">'+k+'</td><td style="width:100%"><div class="bar" style="width:100%"><i style="width:'+(v/5*100)+'%;background:'+c+'"></i></div></td><td class="num">'+v.toFixed(2)+'</td></tr>';}).join('')+'</table>';+})();++// ---- scorecard table ----+const COLS=[['short','Skill','s'],['category','Cat','s'],['strict','T0','n'],['rubric','Rubric','n'],['discrimination','Disc','n'],['mislead','ML','n'],['win_rate','Win%','n'],['lift','Lift','n'],['verdict','Verdict','s'],['weakest','Weakest dim','s']];+let sortKey='win_rate',sortDir=1;+function renderScore(){+ const cat=$('#fcat').value,vd=$('#fverdict').value,ml=$('#fmislead').checked,q=$('#fsearch').value.toLowerCase();+ let rows=DATA.scorecard.filter(d=>!d.is_meta)+ .filter(d=>!cat||d.category===cat).filter(d=>!vd||d.verdict===vd)+ .filter(d=>!ml||d.mislead).filter(d=>!q||d.short.includes(q));+ rows.sort((a,b)=>{let x=a[sortKey],y=b[sortKey];if(x==null)x=-1;if(y==null)y=-1;if(typeof x==='string')return sortDir*x.localeCompare(y);return sortDir*(x-y);});+ $('#score thead').innerHTML='<tr>'+COLS.map(c=>'<th class="'+(c[2]==='n'?'num':'')+'" data-k="'+c[0]+'">'+c[1]+(sortKey===c[0]?(sortDir>0?' ▲':' ▼'):'')+'</th>').join('')+'</tr>';+ $('#score tbody').innerHTML=rows.map(d=>{+ return '<tr>'++ '<td>'+d.short+'</td>'++ '<td class="dim">'+d.category+'</td>'++ '<td class="num">'+(d.strict!=null?d.strict+'%':'—')+'</td>'++ '<td class="num">'+(d.rubric!=null?badge(d.rubric.toFixed(1),cls(d.rubric,4.5,3.5)):'—')+'</td>'++ '<td class="num">'+(d.discrimination!=null?d.discrimination:'—')+'</td>'++ '<td class="num">'+(d.mislead?badge('⚠','m'):'')+'</td>'++ '<td class="num">'+(d.win_rate!=null?badge(pct(d.win_rate),cls(d.win_rate,.66,.5)):'—')+'</td>'++ '<td class="num">'+(d.lift!=null?(d.lift>0?'+'+d.lift:d.lift):'—')+'</td>'++ '<td>'+(d.verdict?badge(d.verdict,d.verdict==='proven'?'g':d.verdict==='regresses'?'r':'a'):'—')+'</td>'++ '<td class="dim">'+(d.weakest||'')+'</td>'++ '</tr>';}).join('');+ $('#rowcount').textContent=rows.length+' skills';+ document.querySelectorAll('#score th').forEach(th=>th.onclick=()=>{const k=th.dataset.k;if(sortKey===k)sortDir*=-1;else{sortKey=k;sortDir=k==='short'||k==='category'||k==='verdict'||k==='weakest'?1:-1;}renderScore();});+}+const cats=[...new Set(DATA.scorecard.filter(d=>!d.is_meta).map(d=>d.category))].sort();+$('#fcat').innerHTML='<option value="">All categories</option>'+cats.map(c=>'<option>'+c+'</option>').join('');+['#fcat','#fverdict','#fmislead','#fsearch'].forEach(s=>$(s).addEventListener('input',renderScore));+renderScore();++// ---- tier 2 ----+(function(){+ const t=DATA.tier2;+ let s='<div class="cards" style="grid-template-columns:1fr 1fr"><div class="card"><div class="big">'+t.lenient+'%</div><div class="lbl">lenient (accept siblings)</div></div><div class="card"><div class="big">'+t.strict+'%</div><div class="lbl">strict / unique-correct</div></div></div>';+ s+='<table style="margin-top:12px"><thead><tr><th>Case type</th><th class="num">correct</th><th class="num">acc</th></tr></thead><tbody>'++ t.by_type.map(b=>'<tr><td>'+b.type+'</td><td class="num">'+b.correct+'/'+b.total+'</td><td class="num">'+Math.round(b.acc*100)+'%</td></tr>').join('')+'</tbody></table>';+ if(t.discrimination_errors.length){s+='<details open><summary>'+t.discrimination_errors.length+' discrimination-only misroutes (right family, wrong skill → overlap clusters)</summary><table style="margin-top:6px">'++ t.discrimination_errors.map(e=>'<tr><td class="dim">'+e.case_id+'</td><td>chose <b>'+e.chosen.replace('thinking-','')+'</b></td><td class="dim">exp '+(e.expected||'').replace('thinking-','')+'</td></tr>').join('')+'</table></details>';}+ if(t.misroutes.length){s+='<details><summary>'+t.misroutes.length+' hard misroute(s)</summary><table style="margin-top:6px">'++ t.misroutes.map(e=>'<tr><td class="dim">'+e.case_id+'</td><td>'+e.chosen.replace('thinking-','')+'</td><td class="dim">exp '+(e.expected||'none').replace('thinking-','')+'</td></tr>').join('')+'</table></details>';}+ $('#tier2').innerHTML=s;+})();++// ---- trigger probe + haiku ----+(function(){+ $('#trigger tbody').innerHTML=DATA.trigger.map(t=>{+ let read,c; if(t.st!=null&&t.st<=.5&&t.sp>.5){read='trigger suffices — guide is dead weight';c='a';}+ else if(t.st!=null&&t.st>.5){read='full guide earns its length';c='g';}+ else {read='neither beats placebo';c='r';}+ return '<tr><td>'+t.skill.replace('thinking-','')+'</td><td class="num">'+pct(t.sp)+'</td><td class="num">'+badge(pct(t.st),cls(t.st||0,.66,.5))+'</td><td>'+badge(read,c)+'</td></tr>';+ }).join('');+ $('#haiku tbody').innerHTML=DATA.haiku.map(x=>'<tr><td>'+x.skill.replace('thinking-','')+'</td><td class="num">'+pct(x.haiku_wr)+'</td><td class="num">'+pct(x.sonnet_wr)+'</td></tr>').join('');+})();++// ---- holistic ----+(function(){+ $('#holistic').innerHTML=DATA.holistic.map(m=>{+ const lst=(arr,f)=>(arr||[]).slice(0,8).map(f).join('');+ return '<div class="rev"><h3><span class="who">'+m.model+'</span> <span class="dim" style="font-weight:400">eval would catch a bad skill: '+(m.eval_would_catch?'yes':'<span style="color:var(--red)">no (as naive design)</span>')+'</span></h3>'++ '<div>'+m.overall+'</div>'++ '<div class="quote"><b>Most contrarian:</b> '+m.contrarian+'</div>'++ '<details><summary>weakest skills ('+(m.weakest||[]).length+')</summary><div class="tags">'+lst(m.weakest,w=>'<span class="tag">'+(w.skill||'').replace('thinking-','')+'</span>')+'</div></details>'++ '<details><summary>merge proposals ('+(m.merges||[]).length+')</summary><div class="tags">'+lst(m.merges,x=>'<span class="tag">'+(x.skills||[]).map(s=>s.replace('thinking-','')).join(' + ')+'</span>')+'</div></details>'++ '<details><summary>missing models / use-cases ('+(m.missing||[]).length+')</summary><ul>'+lst(m.missing,x=>'<li>'+x+'</li>')+'</ul></details>'++ '<details><summary>top improvements ('+(m.improvements||[]).length+')</summary><ul>'+lst(m.improvements,t=>'<li>['+t.impact+'/'+t.effort+'] '+t.idea+'</li>')+'</ul></details>'++ '<details><summary>router critique</summary><div class="dim">'+(m.router||'')+'</div></details>'++ '</div>';+ }).join('');+})();++// ---- per-skill matrix ----+(function(){+ const models=DATA.perskill_models, skills=DATA.perskill_skills, cells=DATA.perskill_cells;+ $('#matrix thead').innerHTML='<tr><th class="s">Skill</th>'+models.map(m=>'<th>'+m.split('-')[0]+'</th>').join('')+'</tr>';+ $('#matrix tbody').innerHTML=skills.map(s=>'<tr><td class="s">'+s.replace('thinking-','')+'</td>'++ models.map(m=>{const c=cells[s+'|'+m];if(!c)return '<td class="dim">—</td>';return '<td>'+badge(c.verdict,c.verdict==='keep'?'g':c.verdict==='cut'?'r':'a')+(c.mislead?' <span class="pill m">⚠</span>':'')+'</td>';}).join('')+'</tr>').join('');+})();++// ---- experiments ----+(function(){+ const ex=DATA.experiments||[];+ if(!ex.length){document.getElementById('expsection').style.display='none';return;}+ const sc={merged:'g',evaluated:'a',discarded:'r',planned:'',registered:'',running:'a',failed:'r'};+ $('#exp tbody').innerHTML=ex.map(e=>{+ const b=e.baseline_win_rate!=null, lift=e.lift_pp;+ return '<tr>'++ '<td class="dim">'+e.id+'</td>'++ '<td>'+e.hypothesis+'</td>'++ '<td>'+e.title+'</td>'++ '<td>'+badge(e.status,sc[e.status]||'')+(e.merge_recommended?' '+badge('merge?','a'):'')+'</td>'++ '<td class="num">'+(b?Math.round(e.baseline_win_rate*100)+'%→'+Math.round(e.result_win_rate*100)+'%':'—')+'</td>'++ '<td class="num">'+(lift!=null?(lift>0?'+':'')+lift+'pp':'—')+'</td>'++ '<td class="dim">'+(e.scope_skills||'')+'</td>'++ '</tr>';+ }).join('');+})();++$('#foot').innerHTML='Source of truth: <code>evals/db/evals.db</code> (SQLite). Regenerate: <code>node evals/db/build-db.js && node evals/db/build-dashboard.js</code>. Full analysis in <code>analysis/ADVERSARIAL-SYNTHESIS.md</code>.';+</script>+</body>+</html>diff --git a/evals/db/build-dashboard.js b/evals/db/build-dashboard.jsnew file mode 100644index 0000000..e9224db--- /dev/null+++ b/evals/db/build-dashboard.js@@ -0,0 +1,104 @@+#!/usr/bin/env node+'use strict';++/**+ * Build a self-contained HTML dashboard from the SQLite eval DB.+ * The DB is the source of truth; this script queries it via the `sqlite3 -json`+ * CLI and injects the data into dashboard.template.html. No npm deps, no server,+ * no external resources — the output opens straight in a browser.+ *+ * Usage: node evals/db/build-dashboard.js -> evals/dashboard.html+ */++const fs = require('fs');+const path = require('path');+const { spawnSync } = require('child_process');++const DB = path.join(__dirname, 'evals.db');+const EXPDB = path.join(__dirname, 'experiments.db');+const TEMPLATE = path.join(__dirname, 'dashboard.template.html');+const OUT = path.join(__dirname, '..', 'dashboard.html');++function q(sql, database = DB) {+ const r = spawnSync('sqlite3', ['-json', database, sql], { encoding: 'utf8', maxBuffer: 32 * 1024 * 1024 });+ if (r.status !== 0) { console.error('SQL error:', r.stderr, '\n', sql); process.exit(1); }+ const out = (r.stdout || '').trim();+ return out ? JSON.parse(out) : [];+}+const one = sql => q(sql)[0] || {};+const parse = (s, d) => { try { return JSON.parse(s); } catch (_) { return d; } };++function build() {+ const run = one('SELECT * FROM run LIMIT 1');++ const t0 = one('SELECT round(avg(strict_pct)) strict, round(avg(loose_pct)) loose FROM tier0');+ const t1 = one('SELECT round(avg(avg),2) avg, sum(would_mislead) ml FROM tier1');+ const t2 = one('SELECT round(100.0*avg(correct)) lenient, round(100.0*avg(correct_strict)) strict FROM tier2_case');+ const t3 = one("SELECT round(avg(win_rate),3) mean, sum(verdict='proven') proven, count(*) total FROM tier3 WHERE variant='main'");++ const dims = one('SELECT avg(fidelity) fidelity, avg(applicability) applicability, avg(actionability) actionability, avg(discrimination) discrimination, avg(discoverability) discoverability FROM tier1');++ const scorecard = q(`+ SELECT s.name, replace(s.name,'thinking-','') short, s.category, s.is_meta,+ t0.strict_pct strict, t0.loose_pct loose,+ t1.avg rubric, t1.fidelity, t1.applicability, t1.actionability, t1.discrimination, t1.discoverability,+ t1.weakest, t1.would_mislead mislead,+ t3.win_rate, t3.lift, t3.verdict, t3.vocab_only+ FROM skill s+ LEFT JOIN tier0 t0 ON t0.skill=s.name+ LEFT JOIN tier1 t1 ON t1.skill=s.name+ LEFT JOIN tier3 t3 ON t3.skill=s.name AND t3.variant='main'`);++ const tier2 = {+ lenient: t2.lenient, strict: t2.strict,+ by_type: q('SELECT type, count(*) total, sum(correct) correct, round(1.0*sum(correct)/count(*),3) acc FROM tier2_case GROUP BY type'),+ discrimination_errors: q('SELECT case_id, expected, chosen FROM tier2_case WHERE correct=1 AND correct_strict=0'),+ misroutes: q('SELECT case_id, type, expected, chosen FROM tier2_case WHERE correct=0'),+ };++ const trigger = q("SELECT skill, max(CASE WHEN pair='skill:placebo' THEN win_rate END) sp, max(CASE WHEN pair='skill:trigger' THEN win_rate END) st FROM tier3_pair WHERE variant='trigger' GROUP BY skill ORDER BY st");+ const haiku = q("SELECT h.skill, h.win_rate haiku_wr, m.win_rate sonnet_wr FROM tier3 h LEFT JOIN tier3 m ON m.skill=h.skill AND m.variant='main' WHERE h.variant='haiku' ORDER BY h.skill");++ const holistic = q('SELECT * FROM review_holistic').map(m => ({+ model: m.model, overall: m.overall_take, contrarian: m.contrarian,+ eval_would_catch: !!m.eval_would_catch, router: m.router_critique,+ weakest: parse(m.weakest_json, []), merges: parse(m.merges_json, []),+ missing: parse(m.missing_json, []), improvements: parse(m.improvements_json, []),+ eval_flaws: parse(m.eval_flaws_json, []),+ }));++ const ps = q('SELECT skill, model, verdict, would_mislead mislead FROM review_perskill');+ const perskill_models = [...new Set(ps.map(p => p.model))].sort();+ const perskill_skills = [...new Set(ps.map(p => p.skill))].sort();+ const perskill_cells = {};+ for (const p of ps) perskill_cells[p.skill + '|' + p.model] = { verdict: p.verdict, mislead: !!p.mislead };++ const experiments = fs.existsSync(EXPDB)+ ? q('SELECT id,hypothesis,title,intervention,scope_skills,status,baseline_win_rate,result_win_rate,lift_pp,n_problems,merge_recommended,branch,notes FROM experiment ORDER BY (status="planned"), hypothesis', EXPDB)+ : [];++ return {+ run, experiments,+ headline: {+ tier0_strict: t0.strict, tier0_loose: t0.loose,+ tier1_avg: t1.avg, tier1_mislead: t1.ml,+ tier2_lenient: t2.lenient, tier2_strict: t2.strict,+ tier3_mean: t3.mean, tier3_proven: t3.proven, tier3_total: t3.total,+ },+ dims, scorecard, tier2, trigger, haiku, holistic,+ perskill_models, perskill_skills, perskill_cells,+ };+}++function main() {+ if (!fs.existsSync(DB)) { console.error('No DB. Run: node evals/db/build-db.js'); process.exit(1); }+ const data = build();+ const tmpl = fs.readFileSync(TEMPLATE, 'utf8');+ const html = tmpl.replace('__DATA__', JSON.stringify(data));+ fs.writeFileSync(OUT, html);+ const kb = Math.round(fs.statSync(OUT).size / 1024);+ console.log(`Dashboard -> ${OUT} (${kb} KB, self-contained)`);+ console.log(` ${data.scorecard.length} skills · ${data.holistic.length} holistic reviews · ${data.perskill_skills.length}×${data.perskill_models.length} per-skill matrix`);+}++main();diff --git a/evals/db/build-db.js b/evals/db/build-db.jsnew file mode 100644index 0000000..92d361e--- /dev/null+++ b/evals/db/build-db.js@@ -0,0 +1,151 @@+#!/usr/bin/env node+'use strict';++/**+ * Build a SQLite database from the eval results + adversarial reviews.+ * No npm deps: generates SQL and pipes it to the system `sqlite3` CLI.+ *+ * Usage: EVAL_RUN=run1 node evals/db/build-db.js -> evals/db/evals.db+ */++const fs = require('fs');+const path = require('path');+const { spawnSync } = require('child_process');++const RUN = process.env.EVAL_RUN || 'run1';+const ROOT = path.join(__dirname, '..', '..');+const RESULTS = path.join(ROOT, 'evals', 'results', RUN);+const REVIEWS = path.join(ROOT, 'reviews');+const DB = path.join(__dirname, 'evals.db');++const CATEGORY = {+ 'first-principles': 'Decision', 'second-order': 'Decision', 'inversion': 'Decision',+ 'pre-mortem': 'Decision', 'kepner-tregoe': 'Decision', 'reversibility': 'Decision',+ 'regret-minimization': 'Decision', 'opportunity-cost': 'Decision', 'occams-razor': 'Decision',+ 'bayesian': 'Cognitive', 'debiasing': 'Cognitive', 'dual-process': 'Cognitive',+ 'bounded-rationality': 'Cognitive', 'socratic': 'Cognitive', 'probabilistic': 'Cognitive',+ 'steel-manning': 'Cognitive', 'map-territory': 'Cognitive', 'circle-of-competence': 'Cognitive',+ 'systems': 'Systems', 'feedback-loops': 'Systems', 'archetypes': 'Systems', 'ooda': 'Systems',+ 'leverage-points': 'Systems', 'theory-of-constraints': 'Systems', 'cynefin': 'Systems',+ 'scientific-method': 'Systems', 'five-whys-plus': 'Systems',+ 'triz': 'Innovation/Risk', 'thought-experiment': 'Innovation/Risk', 'fermi-estimation': 'Innovation/Risk',+ 'margin-of-safety': 'Innovation/Risk', 'lindy-effect': 'Innovation/Risk', 'via-negativa': 'Innovation/Risk',+ 'red-team': 'Innovation/Risk', 'jobs-to-be-done': 'Product', 'effectuation': 'Product',+ 'model-router': 'Meta', 'model-selection': 'Meta', 'model-combination': 'Meta',+};+const META = new Set(['thinking-model-router', 'thinking-model-selection', 'thinking-model-combination']);++function readJson(p) { try { return JSON.parse(fs.readFileSync(p, 'utf8')); } catch (_) { return null; } }+function sq(v) {+ if (v === null || v === undefined) return 'NULL';+ if (typeof v === 'number') return Number.isFinite(v) ? String(v) : 'NULL';+ if (typeof v === 'boolean') return v ? '1' : '0';+ return `'${String(v).replace(/'/g, "''")}'`;+}+function j(v) { return v == null ? 'NULL' : `'${JSON.stringify(v).replace(/'/g, "''")}'`; }++const SCHEMA = `+PRAGMA foreign_keys=OFF;+DROP TABLE IF EXISTS run; DROP TABLE IF EXISTS skill; DROP TABLE IF EXISTS tier0;+DROP TABLE IF EXISTS tier1; DROP TABLE IF EXISTS tier2_case; DROP TABLE IF EXISTS tier3;+DROP TABLE IF EXISTS tier3_pair; DROP TABLE IF EXISTS tier3_problem;+DROP TABLE IF EXISTS review_holistic; DROP TABLE IF EXISTS review_perskill;+CREATE TABLE run(id TEXT PRIMARY KEY, created_at TEXT, solver TEXT, judge TEXT, router TEXT);+CREATE TABLE skill(name TEXT PRIMARY KEY, category TEXT, description TEXT, desc_len INT, is_meta INT);+CREATE TABLE tier0(run_id TEXT, skill TEXT, strict_pct INT, loose_pct INT, gap INT, words INT);+CREATE TABLE tier1(run_id TEXT, skill TEXT, judge TEXT, fidelity INT, applicability INT, actionability INT,+ discrimination INT, discoverability INT, avg REAL, weakest TEXT, would_mislead INT, mislead_note TEXT, top_fix TEXT, verdict TEXT);+CREATE TABLE tier2_case(run_id TEXT, case_id TEXT, type TEXT, expected TEXT, chosen TEXT, correct INT, correct_strict INT, confidence REAL, rationale TEXT);+CREATE TABLE tier3(run_id TEXT, variant TEXT, skill TEXT, solver TEXT, headline_pair TEXT, wins INT, losses INT, ties INT, win_rate REAL, lift INT, verdict TEXT, vocab_only INT);+CREATE TABLE tier3_pair(run_id TEXT, variant TEXT, skill TEXT, pair TEXT, wins INT, losses INT, ties INT, win_rate REAL, lift INT, vocab_only INT);+CREATE TABLE tier3_problem(run_id TEXT, variant TEXT, skill TEXT, problem_id TEXT, pair TEXT, winner TEXT, margin TEXT, vocab_only INT, why TEXT);+CREATE TABLE review_holistic(model TEXT PRIMARY KEY, overall_take TEXT, eval_would_catch INT, router_critique TEXT, contrarian TEXT,+ weakest_json TEXT, merges_json TEXT, missing_json TEXT, improvements_json TEXT, eval_flaws_json TEXT);+CREATE TABLE review_perskill(skill TEXT, model TEXT, verdict TEXT, would_mislead INT, mislead_scenario TEXT, weakest_part TEXT, highest_leverage_fix TEXT, missing_boundaries_json TEXT, fidelity_problems_json TEXT);+`;++function build() {+ const out = [SCHEMA, 'BEGIN;'];+ const ts = new Date().toISOString();++ // --- skills (from tier0 rows, which cover all 39) ---+ const t0 = readJson(path.join(RESULTS, 'tier0-structural.json'));+ out.push(`INSERT INTO run VALUES(${sq(RUN)}, ${sq(ts)}, 'claude-sonnet-4-6', 'gemini-3.1-pro-preview', 'claude-sonnet-4-6');`);+ if (t0) for (const r of t0.rows) {+ const short = r.name.replace(/^thinking-/, '');+ out.push(`INSERT INTO skill VALUES(${sq(r.name)}, ${sq(CATEGORY[short] || '?')}, NULL, ${sq(r.descLen)}, ${META.has(r.name) ? 1 : 0});`);+ out.push(`INSERT INTO tier0 VALUES(${sq(RUN)}, ${sq(r.name)}, ${sq(r.strict_pct)}, ${sq(r.loose_pct)}, ${sq(r.gap)}, ${sq(r.words)});`);+ }++ // --- tier1 ---+ const t1 = readJson(path.join(RESULTS, 'tier1-rubric.json'));+ if (t1) for (const r of t1.results) {+ if (!r.ok) continue;+ const s = r.scores || {};+ out.push(`INSERT INTO tier1 VALUES(${sq(RUN)}, ${sq(r.skill)}, ${sq(t1.judge)}, ${sq(s.fidelity)}, ${sq(s.applicability)}, ${sq(s.actionability)}, ${sq(s.discrimination)}, ${sq(s.discoverability)}, ${sq(r.avg)}, ${sq(r.weakest_dimension)}, ${r.would_mislead ? 1 : 0}, ${sq(r.mislead_note)}, ${sq(r.top_fix)}, ${sq(r.one_line_verdict)});`);+ }++ // --- tier2 ---+ const t2 = readJson(path.join(RESULTS, 'tier2-routing.json'));+ if (t2) for (const r of t2.results) {+ if (!r.ok) continue;+ out.push(`INSERT INTO tier2_case VALUES(${sq(RUN)}, ${sq(r.id)}, ${sq(r.type)}, ${sq(r.expected)}, ${sq(r.chosen)}, ${r.correct ? 1 : 0}, ${r.correctStrict ? 1 : 0}, ${sq(r.confidence)}, ${sq(r.rationale)});`);+ }++ // --- tier3 (3 variants) ---+ const variants = [+ { variant: 'main', file: 'tier3-behavioral.json' },+ { variant: 'trigger', file: 'tier3-trigger-probe.json' },+ { variant: 'haiku', file: 'tier3-haiku.json' },+ ];+ for (const v of variants) {+ const d = readJson(path.join(RESULTS, v.file));+ if (!d) continue;+ for (const s of d.skills) {+ const hp = (s.pairs && s.pairs[d.headline_pair]) || {};+ out.push(`INSERT INTO tier3 VALUES(${sq(RUN)}, ${sq(v.variant)}, ${sq(s.skill)}, ${sq(d.solver)}, ${sq(d.headline_pair)}, ${sq(hp.wins)}, ${sq(hp.losses)}, ${sq(hp.ties)}, ${sq(s.win_rate)}, ${sq(s.lift)}, ${sq(s.verdict)}, ${sq(hp.vocab_only)});`);+ for (const [pair, pr] of Object.entries(s.pairs || {})) {+ out.push(`INSERT INTO tier3_pair VALUES(${sq(RUN)}, ${sq(v.variant)}, ${sq(s.skill)}, ${sq(pair)}, ${sq(pr.wins)}, ${sq(pr.losses)}, ${sq(pr.ties)}, ${sq(pr.win_rate)}, ${sq(pr.lift)}, ${sq(pr.vocab_only)});`);+ }+ for (const p of s.problems || []) {+ if (!p.ok) continue;+ for (const [pair, pr] of Object.entries(p.pairs || {})) {+ if (!pr.ok) continue;+ out.push(`INSERT INTO tier3_problem VALUES(${sq(RUN)}, ${sq(v.variant)}, ${sq(s.skill)}, ${sq(p.id)}, ${sq(pair)}, ${sq(pr.winner)}, ${sq(pr.margin)}, ${pr.vocab_only ? 1 : 0}, ${sq(pr.why)});`);+ }+ }+ }+ }++ // --- holistic reviews ---+ for (const model of ['gpt-5.5-pro', 'gemini-3.1-pro-preview', 'deepseek-v4-pro']) {+ const d = readJson(path.join(REVIEWS, 'holistic', `${model}.json`));+ if (!d || !d.ok) continue;+ const ec = d.eval_design_critique || {};+ out.push(`INSERT INTO review_holistic VALUES(${sq(model)}, ${sq(d.overall_take)}, ${ec.would_catch_a_bad_skill ? 1 : 0}, ${sq(d.router_critique)}, ${sq(d.most_contrarian_idea)}, ${j(d.weakest_skills)}, ${j(d.redundant_or_should_merge)}, ${j(d.missing_use_cases_or_models)}, ${j(d.top_improvements)}, ${j(ec.biggest_flaws)});`);+ }++ // --- per-skill reviews ---+ const psDir = path.join(REVIEWS, 'per-skill');+ if (fs.existsSync(psDir)) for (const f of fs.readdirSync(psDir).filter(x => x.endsWith('.json'))) {+ const d = readJson(path.join(psDir, f));+ if (!d || !d.ok) continue;+ out.push(`INSERT INTO review_perskill VALUES(${sq(d.skill)}, ${sq(d.model)}, ${sq(d.verdict)}, ${d.would_mislead_agent ? 1 : 0}, ${sq(d.mislead_scenario)}, ${sq(d.weakest_part)}, ${sq(d.highest_leverage_fix)}, ${j(d.missing_boundaries)}, ${j(d.fidelity_problems)});`);+ }++ out.push('COMMIT;');+ return out.join('\n');+}++function main() {+ const sql = build();+ try { fs.unlinkSync(DB); } catch (_) {}+ const res = spawnSync('sqlite3', [DB], { input: sql, encoding: 'utf8' });+ if (res.status !== 0) { console.error('sqlite3 error:', res.stderr || res.error); process.exit(1); }+ // quick counts+ const counts = spawnSync('sqlite3', [DB, `SELECT 'skills='||count(*) FROM skill; SELECT 'tier1='||count(*) FROM tier1; SELECT 'tier2='||count(*) FROM tier2_case; SELECT 'tier3='||count(*) FROM tier3; SELECT 'holistic='||count(*) FROM review_holistic; SELECT 'perskill='||count(*) FROM review_perskill;`], { encoding: 'utf8' });+ console.log(`Built ${DB}`);+ console.log(counts.stdout.trim().split('\n').map(s => ' ' + s).join('\n'));+}++main();diff --git a/evals/db/dashboard.template.html b/evals/db/dashboard.template.htmlnew file mode 100644index 0000000..4587c02--- /dev/null+++ b/evals/db/dashboard.template.html@@ -0,0 +1,276 @@+<!DOCTYPE html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Thinking Skills — Eval Dashboard</title>+<style>+ :root{+ --bg:#0e1116; --panel:#161b22; --panel2:#1c232c; --border:#2b3340; --text:#e6edf3;+ --muted:#8b96a5; --green:#3fb950; --amber:#d29922; --red:#f85149; --blue:#58a6ff; --violet:#bc8cff;+ }+ *{box-sizing:border-box}+ body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}+ header{padding:24px 28px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#161b22,#0e1116)}+ h1{margin:0 0 4px;font-size:22px} h2{font-size:15px;margin:0 0 12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}+ .sub{color:var(--muted);font-size:13px}+ .wrap{max-width:1280px;margin:0 auto;padding:0 28px 80px}+ section{margin:34px 0}+ .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}+ .card{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px}+ .card .big{font-size:26px;font-weight:700} .card .lbl{color:var(--muted);font-size:12px;margin-top:2px}+ .card .note{font-size:11px;color:var(--muted);margin-top:6px}+ .panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:18px}+ .grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px} @media(max-width:900px){.grid2{grid-template-columns:1fr}}+ table{width:100%;border-collapse:collapse;font-size:13px}+ th,td{padding:7px 9px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}+ th{color:var(--muted);font-weight:600;cursor:pointer;user-select:none;position:sticky;top:0;background:var(--panel)}+ th:hover{color:var(--text)}+ td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}+ tr:hover td{background:#1b2230}+ .pill{display:inline-block;padding:1px 8px;border-radius:20px;font-size:11px;font-weight:600}+ .g{background:rgba(63,185,80,.15);color:var(--green)} .a{background:rgba(210,153,34,.15);color:var(--amber)}+ .r{background:rgba(248,81,73,.15);color:var(--red)} .m{background:rgba(248,81,73,.22);color:#ff8d85}+ .dim{color:var(--muted)}+ .bar{height:8px;border-radius:4px;background:#222b36;overflow:hidden;display:inline-block;width:80px;vertical-align:middle}+ .bar>i{display:block;height:100%}+ .controls{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}+ select,input{background:var(--panel2);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:6px 10px;font:inherit}+ .legend{display:flex;gap:16px;font-size:12px;color:var(--muted);flex-wrap:wrap}+ .rev{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px;margin-bottom:14px}+ .rev h3{margin:0 0 4px;font-size:15px} .rev .who{color:var(--blue);font-weight:600}+ .rev .quote{border-left:3px solid var(--violet);padding:6px 12px;margin:10px 0;color:#cdd6e0;font-style:italic;background:#12161d}+ .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}+ .tag{background:#202832;border:1px solid var(--border);border-radius:6px;padding:2px 8px;font-size:12px;color:#c7d0da}+ details{margin-top:8px} summary{cursor:pointer;color:var(--muted)}+ .matrix td{text-align:center} .matrix td.s{text-align:left;font-weight:600}+ .scatter-pt{cursor:pointer} .axislbl{fill:var(--muted);font-size:11px} .gridline{stroke:#222b36}+ .foot{color:var(--muted);font-size:12px;margin-top:40px;border-top:1px solid var(--border);padding-top:16px}+ code{background:#202832;padding:1px 5px;border-radius:4px;font-size:12px}+</style>+</head>+<body>+<header>+ <h1>Thinking Skills — Eval Dashboard</h1>+ <div class="sub" id="runmeta"></div>+</header>+<div class="wrap">++ <section>+ <h2>Headline</h2>+ <div class="cards" id="headline"></div>+ </section>++ <section class="grid2">+ <div class="panel">+ <h2>Rubric vs Behavioral lift (orthogonality)</h2>+ <div id="scatter"></div>+ <div class="legend">+ <span><b style="color:var(--green)">●</b> proven</span>+ <span><b style="color:var(--amber)">●</b> tie</span>+ <span><b style="color:var(--red)">●</b> regresses</span>+ <span class="dim">x = Tier 1 rubric /5 · y = length-controlled win-rate</span>+ </div>+ </div>+ <div class="panel">+ <h2>Tier 1 dimension averages</h2>+ <div id="dims"></div>+ <div class="legend"><span class="dim">Discrimination (boundaries / when-not-to-use) is the systemic weak point.</span></div>+ </div>+ </section>++ <section>+ <h2>Per-skill scorecard</h2>+ <div class="controls">+ <select id="fcat"></select>+ <select id="fverdict">+ <option value="">All verdicts</option><option>proven</option><option>unproven-tie</option><option>regresses</option>+ </select>+ <label><input type="checkbox" id="fmislead"> mislead-flagged only</label>+ <input id="fsearch" placeholder="filter skill…" style="flex:1;min-width:140px">+ <span class="dim" id="rowcount"></span>+ </div>+ <div class="panel" style="overflow:auto;max-height:620px"><table id="score"><thead></thead><tbody></tbody></table></div>+ <div class="legend" style="margin-top:8px"><span class="dim">n=3 problems/skill → per-skill is directional; trust the aggregate + patterns. ML = Tier 1 "would mislead an agent".</span></div>+ </section>++ <section class="grid2">+ <div class="panel">+ <h2>Tier 2 — Routing / invocation</h2>+ <div id="tier2"></div>+ </div>+ <div class="panel">+ <h2>Trigger vs instruction probe</h2>+ <div class="sub" style="margin-bottom:8px">Does the full SKILL.md beat a 2-sentence trigger?</div>+ <table id="trigger"><thead><tr><th>Skill</th><th class="num">skill>placebo</th><th class="num">skill>trigger</th><th>Read</th></tr></thead><tbody></tbody></table>+ <table id="haiku" style="margin-top:14px"><thead><tr><th>Capability curve</th><th class="num">haiku</th><th class="num">sonnet</th></tr></thead><tbody></tbody></table>+ </div>+ </section>++ <section>+ <h2>Adversarial review — holistic (3 frontier models)</h2>+ <div id="holistic"></div>+ </section>++ <section>+ <h2>Adversarial review — per-skill verdict matrix</h2>+ <div class="panel" style="overflow:auto"><table id="matrix" class="matrix"><thead></thead><tbody></tbody></table></div>+ <div class="legend" style="margin-top:8px"><span class="dim">⚠ = "would mislead an agent". All reviewed skills got "sharpen" unanimously.</span></div>+ </section>++ <section id="expsection">+ <h2>Lift experiments (worktree-tracked)</h2>+ <div class="sub" style="margin-bottom:10px">Every experiment — run, merged, discarded, or planned — is tracked in <code>experiments.db</code> with a unique id. Lifts are directional (n=3, underpowered) until re-run on the expanded set.</div>+ <div class="panel" style="overflow:auto"><table id="exp"><thead><tr><th>Experiment id</th><th>Hyp</th><th>Title</th><th>Status</th><th class="num">Baseline→Result</th><th class="num">Lift</th><th>Skills</th></tr></thead><tbody></tbody></table></div>+ </section>++ <div class="foot" id="foot"></div>+</div>++<script>+const DATA = __DATA__;+const $=(s,el=document)=>el.querySelector(s);+const pct=v=>v==null?'—':Math.round(v*100)+'%';+const cls=(v,a,b)=>v>=a?'g':(v>=b?'a':'r');+function badge(t,c){return '<span class="pill '+c+'">'+t+'</span>';}++// ---- run meta + headline ----+const r=DATA.run;+$('#runmeta').innerHTML='Run <code>'+r.id+'</code> · solver <code>'+r.solver+'</code> · judge <code>'+r.judge+'</code> · router <code>'+r.router+'</code> · built '+(r.created_at||'').slice(0,16).replace('T',' ');+const h=DATA.headline;+$('#headline').innerHTML=[+ ['Tier 0 structural', h.tier0_strict+'%', 'strict · '+h.tier0_loose+'% substance-aware','Header conformance (the old metric)'],+ ['Tier 1 rubric', h.tier1_avg+'/5', h.tier1_mislead+' flagged misleading','LLM-graded reasoning content'],+ ['Tier 2 routing', h.tier2_lenient+'%', 'strict/unique '+h.tier2_strict+'%','Right skill fires; negatives decline'],+ ['Tier 3 behavioral', pct(h.tier3_mean), h.tier3_proven+'/'+h.tier3_total+' proven','Length-controlled skill vs placebo'],+].map(c=>'<div class="card"><div class="big">'+c[1]+'</div><div class="lbl">'+c[0]+'</div><div class="note">'+c[2]+'</div><div class="note">'+c[3]+'</div></div>').join('');++// ---- scatter: rubric vs win-rate ----+(function(){+ const W=560,H=300,pad=42; const xs=v=>pad+(v-2)/(5-2)*(W-pad-14); const ys=v=>H-pad-(v)/(1)*(H-pad-16);+ const col={proven:'var(--green)','unproven-tie':'var(--amber)',regresses:'var(--red)'};+ let s='<svg viewBox="0 0 '+W+' '+H+'" width="100%">';+ // gridlines+ s+='<line class="gridline" x1="'+xs(4)+'" y1="14" x2="'+xs(4)+'" y2="'+(H-pad)+'"/>';+ s+='<line class="gridline" x1="'+pad+'" y1="'+ys(.5)+'" x2="'+(W-14)+'" y2="'+ys(.5)+'"/>';+ // axes labels+ [2,3,4,5].forEach(v=>{s+='<text class="axislbl" x="'+xs(v)+'" y="'+(H-pad+16)+'" text-anchor="middle">'+v+'</text>';});+ [0,.5,1].forEach(v=>{s+='<text class="axislbl" x="'+(pad-8)+'" y="'+(ys(v)+4)+'" text-anchor="end">'+pct(v)+'</text>';});+ s+='<text class="axislbl" x="'+(W/2)+'" y="'+(H-6)+'" text-anchor="middle">Tier 1 rubric /5</text>';+ s+='<text class="axislbl" transform="translate(12,'+(H/2)+') rotate(-90)" text-anchor="middle">behavioral win-rate</text>';+ DATA.scorecard.filter(d=>!d.is_meta&&d.rubric!=null&&d.win_rate!=null).forEach(d=>{+ const jx=(d.short.length%5-2)*1.6; // tiny deterministic jitter to separate ties+ s+='<circle class="scatter-pt" cx="'+(xs(d.rubric)+jx)+'" cy="'+(ys(d.win_rate)+jx)+'" r="5" fill="'+(col[d.verdict]||'var(--muted)')+'" opacity=".82"><title>'+d.short+'\nrubric '+d.rubric+' · win '+pct(d.win_rate)+(d.mislead?' · ⚠mislead':'')+'</title></circle>';+ });+ s+='</svg>'; $('#scatter').innerHTML=s;+})();++// ---- dimension bars ----+(function(){+ const dims=DATA.dims, keys=['fidelity','applicability','actionability','discrimination','discoverability'];+ $('#dims').innerHTML='<table>'+keys.map(k=>{const v=dims[k];const c=k==='discrimination'?'var(--red)':'var(--blue)';+ return '<tr><td style="text-transform:capitalize">'+k+'</td><td style="width:100%"><div class="bar" style="width:100%"><i style="width:'+(v/5*100)+'%;background:'+c+'"></i></div></td><td class="num">'+v.toFixed(2)+'</td></tr>';}).join('')+'</table>';+})();++// ---- scorecard table ----+const COLS=[['short','Skill','s'],['category','Cat','s'],['strict','T0','n'],['rubric','Rubric','n'],['discrimination','Disc','n'],['mislead','ML','n'],['win_rate','Win%','n'],['lift','Lift','n'],['verdict','Verdict','s'],['weakest','Weakest dim','s']];+let sortKey='win_rate',sortDir=1;+function renderScore(){+ const cat=$('#fcat').value,vd=$('#fverdict').value,ml=$('#fmislead').checked,q=$('#fsearch').value.toLowerCase();+ let rows=DATA.scorecard.filter(d=>!d.is_meta)+ .filter(d=>!cat||d.category===cat).filter(d=>!vd||d.verdict===vd)+ .filter(d=>!ml||d.mislead).filter(d=>!q||d.short.includes(q));+ rows.sort((a,b)=>{let x=a[sortKey],y=b[sortKey];if(x==null)x=-1;if(y==null)y=-1;if(typeof x==='string')return sortDir*x.localeCompare(y);return sortDir*(x-y);});+ $('#score thead').innerHTML='<tr>'+COLS.map(c=>'<th class="'+(c[2]==='n'?'num':'')+'" data-k="'+c[0]+'">'+c[1]+(sortKey===c[0]?(sortDir>0?' ▲':' ▼'):'')+'</th>').join('')+'</tr>';+ $('#score tbody').innerHTML=rows.map(d=>{+ return '<tr>'++ '<td>'+d.short+'</td>'++ '<td class="dim">'+d.category+'</td>'++ '<td class="num">'+(d.strict!=null?d.strict+'%':'—')+'</td>'++ '<td class="num">'+(d.rubric!=null?badge(d.rubric.toFixed(1),cls(d.rubric,4.5,3.5)):'—')+'</td>'++ '<td class="num">'+(d.discrimination!=null?d.discrimination:'—')+'</td>'++ '<td class="num">'+(d.mislead?badge('⚠','m'):'')+'</td>'++ '<td class="num">'+(d.win_rate!=null?badge(pct(d.win_rate),cls(d.win_rate,.66,.5)):'—')+'</td>'++ '<td class="num">'+(d.lift!=null?(d.lift>0?'+'+d.lift:d.lift):'—')+'</td>'++ '<td>'+(d.verdict?badge(d.verdict,d.verdict==='proven'?'g':d.verdict==='regresses'?'r':'a'):'—')+'</td>'++ '<td class="dim">'+(d.weakest||'')+'</td>'++ '</tr>';}).join('');+ $('#rowcount').textContent=rows.length+' skills';+ document.querySelectorAll('#score th').forEach(th=>th.onclick=()=>{const k=th.dataset.k;if(sortKey===k)sortDir*=-1;else{sortKey=k;sortDir=k==='short'||k==='category'||k==='verdict'||k==='weakest'?1:-1;}renderScore();});+}+const cats=[...new Set(DATA.scorecard.filter(d=>!d.is_meta).map(d=>d.category))].sort();+$('#fcat').innerHTML='<option value="">All categories</option>'+cats.map(c=>'<option>'+c+'</option>').join('');+['#fcat','#fverdict','#fmislead','#fsearch'].forEach(s=>$(s).addEventListener('input',renderScore));+renderScore();++// ---- tier 2 ----+(function(){+ const t=DATA.tier2;+ let s='<div class="cards" style="grid-template-columns:1fr 1fr"><div class="card"><div class="big">'+t.lenient+'%</div><div class="lbl">lenient (accept siblings)</div></div><div class="card"><div class="big">'+t.strict+'%</div><div class="lbl">strict / unique-correct</div></div></div>';+ s+='<table style="margin-top:12px"><thead><tr><th>Case type</th><th class="num">correct</th><th class="num">acc</th></tr></thead><tbody>'++ t.by_type.map(b=>'<tr><td>'+b.type+'</td><td class="num">'+b.correct+'/'+b.total+'</td><td class="num">'+Math.round(b.acc*100)+'%</td></tr>').join('')+'</tbody></table>';+ if(t.discrimination_errors.length){s+='<details open><summary>'+t.discrimination_errors.length+' discrimination-only misroutes (right family, wrong skill → overlap clusters)</summary><table style="margin-top:6px">'++ t.discrimination_errors.map(e=>'<tr><td class="dim">'+e.case_id+'</td><td>chose <b>'+e.chosen.replace('thinking-','')+'</b></td><td class="dim">exp '+(e.expected||'').replace('thinking-','')+'</td></tr>').join('')+'</table></details>';}+ if(t.misroutes.length){s+='<details><summary>'+t.misroutes.length+' hard misroute(s)</summary><table style="margin-top:6px">'++ t.misroutes.map(e=>'<tr><td class="dim">'+e.case_id+'</td><td>'+e.chosen.replace('thinking-','')+'</td><td class="dim">exp '+(e.expected||'none').replace('thinking-','')+'</td></tr>').join('')+'</table></details>';}+ $('#tier2').innerHTML=s;+})();++// ---- trigger probe + haiku ----+(function(){+ $('#trigger tbody').innerHTML=DATA.trigger.map(t=>{+ let read,c; if(t.st!=null&&t.st<=.5&&t.sp>.5){read='trigger suffices — guide is dead weight';c='a';}+ else if(t.st!=null&&t.st>.5){read='full guide earns its length';c='g';}+ else {read='neither beats placebo';c='r';}+ return '<tr><td>'+t.skill.replace('thinking-','')+'</td><td class="num">'+pct(t.sp)+'</td><td class="num">'+badge(pct(t.st),cls(t.st||0,.66,.5))+'</td><td>'+badge(read,c)+'</td></tr>';+ }).join('');+ $('#haiku tbody').innerHTML=DATA.haiku.map(x=>'<tr><td>'+x.skill.replace('thinking-','')+'</td><td class="num">'+pct(x.haiku_wr)+'</td><td class="num">'+pct(x.sonnet_wr)+'</td></tr>').join('');+})();++// ---- holistic ----+(function(){+ $('#holistic').innerHTML=DATA.holistic.map(m=>{+ const lst=(arr,f)=>(arr||[]).slice(0,8).map(f).join('');+ return '<div class="rev"><h3><span class="who">'+m.model+'</span> <span class="dim" style="font-weight:400">eval would catch a bad skill: '+(m.eval_would_catch?'yes':'<span style="color:var(--red)">no (as naive design)</span>')+'</span></h3>'++ '<div>'+m.overall+'</div>'++ '<div class="quote"><b>Most contrarian:</b> '+m.contrarian+'</div>'++ '<details><summary>weakest skills ('+(m.weakest||[]).length+')</summary><div class="tags">'+lst(m.weakest,w=>'<span class="tag">'+(w.skill||'').replace('thinking-','')+'</span>')+'</div></details>'++ '<details><summary>merge proposals ('+(m.merges||[]).length+')</summary><div class="tags">'+lst(m.merges,x=>'<span class="tag">'+(x.skills||[]).map(s=>s.replace('thinking-','')).join(' + ')+'</span>')+'</div></details>'++ '<details><summary>missing models / use-cases ('+(m.missing||[]).length+')</summary><ul>'+lst(m.missing,x=>'<li>'+x+'</li>')+'</ul></details>'++ '<details><summary>top improvements ('+(m.improvements||[]).length+')</summary><ul>'+lst(m.improvements,t=>'<li>['+t.impact+'/'+t.effort+'] '+t.idea+'</li>')+'</ul></details>'++ '<details><summary>router critique</summary><div class="dim">'+(m.router||'')+'</div></details>'++ '</div>';+ }).join('');+})();++// ---- per-skill matrix ----+(function(){+ const models=DATA.perskill_models, skills=DATA.perskill_skills, cells=DATA.perskill_cells;+ $('#matrix thead').innerHTML='<tr><th class="s">Skill</th>'+models.map(m=>'<th>'+m.split('-')[0]+'</th>').join('')+'</tr>';+ $('#matrix tbody').innerHTML=skills.map(s=>'<tr><td class="s">'+s.replace('thinking-','')+'</td>'++ models.map(m=>{const c=cells[s+'|'+m];if(!c)return '<td class="dim">—</td>';return '<td>'+badge(c.verdict,c.verdict==='keep'?'g':c.verdict==='cut'?'r':'a')+(c.mislead?' <span class="pill m">⚠</span>':'')+'</td>';}).join('')+'</tr>').join('');+})();++// ---- experiments ----+(function(){+ const ex=DATA.experiments||[];+ if(!ex.length){document.getElementById('expsection').style.display='none';return;}+ const sc={merged:'g',evaluated:'a',discarded:'r',planned:'',registered:'',running:'a',failed:'r'};+ $('#exp tbody').innerHTML=ex.map(e=>{+ const b=e.baseline_win_rate!=null, lift=e.lift_pp;+ return '<tr>'++ '<td class="dim">'+e.id+'</td>'++ '<td>'+e.hypothesis+'</td>'++ '<td>'+e.title+'</td>'++ '<td>'+badge(e.status,sc[e.status]||'')+(e.merge_recommended?' '+badge('merge?','a'):'')+'</td>'++ '<td class="num">'+(b?Math.round(e.baseline_win_rate*100)+'%→'+Math.round(e.result_win_rate*100)+'%':'—')+'</td>'++ '<td class="num">'+(lift!=null?(lift>0?'+':'')+lift+'pp':'—')+'</td>'++ '<td class="dim">'+(e.scope_skills||'')+'</td>'++ '</tr>';+ }).join('');+})();++$('#foot').innerHTML='Source of truth: <code>evals/db/evals.db</code> (SQLite). Regenerate: <code>node evals/db/build-db.js && node evals/db/build-dashboard.js</code>. Full analysis in <code>analysis/ADVERSARIAL-SYNTHESIS.md</code>.';+</script>+</body>+</html>diff --git a/evals/db/evals.db b/evals/db/evals.dbnew file mode 100644index 0000000..7016faaBinary files /dev/null and b/evals/db/evals.db differdiff --git a/evals/db/experiments.db b/evals/db/experiments.dbnew file mode 100644index 0000000..2fa7da2Binary files /dev/null and b/evals/db/experiments.db differ