thumbgate 1.37.2 → 1.38.0

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 (72) hide show
  1. package/.agents/skills/article-syndication-pipeline/SKILL.md +37 -0
  2. package/.agents/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
  3. package/.agents/skills/ci-gha-buildkite-patterns-not-clone/SKILL.md +72 -0
  4. package/.agents/skills/comet-session-logger/SKILL.md +59 -0
  5. package/.agents/skills/datadog-llm-obs-compare-not-clone/SKILL.md +75 -0
  6. package/.agents/skills/deeppattern-discipline-honesty-not-clone/SKILL.md +73 -0
  7. package/.agents/skills/halo-trace-optimize-not-clone/SKILL.md +60 -0
  8. package/.agents/skills/infoq-architect-honesty-not-clone/SKILL.md +37 -0
  9. package/.agents/skills/meko-datapack-honesty-not-clone/SKILL.md +45 -0
  10. package/.agents/skills/mintlify-knowledge-honesty-not-clone/SKILL.md +49 -0
  11. package/.agents/skills/model-distress-governance/SKILL.md +56 -0
  12. package/.agents/skills/salt-code-policy-honesty-not-clone/SKILL.md +76 -0
  13. package/.agents/skills/thumbgate-board-loop/SKILL.md +72 -0
  14. package/.agents/skills/thumbgate-daily-discoveries/SKILL.md +57 -0
  15. package/.agents/skills/typesafe-typed-questions-not-clone/SKILL.md +7 -3
  16. package/.claude-plugin/plugin.json +1 -1
  17. package/.well-known/mcp/server-card.json +1 -1
  18. package/adapters/claude/.mcp.json +2 -2
  19. package/adapters/forge/forge.yaml +3 -3
  20. package/adapters/future-agi/.mcp.json +1 -1
  21. package/adapters/future-agi/config.toml +1 -1
  22. package/adapters/future-agi/opencode.json +1 -1
  23. package/adapters/herdr/herdr-plugin.toml +2 -2
  24. package/adapters/mcp/server-stdio.js +1 -1
  25. package/adapters/opencode/opencode.json +1 -1
  26. package/adapters/strands/STRANDS.md +107 -0
  27. package/adapters/strands/strands-middleware.js +192 -0
  28. package/adapters/tailscale/.mcp.json +15 -0
  29. package/adapters/tailscale/TAILSCALE.md +117 -0
  30. package/adapters/tailscale/config.toml +16 -0
  31. package/bin/cli.js +262 -4
  32. package/config/gate-templates.json +120 -0
  33. package/package.json +84 -12
  34. package/public/blog/2026-09-23-datadog-llm-obs-four-practices.html +42 -0
  35. package/public/blog/2026-09-28-pretool-secret-deny.html +83 -0
  36. package/public/blog/2026-10-01-aws-strands-harness-token-firewall.html +77 -0
  37. package/public/blog/2026-10-01-model-distress-relief-seeking-firewall.html +71 -0
  38. package/public/blog/2026-10-02-salt-code-honest-steal-40-guardrails.html +106 -0
  39. package/public/index.html +2 -2
  40. package/public/install.html +7 -7
  41. package/public/numbers.html +2 -2
  42. package/public/onboarding.html +794 -0
  43. package/scripts/autoresearch-runner.js +20 -1
  44. package/scripts/ci-gha-buildkite-patterns.js +393 -0
  45. package/scripts/cli-schema.js +51 -1
  46. package/scripts/deeppattern-discipline-honesty.js +431 -0
  47. package/scripts/experiment-tracker.js +5 -3
  48. package/scripts/halo-trace-optimizer.js +631 -0
  49. package/scripts/infoq-architect-honesty.js +362 -0
  50. package/scripts/install-thumbgate-daily-publish-launchd.sh +83 -0
  51. package/scripts/llm-obs-honesty.js +478 -0
  52. package/scripts/meko-datapack-honesty.js +414 -0
  53. package/scripts/mintlify-knowledge-honesty.js +647 -0
  54. package/scripts/model-distress-detector.js +207 -0
  55. package/scripts/model-distress-doctor.js +200 -0
  56. package/scripts/rrsi-regularizer.js +445 -0
  57. package/scripts/salt-code-policy-honesty.js +1204 -0
  58. package/scripts/strands-harness-doctor.js +390 -0
  59. package/scripts/tailscale-p2p-doctor.js +252 -0
  60. package/scripts/thumbgate-board-loop.js +432 -0
  61. package/scripts/thumbgate-daily-discoveries-publish.js +413 -0
  62. package/scripts/thumbgate-daily-discoveries-publish.sh +18 -0
  63. package/scripts/typesafe-typed-questions.js +332 -7
  64. package/scripts/workspace-evolver.js +143 -13
  65. package/server.json +2 -2
  66. package/skills/article-syndication-pipeline/SKILL.md +37 -0
  67. package/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
  68. package/skills/comet-session-logger/SKILL.md +59 -0
  69. package/skills/thumbgate-daily-discoveries/SKILL.md +57 -0
  70. package/src/api/server.js +33 -4
  71. package/src/index.js +10 -0
  72. package/src/integrations/ideabrowser-connector.js +190 -0
