mr-dee commited on
Commit
f7bca27
·
verified ·
1 Parent(s): 996c925

Honest fixture Space + pointer to live Vercel Beam audit

Browse files
Files changed (2) hide show
  1. README.md +11 -3
  2. index.html +4 -3
README.md CHANGED
@@ -9,12 +9,20 @@ license: apache-2.0
9
  short_description: Catch documentation that lies — Beam whole-repo auditor
10
  ---
11
 
12
- # RepoTruth
13
 
14
- Interactive fixture demo for the Hugging Face × Reflection **Build with Beam** challenge.
15
 
16
  - GitHub: https://github.com/dl88jing/repotruth
17
  - Landing: https://repotruth.vercel.app
18
  - Dataset: https://huggingface.co/datasets/mr-dee/repotruth-findings
19
 
20
- Green Robin Labs.
 
 
 
 
 
 
 
 
 
9
  short_description: Catch documentation that lies — Beam whole-repo auditor
10
  ---
11
 
12
+ # RepoTruth (Static Space)
13
 
14
+ Interactive **fixture-seeded** docs-vs-code autopsies for the HF × Reflection Build with Beam challenge.
15
 
16
  - GitHub: https://github.com/dl88jing/repotruth
17
  - Landing: https://repotruth.vercel.app
18
  - Dataset: https://huggingface.co/datasets/mr-dee/repotruth-findings
19
 
20
+ This free Static Space does **not** call Beam live (Gradio free CPU returns HTTP 402). For a live Reflection API call:
21
+
22
+ ```bash
23
+ git clone https://github.com/dl88jing/repotruth && cd repotruth
24
+ export REFLECTION_API_KEY=... # https://platform.reflection.ai
25
+ REPOTRUTH_BACKEND=reflection ./demo.sh
26
+ ```
27
+
28
+ Affiliation: Green Robin Labs.
index.html CHANGED
@@ -40,7 +40,7 @@ code{background:#111827;padding:2px 6px;border-radius:4px;font-size:.9em}
40
  </header>
41
  <main>
42
  <h2>Interactive fixture demo</h2>
43
- <p style="color:var(--muted)">Pre-computed Beam-style autopsies of three intentionally lying mini-repos. Run live with a Reflection API key or HF Inference Providers token via the CLI / Gradio app in the GitHub repo.</p>
44
  <div class="tabs" id="tabs"></div>
45
  <div class="grid">
46
  <div class="card" id="summary"></div>
@@ -51,6 +51,7 @@ code{background:#111827;padding:2px 6px;border-radius:4px;font-size:.9em}
51
  <div>Beam reasoning tokens</div>
52
  <div class="meter"><i id="thriftBar" style="width:33%"></i></div>
53
  <p id="thriftText" style="color:var(--muted);font-size:.9rem"></p>
 
54
  </div>
55
  </div>
56
  <div class="card" id="findings"></div>
@@ -59,7 +60,7 @@ code{background:#111827;padding:2px 6px;border-radius:4px;font-size:.9em}
59
  <ul>
60
  <li><b>1M context</b> — pack README + docs + source in one call</li>
61
  <li><b>Agentic coding / SWE</b> — judges functional lies, not wording</li>
62
- <li><b>Token-efficient reasoning</b> — thrift meter makes the ~3× savings visible</li>
63
  </ul>
64
  <p>Affiliation: <b>Green Robin Labs</b> · Challenge: HF × Reflection Build with Beam</p>
65
  </div>
@@ -87,7 +88,7 @@ function render(){
87
  <p><b>${findings.length}</b> findings · effort <code>${d.reasoning_effort||'medium'}</code></p>`;
88
  const pct = Math.round(100 * beamR / baseline);
89
  document.getElementById('thriftBar').style.width = pct + '%';
90
- document.getElementById('thriftText').textContent = `${beamR} reasoning tokens vs ~${baseline} baseline (~3× leaner) · total ${u.total_tokens||'?'} tokens`;
91
  document.getElementById('findings').innerHTML = '<h3 style="margin-top:0">Findings</h3>' + findings.map(f => {
92
  const sev = (f.severity||'medium').toUpperCase();
93
  const docs = (f.doc_refs||[]).join(', ') || 'README.md';
 
40
  </header>
41
  <main>
42
  <h2>Interactive fixture demo</h2>
43
+ <p style="color:var(--muted)">This Space shows <b>fixture-seeded</b> autopsies (Static SDK; no live model calls here). For a <b>live Beam</b> audit, open <a href="https://repotruth.vercel.app">repotruth.vercel.app</a> (Vercel <code>/api/audit</code>) or run <code>./demo.sh</code> with <code>REFLECTION_API_KEY</code>. Provider failures fall back to fixtures with a clear banner.</p>
44
  <div class="tabs" id="tabs"></div>
45
  <div class="grid">
46
  <div class="card" id="summary"></div>
 
51
  <div>Beam reasoning tokens</div>
52
  <div class="meter"><i id="thriftBar" style="width:33%"></i></div>
53
  <p id="thriftText" style="color:var(--muted);font-size:.9rem"></p>
54
+ <p style="color:var(--muted);font-size:.85rem">Usage on this Space is <b>fixture-seeded</b> (not a live Beam measurement).</p>
55
  </div>
56
  </div>
57
  <div class="card" id="findings"></div>
 
60
  <ul>
61
  <li><b>1M context</b> — pack README + docs + source in one call</li>
62
  <li><b>Agentic coding / SWE</b> — judges functional lies, not wording</li>
63
+ <li><b>Token-efficient reasoning</b> — thrift meter shows Reflection’s ~3× claim as an illustrative baseline; live usage when keyed</li>
64
  </ul>
65
  <p>Affiliation: <b>Green Robin Labs</b> · Challenge: HF × Reflection Build with Beam</p>
66
  </div>
 
88
  <p><b>${findings.length}</b> findings · effort <code>${d.reasoning_effort||'medium'}</code></p>`;
89
  const pct = Math.round(100 * beamR / baseline);
90
  document.getElementById('thriftBar').style.width = pct + '%';
91
+ /* honesty */ document.getElementById('thriftText').textContent = `${beamR} reasoning tokens vs ~${baseline} baseline (~3× leaner) · total ${u.total_tokens||'?'} tokens`;
92
  document.getElementById('findings').innerHTML = '<h3 style="margin-top:0">Findings</h3>' + findings.map(f => {
93
  const sev = (f.severity||'medium').toUpperCase();
94
  const docs = (f.doc_refs||[]).join(', ') || 'README.md';