thumbgate 1.39.0 → 1.40.1
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.
- package/.agents/skills/craft-playbook-gate/SKILL.md +51 -0
- package/.agents/skills/qwenwork-policy-group-honesty-not-clone/SKILL.md +36 -0
- package/.claude-plugin/plugin.json +1 -1
- package/.well-known/llms.txt +2 -2
- package/.well-known/mcp/server-card.json +1 -1
- package/README.md +11 -5
- package/adapters/claude/.mcp.json +6 -2
- package/adapters/codex/config.toml +5 -0
- package/adapters/forge/forge.yaml +4 -4
- package/adapters/future-agi/.mcp.json +1 -1
- package/adapters/future-agi/config.toml +1 -1
- package/adapters/future-agi/opencode.json +1 -1
- package/adapters/herdr/herdr-plugin.toml +2 -2
- package/adapters/mcp/server-stdio.js +104 -7
- package/adapters/opencode/opencode.json +1 -1
- package/adapters/strands/strands-middleware.js +31 -4
- package/bin/cli.js +191 -54
- package/config/brand-standards.json +131 -0
- package/config/gates/default.json +18 -1
- package/config/github-about.json +1 -1
- package/config/mcp-allowlists.json +16 -3
- package/config/merge-quality-checks.json +3 -1
- package/config/post-deploy-marketing-pages.json +4 -4
- package/config/schemas/task-outcome-receipt.schema.json +9 -0
- package/hooks/hooks.json +24 -0
- package/openapi/openapi.yaml +7 -3
- package/package.json +87 -33
- package/public/about.html +2 -2
- package/public/admin.html +771 -0
- package/public/agent-manager.html +3 -3
- package/public/agents-cost-savings.html +1 -1
- package/public/ai-malpractice-prevention.html +12 -12
- package/public/architecture.html +0 -1
- package/public/assets/diagrams/decision.svg +3 -3
- package/public/assets/diagrams/hero-thumbs.svg +2 -4
- package/public/blog/2026-10-05-why-3-days-of-triage-wont-save-ai-speed-code.html +1 -1
- package/public/blog/2026-10-09-your-code-got-a-third-author-governance.html +1 -1
- package/public/blog/git-at-agent-scale.html +2 -2
- package/public/blog/inside-your-boundary.html +1 -1
- package/public/blog/process-over-outcome-gates.html +1 -1
- package/public/case-studies.html +5 -6
- package/public/codex-enterprise.html +1 -1
- package/public/codex-plugin.html +1 -1
- package/public/dashboard.html +775 -483
- package/public/diagnostic.html +15 -10
- package/public/enterprise-governance.html +26 -174
- package/public/eval-scorecard.html +3 -4
- package/public/eval-scorecard.json +2 -2
- package/public/evaluations.html +0 -1
- package/public/founders.html +3 -3
- package/public/gaming-playbook.html +4 -4
- package/public/guide.html +3 -5
- package/public/index.html +302 -97
- package/public/install.html +16 -10
- package/public/js/buyer-intent.js +49 -8
- package/public/lessons.html +246 -83
- package/public/numbers.html +32 -33
- package/public/operator-framework.html +44 -72
- package/public/peter.html +3 -3
- package/public/platform-partners.html +1 -1
- package/public/pricing.html +163 -66
- package/public/pro.html +3 -1
- package/public/project-switcher.js +76 -0
- package/public/whitepaper.html +1 -2
- package/scripts/action-receipts.js +393 -0
- package/scripts/activation-quickstart.js +15 -3
- package/scripts/activation-tracker.js +280 -3
- package/scripts/agent-action-inventory.js +235 -143
- package/scripts/agent-operations-planner.js +1 -1
- package/scripts/agent-readiness.js +36 -6
- package/scripts/agentic-prompt-pipelines.js +901 -0
- package/scripts/analytics-window.js +7 -1
- package/scripts/async-job-runner.js +66 -11
- package/scripts/audit-trail.js +37 -24
- package/scripts/auto-promote-gates.js +37 -27
- package/scripts/auto-wire-hooks.js +64 -25
- package/scripts/backfill-lesson-scopes.js +122 -0
- package/scripts/billing.js +889 -132
- package/scripts/bot-detection.js +112 -0
- package/scripts/brand-standards-gate.js +571 -0
- package/scripts/chatgpt-ads-readiness-pack.js +1 -1
- package/scripts/cli-demo.js +5 -27
- package/scripts/cli-schema.js +25 -1
- package/scripts/commercial-offer.js +2 -2
- package/scripts/contextfs.js +9 -3
- package/scripts/craft-playbook-gate.js +550 -0
- package/scripts/cross-encoder-reranker.js +4 -0
- package/scripts/dashboard-chat.js +11 -0
- package/scripts/dashboard.js +574 -167
- package/scripts/decision-journal.js +7 -4
- package/scripts/docker-sandbox-planner.js +3 -3
- package/scripts/export-dpo-pairs.js +12 -7
- package/scripts/failure-diagnostics.js +11 -0
- package/scripts/feedback-aggregate.js +4 -0
- package/scripts/feedback-attribution.js +6 -4
- package/scripts/feedback-history-distiller.js +18 -6
- package/scripts/feedback-loop.js +255 -89
- package/scripts/feedback-paths.js +8 -1
- package/scripts/feedback-sanitizer.js +5 -0
- package/scripts/feedback-scope.js +106 -0
- package/scripts/feedback-session.js +8 -2
- package/scripts/filesystem-search.js +13 -8
- package/scripts/financial-control-plane.js +707 -45
- package/scripts/gate-stats.js +38 -5
- package/scripts/gates-engine.js +1326 -240
- package/scripts/generate-eval-scorecard.js +0 -1
- package/scripts/gitlab-sdlc-prompts.js +397 -0
- package/scripts/harness-tool-names.js +31 -5
- package/scripts/hook-runtime.js +10 -0
- package/scripts/hybrid-feedback-context.js +7 -2
- package/scripts/intervention-policy.js +2 -1
- package/scripts/lesson-canonical.js +2 -2
- package/scripts/lesson-db.js +55 -14
- package/scripts/lesson-graph.js +2 -1
- package/scripts/lesson-retrieval.js +95 -9
- package/scripts/lesson-search.js +86 -22
- package/scripts/lesson-synthesis.js +21 -5
- package/scripts/mabl-failure-honesty.js +273 -0
- package/scripts/mailer/index.js +17 -1
- package/scripts/mailer/resend-mailer.js +213 -179
- package/scripts/migrate-project-scope.js +209 -0
- package/scripts/model-distress-detector.js +3 -3
- package/scripts/operational-integrity.js +436 -3
- package/scripts/override-audit.js +2 -0
- package/scripts/owner-admin.js +338 -0
- package/scripts/pr-manager.js +194 -1
- package/scripts/product-feedback.js +35 -0
- package/scripts/progressive-signoff.js +260 -0
- package/scripts/project-catalog.js +243 -0
- package/scripts/project-dashboard.js +61 -0
- package/scripts/project-evidence.js +172 -0
- package/scripts/project-identity.js +182 -0
- package/scripts/project-scope.js +381 -0
- package/scripts/prompt-eval.js +1 -1
- package/scripts/prompt-guard.js +446 -52
- package/scripts/proof-report.js +232 -0
- package/scripts/provider-action-normalizer.js +14 -6
- package/scripts/qwenwork-policy-group.js +413 -0
- package/scripts/rate-limiter.js +41 -0
- package/scripts/secret-redaction.js +171 -25
- package/scripts/secret-scanner.js +101 -42
- package/scripts/self-protection.js +2 -2
- package/scripts/seo-gsd.js +14 -14
- package/scripts/session-context-dedupe.js +66 -0
- package/scripts/settings-hierarchy.js +4 -2
- package/scripts/statusline-meta.js +34 -23
- package/scripts/tailscale-october-access.js +416 -0
- package/scripts/task-outcomes.js +58 -2
- package/scripts/telemetry-analytics.js +260 -16
- package/scripts/thumbgate-search.js +23 -9
- package/scripts/tool-kpi-tracker.js +5 -2
- package/scripts/tool-registry.js +42 -1
- package/scripts/triage-savings-calculator.js +1 -1
- package/scripts/vector-store.js +4 -1
- package/scripts/verified-lessons.js +270 -0
- package/scripts/verify-marketing-pages-deployed.js +2 -2
- package/scripts/workflow-sentinel.js +29 -10
- package/server.json +2 -2
- package/src/api/server.js +2478 -470
- package/src/feedback.js +21 -0
- package/src/hermes-sync-plane.js +2 -1
- package/src/index.js +2 -0
- package/src/lesson-search.js +9 -0
- package/src/mckinsey-top-company-ai-coding.js +493 -0
- package/src/mcp/email-triage-server/index.js +973 -0
- package/src/mcp/email-triage-server/package.json +12 -0
- package/src/mcp/server.js +3 -0
- package/src/mcp-writeguard.js +772 -11
- package/src/openshell-lovable-engine.js +1475 -0
- package/src/task-outcome.js +3 -0
- package/config/evals/agent-safety-eval.json +0 -447
- package/config/evals/retrieval-ranking-golden.json +0 -522
- package/config/progressive/01-wire-only.json +0 -11
- package/config/progressive/02-dashboard-empty-ok.json +0 -10
- package/config/progressive/03-one-lesson.json +0 -10
- package/config/progressive/04-warn-fires.json +0 -11
- package/config/progressive/05-strict-optional.json +0 -11
- package/config/progressive/README.md +0 -15
- package/public/assets/diagrams/agent-integration.png +0 -0
- package/public/assets/diagrams/thumbgate-architecture.png +0 -0
package/bin/cli.js
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
* thumbgate CLI
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* npx thumbgate init # scaffold .thumbgate/ config + .mcp.json
|
|
7
|
-
* npx thumbgate init --wire-hooks # wire hooks only (auto-detect agent)
|
|
8
|
-
* npx thumbgate init --agent claude-code # scaffold + wire hooks for specific agent
|
|
9
|
-
* npx thumbgate gate-check # PreToolUse hook: pipe tool JSON via stdin, get verdict
|
|
10
|
-
* npx thumbgate capture # capture feedback
|
|
11
|
-
* npx thumbgate import-doc # import a local policy/runbook document and propose gates
|
|
12
|
-
* npx thumbgate export-dpo # export DPO training pairs
|
|
13
|
-
* npx thumbgate export-databricks # export Databricks-ready analytics bundle
|
|
14
|
-
* npx thumbgate eval --from-feedback # turn feedback into reusable prompt evals
|
|
15
|
-
* npx thumbgate code-graph-guardrails # map code-graph signals to pre-action checks
|
|
16
|
-
* npx thumbgate proxy-pointer-rag-guardrails # map visual document RAG signals to gates
|
|
17
|
-
* npx thumbgate rag-precision-guardrails # map retrieval tuning regressions to gates
|
|
18
|
-
* npx thumbgate long-running-agent-context-guardrails # map structured-memory gaps to gates
|
|
19
|
-
* npx thumbgate reasoning-efficiency-guardrails # map reasoning compression signals to gates
|
|
20
|
-
* npx thumbgate deepseek-v4-runtime-guardrails # map sparse-attention runtime signals to gates
|
|
21
|
-
* npx thumbgate upstream-contributions # rank upstream repo issues for trust-building PRs
|
|
22
|
-
* npx thumbgate stats # feedback analytics + Revenue-at-Risk
|
|
23
|
-
* npx thumbgate background-governance # background-agent run report + risk check
|
|
24
|
-
* npx thumbgate cfo # local operational billing summary
|
|
25
|
-
* npx thumbgate pro # solo dashboard + exports side lane
|
|
26
|
-
* npx thumbgate diagnostic # team workflow diagnostic intake + checkout path
|
|
27
|
-
* npx thumbgate audit <file> # audit an agent transcript for repeat-mistake token waste
|
|
28
|
-
*/
|
|
2
|
+
// thumbgate CLI entrypoint
|
|
29
3
|
|
|
30
4
|
'use strict';
|
|
31
5
|
|
|
@@ -130,7 +104,7 @@ function upgradeNudge() {
|
|
|
130
104
|
const pricingUrl = pricingUrlFor('cli_upgrade_nudge', COMMAND || 'general');
|
|
131
105
|
const diagnosticUrl = diagnosticUrlFor('cli_upgrade_nudge', COMMAND || 'general');
|
|
132
106
|
process.stderr.write(
|
|
133
|
-
'\n Enterprise entry: $499
|
|
107
|
+
'\n Enterprise entry: $499 Setup Sprint for one workflow\n' +
|
|
134
108
|
` ${diagnosticUrl}\n` +
|
|
135
109
|
`\n Solo side lane: Pro — ${PRO_PRICE_LABEL}\n` +
|
|
136
110
|
' Removes solo caps; adds personal recall, dashboard proof, exports, and managed adapters.\n' +
|
|
@@ -142,7 +116,7 @@ function diagnostic() {
|
|
|
142
116
|
const intakeUrl = diagnosticUrlFor('cli_diagnostic', COMMAND || 'diagnostic');
|
|
143
117
|
const checkoutUrl = diagnosticCheckoutUrlFor('cli_diagnostic', COMMAND || 'diagnostic');
|
|
144
118
|
console.log('');
|
|
145
|
-
console.log(' ThumbGate
|
|
119
|
+
console.log(' ThumbGate Setup Sprint — $499');
|
|
146
120
|
console.log(' ------------------------------------------');
|
|
147
121
|
console.log(' Use this when one repeated AI-agent workflow failure is already costing');
|
|
148
122
|
console.log(' review time, release confidence, customer trust, or money.');
|
|
@@ -1289,7 +1263,7 @@ function capture() {
|
|
|
1289
1263
|
|
|
1290
1264
|
const { getUsage } = require(path.join(PKG_ROOT, 'scripts', 'rate-limiter'));
|
|
1291
1265
|
const capLimit = checkLimit('capture_feedback');
|
|
1292
|
-
if (!capLimit.allowed) {
|
|
1266
|
+
if (!capLimit.allowed && (args.stats || args.summary)) {
|
|
1293
1267
|
limitNudge('capture_feedback', capLimit);
|
|
1294
1268
|
process.exit(1);
|
|
1295
1269
|
}
|
|
@@ -1370,6 +1344,15 @@ function capture() {
|
|
|
1370
1344
|
whatWentWrong = context;
|
|
1371
1345
|
}
|
|
1372
1346
|
|
|
1347
|
+
if (!capLimit.allowed) {
|
|
1348
|
+
const { proWouldHaveBlockedSentence } = require(path.join(PKG_ROOT, 'scripts', 'rate-limiter'));
|
|
1349
|
+
const sentence = proWouldHaveBlockedSentence(whatWentWrong || context);
|
|
1350
|
+
if (sentence) process.stderr.write(`${sentence}\n`);
|
|
1351
|
+
limitNudge('capture_feedback', capLimit);
|
|
1352
|
+
process.exit(1);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
|
|
1373
1356
|
let whatToChange = args['what-to-change'];
|
|
1374
1357
|
if (!whatToChange && consumedSignalArgs > 0 && positionalArgs.length > consumedSignalArgs + 2) {
|
|
1375
1358
|
whatToChange = positionalArgs.slice(consumedSignalArgs + 2).join(' ');
|
|
@@ -1380,6 +1363,7 @@ function capture() {
|
|
|
1380
1363
|
}
|
|
1381
1364
|
|
|
1382
1365
|
const result = captureFeedback({
|
|
1366
|
+
cwd: CWD,
|
|
1383
1367
|
signal: normalized,
|
|
1384
1368
|
context: context,
|
|
1385
1369
|
whatWentWrong: whatWentWrong,
|
|
@@ -1491,6 +1475,7 @@ function feedbackSelfTest() {
|
|
|
1491
1475
|
const { captureFeedback, getFeedbackPaths } = require(path.join(PKG_ROOT, 'scripts', 'feedback-loop'));
|
|
1492
1476
|
const context = args.context || `feedback self-test: typed thumbs ${normalized} reaches ThumbGate capture`;
|
|
1493
1477
|
const result = captureFeedback({
|
|
1478
|
+
cwd: CWD,
|
|
1494
1479
|
signal: normalized,
|
|
1495
1480
|
context,
|
|
1496
1481
|
whatWentWrong: normalized === 'down'
|
|
@@ -1618,7 +1603,7 @@ function stats() {
|
|
|
1618
1603
|
console.log(` Repeated Failures detected: ${payload.negatives}`);
|
|
1619
1604
|
console.log(` Estimated Operational Loss: $${payload.revenueAtRisk}`);
|
|
1620
1605
|
console.log(' Action Required: Run "npx thumbgate rules" to generate guardrails.');
|
|
1621
|
-
console.log(' Strategic Recommendation: if this is a shared workflow problem, start with the $499
|
|
1606
|
+
console.log(' Strategic Recommendation: if this is a shared workflow problem, start with the $499 Setup Sprint.');
|
|
1622
1607
|
console.log(' Enterprise entry: https://thumbgate.ai/pricing');
|
|
1623
1608
|
console.log(' Solo side lane: npx thumbgate pro');
|
|
1624
1609
|
} else {
|
|
@@ -1676,12 +1661,12 @@ function cfo() {
|
|
|
1676
1661
|
fallbackReason,
|
|
1677
1662
|
summary,
|
|
1678
1663
|
}, null, 2));
|
|
1679
|
-
process.
|
|
1664
|
+
process.exitCode = 0;
|
|
1680
1665
|
})
|
|
1681
1666
|
.catch((err) => {
|
|
1682
1667
|
progress.fail('CFO billing summary failed');
|
|
1683
1668
|
console.error(err && err.message ? err.message : err);
|
|
1684
|
-
process.
|
|
1669
|
+
process.exitCode = 1;
|
|
1685
1670
|
});
|
|
1686
1671
|
}
|
|
1687
1672
|
|
|
@@ -1759,7 +1744,7 @@ function pro() {
|
|
|
1759
1744
|
console.log(' - Personal recall: search lessons, rules, and proof');
|
|
1760
1745
|
console.log(' - Local Pro dashboard: your own browser dashboard for search, gates, and DPO export');
|
|
1761
1746
|
console.log(' - Managed adapters: Claude Code, Cursor, Codex, Gemini, Amp, Cline, OpenCode');
|
|
1762
|
-
console.log(' -
|
|
1747
|
+
console.log(' - Setup Sprint: $499 for one supported workflow; hosted team sync and org dashboard are not GA');
|
|
1763
1748
|
console.log(' - Commercial truth doc: source of truth for traction, pricing, and proof claims');
|
|
1764
1749
|
console.log('\nLinks:');
|
|
1765
1750
|
console.log(` Buy Pro : ${PRO_CHECKOUT_URL}`);
|
|
@@ -2330,6 +2315,13 @@ function rules() {
|
|
|
2330
2315
|
const { writePreventionRules } = require(path.join(PKG_ROOT, 'scripts', 'feedback-loop'));
|
|
2331
2316
|
const outPath = args.output || path.join(CWD, '.thumbgate', 'prevention-rules.md');
|
|
2332
2317
|
const result = writePreventionRules(outPath, Number(args.min || 2));
|
|
2318
|
+
{
|
|
2319
|
+
const { isProTier, droppedRepeatFromRulesMarkdown, proWouldHaveBlockedSentence, FREE_TIER_MAX_GATES } = require(path.join(PKG_ROOT, 'scripts', 'rate-limiter'));
|
|
2320
|
+
if (!isProTier()) {
|
|
2321
|
+
const sentence = proWouldHaveBlockedSentence(droppedRepeatFromRulesMarkdown(result.markdown, FREE_TIER_MAX_GATES));
|
|
2322
|
+
if (sentence) process.stderr.write(`${sentence}\n`);
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2333
2325
|
if (args.json) {
|
|
2334
2326
|
// Count rule sections (## headers) from the generated markdown
|
|
2335
2327
|
const ruleHeaders = (result.markdown || '').match(/^## /gm);
|
|
@@ -2892,6 +2884,26 @@ function infoqArchitectHonesty() {
|
|
|
2892
2884
|
if (report.status === 'fail') process.exitCode = 1;
|
|
2893
2885
|
}
|
|
2894
2886
|
|
|
2887
|
+
function qwenworkPolicyGroup() {
|
|
2888
|
+
const args = parseArgs(process.argv.slice(3));
|
|
2889
|
+
const {
|
|
2890
|
+
buildQwenWorkPolicyGroupReport,
|
|
2891
|
+
formatQwenWorkPolicyGroupReport,
|
|
2892
|
+
} = require(path.join(PKG_ROOT, 'scripts', 'qwenwork-policy-group'));
|
|
2893
|
+
const truthy = (value) => value === true || /^(1|true|yes|on)$/i.test(String(value || '').trim());
|
|
2894
|
+
const report = buildQwenWorkPolicyGroupReport({
|
|
2895
|
+
mapOnly: truthy(args['map-only']),
|
|
2896
|
+
claim: args.claim || '',
|
|
2897
|
+
policyJson: args['policy-json'] || '',
|
|
2898
|
+
actionJson: args['action-json'] || '',
|
|
2899
|
+
policyPath: args.policy || '',
|
|
2900
|
+
actionPath: args.action || '',
|
|
2901
|
+
});
|
|
2902
|
+
if (truthy(args.json)) console.log(JSON.stringify(report, null, 2));
|
|
2903
|
+
else process.stdout.write(formatQwenWorkPolicyGroupReport(report));
|
|
2904
|
+
if (report.status === 'fail') process.exitCode = 1;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2895
2907
|
function deeppatternDisciplineHonestyDoctor() {
|
|
2896
2908
|
const args = parseArgs(process.argv.slice(3));
|
|
2897
2909
|
const {
|
|
@@ -3559,6 +3571,24 @@ function cacheUpdate() {
|
|
|
3559
3571
|
updateCacheFromEvent(payload ? JSON.parse(payload) : {});
|
|
3560
3572
|
}
|
|
3561
3573
|
|
|
3574
|
+
function observeToolResult() {
|
|
3575
|
+
try {
|
|
3576
|
+
const payload = readStdinText();
|
|
3577
|
+
const input = payload ? JSON.parse(payload) : {};
|
|
3578
|
+
const gatesEngine = require(path.join(PKG_ROOT, 'scripts', 'gates-engine'));
|
|
3579
|
+
gatesEngine.observeTeamsSendResult(input);
|
|
3580
|
+
const result = gatesEngine.observeSwarmClaimResult(input);
|
|
3581
|
+
if (!result) {
|
|
3582
|
+
process.stdout.write('{}\n');
|
|
3583
|
+
return;
|
|
3584
|
+
}
|
|
3585
|
+
process.stdout.write(`${gatesEngine.formatObserveStop(result)}\n`);
|
|
3586
|
+
} catch (err) {
|
|
3587
|
+
process.stderr.write(`observe-tool-result error: ${err.message}\n`);
|
|
3588
|
+
process.stdout.write('{}\n');
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3562
3592
|
function statuslineRender() {
|
|
3563
3593
|
syncActiveProjectContext();
|
|
3564
3594
|
try {
|
|
@@ -3602,11 +3632,6 @@ function hookAutoCapture() {
|
|
|
3602
3632
|
|
|
3603
3633
|
const guardResult = evaluatePromptGuard(prompt);
|
|
3604
3634
|
if (guardResult) {
|
|
3605
|
-
recordConversationEntry({
|
|
3606
|
-
author: 'user',
|
|
3607
|
-
text: prompt,
|
|
3608
|
-
source: 'claude_user_prompt',
|
|
3609
|
-
});
|
|
3610
3635
|
process.stdout.write(`${JSON.stringify(guardResult)}\n`);
|
|
3611
3636
|
return;
|
|
3612
3637
|
}
|
|
@@ -3749,7 +3774,8 @@ function dashboard() {
|
|
|
3749
3774
|
const { resolveProjectDir } = require(path.join(PKG_ROOT, 'scripts', 'feedback-paths'));
|
|
3750
3775
|
const projectDir = resolveProjectDir({ cwd: process.cwd(), env: process.env });
|
|
3751
3776
|
const port = process.env.PORT || 3456;
|
|
3752
|
-
const
|
|
3777
|
+
const { resolveLocalProject } = require(path.join(PKG_ROOT, 'scripts', 'project-identity'));
|
|
3778
|
+
const url = `http://127.0.0.1:${port}/dashboard?project=${encodeURIComponent(resolveLocalProject(projectDir).projectKey)}`;
|
|
3753
3779
|
|
|
3754
3780
|
progress.start(`Starting local dashboard on :${port}…`);
|
|
3755
3781
|
ensureDash(Number(port))
|
|
@@ -4002,7 +4028,7 @@ function help() {
|
|
|
4002
4028
|
console.log(' break-glass --reason="..." Short TTL recovery if gates over-fire');
|
|
4003
4029
|
console.log(' brain [--write] Build the agent-readable context brain (lessons + rules + gates)');
|
|
4004
4030
|
console.log(' pro ThumbGate Pro (dashboard, exports, sync)');
|
|
4005
|
-
console.log(' diagnostic $499
|
|
4031
|
+
console.log(' diagnostic $499 Setup Sprint for one repeated team failure');
|
|
4006
4032
|
console.log(' subscribe <email> Get the 5-min setup guide + weekly tips by email');
|
|
4007
4033
|
console.log('');
|
|
4008
4034
|
console.log('More:');
|
|
@@ -4045,6 +4071,7 @@ function help() {
|
|
|
4045
4071
|
console.log(' statusline-render Render ThumbGate Claude status line');
|
|
4046
4072
|
console.log(' hook-auto-capture Process Claude UserPromptSubmit inline feedback');
|
|
4047
4073
|
console.log(' claim-stop-check Recheck configured factual claims before Claude stops');
|
|
4074
|
+
console.log(' observe-tool-result Record swarm-claim.py exit 3, including a failed shell, and a Teams send that succeeded');
|
|
4048
4075
|
console.log(' session-start Refresh local ThumbGate session cache');
|
|
4049
4076
|
console.log('');
|
|
4050
4077
|
|
|
@@ -4103,6 +4130,7 @@ function help() {
|
|
|
4103
4130
|
console.log(' deeppattern-discipline-honesty Layer-check + evidence-closeout (DeepPattern FORMAT; not AQG/DE)');
|
|
4104
4131
|
console.log(' salt-code-policy-honesty 40-policy taxonomy + context vs PreToolUse diode (Salt Code FORMAT)');
|
|
4105
4132
|
console.log(' infoq-architect-honesty Code-as-truth, typed host, lease, time-in-queue (InfoQ FORMAT)');
|
|
4133
|
+
console.log(' qwenwork-policy-group Org policy group at the action (QwenWork FORMAT; not seats or DingTalk)');
|
|
4106
4134
|
console.log(' colab-compute-honesty Compute-unit honesty from Colab /signup (not a GPU SKU)');
|
|
4107
4135
|
console.log(' omp-coordination-honesty Named-model session handoff on the checkout lease (omp FORMAT; does not install omp)');
|
|
4108
4136
|
console.log(' saas-moat-honesty 8-moat diagnostic, Ed25519 entitlement audit, and cross-customer signature loop (Walling FORMAT)');
|
|
@@ -4224,7 +4252,7 @@ const SUBCOMMAND_HELP = {
|
|
|
4224
4252
|
stats: 'Usage: npx thumbgate stats\n\nShow gate enforcement statistics: blocked/warned counts, active gates, time saved.',
|
|
4225
4253
|
trial: 'Usage: npx thumbgate trial\n\nShow Pro trial status, remaining days, and upgrade path.',
|
|
4226
4254
|
pro: 'Usage: npx thumbgate pro [--activate <key>]\n\nLaunch the local Pro dashboard or activate a Pro license key.',
|
|
4227
|
-
diagnostic: 'Usage: npx thumbgate diagnostic\n\nShow the $499
|
|
4255
|
+
diagnostic: 'Usage: npx thumbgate diagnostic\n\nShow the $499 Setup Sprint fit-check and checkout paths for teams with one repeated AI-agent workflow failure.',
|
|
4228
4256
|
subscribe: 'Usage: npx thumbgate subscribe <email>\n\nSubscribe to the 5-minute setup guide + trial reminders.',
|
|
4229
4257
|
lessons: 'Usage: npx thumbgate lessons [--query="..."] [--limit=N]\n\nSearch the lesson database (Pro feature).',
|
|
4230
4258
|
search: 'Usage: npx thumbgate search <query>\n\nSearch ThumbGate knowledge base (Pro feature).',
|
|
@@ -4237,6 +4265,7 @@ const SUBCOMMAND_HELP = {
|
|
|
4237
4265
|
'deeppattern-discipline-honesty': 'Usage: npx thumbgate deeppattern-discipline-honesty [--claim="..."] [--closeout=path.md] [--json] [--map-only]\n\nDeepPattern FORMAT steal: layer-check + evidence-closeout. Does not install AQG/Decision Engine.',
|
|
4238
4266
|
'salt-code-policy-honesty': 'Usage: npx thumbgate salt-code-policy-honesty [--inspect-code=...] [--inspect-api=...] [--inspect-mcp=...] [--strict] [--json] [--map-only]\n\nSalt Code FORMAT steal: 40-policy taxonomy, active PreToolUse vs context injection, OpenAPI query secret diode. Does not connect to mcp.getsaltcode.com.',
|
|
4239
4267
|
'infoq-architect-honesty': 'Usage: npx thumbgate infoq-architect-honesty [--claim="..."] [--host=javascript] [--queue=path.json] [--max-age-ms=N] [--json] [--map-only]\n\nInfoQ September 2026 FORMAT: code-as-truth, typed host, existing lease, time-in-queue. Does not register for InfoQ or install Vortex.',
|
|
4268
|
+
'qwenwork-policy-group': 'Usage: npx thumbgate qwenwork-policy-group [--claim="..."] [--policy=path.json] [--action=path.json] [--json] [--map-only]\n\nQwenWork Enterprise Premium FORMAT: one org policy group at the action. Does not buy seats, call Alibaba Cloud, or install DingTalk, WeCom, or Feishu.',
|
|
4240
4269
|
'board-loop': 'Usage: npx thumbgate board-loop [--apply] [--json] [--max-update-branch=1] [--max-pr-manage=1] [--max-comments=4] [--skip-pr=N]\n\nClassify Issues+PR wall: update-branch BEHIND green Dependabot, pr:manage READY, comment DIRTY/ECI. Never approve.',
|
|
4241
4270
|
'colab-compute-honesty': 'Usage: npx thumbgate colab-compute-honesty [--claim="..."] [--plan-proof=proplus] [--json] [--map-only]\n\nColab /signup FORMAT steal: Compute Units ≠ dedicated GPU; Subscribe ≠ receipt. Does not buy Pro/Pro+.',
|
|
4242
4271
|
'omp-coordination-honesty': 'Usage: npx thumbgate omp-coordination-honesty [--claim="..."] [--handoff=path] [--json] [--map-only] [--strict]\n\nMap omp session/subagent/collab FORMAT onto the checkout lease. Does not install omp.',
|
|
@@ -4266,6 +4295,7 @@ const SUBCOMMAND_HELP = {
|
|
|
4266
4295
|
compact: 'Usage: npx thumbgate compact\n\nCompact the lesson database and reclaim disk space.',
|
|
4267
4296
|
'context-packs': 'Usage: npx thumbgate context-packs\n\nGenerate context packs from top failure patterns.',
|
|
4268
4297
|
suggest: 'Usage: npx thumbgate suggest <gate-id>\n\nSuggest fixes for a specific gate based on lesson history.',
|
|
4298
|
+
agents: 'Usage: npx thumbgate agents [--json] [--days=30] [--data-dir=path] [--owner=<id>=<user>] [--register=<id>]\n\n30-day AI governance system of record: lists agents, models, MCP servers, and hook sources with first/last seen, call counts, editable owner (default: machine user), and flags callers outside config/mcp-allowlists.json or the register as "unregistered agent".',
|
|
4269
4299
|
inventory: 'Usage: npx thumbgate inventory [--json] [--days=N] [--data-dir=path] [--max-bytes=N]\n\nRead-only inventory of agent activity in this repo\'s ThumbGate store: agents seen, tool calls by tool, allow/deny counts, deny reasons per gate, top gates, per-day activity, and the false-deny rate.\n\nEvery source reports its own status (ok / empty / missing) so an uninstrumented store never looks like a quiet one. falseDenyRate is null with a stated reason whenever a real denominator was not observed; falseDenyNumerator and falseDenyDenominator are always emitted raw.\n\nEach source is read as a bounded tail (default 8 MiB, --max-bytes to change) so a multi-hundred-MB audit log is never loaded whole. If the tail did not reach back to the start of the window, windowFullyCovered is false and the text output says so.',
|
|
4270
4300
|
'conflict-audit': 'Usage: npx thumbgate conflict-audit [--json] [--offline] [--repo-root=path] [--github-repo=owner/name] [--branch=main] [--consecutive-failures=N] [--excluded-lines=N] [--commits=N]\n\nDeterministic detector for controls that report success but enforce nothing. Six detectors, no model involved:\n\n D1 gate configs declaring a `patterns` array when the engine reads `pattern` (the match block is skipped, so the gate fires on every tool in its toolNames)\n D2 gate patterns that cannot compile (an inline (?i) flag group throws; the engine swallows the throw as "no match")\n D3 checks required by NEITHER classic branch protection NOR any repository ruleset, which have failed on N or more consecutive recent commits\n D4 sonar.exclusions / sonar.coverage.exclusions entries that hide non-trivial code inside sonar.sources from scanning\n D5 modules and entry exports with zero production call sites outside their own tests (for a PUBLISHED package the entry surface is public API whose callers are downstream npm consumers, so those are reported NOT INSPECTED rather than dead)\n D6 the bare `path.resolve(process.argv[1]) === path.resolve(__filename)` main check, which no-ops under an npm bin shim\n\nEvery detector reports its own status: `ran` (inspected), `partial` (some of the surface was not inspected, and which), or `unavailable` (could not inspect at all). An unavailable detector is NEVER reported as clean. D3 needs the `gh` CLI (resolved from a fixed install location, never through $PATH) plus read access to branch protection and repository rulesets; use --offline to skip it explicitly.',
|
|
4271
4301
|
cost: 'Usage: npx thumbgate cost [--json] [--stats <path>] [--mix \'{"claude-sonnet-4-5":0.8,...}\']\n\nShow cumulative $ and tokens saved by PreToolUse gate blocks. Reads ~/.thumbgate/gate-stats.json.',
|
|
@@ -4537,6 +4567,9 @@ switch (COMMAND) {
|
|
|
4537
4567
|
case 'claim-stop-check':
|
|
4538
4568
|
claimStopCheckCmd();
|
|
4539
4569
|
break;
|
|
4570
|
+
case 'observe-tool-result':
|
|
4571
|
+
observeToolResult();
|
|
4572
|
+
break;
|
|
4540
4573
|
case 'session-start':
|
|
4541
4574
|
sessionStart();
|
|
4542
4575
|
break;
|
|
@@ -4555,6 +4588,9 @@ switch (COMMAND) {
|
|
|
4555
4588
|
process.exit(1);
|
|
4556
4589
|
});
|
|
4557
4590
|
break;
|
|
4591
|
+
case 'proof':
|
|
4592
|
+
require(path.join(PKG_ROOT, 'scripts', 'proof-report')).runProofCli(process.argv.slice(3));
|
|
4593
|
+
break;
|
|
4558
4594
|
case 'stats':
|
|
4559
4595
|
stats();
|
|
4560
4596
|
upgradeNudge();
|
|
@@ -5103,6 +5139,9 @@ switch (COMMAND) {
|
|
|
5103
5139
|
case 'architect-honesty':
|
|
5104
5140
|
infoqArchitectHonesty();
|
|
5105
5141
|
break;
|
|
5142
|
+
case 'qwenwork-policy-group':
|
|
5143
|
+
qwenworkPolicyGroup();
|
|
5144
|
+
break;
|
|
5106
5145
|
case 'workspace-search-route':
|
|
5107
5146
|
case 'zg-search-route':
|
|
5108
5147
|
case 'zvec-grep-route':
|
|
@@ -5473,6 +5512,44 @@ switch (COMMAND) {
|
|
|
5473
5512
|
}
|
|
5474
5513
|
break;
|
|
5475
5514
|
}
|
|
5515
|
+
case 'agents': {
|
|
5516
|
+
const agentArgs = parseArgs(process.argv.slice(3));
|
|
5517
|
+
const {
|
|
5518
|
+
buildAgentRegister,
|
|
5519
|
+
renderAgentRegisterText,
|
|
5520
|
+
updateAgentRegisterEntry,
|
|
5521
|
+
} = require(path.join(PKG_ROOT, 'scripts', 'agent-action-inventory'));
|
|
5522
|
+
const { resolveFeedbackDir } = require(path.join(PKG_ROOT, 'scripts', 'feedback-paths'));
|
|
5523
|
+
const targetDir = agentArgs['data-dir'] || resolveFeedbackDir();
|
|
5524
|
+
if (typeof agentArgs.owner === 'string' && agentArgs.owner.includes('=')) {
|
|
5525
|
+
const eq = agentArgs.owner.indexOf('=');
|
|
5526
|
+
const targetId = agentArgs.owner.slice(0, eq).trim();
|
|
5527
|
+
const nextOwner = agentArgs.owner.slice(eq + 1).trim();
|
|
5528
|
+
updateAgentRegisterEntry({ dataDir: targetDir, id: targetId, owner: nextOwner });
|
|
5529
|
+
}
|
|
5530
|
+
if (typeof agentArgs.register === 'string' && agentArgs.register.trim()) {
|
|
5531
|
+
const ownerOpt = typeof agentArgs.owner === 'string' && !agentArgs.owner.includes('=')
|
|
5532
|
+
? agentArgs.owner.trim()
|
|
5533
|
+
: undefined;
|
|
5534
|
+
updateAgentRegisterEntry({
|
|
5535
|
+
dataDir: targetDir,
|
|
5536
|
+
id: agentArgs.register.trim(),
|
|
5537
|
+
owner: ownerOpt,
|
|
5538
|
+
registered: true,
|
|
5539
|
+
});
|
|
5540
|
+
}
|
|
5541
|
+
const registerReport = buildAgentRegister({
|
|
5542
|
+
dataDir: targetDir,
|
|
5543
|
+
windowDays: agentArgs.days,
|
|
5544
|
+
maxBytes: agentArgs['max-bytes'] ? Number(agentArgs['max-bytes']) : undefined,
|
|
5545
|
+
});
|
|
5546
|
+
if (agentArgs.json) {
|
|
5547
|
+
console.log(JSON.stringify(registerReport, null, 2));
|
|
5548
|
+
} else {
|
|
5549
|
+
process.stdout.write(renderAgentRegisterText(registerReport));
|
|
5550
|
+
}
|
|
5551
|
+
break;
|
|
5552
|
+
}
|
|
5476
5553
|
case 'conflict-audit': {
|
|
5477
5554
|
// Deterministic sweep for controls that report success but enforce
|
|
5478
5555
|
// nothing. Each detector reports its own status, so a surface that could
|
|
@@ -5498,6 +5575,20 @@ switch (COMMAND) {
|
|
|
5498
5575
|
}
|
|
5499
5576
|
break;
|
|
5500
5577
|
}
|
|
5578
|
+
case 'dream':
|
|
5579
|
+
case 'dream-mode': {
|
|
5580
|
+
// ThumbGate Dream Mode (Anthropic REM memory consolidation, read-only on source code)
|
|
5581
|
+
const { dreamCmd } = require(path.join(PKG_ROOT, 'scripts', 'thumbgate-dream'));
|
|
5582
|
+
dreamCmd();
|
|
5583
|
+
break;
|
|
5584
|
+
}
|
|
5585
|
+
case 'cuda-gate':
|
|
5586
|
+
case 'cuda-gate-batch': {
|
|
5587
|
+
// CUDA-inspired parallel PreToolUse gate evaluation
|
|
5588
|
+
const { cudaGateBatchCmd } = require(path.join(PKG_ROOT, 'scripts', 'cuda-gate-batch'));
|
|
5589
|
+
cudaGateBatchCmd();
|
|
5590
|
+
break;
|
|
5591
|
+
}
|
|
5501
5592
|
case 'start-api':
|
|
5502
5593
|
startApi();
|
|
5503
5594
|
break;
|
|
@@ -5510,18 +5601,7 @@ switch (COMMAND) {
|
|
|
5510
5601
|
compact();
|
|
5511
5602
|
break;
|
|
5512
5603
|
case 'subscribe': {
|
|
5513
|
-
//
|
|
5514
|
-
// guide + weekly tips. Drops to /v1/marketing/install-email on the
|
|
5515
|
-
// hosted endpoint; the server fires sendNewsletterWelcomeEmail via
|
|
5516
|
-
// Resend and persists the address for follow-up.
|
|
5517
|
-
//
|
|
5518
|
-
// Usage:
|
|
5519
|
-
// npx thumbgate subscribe you@company.com
|
|
5520
|
-
// npx thumbgate subscribe --email=you@company.com
|
|
5521
|
-
//
|
|
5522
|
-
// Never prompts interactively — postinstall must stay non-interactive
|
|
5523
|
-
// for CI safety. This is the deliberate opt-in path the banner points
|
|
5524
|
-
// at; if the operator runs it, they want the email.
|
|
5604
|
+
// Non-interactive installer email subscription (/v1/marketing/install-email)
|
|
5525
5605
|
const args = process.argv.slice(3);
|
|
5526
5606
|
let email = '';
|
|
5527
5607
|
for (const arg of args) {
|
|
@@ -5619,6 +5699,63 @@ switch (COMMAND) {
|
|
|
5619
5699
|
}
|
|
5620
5700
|
break;
|
|
5621
5701
|
}
|
|
5702
|
+
case 'policy-prove': {
|
|
5703
|
+
const args = process.argv.slice(3);
|
|
5704
|
+
const jsonFlag = args.includes('--json') || args.includes('--output=json');
|
|
5705
|
+
const bIdx = args.indexOf('--boundary');
|
|
5706
|
+
const boundaryFile = bIdx >= 0 ? args[bIdx + 1] : null;
|
|
5707
|
+
const candidateFile = args.find((a, idx) => !a.startsWith('--') && idx !== bIdx + 1);
|
|
5708
|
+
if (!candidateFile || !boundaryFile) {
|
|
5709
|
+
console.error('Usage: npx thumbgate policy-prove <candidate.json> --boundary <boundary.json> [--json]');
|
|
5710
|
+
process.exit(2);
|
|
5711
|
+
}
|
|
5712
|
+
try {
|
|
5713
|
+
const { provePolicyBoundary } = require(path.join(PKG_ROOT, 'src', 'openshell-lovable-engine'));
|
|
5714
|
+
const candidate = JSON.parse(fs.readFileSync(path.resolve(CWD, candidateFile), 'utf8'));
|
|
5715
|
+
const boundary = JSON.parse(fs.readFileSync(path.resolve(CWD, boundaryFile), 'utf8'));
|
|
5716
|
+
const verdict = provePolicyBoundary(candidate, boundary);
|
|
5717
|
+
if (jsonFlag) {
|
|
5718
|
+
console.log(JSON.stringify(verdict, null, 2));
|
|
5719
|
+
} else {
|
|
5720
|
+
console.log(`result: ${verdict.result}`);
|
|
5721
|
+
console.log(`coverage: domains=${verdict.coverage.domains.join(',')}`);
|
|
5722
|
+
if (verdict.counterexample) console.log(`counterexample: ${verdict.counterexample}`);
|
|
5723
|
+
if (verdict.reason) console.log(`reason: ${verdict.reason}`);
|
|
5724
|
+
}
|
|
5725
|
+
process.exit(verdict.exitCode);
|
|
5726
|
+
} catch (err) {
|
|
5727
|
+
console.error(`result: error\nreason: ${err.message}`);
|
|
5728
|
+
process.exit(2);
|
|
5729
|
+
}
|
|
5730
|
+
}
|
|
5731
|
+
case 'design-fix': {
|
|
5732
|
+
const args = process.argv.slice(3);
|
|
5733
|
+
const writeInPlace = args.includes('--write');
|
|
5734
|
+
const jsonFlag = args.includes('--json');
|
|
5735
|
+
const allowTailwind = !args.includes('--no-tailwind');
|
|
5736
|
+
const fIdx = args.indexOf('--findings');
|
|
5737
|
+
const findingsArg = fIdx >= 0 ? args[fIdx + 1] : null;
|
|
5738
|
+
const targetFile = args.find((a, idx) => !a.startsWith('--') && (fIdx < 0 || idx !== fIdx + 1));
|
|
5739
|
+
if (!targetFile) {
|
|
5740
|
+
console.error('Usage: npx thumbgate design-fix <file.html|file.tsx|file.css> [--findings <json-or-text>] [--no-tailwind] [--write] [--json]');
|
|
5741
|
+
process.exit(2);
|
|
5742
|
+
}
|
|
5743
|
+
const fullPath = path.resolve(CWD, targetFile);
|
|
5744
|
+
let visualFindings = [];
|
|
5745
|
+
if (findingsArg) {
|
|
5746
|
+
const maybePath = path.resolve(CWD, findingsArg);
|
|
5747
|
+
const rawFindings = fs.existsSync(maybePath) ? fs.readFileSync(maybePath, 'utf8') : findingsArg;
|
|
5748
|
+
try { visualFindings = JSON.parse(rawFindings); } catch { visualFindings = [rawFindings]; }
|
|
5749
|
+
}
|
|
5750
|
+
const { runDesignSelfCorrectionPipeline } = require(path.join(PKG_ROOT, 'src', 'openshell-lovable-engine'));
|
|
5751
|
+
const report = runDesignSelfCorrectionPipeline({ filePath: fullPath, visualFindings, allowTailwind, applyInPlace: writeInPlace, allowDiskRead: true });
|
|
5752
|
+
if (jsonFlag) console.log(JSON.stringify(report, null, 2));
|
|
5753
|
+
else {
|
|
5754
|
+
console.log(`design-fix: ${report.issueCount} AST optimization(s)${report.appliedInPlace ? ` written to ${targetFile}` : ''}`);
|
|
5755
|
+
for (const p of report.patches) console.log(` - [${p.type}] ${p.astPath || p.selector} -> CSS { ${p.cssOverride} }`);
|
|
5756
|
+
}
|
|
5757
|
+
process.exit(0);
|
|
5758
|
+
}
|
|
5622
5759
|
default:
|
|
5623
5760
|
if (COMMAND) {
|
|
5624
5761
|
console.error(`Unknown command: ${COMMAND}`);
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"updatedAt": "2026-11-11",
|
|
4
|
+
"maxPricesPerPost": 1,
|
|
5
|
+
"maxLinksPerPost": 1,
|
|
6
|
+
"brands": {
|
|
7
|
+
"thumbgate": {
|
|
8
|
+
"name": "ThumbGate",
|
|
9
|
+
"canonicalOrigin": "https://thumbgate.ai",
|
|
10
|
+
"allowedDomains": [
|
|
11
|
+
"thumbgate.ai",
|
|
12
|
+
"www.thumbgate.ai",
|
|
13
|
+
"github.com/IgorGanapolsky/ThumbGate",
|
|
14
|
+
"npmjs.com/package/thumbgate"
|
|
15
|
+
],
|
|
16
|
+
"verifiedPrices": [
|
|
17
|
+
"$19/mo",
|
|
18
|
+
"$19",
|
|
19
|
+
"$149/yr",
|
|
20
|
+
"$149",
|
|
21
|
+
"$499"
|
|
22
|
+
],
|
|
23
|
+
"crossProductForbidden": [
|
|
24
|
+
"Dayglass",
|
|
25
|
+
"dayglass.io",
|
|
26
|
+
"Mac YOLO",
|
|
27
|
+
"macyolosafeguards.io",
|
|
28
|
+
"Bops",
|
|
29
|
+
"deals.igorganapolsky.com",
|
|
30
|
+
"BiggerPockets"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"mac-yolo": {
|
|
34
|
+
"name": "Mac YOLO Safeguards",
|
|
35
|
+
"canonicalOrigin": "https://macyolosafeguards.io",
|
|
36
|
+
"allowedDomains": [
|
|
37
|
+
"macyolosafeguards.io",
|
|
38
|
+
"www.macyolosafeguards.io"
|
|
39
|
+
],
|
|
40
|
+
"verifiedPrices": [
|
|
41
|
+
"$9.99",
|
|
42
|
+
"$19",
|
|
43
|
+
"$29"
|
|
44
|
+
],
|
|
45
|
+
"crossProductForbidden": [
|
|
46
|
+
"ThumbGate",
|
|
47
|
+
"thumbgate.ai",
|
|
48
|
+
"Dayglass",
|
|
49
|
+
"dayglass.io",
|
|
50
|
+
"Bops",
|
|
51
|
+
"deals.igorganapolsky.com",
|
|
52
|
+
"BiggerPockets"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"rules": [
|
|
57
|
+
{
|
|
58
|
+
"id": "no-real-estate-or-tax-deed",
|
|
59
|
+
"description": "Never mention real estate, tax-deed auctions, parcel folios, or property diligence packets.",
|
|
60
|
+
"phrases": [
|
|
61
|
+
"real estate",
|
|
62
|
+
"real-estate",
|
|
63
|
+
"tax deed",
|
|
64
|
+
"tax-deed",
|
|
65
|
+
"197.552",
|
|
66
|
+
"5-folio",
|
|
67
|
+
"folio packet",
|
|
68
|
+
"miami-dade",
|
|
69
|
+
"broward",
|
|
70
|
+
"palm beach",
|
|
71
|
+
"propstream",
|
|
72
|
+
"rexera",
|
|
73
|
+
"eliseai",
|
|
74
|
+
"deals.igorganapolsky.com",
|
|
75
|
+
"biggerpockets",
|
|
76
|
+
"pre-bid diligence"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "no-unverified-refund-or-guarantee",
|
|
81
|
+
"description": "Never promise a refund, guarantee, credit, or hosted capability not listed on the matching product page.",
|
|
82
|
+
"phrases": [
|
|
83
|
+
"7-day refund guarantee",
|
|
84
|
+
"14-day refund guarantee",
|
|
85
|
+
"30-day refund guarantee",
|
|
86
|
+
"30-day money-back guarantee",
|
|
87
|
+
"money-back guarantee",
|
|
88
|
+
"refund guarantee",
|
|
89
|
+
"100% refund",
|
|
90
|
+
"full refund",
|
|
91
|
+
"sla credit",
|
|
92
|
+
"service credit guarantee",
|
|
93
|
+
"soc 2 type ii certified",
|
|
94
|
+
"fedramp authorized",
|
|
95
|
+
"hipaa baa included",
|
|
96
|
+
"org-wide audit log is generally available",
|
|
97
|
+
"hosted team sso is live"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "voice-no-stacked-jargon",
|
|
102
|
+
"description": "Flag stacked sales jargon, procurement-hack copy, and bot-slop line labels.",
|
|
103
|
+
"phrases": [
|
|
104
|
+
"corporate-expensable",
|
|
105
|
+
"rule-pack kit",
|
|
106
|
+
"zero procurement friction",
|
|
107
|
+
"card limit",
|
|
108
|
+
"one-time corporate-expensable",
|
|
109
|
+
"synergistic",
|
|
110
|
+
"paradigm shift",
|
|
111
|
+
"game-changer",
|
|
112
|
+
"revolutionary",
|
|
113
|
+
"battle-tested enterprise-grade",
|
|
114
|
+
"unlock next-gen",
|
|
115
|
+
"in today's rapidly evolving"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "voice-no-unverified-claims",
|
|
120
|
+
"description": "Flag unverified performance, ROI, or zero-risk claims absent from the product page.",
|
|
121
|
+
"phrases": [
|
|
122
|
+
"guaranteed 10x",
|
|
123
|
+
"100% bug-free",
|
|
124
|
+
"zero false positives guaranteed",
|
|
125
|
+
"blocks 100% of attacks",
|
|
126
|
+
"replaces human engineers",
|
|
127
|
+
"corporate-card expensable"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
@@ -180,6 +180,19 @@
|
|
|
180
180
|
"CWE-863"
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
|
+
{
|
|
184
|
+
"id": "outbound-off-brand-vertical-block",
|
|
185
|
+
"layer": "Execution",
|
|
186
|
+
"trigger": "any:outbound_off_brand_vertical_block",
|
|
187
|
+
"pattern": "^(?=[\\s\\S]*(?:linkedin\\.com\\/(?:sharing|feed|posts|in\\/)|api\\.linkedin\\.com|ugcPosts|bsky\\.app|com\\.atproto\\.repo\\.createRecord|threads\\.(?:com|net)|(?:x|twitter)\\.com\\/(?:i\\/|intent\\/|compose)|api\\.(?:x|twitter)\\.com|oauth\\.reddit\\.com\\/api\\/submit|substack\\.com|api\\.medium\\.com|dev\\.to\\/api\\/articles|scripts\\/(?:post-everywhere|publish-bluesky|social-post-hourly|publish-linkedin|social-analytics\\/publishers)|browseros[-_]neo|browser_type|browser_fill))(?=[\\s\\S]*(?:[rR]eal[\\s_-]?[eE]state|[tT]ax[\\s_-]?[dD]eed|197\\.552|\\b[fF]olios?\\b|[mM]iami-[dD]ade|[bB]roward|[pP]rop[sS]tream|[rR]exera|[eE]lise[aA][iI]|deals\\.igorganapolsky\\.com|[bB]igger[pP]ockets))",
|
|
188
|
+
"action": "block",
|
|
189
|
+
"message": "Outbound social or browser post blocked: contains prohibited off-brand vertical offers or external deal links outside ThumbGate's AI agent governance scope.",
|
|
190
|
+
"severity": "critical",
|
|
191
|
+
"compliance": [
|
|
192
|
+
"SOC2-CC6.1",
|
|
193
|
+
"CWE-285"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
183
196
|
{
|
|
184
197
|
"id": "outbound-email-send",
|
|
185
198
|
"layer": "Execution",
|
|
@@ -504,7 +517,9 @@
|
|
|
504
517
|
"toolNames": [
|
|
505
518
|
"Edit",
|
|
506
519
|
"Write",
|
|
507
|
-
"MultiEdit"
|
|
520
|
+
"MultiEdit",
|
|
521
|
+
"NotebookEdit",
|
|
522
|
+
"Bash"
|
|
508
523
|
],
|
|
509
524
|
"pattern": "(?:config/gates/|config/(?:budget|enforcement|mcp-allowlists)\\.json|\\.thumbgate/config\\.json|thumbgate\\.json)",
|
|
510
525
|
"action": "block",
|
|
@@ -552,6 +567,8 @@
|
|
|
552
567
|
"toolNames": [
|
|
553
568
|
"Edit",
|
|
554
569
|
"Write",
|
|
570
|
+
"MultiEdit",
|
|
571
|
+
"NotebookEdit",
|
|
555
572
|
"Bash"
|
|
556
573
|
],
|
|
557
574
|
"pattern": "(?:\\.claude/settings(?:\\.local)?\\.json|\\.codex/config\\.toml|scripts/hook-[^/]+\\.(?:js|sh))",
|
package/config/github-about.json
CHANGED
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"thompson-sampling",
|
|
24
24
|
"self-improving-agents"
|
|
25
25
|
],
|
|
26
|
-
"metaDescription": "
|
|
26
|
+
"metaDescription": "ThumbGate checks proposed tool calls before execution in supported hook integrations. The $499 Setup Sprint turns one recurring failure in a supported local workflow into a configured gate, a regression test, and rollout and rollback evidence."
|
|
27
27
|
}
|