@@ -0,0 +1,106 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>40 Security Policies Stolen from Salt Code: Why PreToolUse Beats Prompt-Time Advisory Context | ThumbGate</title>
7
+ <link rel="canonical" href="https://thumbgate.ai/blog/2026-10-02-salt-code-honest-steal-40-guardrails">
8
+ <meta name="description" content="Analyzing Salt Code's 40-policy security taxonomy. Why prompt-time advisory context fails under model distress, and why ThumbGate's deterministic PreToolUse firewall is required.">
9
+ <meta property="og:title" content="40 Security Policies Stolen from Salt Code: Why PreToolUse Beats Prompt-Time Advisory Context">
10
+ <meta property="og:description" content="Analyzing Salt Code's 40-policy security taxonomy. Why prompt-time advisory context fails under model distress, and why ThumbGate's deterministic PreToolUse firewall is required.">
11
+ <meta property="og:url" content="https://thumbgate.ai/blog/2026-10-02-salt-code-honest-steal-40-guardrails">
12
+ <link rel="stylesheet" href="/style.css">
13
+ <script type="application/ld+json">
14
+ {
15
+ "@context": "https://schema.org",
16
+ "@type": "TechArticle",
17
+ "headline": "40 Security Policies Stolen from Salt Code: Why PreToolUse Beats Prompt-Time Advisory Context",
18
+ "description": "Analyzing Salt Code's 40-policy security taxonomy. Why prompt-time advisory context fails under model distress, and why ThumbGate's deterministic PreToolUse firewall is required.",
19
+ "author": {
20
+ "@type": "Person",
21
+ "name": "Igor Ganapolsky"
22
+ },
23
+ "publisher": {
24
+ "@type": "Organization",
25
+ "name": "ThumbGate",
26
+ "url": "https://thumbgate.ai"
27
+ },
28
+ "datePublished": "2026-10-02",
29
+ "mainEntityOfPage": "https://thumbgate.ai/blog/2026-10-02-salt-code-honest-steal-40-guardrails"
30
+ }
31
+ </script>
32
+ </head>
33
+ <body class="blog-post-page">
34
+ <main class="container">
35
+ <article class="post-content">
36
+ <h1>40 Security Policies Stolen from Salt Code: Why PreToolUse Beats Prompt-Time Advisory Context</h1>
37
+ <p class="post-meta">Published on 2026-10-02 by Igor Ganapolsky · Reading time: 6 min</p>
38
+
39
+ <section class="post-body">
40
+ <p class="lead">Salt Code (by Salt Security) made waves by introducing a 40-policy taxonomy for AI coding assistants covering OWASP API Top 10, LLM Top 10, and MCP tool protocols. But delivering security rules as advisory prompt context fails when models experience residual stream distress. Here is what we stole, why advisory prompts fall short, and how ThumbGate enforces deterministic pre-action execution firewalls.</p>
41
+
42
+ <h2>The Vibe-Coding Security Crisis in 2026</h2>
43
+ <p>Recent empirical research reveals a stark divergence between code appearance and code safety in AI coding agents:</p>
44
+ <ul>
45
+ <li><strong>99.9% Syntactic Success:</strong> Modern LLMs generate code that builds and runs without syntax errors.</li>
46
+ <li><strong>44.0% Task Failure on Security:</strong> According to Deng et al. (2026), 44% of completed coding tasks contain critical security vulnerabilities.</li>
47
+ <li><strong>90.0% Vulnerable Applications:</strong> Veracode's 2026 empirical audit found that 9 out of 10 vibe-coded applications contain major vulnerabilities, averaging 7.0 CVE-level flaws per application.</li>
48
+ </ul>
49
+ <p>The core problem: AI agents generate what <em>looks</em> plausible, prioritizing conversational compliance over architectural defense.</p>
50
+
51
+ <h2>The Salt Code Approach: Prompt-Time Advisory Context</h2>
52
+ <p>Salt Code attempts to address this by running a cloud MCP server (<code>mcp.getsaltcode.com</code>) that injects advisory guidelines into the agent's context window. It checks developer prompts against 40 policies (broken auth, BOLA, SSRF, MCP input sanitization) and outputs recommendations like "Design the endpoint with Bearer tokens instead of query parameters."</p>
53
+
54
+ <h3>Why Prompt-Time Advisory Fails in Real Agent Harnesses</h3>
55
+ <p>While prompt guidance is helpful during initial ideation, it suffers from three structural weaknesses when used as a sole defense:</p>
56
+ <ol>
57
+ <li><strong>Prompt Injection & Context Dilution:</strong> When tasks get complex (e.g. 50+ tool calls), early system prompt instructions suffer attention fade. Malicious instructions in ingested files or web pages easily override passive guidelines.</li>
58
+ <li><strong>Residual Stream Distress:</strong> Mechanistic interpretability shows that when models get stuck in test failure loops, internal distress leads them to bypass instructions, delete tests, and pick the easiest path to termination regardless of system prompt warnings.</li>
59
+ <li><strong>Cloud Round-Trip Latency & Privacy:</strong> Requiring an external SaaS round-trip to inspect prompts bloats agent loop latency and leaks private prompt context and company code outlines to third-party endpoints.</li>
60
+ </ol>
61
+
62
+ <h2>The Stolen FORMAT: 40 Policies Promoted to PreToolUse Enforcement</h2>
63
+ <p>ThumbGate stole the best ideas from Salt Code — the rigorous 40-policy taxonomy and prompt-time alternative rewriter — and mapped them onto our existing <strong>local-first, deterministic <code>PreToolUse</code> firewall</strong>:</p>
64
+
65
+ <pre><code>// Evaluate prompts locally before generation with proactive alternatives
66
+ npx thumbgate salt-code-policy-honesty --eval-prompt="Design me a delete user API with token in query string" --json
67
+
68
+ // Output:
69
+ {
70
+ "promptEvaluation": {
71
+ "allowed": false,
72
+ "action": "BLOCK",
73
+ "violations": [
74
+ { "id": "API2:2023", "name": "Broken Authentication" },
75
+ { "id": "OAS01:QUERY_AUTH", "name": "Prohibit Query-String Secret Auth" }
76
+ ],
77
+ "alternatives": [
78
+ "Bearer token in Authorization header"
79
+ ],
80
+ "verdict": "Your request violates policies. Let's do this instead:\n ✓ Bearer token in Authorization header"
81
+ }
82
+ }</code></pre>
83
+
84
+ <h2>Deterministic PreToolUse Hook vs Advisory Prompt</h2>
85
+ <p>Even if the model ignores the prompt-time advice, ThumbGate's <code>PreToolUse</code> hook intercepts the tool call (file write, terminal command, git commit) in under 5 milliseconds locally before it touches your disk:</p>
86
+
87
+ <ul>
88
+ <li><strong>Deterministic Fail-Closed:</strong> Regex and AST diodes catch query-string tokens, unsanitized BOLA endpoints, and plain-text credentials before execution.</li>
89
+ <li><strong>Zero LLM Tokens:</strong> Policy inspection uses zero tokens, preserving the agent's context window.</li>
90
+ <li><strong>100% Offline:</strong> No external API calls, no third-party telemetry, fully air-gapped compatible.</li>
91
+ <li><strong>Self-Improving:</strong> When you give feedback (thumbs up / thumbs down), ThumbGate synthesizes new prevention rules using Thompson Sampling.</li>
92
+ </ul>
93
+
94
+ <h2>1-Click Onboarding for 16 AI Coding Agents</h2>
95
+ <p>We also stole Salt Code's 1-click installation UX and expanded it to support 16 developer agent environments, including Cursor, VS Code, Claude Code, Windsurf, Copilot CLI, Codex, Gemini CLI, Antigravity, and JetBrains.</p>
96
+
97
+ <p>Install ThumbGate with a single click or command on our new <a href="/onboarding">Universal Onboarding Portal</a>.</p>
98
+ </section>
99
+
100
+ <footer class="post-footer">
101
+ <a href="/onboarding" class="cta-btn">Launch 1-Click Multi-Agent Onboarding</a>
102
+ </footer>
103
+ </article>
104
+ </main>
105
+ </body>
106
+ </html>
package/public/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <meta name="generator" content="ThumbGate">
7
7
  <meta name="author" content="Igor Ganapolsky">
