thumbgate 1.39.1 → 1.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.well-known/llms.txt +2 -2
  3. package/.well-known/mcp/server-card.json +1 -1
  4. package/README.md +5 -4
  5. package/adapters/claude/.mcp.json +6 -2
  6. package/adapters/codex/config.toml +5 -0
  7. package/adapters/forge/forge.yaml +4 -4
  8. package/adapters/future-agi/.mcp.json +1 -1
  9. package/adapters/future-agi/config.toml +1 -1
  10. package/adapters/future-agi/opencode.json +1 -1
  11. package/adapters/herdr/herdr-plugin.toml +2 -2
  12. package/adapters/mcp/server-stdio.js +82 -7
  13. package/adapters/opencode/opencode.json +1 -1
  14. package/bin/cli.js +128 -15
  15. package/config/brand-standards.json +131 -0
  16. package/config/gates/default.json +18 -1
  17. package/config/github-about.json +1 -1
  18. package/config/mcp-allowlists.json +16 -3
  19. package/config/merge-quality-checks.json +1 -0
  20. package/config/post-deploy-marketing-pages.json +3 -3
  21. package/config/schemas/task-outcome-receipt.schema.json +9 -0
  22. package/openapi/openapi.yaml +7 -3
  23. package/package.json +98 -31
  24. package/public/about.html +2 -2
  25. package/public/admin.html +771 -0
  26. package/public/agent-manager.html +3 -3
  27. package/public/agents-cost-savings.html +1 -1
  28. package/public/ai-malpractice-prevention.html +12 -12
  29. package/public/architecture.html +0 -1
  30. package/public/assets/diagrams/decision.svg +3 -3
  31. package/public/blog/2026-10-05-why-3-days-of-triage-wont-save-ai-speed-code.html +1 -1
  32. package/public/blog/2026-10-09-your-code-got-a-third-author-governance.html +1 -1
  33. package/public/blog/git-at-agent-scale.html +2 -2
  34. package/public/blog/inside-your-boundary.html +1 -1
  35. package/public/blog/process-over-outcome-gates.html +1 -1
  36. package/public/case-studies.html +1 -2
  37. package/public/codex-enterprise.html +1 -1
  38. package/public/codex-plugin.html +1 -1
  39. package/public/dashboard.html +773 -481
  40. package/public/diagnostic.html +8 -3
  41. package/public/enterprise-governance.html +26 -174
  42. package/public/eval-scorecard.html +3 -4
  43. package/public/eval-scorecard.json +2 -2
  44. package/public/evaluations.html +0 -1
  45. package/public/founders.html +3 -3
  46. package/public/gaming-playbook.html +4 -4
  47. package/public/guide.html +3 -5
  48. package/public/index.html +181 -205
  49. package/public/install.html +12 -11
  50. package/public/js/buyer-intent.js +49 -8
  51. package/public/lessons.html +103 -46
  52. package/public/numbers.html +32 -33
  53. package/public/operator-framework.html +44 -72
  54. package/public/peter.html +3 -3
  55. package/public/platform-partners.html +1 -1
  56. package/public/pricing.html +61 -327
  57. package/public/pro.html +3 -1
  58. package/public/project-switcher.js +76 -0
  59. package/public/whitepaper.html +1 -2
  60. package/scripts/activation-quickstart.js +15 -3
  61. package/scripts/activation-tracker.js +280 -3
  62. package/scripts/agent-action-inventory.js +235 -143
  63. package/scripts/agent-operations-planner.js +1 -1
  64. package/scripts/agent-readiness.js +36 -6
  65. package/scripts/agentic-prompt-pipelines.js +901 -0
  66. package/scripts/analytics-report.js +363 -0
  67. package/scripts/analytics-window.js +7 -1
  68. package/scripts/async-job-runner.js +66 -11
  69. package/scripts/audit-trail.js +37 -24
  70. package/scripts/auto-context-packs.js +249 -0
  71. package/scripts/auto-promote-gates.js +37 -27
  72. package/scripts/backfill-lesson-scopes.js +122 -0
  73. package/scripts/billing-setup.js +137 -0
  74. package/scripts/billing.js +889 -132
  75. package/scripts/bot-detection.js +112 -0
  76. package/scripts/brand-standards-gate.js +571 -0
  77. package/scripts/chatgpt-ads-readiness-pack.js +1 -1
  78. package/scripts/check-update.js +236 -0
  79. package/scripts/cli-schema.js +1 -1
  80. package/scripts/commercial-offer.js +2 -2
  81. package/scripts/contextfs.js +9 -3
  82. package/scripts/conversion-rate-stats.js +442 -0
  83. package/scripts/cost-cli.js +147 -0
  84. package/scripts/creator-campaigns.js +239 -0
  85. package/scripts/cross-encoder-reranker.js +4 -0
  86. package/scripts/cuda-gate-batch.js +560 -0
  87. package/scripts/daemon-manager.js +108 -0
  88. package/scripts/dashboard-chat.js +11 -0
  89. package/scripts/dashboard.js +576 -169
  90. package/scripts/decision-journal.js +7 -4
  91. package/scripts/delegation-runtime.js +1036 -0
  92. package/scripts/dispatch-brief.js +159 -0
  93. package/scripts/distribution-surfaces.js +110 -0
  94. package/scripts/docker-sandbox-planner.js +3 -3
  95. package/scripts/egm-goldfish-packet.js +95 -0
  96. package/scripts/embeddinggemma-adapter.js +407 -0
  97. package/scripts/export-dpo-pairs.js +12 -7
  98. package/scripts/feedback-aggregate.js +4 -0
  99. package/scripts/feedback-attribution.js +6 -4
  100. package/scripts/feedback-history-distiller.js +18 -6
  101. package/scripts/feedback-loop.js +255 -89
  102. package/scripts/feedback-paths.js +8 -1
  103. package/scripts/feedback-sanitizer.js +5 -0
  104. package/scripts/feedback-scope.js +106 -0
  105. package/scripts/feedback-session.js +8 -2
  106. package/scripts/filesystem-search.js +13 -8
  107. package/scripts/financial-control-plane.js +707 -45
  108. package/scripts/funnel-analytics.js +35 -0
  109. package/scripts/gate-semantic-layer.js +292 -0
  110. package/scripts/gate-stats.js +8 -2
  111. package/scripts/gates-engine.js +694 -230
  112. package/scripts/generate-eval-scorecard.js +0 -1
  113. package/scripts/harness-tool-names.js +31 -5
  114. package/scripts/hybrid-feedback-context.js +5 -2
  115. package/scripts/implementation-notes.js +241 -0
  116. package/scripts/intent-router.js +518 -0
  117. package/scripts/intervention-policy.js +2 -1
  118. package/scripts/latency-budget.js +164 -0
  119. package/scripts/lesson-canonical.js +2 -2
  120. package/scripts/lesson-db.js +55 -14
  121. package/scripts/lesson-graph.js +2 -1
  122. package/scripts/lesson-retrieval.js +95 -9
  123. package/scripts/lesson-search.js +86 -22
  124. package/scripts/lesson-synthesis.js +21 -5
  125. package/scripts/mailer/index.js +17 -1
  126. package/scripts/mailer/resend-mailer.js +213 -179
  127. package/scripts/mcp-writeguard.js +158 -0
  128. package/scripts/migrate-project-scope.js +209 -0
  129. package/scripts/model-candidates.js +414 -0
  130. package/scripts/openrouter-armor-partnership-diode.js +2419 -0
  131. package/scripts/operational-dashboard.js +172 -0
  132. package/scripts/operational-integrity.js +436 -3
  133. package/scripts/operational-summary.js +190 -0
  134. package/scripts/operator-artifacts.js +622 -0
  135. package/scripts/optimize-context.js +17 -0
  136. package/scripts/override-audit.js +2 -0
  137. package/scripts/owner-admin.js +338 -0
  138. package/scripts/pr-manager.js +194 -1
  139. package/scripts/predictive-insights.js +449 -0
  140. package/scripts/profound-aeo-citation-engine.js +583 -0
  141. package/scripts/progressive-signoff.js +260 -0
  142. package/scripts/project-catalog.js +243 -0
  143. package/scripts/project-dashboard.js +61 -0
  144. package/scripts/project-evidence.js +172 -0
  145. package/scripts/project-identity.js +182 -0
  146. package/scripts/project-scope.js +381 -0
  147. package/scripts/prompt-guard.js +446 -52
  148. package/scripts/proof-report.js +232 -0
  149. package/scripts/provider-action-normalizer.js +14 -6
  150. package/scripts/pulse.js +80 -0
  151. package/scripts/rate-limiter.js +41 -0
  152. package/scripts/rrsi-doctor.js +2698 -0
  153. package/scripts/secret-redaction.js +171 -25
  154. package/scripts/secret-scanner.js +101 -42
  155. package/scripts/self-protection.js +2 -2
  156. package/scripts/seo-gsd.js +14 -14
  157. package/scripts/session-context-dedupe.js +66 -0
  158. package/scripts/session-report.js +120 -0
  159. package/scripts/settings-hierarchy.js +4 -2
  160. package/scripts/statusline-meta.js +34 -23
  161. package/scripts/subagent-profiles.js +79 -0
  162. package/scripts/task-outcomes.js +29 -2
  163. package/scripts/telemetry-analytics.js +238 -13
  164. package/scripts/third-author-cli.js +118 -0
  165. package/scripts/third-author-governance.js +437 -0
  166. package/scripts/thumbgate-dream.js +878 -0
  167. package/scripts/thumbgate-search.js +23 -9
  168. package/scripts/tool-kpi-tracker.js +5 -2
  169. package/scripts/tool-registry.js +42 -1
  170. package/scripts/triage-savings-calculator.js +1 -1
  171. package/scripts/vector-store.js +4 -1
  172. package/scripts/verified-lessons.js +270 -0
  173. package/scripts/verify-marketing-pages-deployed.js +2 -2
  174. package/scripts/workflow-sentinel.js +29 -10
  175. package/server.json +2 -2
  176. package/skills/thumbgate-daily-discoveries/SKILL.md +25 -41
  177. package/src/api/server.js +2371 -451
  178. package/src/feedback.js +21 -0
  179. package/src/hermes-sync-plane.js +2 -1
  180. package/src/index.js +2 -0
  181. package/src/lesson-search.js +9 -0
  182. package/src/mckinsey-top-company-ai-coding.js +493 -0
  183. package/src/mcp/server.js +3 -0
  184. package/src/mcp-writeguard.js +772 -11
  185. package/src/openshell-lovable-engine.js +1475 -0
  186. package/src/task-outcome.js +3 -0
  187. package/config/evals/agent-safety-eval.json +0 -447
  188. package/config/evals/retrieval-ranking-golden.json +0 -522
  189. package/config/progressive/01-wire-only.json +0 -11
  190. package/config/progressive/02-dashboard-empty-ok.json +0 -10
  191. package/config/progressive/03-one-lesson.json +0 -10
  192. package/config/progressive/04-warn-fires.json +0 -11
  193. package/config/progressive/05-strict-optional.json +0 -11
  194. package/config/progressive/README.md +0 -15
  195. package/public/assets/diagrams/agent-integration.png +0 -0
  196. package/public/assets/diagrams/thumbgate-architecture.png +0 -0
  197. package/scripts/install-thumbgate-daily-publish-launchd.sh +0 -83
  198. package/scripts/thumbgate-daily-discoveries-publish.js +0 -461
  199. package/scripts/thumbgate-daily-discoveries-publish.sh +0 -18
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  __GOOGLE_SITE_VERIFICATION_META__
7
7
  <title>Install ThumbGate | Live agent guardrails for Claude, Cursor, Codex, and VS Code</title>
