workshop

← all creations

Consensus

viz · created 2026-09-01

Three code scanners lay their findings over the same codebase as a Venn diagram — then one scanner re-runs on byte-identical input and its own set shifts under it.

simulationcanvasarchitecture

Three independent scanners sweep the same codebase and each flags its own slice of candidates. Laid over one another as a Venn diagram, the punchline is the shape: a thin sliver where all three agree, three much larger private lobes where each scanner is alone. The headline number underneath — cross-tool agreement, averaged pairwise — is the same read as the shape, just as a percentage.

The twist is the second control. Re-run scanner A on the exact same input and watch its own dots reshuffle across the diagram — some leaving its circle, others drifting in from B’s or C’s. That number is self-agreement: how much A agrees with itself, one run to the next, nothing else in the world having changed. Intuition says that should be near 100% — a rock-solid floor under whatever the cross-tool number is. It isn’t; it lands only modestly above it. Nods to the Contrast Security report on AI code-review tools: ~5% cross-tool agreement, ~17% self-agreement on identical code, run twice.

Reuse

src/consensus.js is a framework-free ES module, pure set generation and overlap math — no rendering, no DOM:

Defaults (universeSize = 400, flagRate = 0.12, biasWeight = 0.5) were picked by sweeping biasWeight until the pairwise numbers landed close to the real report’s ~5% / ~17% — not fitted per-run, just the one constant that made the shape honest.

Gotchas