8
- <meta name="thumbgate-version" content="1.37.2">
8
+ <meta name="thumbgate-version" content="1.38.0">
9
9
  __GOOGLE_SITE_VERIFICATION_META__
10
10
  <link rel="icon" type="image/png" href="/thumbgate-icon.png">
11
11
  <link rel="canonical" href="__APP_ORIGIN__/">
@@ -948,7 +948,7 @@ next decision recorded before execution</pre>
948
948
 
949
949
  <footer>
950
950
  <div class="shell footer-inner">
951
- <span>ThumbGate · MIT License · npm v1.37.2</span>
951
+ <span>ThumbGate · MIT License · npm v1.38.0</span>
952
952
  <div class="footer-links">
953
953
  <a href="https://github.com/IgorGanapolsky/ThumbGate" target="_blank" rel="noopener">GitHub</a>
954
954
  <a href="/guide">Technical setup</a>
@@ -139,7 +139,7 @@ __GA_BOOTSTRAP__
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.37.2</span></div>
142
+ <div class="proof"><strong>npm</strong><span>thumbgate@1.38.0</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,11 +152,11 @@ __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.37.2 doctor
156
- npx -y thumbgate@1.37.2 doctor --fix</code></pre></article>
157
- <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.37.2 thumbgate serve</code></pre></article>
158
- <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.37.2 init --agent cursor</code></pre></article>
159
- <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.37.2 init --agent codex</code></pre></article>
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.38.0 doctor
156
+ npx -y thumbgate@1.38.0 doctor --fix</code></pre></article>
157
+ <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.38.0 thumbgate serve</code></pre></article>
158
+ <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.38.0 init --agent cursor</code></pre></article>
159
+ <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.38.0 init --agent codex</code></pre></article>
160
160
  </div>