8
- <meta name="description" content="Install ThumbGate from npm, VS Code Marketplace, Open VSX, GitHub Release, or MCP Registry. See what is live now, what is pending, and when to buy the Managed AI Agent Workflow Gate.">
8
+ <meta name="description" content="Install ThumbGate from npm, VS Code Marketplace, Open VSX, GitHub Release, or MCP Registry. See what is live now, what is pending, and when to buy the Setup Sprint.">
9
9
  <meta property="og:title" content="Install ThumbGate">
10
10
  <meta property="og:description" content="Proof-backed install paths for ThumbGate agent guardrails, plus the paid diagnostic path for one repeated workflow failure.">
11
11
  <meta property="og:type" content="website">
@@ -133,13 +133,13 @@ __GA_BOOTSTRAP__
133
133
  <div class="container">
134
134
  <span class="eyebrow">Install paths verified for v1.27.20</span>
135
135
  <h1>Install the agent guardrail before the next repeated mistake costs real money.</h1>
136
- <p class="lede">ThumbGate is live on the surfaces developers already use: npm, VS Code Marketplace, Open VSX, GitHub Release assets, and MCP Registry. If the risky workflow is already customer-visible, start with the Managed AI Agent Workflow Gate instead of another generic install.</p>
136
+ <p class="lede">ThumbGate is live on the surfaces developers already use: npm, VS Code Marketplace, Open VSX, GitHub Release assets, and MCP Registry. If the risky workflow is already customer-visible, start with the Setup Sprint instead of another generic install.</p>
137
137
  <div class="actions">
138
138
  <a class="btn-primary" href="#install">Install now</a>
139
139
  <a class="btn-secondary" href="/diagnostic?utm_source=install_page&utm_medium=owned_page&utm_campaign=marketplace_distribution">Harden one workflow</a>
140
140
  </div>
141
141
  <div class="proof-strip" aria-label="Verified live distribution surfaces">
