You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(proof): auto-sync official numbers from sigmap core (ISR daily)
fetchOfficial() pulls benchmarks/latest.json from the core repo (the same
source sigmap.io renders from) at build + revalidates daily; the hardcoded
OFFICIAL is now just the fallback. /benchmark and /demo derive their headline
metrics, official section, caption, and caveats from the live fetch, so when the
core team bumps the benchmark (e.g. v9.0) the demo updates within a day — no
redeploy, no hand-editing. Falls back gracefully if the fetch fails.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
title: "SigMap Demo — verified context for AI coding agents",
10
11
description:
11
12
"Paste a GitHub repo. SigMap extracts verified signatures and ranks the files that matter — feeding AI coding agents the right context with up to ~97% fewer tokens.",
12
13
};
13
14
14
-
// SigMap's published benchmark figures (sigmap.io).
15
-
constMETRICS=[
16
-
{value: "97%",label: "fewer tokens"},
17
-
{value: "87.8%",label: "hit@5 retrieval"},
18
-
{value: "67.8%",label: "task success"},
19
-
{value: "6.5×",label: "retrieval lift"},
20
-
];
15
+
// Re-pull the official numbers from the core repo about once a day (ISR).
{value: `${o.taskSuccessPct}%`,label: "task success",sub: `vs ${o.baselineTaskSuccessPct}% without context`},
110
+
];
111
+
}
112
+
113
+
/** Static headline from the fallback — used by the OG card (build-time only). */
114
+
exportconstHEADLINE=headlineFrom(OFFICIAL);
40
115
41
116
/**
42
-
* Independent extended reproduction — we ran whole-repo extraction 19× larger
43
-
* than the official set (405 repos) to stress-test the token-reduction claim.
44
-
* 98.7% overall is consistent with the official 97%.
117
+
* Independent extended reproduction — whole-repo extraction 19× larger than the
118
+
* official set (405 repos). 98.7% overall is consistent with the official 97%.
45
119
*/
46
120
exportconstSCALE={
47
121
reposProcessed: 405,
@@ -84,13 +158,12 @@ export const TASKS = {
84
158
tokensAfter: 45_866,
85
159
costBefore: 1.7261,
86
160
costAfter: 0.0179,
87
-
retrievalPct: 62.7,// right file in top-5 on this broad set (harder than the curated 18)
161
+
retrievalPct: 62.7,
88
162
}asconst;
89
163
90
164
/**
91
165
* Agent A/B — does the token saving make a real agent (Devin) faster? Honest
92
-
* answer after a 3-rep A/B: no robust wall-clock difference (within noise). An
93
-
* early single run looked like a big win, but that was n=1 noise.
166
+
* answer after a 3-rep A/B: no robust wall-clock difference (within noise).
94
167
*/
95
168
exportconstAGENT={
96
169
reps: 3,
@@ -101,9 +174,11 @@ export const AGENT = {
101
174
}asconst;
102
175
103
176
/** Honest caveats — shown on the page so the numbers are trustworthy. */
104
-
exportconstCAVEATS=[
105
-
`The headline figures are the official SigMap benchmark (${OFFICIAL.version}, ${OFFICIAL.reposToken} repos, ${OFFICIAL.tasks} tasks) — synced from the core repo, same as sigmap.io.`,
106
-
"The 405-repo run is our own independent stress test; 84 use languages SigMap doesn't yet parse (Clojure/Lua/C/C++/Haskell) and are excluded, not hidden.",
107
-
"Retrieval on the broad 405-repo set is lower than the official 87.8% — a wider, messier corpus is harder than the curated benchmark set.",
108
-
"We did NOT find a reproducible agent wall-clock speedup: a 3-rep Devin A/B came out within noise (8.4 vs 8.0 min). Token/cost savings are deterministic; agent-speed is still open.",
109
-
];
177
+
exportfunctioncaveatsFrom(o: Official): string[]{
178
+
return[
179
+
`The headline figures are the official SigMap benchmark (${o.version}, ${o.reposToken} repos, ${o.tasks} tasks) — pulled live from the core repo, same as sigmap.io.`,
180
+
"The 405-repo run is our own independent stress test; 84 use languages SigMap doesn't yet parse (Clojure/Lua/C/C++/Haskell) and are excluded, not hidden.",
181
+
`Retrieval on the broad 405-repo set is lower than the official ${o.hitAt5Pct}% — a wider, messier corpus is harder than the curated benchmark set.`,
182
+
"We did NOT find a reproducible agent wall-clock speedup: a 3-rep Devin A/B came out within noise (8.4 vs 8.0 min). Token/cost savings are deterministic; agent-speed is still open.",
0 commit comments