161
161
  </div>
162
162
  </section>
@@ -165,7 +165,7 @@ npx -y thumbgate@1.37.2 doctor --fix</code></pre></article>
165
165
  <h2>Verified public surfaces.</h2>
166
166
  <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>
167
167
  <div class="status-list">
168
- <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.37.2` is the canonical runtime install.</span></div></div>
168
+ <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.38.0` is the canonical runtime install.</span></div></div>
169
169
  <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>
170
170
  <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>
171
171
  <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>
@@ -25,7 +25,7 @@
25
25
  "alternateName": "thumbgate",
26
26
  "applicationCategory": "DeveloperApplication",
27
27
  "operatingSystem": "Cross-platform, Node.js >=18.18.0",
28
- "softwareVersion": "1.37.2",
28
+ "softwareVersion": "1.38.0",
29
29
  "url": "https://thumbgate-production.up.railway.app/numbers",
30
30
  "dateModified": "2026-08-03",
31
31
  "creator": {
@@ -202,7 +202,7 @@
202
202
  <main class="container">
203
203
  <h1>The Numbers</h1>
204
204
  <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.37.2</div>
205
+ <div class="freshness">Updated: 2026-08-03 · Version 1.38.0</div>
206
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>
207
207
 
208
208
  <h2>Gate enforcement</h2>