142
- <div class="proof"><strong>npm</strong><span>thumbgate@1.39.1</span></div>
142
+ <div class="proof"><strong>npm</strong><span>thumbgate@1.40.2</span></div>
143
143
  <div class="proof"><strong>VS Code</strong><span>Marketplace version live</span></div>
144
144
  <div class="proof"><strong>Open VSX</strong><span>Antigravity-compatible path</span></div>
145
145
  <div class="proof"><strong>MCP Registry</strong><span>1.27.20 is latest</span></div>
@@ -152,12 +152,13 @@ __GA_BOOTSTRAP__
152
152
  <h2>Choose the install path that matches your agent.</h2>
153
153
  <p class="section-lede">Use the local CLI path for immediate enforcement. Use marketplace installs where your editor supports them. Use the diagnostic path when you need a human-reviewed gate map for one risky workflow. New install: <a href="/guides/progressive-wiring">prove the pipe first</a> (doctor green, empty dashboard OK) before expecting a gate to fire.</p>
154
154
  <div class="grid">
155
- <article class="card"><h3>CLI and MCP-compatible agents</h3><p>Fastest path for Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and local MCP-compatible agents.</p><pre><code>npx -y thumbgate@1.39.1 init --agent claude
156
- npx -y thumbgate@1.39.1 doctor
157
- npx -y thumbgate@1.39.1 doctor --fix</code></pre></article>
158
- <article class="card"><h3>Claude Desktop</h3><p>Use the npm-backed MCP server today. The Claude Desktop `.mcpb` directory submission packet is prepared separately.</p><pre><code>claude mcp add thumbgate -- npx --yes --package thumbgate@1.39.1 thumbgate serve</code></pre></article>
159
- <article class="card"><h3>Cursor</h3><p>The public Cursor Marketplace listing is not live yet. Use the CLI wiring while the dashboard submission is resolved.</p><pre><code>npx -y thumbgate@1.39.1 init --agent cursor</code></pre></article>
160
- <article class="card"><h3>Codex</h3><p>Use the local adapter now. Public Codex self-serve plugin publishing is not open yet, so the GitHub Release asset is the distribution proof.</p><pre><code>npx -y thumbgate@1.39.1 init --agent codex</code></pre></article>
155
+ <article class="card" id="quickstart"><h3>First gate block in one command</h3><p>Promote your first prevention rule, watch ThumbGate block a repeat mistake live, and unlock the built-in safety rule pack + 3 custom block rules on the Free tier (7-day local Pro trial included).</p><pre><code>npx thumbgate quickstart</code></pre></article>
156
+ <article class="card"><h3>CLI and MCP-compatible agents</h3><p>Fastest path for Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and local MCP-compatible agents.</p><pre><code>npx -y thumbgate@1.40.2 init --agent claude
157
+ npx -y thumbgate@1.40.2 doctor
158
+ npx -y thumbgate@1.40.2 doctor --fix</code></pre></article>
159
+ <article class="card"><h3>Claude Desktop</h3><p>Use the npm-backed MCP server today. The Claude Desktop `.mcpb` directory submission packet is prepared separately.</p><pre><code>claude mcp add thumbgate -- npx --yes --package thumbgate@1.40.2 thumbgate serve</code></pre></article>
160
+ <article class="card"><h3>Cursor</h3><p>The public Cursor Marketplace listing is not live yet. Use the CLI wiring while the dashboard submission is resolved.</p><pre><code>npx -y thumbgate@1.40.2 init --agent cursor</code></pre></article>
161
+ <article class="card"><h3>Codex</h3><p>Use the local adapter now. Public Codex self-serve plugin publishing is not open yet, so the GitHub Release asset is the distribution proof.</p><pre><code>npx -y thumbgate@1.40.2 init --agent codex</code></pre></article>
161
162
  <article class="card" id="grok"><h3>Grok</h3><p>Grok Build CLI. There is no Grok store listing. This command adds the npm server. <code>npx thumbgate init</code> also writes the Claude-style config Grok reads.</p><pre><code>grok mcp add thumbgate -- npx -y thumbgate mcp</code></pre></article>
162
163
  <article class="card" id="hermes"><h3>Hermes</h3><p>Local hook for Nous Research Hermes. Merge <code>adapters/hermes/config.yaml</code> into <code>~/.hermes/config.yaml</code>. There is no Hermes directory listing.</p><pre><code>npx --yes --package thumbgate thumbgate hermes-gate</code></pre></article>
163
164
  </div>
@@ -168,7 +169,7 @@ npx -y thumbgate@1.39.1 doctor --fix</code></pre></article>
168
169
  <h2>Verified public surfaces.</h2>
169
170
  <p class="section-lede">These are the surfaces safe to claim in public copy right now. Pending surfaces are listed so buyers do not get sent to dead marketplace pages.</p>
170
171
  <div class="status-list">
171
- <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://www.npmjs.com/package/thumbgate">npm package</a></strong><span>`thumbgate@1.39.1` is the canonical runtime install.</span></div></div>
172
+ <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://www.npmjs.com/package/thumbgate">npm package</a></strong><span>`thumbgate@1.40.2` is the canonical runtime install.</span></div></div>
172
173
  <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://marketplace.visualstudio.com/items?itemName=igorganapolsky.thumbgate">VS Code Marketplace</a></strong><span>Marketplace version-list API includes `1.27.20`.</span></div></div>
173
174
  <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://open-vsx.org/extension/igorganapolsky/thumbgate">Open VSX</a></strong><span>Public registry latest version is `1.27.20`; use this path for VS Code-compatible IDEs that consume Open VSX.</span></div></div>
174
175
  <div class="status"><span class="badge live">LIVE</span><div><strong><a href="https://registry.modelcontextprotocol.io/v0/servers?search=thumbgate">MCP Registry</a></strong><span>Public search returns `io.github.IgorGanapolsky/thumbgate` version `1.27.20` as latest.</span></div></div>
@@ -185,7 +186,7 @@ npx -y thumbgate@1.39.1 doctor --fix</code></pre></article>
185
186
  <div class="container">
186
187
  <div class="cta-band">
187
188
  <h2>When install is not enough, buy the diagnostic.</h2>
188
- <p>If one AI-agent workflow already touches customers, money, production, outbound messages, browser automation, or deploy approvals, a generic install is not enough. The Managed AI Agent Workflow Gate turns the repeated failure into one configured local gate, a regression test, and rollout and rollback proof.</p>
189
+ <p>If one AI-agent workflow already touches customers, money, production, outbound messages, browser automation, or deploy approvals, a generic install is not enough. The Setup Sprint turns the repeated failure into one configured local gate, a regression test, and rollout and rollback proof.</p>
189
190
  <div class="actions">
190
191
  <a class="btn-primary" href="/diagnostic?utm_source=install_page&utm_medium=owned_page&utm_campaign=workflow_hardening_diagnostic">Start the $499 diagnostic</a>
