File size: 9,618 Bytes
5eaeee3 a202d78 5eaeee3 a202d78 a6120cc a202d78 5eaeee3 a202d78 a6120cc a202d78 7717649 a202d78 5eaeee3 a202d78 a6120cc a202d78 5eaeee3 a202d78 a6120cc a202d78 7717649 a202d78 c4e53ef a202d78 5eaeee3 a202d78 a6120cc a202d78 cab6fcb a202d78 5eaeee3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | // Claims→features map (marker: claims-map).
//
// A reader arriving from the paper (or a reviewer skimming the live
// deployment) should not have to rediscover where each claim lives.
// This is a small STATIC overlay: one row per paper claim — claim,
// where to see it in the UI, and the one-URL scenario that boots the
// exact seeded state the claim's figure is exported from. Content
// mirrors the shipped list in docs/EVIDENCE_WORKBENCH.md; if a claim
// changes there, change it here.
//
// Self-contained by design (trigger + overlay in one component, local
// state only): the TopBar mounts it next to the Tour button and no
// other surface needs to know it exists.
import React, { useEffect, useState } from "react";
import { ListChecks, X } from "lucide-react";
import { APP_NAME } from "../lib/anon";
interface ClaimRow {
claim: string;
where: string;
scenarios: string[]; // scenario keys, rendered as ?scenario= links
}
/** Rows grouped under the paper's three contributions (mirrors the
* contribution map at the top of docs/EVIDENCE_WORKBENCH.md — if a
* claim moves there, move it here). */
interface ClaimSection {
id: string;
label: string;
/** Documented-practice grounding for the group — the corpus behind
* the claim (docs/EVIDENCE_WORKBENCH.md §1.2). One terse line;
* full citations live in the doc, not here. */
grounding: string;
rows: ClaimRow[];
}
const SECTIONS: ClaimSection[] = [
{
id: "C1",
label: "C1 — one funnel grammar, three scales (evidence steering)",
grounding: "QV protocol · Estimator precision · iCANS/Rosalin",
rows: [
{
claim: "Scale 1, within a run — the 95% interval narrows live; a precision target stops the run",
where: "Evidence Theater (auto-opens on streaming runs; “expand · theater” on the funnel card); toolbar “target ±pp”",
scenarios: ["F0", "F3"],
},
{
claim: "Scale 2, across replicates — same rule, different draws: two replays of one configuration overlaid",
where: "“Between configurations” tab → “overlay in theater” (same configuration, both runs traced)",
scenarios: ["F7"],
},
{
claim: "Scale 3, between configurations — the interval of the difference Δ(B−A) accumulates across replicates",
where: "“Between configurations” tab: difference funnel below the interval bars",
scenarios: ["F8"],
},
{
claim: "Multiverse analysis — every configuration as a small multiple with Δ vs the baseline (the scale-3 portfolio)",
where: "Evidence board — the home workspace (default landing; cards expand in place)",
scenarios: ["F2"],
},
],
},
{
id: "C2",
label: "C2 — stochastic-provenance substrate",
grounding:
"documented irreproducibility (Dasgupta & Humble; stochastic transpiler)",
rows: [
{
claim: "Seeded replay — every run is archived with its root seed and replays bit-exactly",
where: "“This configuration” tab: replay (⚲) any row; seed chip on the fidelity card",
scenarios: ["F4"],
},
{
claim: "Uncertainty in provenance — lineage nodes are distributions (evidence mass, certainty funnels)",
where: "“This configuration” tab: dot area = shots executed, replicate bands with pooled-CI funnels, fork edges",
scenarios: ["F4"],
},
{
claim: "Transformation vocabulary — uniform before→after signatures define what “a configuration” is, plugins included",
where: "Delta-strip glyphs on canvas nodes and result cards; gate-level circuit diff in the signature card",
scenarios: ["F1", "F5"],
},
],
},
{
id: "C3",
label: "C3 — honesty devices",
grounding: "benchmark-lottery critique",
rows: [
{
claim: "Honest comparison — intervals instead of scalars; overlap is called out as not-evidence",
where: "“Between configurations” tab (tick two runs in This configuration, or A/B two Evidence-board cards)",
scenarios: ["F6"],
},
{
claim: "Provenance-backed figures — every export regenerates bit-exactly from its own metadata",
where: "Camera buttons on the canvas, Evidence board, evidence pane and theater (one .bundle.zip: SVG + PNG + sidecar)",
scenarios: ["F0"],
},
],
},
];
export function ClaimsMapButton() {
const [open, setOpen] = useState(false);
useEffect(() => {
if (!open) return;
const h = (e: KeyboardEvent) => {
if (e.key === "Escape") setOpen(false);
};
window.addEventListener("keydown", h);
return () => window.removeEventListener("keydown", h);
}, [open]);
return (
<>
<button
type="button"
className="btn-ghost"
onClick={() => setOpen(true)}
title="Map of the system's research claims: what each one is, where to see it, and the scenario URL that boots its figure state"
aria-label="Open claims-to-features map"
>
<ListChecks className="w-3.5 h-3.5" />
<span className="hidden sm:inline">Claims</span>
</button>
{open && (
<div
className="fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-8"
role="dialog"
aria-modal="true"
aria-label={`${APP_NAME} claims-to-features map`}
data-marker="claims-map"
>
<div
className="absolute inset-0 bg-canvas/85 backdrop-blur-sm"
onClick={() => setOpen(false)}
/>
<div className="relative panel w-full max-w-3xl max-h-[88vh] flex flex-col overflow-hidden shadow-[0_40px_80px_-20px_rgba(0,0,0,0.6)]">
<div className="flex items-center gap-2 px-4 py-3 border-b border-edge shrink-0">
<ListChecks className="w-4 h-4 text-accent" />
<span className="text-sm font-semibold text-ink">
Claims → where to see them
</span>
<span className="text-[11px] text-mute hidden sm:inline">
each scenario URL boots the exact seeded state
</span>
<button
type="button"
onClick={() => setOpen(false)}
aria-label="Close claims map"
className="ml-auto w-8 h-8 rounded-md border border-edge bg-surface/80 text-mute hover:text-ink transition flex items-center justify-center"
>
<X className="w-4 h-4" />
</button>
</div>
<div className="flex-1 overflow-y-auto p-4">
<table className="w-full text-[12px] leading-relaxed">
<thead>
<tr className="text-mute text-left text-[10px] uppercase tracking-wider">
<th className="font-normal pb-1.5 pr-3">claim</th>
<th className="font-normal pb-1.5 pr-3">where</th>
<th className="font-normal pb-1.5">boot</th>
</tr>
</thead>
<tbody>
{SECTIONS.map((sec) => (
<React.Fragment key={sec.id}>
<tr className="border-t border-edge/50">
<td
colSpan={3}
className="pt-3 pb-1 text-[10px] uppercase tracking-wider text-accent"
>
{sec.label}
<span className="block normal-case tracking-normal text-mute">
grounded in: {sec.grounding}
</span>
</td>
</tr>
{sec.rows.map((r) => (
<tr
key={r.claim}
className="border-t border-edge/50 align-top"
>
<td className="py-2 pr-3 text-ink">{r.claim}</td>
<td className="py-2 pr-3 text-mute">{r.where}</td>
<td className="py-2 whitespace-nowrap">
{r.scenarios.map((k, i) => (
<React.Fragment key={k}>
{/* Separator OUTSIDE the link (audit
S3): " · " was part of the anchor —
clickable, underlined, read aloud. */}
{i > 0 && <span aria-hidden="true"> · </span>}
<a
href={`?scenario=${k}`}
className="text-accent hover:underline font-mono"
title={`Boot ?scenario=${k} (reloads the app into that figure state)`}
>
{k}
</a>
</React.Fragment>
))}
</td>
</tr>
))}
</React.Fragment>
))}
</tbody>
</table>
<p className="mt-3 text-[11px] text-mute">
Full design rationale and the encoding decisions behind each
view: <span className="font-mono">docs/EVIDENCE_WORKBENCH.md</span> in the repository.
</p>
</div>
</div>
</div>
)}
</>
);
}
|