191
192
  <a class="btn-secondary" href="/guide">Read the setup guide</a>
@@ -219,17 +219,38 @@
219
219
  global.document.head.appendChild(style);
220
220
  }
221
221
 
222
- function initializeRevenueAssist(options) {
223
- var settings = options || {};
224
- if (!global.document || typeof global.document.querySelector !== 'function') return null;
225
- if (global.document.querySelector('[data-revenue-assist="off"]')) return null;
226
- if (global.document.querySelector('[data-thumbgate-revenue-assist]')) return null;
222
+ function isPaidSessionPayload(session) {
223
+ return Boolean(
224
+ session
225
+ && session.authenticated === true
226
+ && (session.tier === 'Pro' || session.tier === 'Team' || session.tier === 'Enterprise')
227
+ );
228
+ }
227
229
 
228
- var pathname = settings.pathname || getCurrentPathname();
229
- if (!isRevenueAssistEligible(pathname)) return null;
230
+ function removePaidSessionUpsells() {
231
+ if (!global.document || typeof global.document.querySelectorAll !== 'function') return;
232
+ Array.from(global.document.querySelectorAll('[data-thumbgate-revenue-assist],[data-thumbgate-abandon-survey]'))
233
+ .forEach(function(el) { el.remove(); });
234
+ }
230
235
 
231
- injectRevenueAssistStyles();
236
+ function isRevenueAssistSuppressedInDom() {
237
+ if (!global.document || typeof global.document.querySelector !== 'function') return true;
238
+ return Boolean(
239
+ global.document.querySelector('[data-revenue-assist="off"]')
240
+ || global.document.querySelector('[data-thumbgate-revenue-assist]')
241
+ );
242
+ }
232
243
 
244
+ function handleRevenueAssistSessionResult(session, settings, pathname) {
245
+ if (isPaidSessionPayload(session)) {
246
+ removePaidSessionUpsells();
247
+ return null;
248
+ }
249
+ if (isRevenueAssistSuppressedInDom()) return null;
250
+ return mountRevenueAssistPanel(settings, pathname);
251
+ }
252
+ function mountRevenueAssistPanel(settings, pathname) {
253
+ injectRevenueAssistStyles();
233
254
  var placement = settings.placement || normalizePlacement(pathname);
234
255
  var campaign = settings.campaign || 'high_traffic_pages';
235
256
  var proHref = appendCampaignParams(settings.proHref || '/checkout/pro', {
@@ -386,6 +407,25 @@
386
407
  };
387
408
  }
388
409
 
410
+ function initializeRevenueAssist(options) {
411
+ var settings = options || {};
412
+ if (isRevenueAssistSuppressedInDom()) return null;
413
+
414
+ var pathname = settings.pathname || getCurrentPathname();
415
+ if (!isRevenueAssistEligible(pathname)) return null;
416
+
417
+ if (typeof global.fetch !== 'function' || settings.skipSessionCheck === true) {
418
+ return mountRevenueAssistPanel(settings, pathname);
419
+ }
420
+
421
+ return global.fetch('/v1/auth/session', { credentials: 'include' })
422
+ .then(function(res) { return res && res.ok ? res.json() : null; })
423
+ .catch(function() { return null; })
424
+ .then(function(session) {
425
+ return handleRevenueAssistSessionResult(session, settings, pathname);
426
+ });
427
+ }
428
+
389
429
  function normalizeInteger(value) {
390
430
  var parsed = Number(value);
391
431
  return Number.isFinite(parsed) ? Math.round(parsed) : null;
@@ -669,6 +709,7 @@
669
709
  initializeEmailCheckoutButtons: initializeEmailCheckoutButtons,
670
710
  initializeRevenueAssist: initializeRevenueAssist,
671
711
  isRevenueAssistEligible: isRevenueAssistEligible,
712
+ isPaidSessionPayload: isPaidSessionPayload,
672
713
  trackEvent: trackEvent,
673
714
  initializeBehaviorAnalytics: initializeBehaviorAnalytics,
674
715
  bucketDwellMs: bucketDwellMs,
@@ -45,15 +45,18 @@
45
45
  .container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
46
46
 
47
47
  /* NAV */
48
- nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 14px 0; }
49
- nav .container { display: flex; justify-content: space-between; align-items: center; }
50
- .nav-logo { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
51
- .nav-logo .logo-mark { width: 28px; height: 28px; display: block; }
52
- .nav-links { display: flex; gap: 16px; align-items: center; }
53
- .nav-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
54
- .nav-links a:hover { color: var(--text); }
55
- .nav-links a.active { color: var(--cyan); }
56
-
48
+ nav.app-top-nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 11, 16, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(39, 50, 70, 0.75); padding: 8px 0; }
49
+ nav.app-top-nav .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: nowrap; }
50
+ nav.app-top-nav .nav-logo { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: #f5f7fb; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; white-space: nowrap; }
51
+ nav.app-top-nav .nav-logo:hover { color: #ffffff; }
52
+ nav.app-top-nav .nav-logo .logo-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
53
+ nav.app-top-nav .nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
54
+ nav.app-top-nav .nav-tab { color: #9ca8ba; text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease; white-space: nowrap; }
55
+ nav.app-top-nav .nav-tab:hover { color: #f5f7fb; background: rgba(255, 255, 255, 0.05); }
56
+ nav.app-top-nav .nav-tab.active { color: #f5f7fb; background: rgba(56, 215, 255, 0.12); border-color: rgba(56, 215, 255, 0.34); }
57
+ nav.app-top-nav .nav-github { color: #9ca8ba; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(39, 50, 70, 0.65); background: rgba(17, 22, 31, 0.55); transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease; flex-shrink: 0; }
58
+ nav.app-top-nav .nav-github:hover { color: #f5f7fb; border-color: rgba(56, 215, 255, 0.45); background: rgba(56, 215, 255, 0.1); }
59
+ @media (max-width: 640px) { nav.app-top-nav .container { padding-left: 14px; padding-right: 14px; gap: 8px; } nav.app-top-nav .nav-logo { font-size: 15px; gap: 8px; } nav.app-top-nav .nav-links { gap: 4px; } nav.app-top-nav .nav-tab { font-size: 13px; padding: 0 10px; } }
57
60
  /* STATS */
58
61
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
59
62
  .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: border-color 0.15s, transform 0.1s; cursor: pointer; }
@@ -216,20 +219,22 @@
216
219
  }
217
220
 
218
221
  </style>
222
+ <script src="/project-switcher.js"></script>
219
223
  </head>
220
224
  <body>
221
225
 
222
- <nav>
226
+ <!-- __SIGNED_IN_APP_NAV_START__ -->
227
+ <nav class="app-top-nav" aria-label="Primary navigation">
223
228
  <div class="container">
224
- <a href="/dashboard" class="nav-logo"><img src="/assets/brand/thumbgate-mark-inline-v3.svg" alt="ThumbGate" class="logo-mark" width="28" height="28"><span class="logo-text">ThumbGate</span></a>
229
+ <a href="/" class="nav-logo" aria-label="ThumbGate home"><img src="/assets/brand/thumbgate-mark-inline-v3.svg" alt="" class="logo-mark" width="28" height="28"><span class="logo-text">ThumbGate</span></a>
225
230
  <div class="nav-links">
226
- <a href="/dashboard">Dashboard</a>
227
- <a href="/lessons" class="active">Lessons</a>
228
- <a href="/">Landing Page</a>
229
- <a href="https://github.com/IgorGanapolsky/ThumbGate" target="_blank" rel="noopener">GitHub</a>
231
+ <a href="/dashboard" class="nav-tab">Dashboard</a>
232
+ <a href="/lessons" class="nav-tab active" aria-current="page">Lessons</a>
233
+ <a href="https://github.com/IgorGanapolsky/ThumbGate" class="nav-github" target="_blank" rel="noopener" aria-label="GitHub" title="GitHub"><svg viewBox="0 0 16 16" width="18" height="18" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
230
234
  </div>
231
235
  </div>
232
236
  </nav>
237
+ <!-- __SIGNED_IN_APP_NAV_END__ -->
233
238
 
234
239
  <div class="container">
235
240
  <div style="margin:32px 0 24px;padding:24px;background:linear-gradient(135deg,rgba(167,139,250,0.08),rgba(34,211,238,0.05));border:1px solid rgba(167,139,250,0.2);border-radius:12px;">
@@ -375,12 +380,14 @@
375
380
  <div class="pro-badge" id="proBadge" style="display:none;">
376
381
  <h3>Unlock Full Insights</h3>
377
382
  <p>DPO training data export, effectiveness charts, pattern clustering, weekly auto-digests, and a learned intervention policy trained from feedback, audits, and diagnostics.</p>
378
- <a href="/#pricing">Get Pro — $19/mo</a>
383
+ <a href="/pricing">Get the $499 Setup Sprint</a>
379
384
  </div>
380
385
  </div>
381
386
  </div>
382
387
 
383
388
  <script>
389
+ function projectFetch(input, init) { return fetch(window.ThumbGateProjects.url(input), init); }
390
+
384
391
  var allRules = [];
385
392
  var allTimeline = [];
386
393
  var isDemo = true;
@@ -395,19 +402,19 @@ const LOCAL_PRO_BOOTSTRAP = __LESSONS_BOOTSTRAP_ENABLED__;
395
402
  function escHtml(s) { var d = document.createElement('div'); d.textContent = s; return d.innerHTML; }
396
403
  function escAttr(s) { return escHtml(String(s || '')).replace(/"/g, '&quot;'); }
397
404
 
398
- let ACTIVE_PROJECT_DIR = '';
405
+ let ACTIVE_PROJECT_KEY = '';
399
406
  try {
400
407
  var urlParams = new URLSearchParams(window.location.search);
401
- ACTIVE_PROJECT_DIR = urlParams.get('project') || '';
408
+ ACTIVE_PROJECT_KEY = urlParams.get('project') || '';
402
409
  } catch (e) {}
403
410
 
404
411
  function preserveProjectQueryParams() {
405
- if (!ACTIVE_PROJECT_DIR) return;
412
+ if (!ACTIVE_PROJECT_KEY) return;
406
413
  var links = document.querySelectorAll('a[href^="/dashboard"], a[href^="/lessons"], a[href="/"]');
407
414
  links.forEach(function(link) {
408
415
  try {
409
416
  var url = new URL(link.href, window.location.origin);
410
- url.searchParams.set('project', ACTIVE_PROJECT_DIR);
417
+ url.searchParams.set('project', ACTIVE_PROJECT_KEY);
411
418
  link.href = url.pathname + url.search + url.hash;
412
419
  } catch (e) {}
413
420
  });
@@ -416,9 +423,12 @@ function preserveProjectQueryParams() {
416
423
  window.addEventListener('DOMContentLoaded', preserveProjectQueryParams);
417
424
 
418
425
  function getHeaders() {
419
- var headers = { 'Authorization': 'Bearer ' + API_KEY, 'Content-Type': 'application/json' };
420
- if (ACTIVE_PROJECT_DIR) {
421
- headers['x-thumbgate-project-dir'] = ACTIVE_PROJECT_DIR;
426
+ var headers = { 'Content-Type': 'application/json' };
427
+ if (API_KEY) {
428
+ headers['Authorization'] = 'Bearer ' + API_KEY;
429
+ }
430
+ if (ACTIVE_PROJECT_KEY) {
431
+ headers['x-thumbgate-project'] = ACTIVE_PROJECT_KEY;
422
432
  }
423
433
  return headers;
424
434
  }
@@ -736,6 +746,10 @@ function renderImprovementMetrics(stats, data) {
736
746
  var blocked = gateStats.blocked || 0;
737
747
  var resolvedCount = decisionLoop.resolvedCount || 0;
738
748
 
749
+ if (window.ThumbGateProjects.selected && data.decisions === null) {
750
+ summary.textContent = 'Decision metrics are unavailable for this project. The chart shows recorded project feedback and gate decisions.';
751
+ grid.textContent = 'Unavailable for this project';
752
+ } else {
739
753
  summary.textContent = 'ThumbGate is auto-routing ' + fastPathRate + '% of tracked decisions while holding override rate at ' + overrideRate + '% and rollback rate at ' + rollbackRate + '% across '
740
754
  + resolvedCount + ' resolved decision' + (resolvedCount === 1 ? '' : 's') + '. Feedback approval is ' + approvalRate + '%, and gates still recorded ' + blocked + ' deny decision' + (blocked === 1 ? '' : 's') + '.';
741
755
 
@@ -748,6 +762,8 @@ function renderImprovementMetrics(stats, data) {
748
762
  return '<div class="metric-tile"><div class="metric-kicker">' + escHtml(tile.label) + '</div><div class="metric-number ' + escHtml(tile.tone) + '">' + escHtml(tile.value) + '</div><div class="metric-note">' + escHtml(tile.note) + '</div></div>';
749
763
  }).join('');
750
764
 
765
+ }
766
+
751
767
  var gateDays = {};
752
768
  ((gateAudit.days) || []).forEach(function(day) {
753
769
  gateDays[day.dayKey] = day;
@@ -975,19 +991,33 @@ var demoTimeline = [
975
991
  { signal: 'down', context: 'Spent 45min on code when curl would have diagnosed in 30s', date: '3 days ago', learned: 'curl first, never edit .env' },
976
992
  ];
977
993
 
994
+ async function submitLessonsTalkToUs(btn) {
995
+ var wrap = btn.closest('[data-talk-wrap]'), emailEl = wrap && wrap.querySelector('[data-talk-email]'), statusEl = wrap && wrap.querySelector('[data-talk-status]');
996
+ btn.disabled = true;
997
+ try {
998
+ var res = await projectFetch('/v1/intake/workflow-sprint', { method: 'POST', credentials: 'same-origin', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: (emailEl && emailEl.value.trim()) || undefined, workflow: 'Free-tier lessons limit (Talk to us)', urgency: 'Hit free-tier limit on /lessons', planId: 'diagnostic', ctaId: 'workflow_sprint_intake', ctaPlacement: 'free_tier_limit', page: '/lessons' }) });
999
+ if (res.status === 400 && emailEl && emailEl.style.display === 'none') {
1000
+ emailEl.style.display = 'inline-block'; emailEl.focus();
1001
+ if (statusEl) statusEl.textContent = 'Enter work email, then click Talk to us.';
1002
+ btn.disabled = false; return;
1003
+ }
1004
+ var data = await res.json().catch(function() { return {}; });
1005
+ if (res.ok && data.ok) {
1006
+ if (statusEl) statusEl.textContent = '✓ Queued — Igor will follow up directly.';
1007
+ if (emailEl) emailEl.style.display = 'none';
1008
+ btn.textContent = 'Request sent'; return;
1009
+ }
1010
+ if (statusEl) statusEl.textContent = data.detail || data.error || 'Could not queue request.';
1011
+ } catch (_e) { if (statusEl) statusEl.textContent = 'Network error. Try again.'; }
1012
+ btn.disabled = false;
1013
+ }
1014
+
978
1015
  function renderUpgradeWall(containerId) {
979
1016
  var el = document.getElementById(containerId);
980
1017
  if (!el) return;
981
1018
  var wall = document.createElement('div');
982
1019
  wall.style.cssText = 'position:relative;margin-top:8px;';
983
- wall.innerHTML = '<div style="position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:2;">' +
984
- '<div style="text-align:center;background:rgba(10,10,15,0.92);border:1px solid #333;border-radius:12px;padding:28px 36px;">' +
985
- '<div style="font-size:20px;font-weight:700;color:#fff;margin-bottom:8px;">Unlock your full lessons</div>' +
986
- '<div style="color:#aaa;margin-bottom:16px;">Pro shows your real prevention rules, timeline, and insights.</div>' +
987
- '<a href="/go/pro-direct?utm_source=lessons&amp;utm_medium=wall&amp;utm_campaign=pro_upgrade&amp;cta_id=lessons_wall_pro" rel="noopener" ' +
988
- 'style="display:inline-block;background:#b85c2d;color:#fff;padding:10px 24px;border-radius:8px;text-decoration:none;font-weight:700;">Start Pro now</a>' +
989
- '<div style="color:#666;font-size:12px;margin-top:10px;">npx thumbgate pro --activate --key=YOUR_KEY</div>' +
990
- '</div></div>';
1020
+ wall.innerHTML = '<div style="position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:2;"><div data-talk-wrap style="text-align:center;background:rgba(10,10,15,0.92);border:1px solid #333;border-radius:12px;padding:24px 32px;"><div style="font-size:20px;font-weight:700;color:#fff;margin-bottom:8px;">Free tier limit reached</div><div style="color:#aaa;margin-bottom:16px;">Pro shows your real prevention rules, timeline, and insights — or talk to us about wiring one workflow.</div><div style="display:flex;gap:10px;justify-content:center;flex-wrap:wrap;align-items:center;"><a href="/go/pro-direct?utm_source=lessons&amp;utm_medium=wall&amp;utm_campaign=pro_upgrade&amp;cta_id=lessons_wall_pro" rel="noopener" style="display:inline-flex;align-items:center;min-height:44px;background:#b85c2d;color:#fff;padding:10px 22px;border-radius:8px;text-decoration:none;font-weight:700;">Start Pro now</a><input type="email" data-talk-email placeholder="you@company.com" aria-label="Work email" style="display:none;min-height:44px;padding:0 12px;border-radius:8px;border:1px solid #444;background:#0d1117;color:#fff;font-size:13px;"><button type="button" data-talk-to-us onclick="submitLessonsTalkToUs(this)" style="display:inline-flex;align-items:center;min-height:44px;background:transparent;border:1px solid #38bdf8;color:#38bdf8;padding:10px 18px;border-radius:8px;font-weight:700;cursor:pointer;">Talk to us</button></div><div data-talk-status style="color:#38bdf8;font-size:12px;margin-top:8px;min-height:16px;"></div><div style="color:#666;font-size:12px;margin-top:4px;">npx thumbgate pro --activate --key=YOUR_KEY</div></div></div>';
991
1021
  el.appendChild(wall);
992
1022
  }
993
1023
 
@@ -1014,27 +1044,55 @@ function loadDemo() {
1014
1044
  document.getElementById('proBadge').style.display = 'block';
1015
1045
  }
1016
1046
 
1047
+ async function resolvePaidCookieSession() {
1048
+ try {
1049
+ var res = await projectFetch('/v1/auth/session', { credentials: 'include' });
1050
+ if (!res.ok) return null;
1051
+ var session = await res.json();
1052
+ if (session && session.authenticated === true && (session.tier === 'Pro' || session.tier === 'Team' || session.tier === 'Enterprise')) {
1053
+ return session;
1054
+ }
1055
+ } catch (_err) {}
1056
+ return null;
1057
+ }
1058
+
1059
+ function resolveLessonsTierName(paidSession, stats) {
1060
+ if (paidSession && (paidSession.tier === 'Enterprise' || paidSession.tier === 'Team')) return paidSession.tier;
1061
+ if (stats && (stats.tier === 'Enterprise' || stats.tier === 'Team')) return stats.tier;
1062
+ if (API_KEY.startsWith('tg_op_') || API_KEY.startsWith('tg_creator_')) return 'Enterprise';
1063
+ return 'Pro';
1064
+ }
1065
+
1066
+ function formatLessonsModePrefix(paidSession, tierName) {
1067
+ if (!paidSession) return 'Local ' + tierName + ' connected';
1068
+ if (paidSession.ssoEmail) return tierName + ' connected (' + paidSession.ssoEmail + ')';
1069
+ return tierName + ' connected';
1070
+ }
1071
+
1017
1072
  async function loadLive() {
1018
- if (!hasBootstrapKey()) {
1073
+ var paidSession = hasBootstrapKey() ? null : await resolvePaidCookieSession();
1074
+ if (!hasBootstrapKey() && !paidSession) {
1019
1075
  loadDemo();
1020
1076
  return;
1021
1077
  }
1022
- API_KEY = String(BOOTSTRAP_API_KEY || '').trim();
1078
+ API_KEY = hasBootstrapKey() ? String(BOOTSTRAP_API_KEY || '').trim() : '';
1023
1079
  try {
1080
+ var reqInit = { credentials: 'include', headers: getHeaders() };
1024
1081
  const responses = await Promise.all([
1025
- fetch('/v1/feedback/stats', { headers: getHeaders() }),
1026
- fetch('/v1/lessons/search?limit=50', { headers: getHeaders() }),
1027
- fetch('/v1/search?q=*&limit=40&source=feedback', { headers: getHeaders() }),
1028
- fetch('/v1/dashboard', { headers: getHeaders() })
1082
+ projectFetch('/v1/feedback/stats', reqInit),
1083
+ projectFetch('/v1/lessons/search?limit=50', reqInit),
1084
+ projectFetch('/v1/search?q=*&limit=40&source=feedback', reqInit),
1085
+ projectFetch('/v1/dashboard', reqInit)
1029
1086
  ]);
1030
1087
  if (responses.some(function(res) { return !res.ok; })) {
1031
- throw new Error('Local Pro bootstrap unavailable');
1088
+ throw new Error('Live lessons session unavailable');
1032
1089
  }
1033
1090
 
1034
1091
  const stats = await responses[0].json();
1035
1092
  const lessonsPayload = await responses[1].json();
1036
1093
  const feedbackPayload = await responses[2].json();
1037
1094
  dashboardSnapshot = await responses[3].json();
1095
+ window.ThumbGateProjects.refresh(getHeaders());
1038
1096
 
1039
1097
  allRules = mapLiveRules(lessonsPayload);
1040
1098
  var lessonMap = new Map(allRules
@@ -1050,19 +1108,18 @@ async function loadLive() {
1050
1108
  document.getElementById('statTrend').textContent = ((stats.recentRate || stats.approvalRate || 0) * 100).toFixed(1) + '%';
1051
1109
  document.getElementById('statTrendSub').textContent = 'Live approval rate';
1052
1110
 
1111
+ isDemo = false;
1053
1112
  renderRules(allRules);
1054
1113
  renderTimeline(allTimeline);
1055
1114
  renderInsights(dashboardSnapshot);
1056
1115
  renderImprovementMetrics(stats, dashboardSnapshot);
1057
- var isEnterprise = API_KEY.startsWith('tg_op_') || API_KEY.startsWith('tg_creator_');
1058
- if (stats.tier) {
1059
- isEnterprise = (stats.tier === 'Enterprise');
1060
- }
1061
- const tierName = isEnterprise ? 'Enterprise' : 'Pro';
1116
+ const tierName = resolveLessonsTierName(paidSession, stats);
1062
1117
  document.getElementById('proBadge').style.display = 'none';
1063
- setMode('Local ' + tierName + ' connected — this lessons view is reading your live rules, feedback timeline, and insights.', false);
1118
+ setMode(formatLessonsModePrefix(paidSession, tierName) + ' — this lessons view is reading your live rules, feedback timeline, and insights.', false);
1064
1119
  } catch (_err) {
1065
- loadDemo();
1120
+ document.getElementById('proBadge').style.display = 'none';
1121
+ var fallbackTier = resolveLessonsTierName(paidSession, null);
1122
+ setMode(formatLessonsModePrefix(paidSession, fallbackTier) + ' — live data temporarily unavailable; refresh to retry.', false);
1066
1123
  }
1067
1124
  }
1068
1125
 
@@ -1250,7 +1307,7 @@ async function submitFeedback() {
1250
1307
  btn.textContent = 'Submitting...';
1251
1308
  var result = document.getElementById('feedbackResult');
1252
1309
  try {
1253
- var res = await fetch('/api/feedback/submit', {
1310
+ var res = await projectFetch('/api/feedback/submit', {
1254
1311
  method: 'POST',
1255
1312
  headers: { 'Content-Type': 'application/json' },
1256
1313
  body: JSON.stringify({ reasons: reasons, details: details })
@@ -6,6 +6,7 @@
6
6
  <meta name="generator" content="ThumbGate">
7
7
  <meta name="author" content="Igor Ganapolsky">
8
8
  <title>ThumbGate — The Numbers | First-Party Data Snapshot</title>
9
+ <meta name="robots" content="noindex, nofollow">
9
10
  <meta name="description" content="ThumbGate's generated first-party operational snapshot: configured pre-action checks, recorded block/warn events, estimated LLM token savings when events exist, and scorer calibration when the sample supports it.">
10
11
  <meta property="og:title" content="ThumbGate — The Numbers">
11
12
  <meta property="og:description" content="Generated first-party operational snapshot: configured gates, recorded interventions, and explicit zero-evidence caveats.">
@@ -25,9 +26,9 @@
25
26
  "alternateName": "thumbgate",
26
27
  "applicationCategory": "DeveloperApplication",
27
28
  "operatingSystem": "Cross-platform, Node.js >=18.18.0",
28
- "softwareVersion": "1.39.1",
29
+ "softwareVersion": "1.40.2",
29
30
  "url": "https://thumbgate-production.up.railway.app/numbers",
30
- "dateModified": "2026-08-03",
31
+ "dateModified": "2026-11-12",
31
32
  "creator": {
32
33
  "@type": "Person",
33
34
  "name": "Igor Ganapolsky",
@@ -57,8 +58,8 @@
57
58
  "https://www.linkedin.com/in/igorganapolsky"
58
59
  ]
59
60
  },
60
- "dateModified": "2026-08-03",
61
- "datePublished": "2026-08-03",
61
+ "dateModified": "2026-11-12",
62
+ "datePublished": "2026-11-12",
62
63
  "keywords": [
63
64
  "AI agent gates",
64
65
  "LLM token savings",
@@ -70,38 +71,38 @@
70
71
  {
71
72
  "@type": "PropertyValue",
72
73
  "name": "configured_gates",
73
- "value": 40
74
+ "value": 47
74
75
  },
75
76
  {
76
77
  "@type": "PropertyValue",
77
78
  "name": "actions_blocked",
78
- "value": 0
79
+ "value": 8602
79
80
  },
80
81
  {
81
82
  "@type": "PropertyValue",
82
83
  "name": "actions_warned",
83
- "value": 0
84
+ "value": 2
84
85
  },
85
86
  {
86
87
  "@type": "PropertyValue",
87
88
  "name": "estimated_hours_saved",
88
- "value": "0.0"
89
+ "value": "2151.0"
89
90
  },
90
91
  {
91
92
  "@type": "PropertyValue",
92
93
  "name": "estimated_dollars_saved",
93
- "value": 0,
94
+ "value": 137.632,
94
95
  "unitText": "USD"
95
96
  },
96
97
  {
97
98
  "@type": "PropertyValue",
98
99
  "name": "tokens_saved_total",
99
- "value": 0
100
+ "value": 22365200
100
101
  },
101
102
  {
102
103
  "@type": "PropertyValue",
103
104
  "name": "bayes_error_rate",
104
- "value": null
105
+ "value": 0.084
105
106
  }
106
107
  ]
107
108
  }
@@ -194,41 +195,39 @@
194
195
  <a class="brand" href="/">ThumbGate</a>
195
196
  <a href="/learn">Learn</a>
196
197
  <a href="/compare">Compare</a>
197
- <a href="/numbers">Numbers</a>
198
198
  <a href="/dashboard">Dashboard</a>
199
- <a href="/pro">Pro</a>
200
199
  </nav>
201
200
 
202
201
  <main class="container">
203
202
  <h1>The Numbers</h1>
204
203
  <p class="subtitle">Generated first-party operational snapshot from the ThumbGate runtime. This is not customer traction, install volume, revenue, or proof that a configured gate has fired.</p>
205
- <div class="freshness">Updated: 2026-08-03 · Version 1.39.1</div>
206
- <div class="truth-note"><strong>Read this first:</strong> configured checks are inventory. Recorded blocks and warnings are usage evidence. This snapshot currently reports 0 recorded hard-block event(s) and 0 recorded warning event(s).</div>
204
+ <div class="freshness">Updated: 2026-11-12 · Version 1.40.2</div>
205
+ <div class="truth-note"><strong>Read this first:</strong> configured checks are inventory. Recorded blocks and warnings are usage evidence. This snapshot currently reports 8,602 recorded hard-block event(s) and 2 recorded warning event(s).</div>
207
206
 
208
207
  <h2>Gate enforcement</h2>
209
208
  <div class="stats-grid">
210
209
  <div class="stat-card">
211
210
  <div class="stat-label">Configured checks</div>
212
- <div class="stat-value">40</div>
213
- <div class="stat-sub">40 shipped defaults · 0 auto-promoted; inventory, not usage</div>
211
+ <div class="stat-value">47</div>
212
+ <div class="stat-sub">43 shipped defaults · 4 auto-promoted; inventory, not usage</div>
214
213
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/gate-stats.js">source: gate-stats.js</a>
215
214
  </div>
216
215
  <div class="stat-card">
217
216
  <div class="stat-label">Actions blocked</div>
218
- <div class="stat-value">0</div>
219
- <div class="stat-sub">no recorded hard-block events in this snapshot</div>
217
+ <div class="stat-value">8,602</div>
218
+ <div class="stat-sub">recorded hard blocks in the local gate ledger</div>
220
219
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/gate-stats.js">source: gate-stats.js</a>
221
220
  </div>
222
221
  <div class="stat-card">
223
222
  <div class="stat-label">Actions warned</div>
224
- <div class="stat-value">0</div>
225
- <div class="stat-sub">no recorded soft-warning events in this snapshot</div>
223
+ <div class="stat-value">2</div>
224
+ <div class="stat-sub">recorded soft interventions; not hard blocks</div>
226
225
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/gate-stats.js">source: gate-stats.js</a>
227
226
  </div>
228
227
  <div class="stat-card">
229
228
  <div class="stat-label">Top recorded blocker</div>
230
- <div class="stat-value" style="font-size:1.1rem;">No recorded blocker yet</div>
231
- <div class="stat-sub">top blocker appears only after at least one recorded block</div>
229
+ <div class="stat-value" style="font-size:1.1rem;">auto-surface-outbound-email-send (7 blocks)</div>
230
+ <div class="stat-sub">highest recorded block count</div>
232
231
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/gate-stats.js">source: gate-stats.js</a>
233
232
  </div>
234
233
  </div>
@@ -237,26 +236,26 @@
237
236
  <div class="stats-grid">
238
237
  <div class="stat-card">
239
238
  <div class="stat-label">Estimated hours saved</div>
240
- <div class="stat-value">0.0</div>
241
- <div class="stat-sub">0 because no block/warn events are recorded</div>
239
+ <div class="stat-value">2151.0</div>
240
+ <div class="stat-sub">~15 min per recorded block/warn event</div>
242
241
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/gate-stats.js">source: gate-stats.js</a>
243
242
  </div>
244
243
  <div class="stat-card">
245
244
  <div class="stat-label">Estimated LLM dollars saved</div>
246
- <div class="stat-value">$0.00</div>
247
- <div class="stat-sub">0 because no recorded block events feed this estimate</div>
245
+ <div class="stat-value">$138</div>
246
+ <div class="stat-sub">blended Sonnet/Opus/Haiku 80/15/5 mix from recorded blocks</div>
248
247
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/token-savings.js">source: token-savings.js</a>
249
248
  </div>
250
249
  <div class="stat-card">
251
250
  <div class="stat-label">Tokens not spent</div>
252
- <div class="stat-value">0</div>
253
- <div class="stat-sub">0 because no recorded block events feed this estimate</div>
251
+ <div class="stat-value">22.4M</div>
252
+ <div class="stat-sub">2,000 input + 600 output per recorded block, conservative</div>
254
253
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/token-savings.js">source: token-savings.js</a>
255
254
  </div>
256
255
  <div class="stat-card">
257
256
  <div class="stat-label">Scorer Bayes error</div>
258
- <div class="stat-value">n/a</div>
259
- <div class="stat-sub">needs both safe and harmful feedback sequences</div>
257
+ <div class="stat-value">8.4%</div>
258
+ <div class="stat-sub">irreducible error given current feature set</div>
260
259
  <a class="stat-source" href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/scripts/bayes-optimal-gate.js">source: bayes-optimal-gate.js</a>
261
260
  </div>
262
261
  </div>
@@ -271,13 +270,13 @@
271
270
  <li><strong>Dollars saved</strong> — blended per-call token estimate (2k input + 600 output) × recorded blocks × 2026-04-15 Anthropic + OpenAI list prices. See <code>scripts/token-savings.js</code> for the full price snapshot.</li>
272
271
  <li><strong>Bayes error rate</strong> — shown only when the feedback sample contains both safe and harmful outcomes. One-class samples are reported as n/a.</li>
273
272
  </ul>
274
- <p style="margin-top:12px;">Last auto-promotion: none. Regenerated on every release via <code>npm run numbers:generate</code> and on a weekly cadence.</p>
273
+ <p style="margin-top:12px;">Last auto-promotion: auto-history-aware-distillation-linked-this-failure-to- on 2026-11-11. Regenerated on every release via <code>npm run numbers:generate</code> and on a weekly cadence.</p>
275
274
  </div>
276
275
 
277
276
  <div class="cta">
278
277
  <a href="https://www.npmjs.com/package/thumbgate">Install ThumbGate — npx thumbgate init</a>
279
278
  <div class="footer-note">Prefer the raw feed? See <a href="https://github.com/IgorGanapolsky/ThumbGate">GitHub</a> or run <code>npm run gate:stats</code> locally.</div>
280
- <div class="footer-note">Generated at 2026-08-03T05:26:21.201Z UTC.</div>
279
+ <div class="footer-note">Generated at 2026-11-12T23:30:52.286Z UTC.</div>
281
280
  </div>
282
281
  </main>
283
282
  </body>