thumbgate 1.38.0 → 1.39.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.
Files changed (133) hide show
  1. package/.agents/skills/bolt-forge-opt-in-not-clone/SKILL.md +72 -0
  2. package/.agents/skills/craft-playbook-gate/SKILL.md +51 -0
  3. package/.agents/skills/decisive-step-evaluator/SKILL.md +47 -0
  4. package/.agents/skills/fiddler-control-plane-honesty/SKILL.md +61 -0
  5. package/.agents/skills/harness-evolution-ceiling/SKILL.md +52 -0
  6. package/.agents/skills/omp-coordination-honesty-not-clone/SKILL.md +94 -0
  7. package/.agents/skills/qwenwork-policy-group-honesty-not-clone/SKILL.md +36 -0
  8. package/.agents/skills/saas-moat-honesty-not-clone/SKILL.md +22 -0
  9. package/.agents/skills/siren-mcp-governance/SKILL.md +50 -0
  10. package/.agents/skills/vs-coverage-gap-not-clone/SKILL.md +69 -0
  11. package/.agents/skills/wisdom-context-artifact-not-clone/SKILL.md +67 -0
  12. package/.claude-plugin/plugin.json +1 -1
  13. package/.well-known/mcp/server-card.json +1 -1
  14. package/README.md +6 -1
  15. package/adapters/claude/.mcp.json +2 -2
  16. package/adapters/forge/forge.yaml +3 -3
  17. package/adapters/future-agi/.mcp.json +1 -1
  18. package/adapters/future-agi/config.toml +1 -1
  19. package/adapters/future-agi/opencode.json +1 -1
  20. package/adapters/herdr/herdr-plugin.toml +2 -2
  21. package/adapters/hotdata/hotdata-vector-store.js +575 -0
  22. package/adapters/mcp/server-stdio.js +23 -1
  23. package/adapters/opencode/opencode.json +1 -1
  24. package/adapters/strands/strands-box-diode.js +344 -0
  25. package/adapters/strands/strands-decider-adapter.js +445 -0
  26. package/adapters/strands/strands-middleware.js +31 -4
  27. package/bin/cli.js +535 -60
  28. package/config/gate-templates.json +37 -0
  29. package/config/gates/default.json +13 -0
  30. package/config/github-about.json +1 -1
  31. package/config/merge-quality-checks.json +2 -1
  32. package/config/post-deploy-marketing-pages.json +1 -1
  33. package/config/schemas/task-outcome-receipt.schema.json +12 -0
  34. package/hooks/hooks.json +24 -0
  35. package/package.json +125 -21
  36. package/public/assets/diagrams/hero-thumbs.svg +2 -4
  37. package/public/blog/2026-10-05-why-3-days-of-triage-wont-save-ai-speed-code.html +119 -0
  38. package/public/blog/2026-10-09-your-code-got-a-third-author-governance.html +141 -0
  39. package/public/case-studies.html +4 -4
  40. package/public/connectors.html +329 -0
  41. package/public/dashboard.html +2 -2
  42. package/public/diagnostic.html +7 -7
  43. package/public/enterprise-governance.html +311 -0
  44. package/public/gaming-playbook.html +732 -0
  45. package/public/index.html +224 -83
  46. package/public/install.html +12 -7
  47. package/public/learn.html +14 -0
  48. package/public/lessons.html +144 -38
  49. package/public/numbers.html +2 -2
  50. package/public/operator-framework.html +385 -0
  51. package/public/pricing.html +112 -26
  52. package/scripts/action-receipts.js +393 -0
  53. package/scripts/activesaddler-curriculum-doctor.js +357 -0
  54. package/scripts/agent-context-artifact.js +325 -0
  55. package/scripts/agent-egress-policy.js +2 -2
  56. package/scripts/agent-operations-planner.js +1 -1
  57. package/scripts/agent-outcome-eval.js +1 -1
  58. package/scripts/agent-reliability-client.js +148 -0
  59. package/scripts/apple-minions-idle-compute-steal.js +428 -0
  60. package/scripts/auto-wire-hooks.js +64 -25
  61. package/scripts/billing.js +0 -1
  62. package/scripts/cli-demo.js +494 -12
  63. package/scripts/cli-schema.js +60 -0
  64. package/scripts/colab-compute-honesty.js +93 -0
  65. package/scripts/corporate-email-isolation-diode.js +299 -0
  66. package/scripts/coverage-gap.js +396 -0
  67. package/scripts/craft-playbook-gate.js +550 -0
  68. package/scripts/dashboard-chat.js +3 -3
  69. package/scripts/dashboard.js +2 -2
  70. package/scripts/decisive-step-doctor.js +256 -0
  71. package/scripts/decisive-step-evaluator.js +390 -0
  72. package/scripts/entitlement.js +18 -7
  73. package/scripts/failure-diagnostics.js +11 -0
  74. package/scripts/feedback-loop.js +26 -3
  75. package/scripts/fiddler-control-plane-honesty.js +303 -0
  76. package/scripts/financial-control-plane.js +10 -2
  77. package/scripts/gate-stats.js +32 -5
  78. package/scripts/gates-engine.js +635 -11
  79. package/scripts/github-license-compliance-diode.js +378 -0
  80. package/scripts/gitlab-sdlc-prompts.js +397 -0
  81. package/scripts/harness-ceiling-doctor.js +326 -0
  82. package/scripts/hf-papers.js +1 -1
  83. package/scripts/hook-runtime.js +10 -0
  84. package/scripts/human-escalation.js +7 -1
  85. package/scripts/hybrid-feedback-context.js +55 -7
  86. package/scripts/lesson-graph.js +785 -0
  87. package/scripts/lesson-inference.js +1 -1
  88. package/scripts/lesson-retrieval.js +26 -18
  89. package/scripts/license.js +122 -21
  90. package/scripts/llm-behavior-monitor.js +1 -1
  91. package/scripts/llm-obs-honesty.js +52 -0
  92. package/scripts/local-model-profile.js +11 -7
  93. package/scripts/mabl-failure-honesty.js +273 -0
  94. package/scripts/mailer/resend-mailer.js +6 -3
  95. package/scripts/mcp-transport-strategy.js +1 -1
  96. package/scripts/migrate-lesson-graph.js +442 -0
  97. package/scripts/model-distress-detector.js +3 -3
  98. package/scripts/model-distress-doctor.js +168 -0
  99. package/scripts/multi-harness-invariants.js +305 -0
  100. package/scripts/omp-coordination-honesty.js +488 -0
  101. package/scripts/pro-local-dashboard.js +20 -3
  102. package/scripts/product-feedback.js +35 -0
  103. package/scripts/prompt-eval.js +2 -2
  104. package/scripts/prove-herdr-adapter.js +367 -3
  105. package/scripts/qwenwork-policy-group.js +413 -0
  106. package/scripts/rag-embedding-identity.js +1 -1
  107. package/scripts/rrsi-regularizer.js +86 -0
  108. package/scripts/saas-moat-honesty.js +443 -0
  109. package/scripts/secret-redaction.js +58 -0
  110. package/scripts/session-export-gate.js +368 -0
  111. package/scripts/siren-mcp-governance.js +539 -0
  112. package/scripts/strands-box-doctor.js +130 -0
  113. package/scripts/stripe-revenue-catalog-audit.js +12 -0
  114. package/scripts/stripe-revenue-catalog.js +40 -0
  115. package/scripts/switchyard-router.js +153 -0
  116. package/scripts/tailscale-october-access.js +416 -0
  117. package/scripts/task-outcomes.js +177 -3
  118. package/scripts/telemetry-analytics.js +22 -3
  119. package/scripts/thumbgate-board-loop.js +4 -2
  120. package/scripts/thumbgate-daily-discoveries-publish.js +86 -38
  121. package/scripts/triage-savings-calculator.js +181 -0
  122. package/scripts/vector-store.js +41 -2
  123. package/scripts/vulnerability-pre-action-diode.js +319 -0
  124. package/scripts/windbg-evidence-diagnostics.js +241 -0
  125. package/scripts/workflow-intake-queue.js +1 -1
  126. package/scripts/workspace-agent-routines.js +534 -6
  127. package/server.json +2 -2
  128. package/skills/siren-mcp-governance/SKILL.md +50 -0
  129. package/src/api/server.js +252 -7
  130. package/src/mcp/email-triage-server/index.js +973 -0
  131. package/src/mcp/email-triage-server/package.json +12 -0
  132. package/src/mcp-writeguard.js +1 -1
  133. package/src/session-interactivity.js +284 -0
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: bolt-forge-opt-in-not-clone
3
+ description: >
4
+ Steal Bolt Forge FORMAT: explicit per-session opt-in, secret strip + seeded
5
+ tests, operator vs research usage split, already-exported is irreversible.
6
+ Do NOT clone Bolt Forge, send traces to Arcee, or claim 50x compute.
7
+ Slash: /bolt-forge-opt-in-not-clone.
8
+ ---
9
+
10
+ # Bolt Forge FORMAT — opt-in, don't clone
11
+
12
+ ## Goal
13
+
14
+ Produce fail-closed session-export honesty for whom: ThumbGate agents about to
15
+ dump traces/DPO/feedback off-box — so operator/production stays DENY, research
16
+ writes only after per-session opt-in + irreversible ack + secret-redaction
17
+ seeded strip. Local files only.
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | --- | --- |
23
+ | Clone Bolt Forge / upload to Arcee | `npx thumbgate session-export-gate` |
24
+ | Claim 50× compute as ours | Their preview numbers stay theirs |
25
+ | Export operator / PreToolUse / prod receipts | `--lane=research` only |
26
+ | Buried account toggle | `--opt-in-export` every session |
27
+ | Pretend exports can be untrained | `--i-understand-irreversible` |
28
+ | Invent a second SDS | `scripts/secret-redaction.js` + seeded test |
29
+
30
+ ## Reference
31
+
32
+ - https://support.bolt.new/account-and-subscription/bolt-forge
33
+ - https://thenewstack.io/bolt-forge-training-data/
34
+ - `scripts/session-export-gate.js`
35
+ - `scripts/secret-redaction.js`
36
+ - `scripts/export-dpo-pairs.js` (research consumer, still gated)
37
+
38
+ ## Examples (show, don't tell)
39
+
40
+ Weak: Turn on a global "share traces" flag and POST to a partner.
41
+
42
+ Gold:
43
+
44
+ ```bash
45
+ $ npx thumbgate session-export-gate --json --lane=operator
46
+ ok: false operator_lane_deny
47
+ $ npx thumbgate session-export-gate --json --lane=research \
48
+ --opt-in-export --i-understand-irreversible --text='hi' --dest=/tmp/out.txt --apply
49
+ ok: true
50
+ ```
51
+
52
+ ## Procedures
53
+
54
+ ```bash
55
+ npx thumbgate session-export-gate --json --lane=operator
56
+ npx thumbgate session-export-gate --json --lane=research --opt-in-export --i-understand-irreversible --input=t.txt --dest=out.txt --apply
57
+ npm run test:session-export-gate
58
+ ```
59
+
60
+ 1. Classify lane (operator DENY).
61
+ 2. Require per-session opt-in + irreversible ack.
62
+ 3. Run seeded strip (`api_key=` assignment plant) against `secret-redaction.js`.
63
+ 4. Write local file only; append export log.
64
+ 5. Refuse `--clone-bolt-forge` and remote dest.
65
+
66
+ ## Rubric
67
+
68
+ - operator → `ok=false`
69
+ - research without flags → `ok=false`
70
+ - research + flags + local dest → `ok=true`, secret gone
71
+ - doctor: `npm run test:session-export-gate` PASS
72
+ - evidence: command output in the same turn
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: craft-playbook-gate
3
+ description: >
4
+ Rachel Woods's autonomous-AI episode is a playbook format, not a ThumbGate
5
+ product. Keep one atomic playbook in git, refuse zero-touch on the first
6
+ cycle, and require a backup hash plus a named approval before a structural
7
+ self-edit. Use when checking a playbook outline, a CRAFT cycle, a self-edit,
8
+ a trigger word, or a local stack. Do NOT use to install dayglass or skill-up,
9
+ store the playbook in a vendor chat UI, spawn a subagent, call Asana or
10
+ ClickUp, reply on YouTube, or email the host.
11
+ ---
12
+
13
+ # Craft playbook gate — own the playbook, rent the model
14
+
15
+ ## Goal
16
+
17
+ Keep one deliverable's trigger, inputs, steps, output, and escalation in git.
18
+ The first cycle keeps a named human step. A later cycle can close that step
19
+ only after every CRAFT stage is done and each locked win is text inside a step.
20
+
21
+ ## Constraints
22
+
23
+ | NEVER | ALWAYS |
24
+ | --- | --- |
25
+ | Install dayglass or skill-up | `node scripts/craft-playbook-gate.js` |
26
+ | Use Docker or OpenSandbox | Home `git` and a relative `.md` or `.json` path |
27
+ | Store the playbook in a vendor chat UI | Boolean stages, in order: clear, realistic, setup, feedback, rollout |
28
+ | Approve a self-edit by line count or percent | A backup sha256 of the previous playbook |
29
+ | Spawn a subagent or call Asana or ClickUp | Explicit `approved: true` and a named `approvedBy` for a structural edit |
30
+ | Claim zero-touch on cycle 1 | Trigger word `nitpicking`, not `feedback` |
31
+ | Reply on the YouTube episode or email the host | A stack is done only when every child has `verified: true` |
32
+
33
+ ## Procedures
34
+
35
+ ```bash
36
+ node scripts/craft-playbook-gate.js --map-only
37
+ node scripts/craft-playbook-gate.js
38
+ npm run craft:playbook
39
+ npm run test:craft-playbook-gate
40
+ ```
41
+
42
+ `--help` and `--map-only` print and exit without reading stdin. Any other
43
+ command reads one JSON object from stdin. The command writes nothing. Exit 0
44
+ is accept. Exit 1 is a hold. A minor detail tweak may be applied later only
45
+ when the backup hash matches and `feedbackRef` names the review. Changing the
46
+ trigger, a step id, an escalation flag, or the escalation text stays held
47
+ until a person approves it. Moving the playbook out of git, or onto an
48
+ absolute path, is a hold even when the rest of the edit is minor.
49
+
50
+ Code as truth: scripts/craft-playbook-gate.js
51
+ Provenance: https://www.youtube.com/watch?v=CMkwClAm2TI
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: decisive-step-evaluator
3
+ description: >
4
+ NVIDIA arXiv:2610.10478 decisive-step evaluation: isolate the 1st code edit
5
+ that flips a repository's tests from failing to passing. Score models only on
6
+ this decisive action (Spearman rho = 0.964 vs SWE-bench Verified) rather than
7
+ diluting scores across all exploration steps (rho = 0.915).
8
+ ---
9
+
10
+ # Decisive-Step Evaluation (NVIDIA arXiv:2610.10478 FORMAT Steal)
11
+
12
+ ## Goal
13
+
14
+ Apply the empirical finding from *Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models* (NVIDIA Research, arXiv:2610.10478):
15
+ 1. Isolate the **Decisive Step** in multi-turn trajectories: the first code edit that flips tests from fail to pass.
16
+ 2. Score candidate models only on the decisive action (via Decisive BPB and Patch MCQ contrastive discrimination) rather than averaging across every noisy exploration step.
17
+ 3. Select models for agent workflows and post-training based on decisive-step signal ($\rho = 0.964$).
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | :--- | :--- |
23
+ | Score models by averaging across all turns (exploration, `ls`, `grep`) | Isolate the decisive step where test status flipped from fail to pass |
24
+ | Evaluate base models from cold-start multi-step runs (mis-ranks on tool syntax) | Evaluate prefix-conditioned at the decisive step |
25
+ | Accept trajectories without a verified test flip | Reject trajectories that never failed or never passed (`hasDecisiveStep: false`) |
26
+ | Select candidate models based on parameter count alone | Select based on decisive-action discrimination rate ($\ge 60\%$) |
27
+
28
+ ## Commands
29
+
30
+ ```bash
31
+ # Doctor status
32
+ npx thumbgate decisive-step --json
33
+
34
+ # Rail map
35
+ npx thumbgate decisive-step --map-only --json
36
+
37
+ # Test suite
38
+ node --test tests/decisive-step.test.js
39
+ ```
40
+
41
+ ## Reference
42
+
43
+ - Paper: arXiv:2610.10478 (NVIDIA Research, Oct 2026)
44
+ - Synthesizer: Rohan Paul (@rohanpaul_ai, Oct 12, 2026)
45
+ - Evaluator: `scripts/decisive-step-evaluator.js`
46
+ - Doctor: `scripts/decisive-step-doctor.js`
47
+ - Documentation: `docs/agents/decisive-step-evaluator.md`
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: fiddler-control-plane-honesty
3
+ description: >
4
+ Fiddler AI (fiddler.ai) is an enterprise AI control plane with inline guardrails and Centor models.
5
+ Steal the Evaluation Trust Tax TCO formula, the two-layer control plane (Creation + Production),
6
+ the Centor-Diode multi-stage local discriminant gate (<0.5ms on CPU), and auditable GRC decision traces.
7
+ Never vendor Fiddler SaaS, install Centor weights, or pay $0.002/trace. Slash: /fiddler-control-plane-honesty.
8
+ ---
9
+
10
+ # Fiddler AI Control Plane Honesty — Compare, Do Not Clone
11
+
12
+ ## Goal
13
+
14
+ Compare Fiddler AI's inline proxy and Centor models against ThumbGate's deterministic PreToolUse L7 infrastructure firewall. Steal their **Evaluation Trust Tax TCO formulation** (proving zero-token savings over cloud LLM judges), their **Two-Layer Control Plane architecture** (Creation layer coding agents + Production layer autonomous daemons), and their **Centor-Diode multi-stage discriminant gate** running in `<0.5ms` on local CPU with zero data egress.
15
+
16
+ ## Constraints
17
+
18
+ | NEVER | ALWAYS |
19
+ | --- | --- |
20
+ | Route agent traffic through `fiddler.ai` cloud proxies | Enforce sub-millisecond `PreToolUse` hooks directly inside agent harness |
21
+ | Pay $0.002/trace or sign $50k+ SaaS enterprise contracts | Deliver 100% zero-token local CPU evaluation ($0.00 cost) |
22
+ | Settle for 80ms latency on critical tool paths | Execute multi-stage discriminant checks in under 0.5ms (160x faster) |
23
+ | Treat Fiddler SaaS as a required dependency | Keep all policy rules, lessons, and SHA-256 receipts local and air-gapped |
24
+
25
+ HARD fail closed. REFUSE external cloud dependencies and proprietary model weights.
26
+
27
+ ## Reference
28
+
29
+ - https://www.fiddler.ai/ (The Control Plane for Enterprise AI Agents, 2026)
30
+ - `scripts/fiddler-control-plane-honesty.js`
31
+ - `docs/agents/fiddler-control-plane-honesty.md`
32
+ - ThumbGate Completion Claim Contract in `AGENTS.md` / `GEMINI.md`
33
+
34
+ ## Examples (Show, Don't Tell)
35
+
36
+ Weak: "Fiddler AI has guardrails and a control plane."
37
+
38
+ Gold:
39
+ ```bash
40
+ $ npx thumbgate fiddler-control-plane-honesty --map-only --json
41
+ # Dumps 6-dimension honest comparison matrix between ThumbGate and Fiddler AI.
42
+
43
+ $ npx thumbgate fiddler-control-plane-honesty --tco-calc --monthly-traces=1000000 --json
44
+ # Calculates annual Evaluation Trust Tax dollar savings and 185x latency speedup.
45
+
46
+ $ npx thumbgate fiddler-control-plane-honesty --tool-name=Bash --command="rm -rf /" --json
47
+ # Interdicts destructive command via Centor-Diode in <55 microseconds with SHA-256 receipt.
48
+ ```
49
+
50
+ ## Procedures
51
+
52
+ ```bash
53
+ # Verify honest capability matrix
54
+ npx thumbgate fiddler-control-plane-honesty --map-only --json
55
+
56
+ # Run TCO trust tax calculation
57
+ npx thumbgate fiddler-control-plane-honesty --tco-calc --json
58
+
59
+ # Verify test suite
60
+ npm run test:fiddler-control-plane-honesty
61
+ ```
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: harness-evolution-ceiling
3
+ description: >
4
+ arXiv:2610.11655 diagnose-then-intervene rail: read failure composition
5
+ (process vs content) to detect when harness evolution hits its ceiling.
6
+ When content failures dominate, switch to weight training (LoRA/distillation)
7
+ or model tier escalation instead of bloating prompts and AGENTS.md rules.
8
+ ---
9
+
10
+ # Harness Evolution Ceiling (arXiv:2610.11655 FORMAT Steal)
11
+
12
+ ## Goal
13
+
14
+ Apply the empirical law from *Harness Evolution Hits a Ceiling: When Weight Training Should Begin* (arXiv:2610.11655) to agent harnesses, task outcomes, and `omp.sh`:
15
+ 1. Label failed agent trajectories by the first signal that fires into **Process Failures** vs **Content Failures**.
16
+ 2. Evolve the harness (rules, gates, tool contracts) when process failures are active ($P_f \ge 20\%$).
17
+ 3. When process failures drop and content failures dominate ($C_f \ge 80\%$, $P_f \le 20\%$), declare **Harness Ceiling Reached**. Freeze prompt rules and switch the lever to **Weight Training** (LoRA/distillation) or **Model Tier Escalation** (`Route: named` to frontier model).
18
+ 4. Partition accepted edits so security controls remain in the runtime harness while formatting/planning templates are isolated for weight adaptation.
19
+
20
+ ## Constraints
21
+
22
+ | NEVER | ALWAYS |
23
+ | :--- | :--- |
24
+ | Bloat `AGENTS.md` / prompts with negative rules when failures are content/reasoning gaps | Read failure composition first: classify into process vs content |
25
+ | Claim harness ceiling with $<3$ failures or when process failures are still high ($>20\%$) | Evolve harness (fix tool syntax, gates, loops) while process failures remain |
26
+ | Move security gates, checkout leases, or task-scope fences into model weights | Keep security controls in the runtime harness; train only templates & styles |
27
+ | Use unnamed models (Auto, Fast) when content ceiling is reached | Escalate to named frontier model (`Route: named`) or train LoRA adapter |
28
+
29
+ ## Commands
30
+
31
+ ```bash
32
+ # Audit harness ceiling rail status
33
+ npx thumbgate harness-ceiling --json
34
+
35
+ # Rail map
36
+ npx thumbgate harness-ceiling --map-only --json
37
+
38
+ # Dynamic failure composition evaluation
39
+ npx thumbgate harness-ceiling --evaluate --process=0 --content=8 --json
40
+
41
+ # Test suite
42
+ node --test tests/harness-ceiling.test.js
43
+ ```
44
+
45
+ ## Reference
46
+
47
+ - Paper: arXiv:2610.11655 (Tian et al., Oct 2026)
48
+ - Doctor: `scripts/harness-ceiling-doctor.js`
49
+ - Task outcomes: `scripts/task-outcomes.js` (`classifyFailureType`)
50
+ - RRSI regularizer: `scripts/rrsi-regularizer.js` (`evaluateHarnessCeiling`, `partitionAcceptedEdits`)
51
+ - omp coordination: `scripts/omp-coordination-honesty.js` (`diagnoseFailureIntervention`)
52
+ - Documentation: `docs/agents/harness-evolution-ceiling.md`
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: omp-coordination-honesty-not-clone
3
+ description: >
4
+ omp.sh is a terminal coding agent, not a ThumbGate runtime. Steal named-model
5
+ routes, /new session preservation, saved handoffs, file-disjoint children, and
6
+ view-only observation onto the checkout lease. Never install omp. Never open
7
+ a full-control collab link. Slash: /omp-coordination-honesty-not-clone.
8
+ ---
9
+
10
+ # omp coordination honesty — compare, do not clone
11
+
12
+ ## Goal
13
+
14
+ Fail-closed coordination for whom: agents sharing the ThumbGate checkout —
15
+ so a handoff names the model, keeps the previous session, and gives each
16
+ writer disjoint files. omp stays a neighbor. Orchestra OMP is a different
17
+ system and stays refused.
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | --- | --- |
23
+ | curl the omp installer or install `@oh-my-pi/pi-coding-agent` | `npx thumbgate omp-coordination-honesty --json --map-only` |
24
+ | Model Auto, Fast, default, or balanced | Named id (`grok-4.7` or `provider/model-id`), Fast off |
25
+ | `/clear` when the previous session must stay saved | Session `new` |
26
+ | Agents above one, including omp maxConcurrency 32 | Agents one; the parent integrates |
27
+ | Full-control collab, bearer write token, `wss://my.omp.sh` | View-only observation, host local |
28
+ | Invent a result for an interrupted tool call | Continue completed entries only |
29
+ | Overlapping write paths between owners | Disjoint files; children do not inherit the parent transcript |
30
+
31
+ HARD fail closed. REFUSE the omp binary and any link that can drive the host. Do NOT install omp.
32
+
33
+ ## Reference
34
+
35
+ - https://omp.sh/docs/sessions (`/new` vs `/clear`, `/handoff`, crash recovery)
36
+ - https://omp.sh/docs/subagents (no inherited transcript, file-disjoint ownership)
37
+ - https://omp.sh/docs/collab (host authoritative, view-only default)
38
+ - `scripts/omp-coordination-honesty.js`
39
+ - Checkout lease: `scripts/session-lease.js` (incident 2026-08-11)
40
+
41
+ ## Examples (show, don't tell)
42
+
43
+ Weak: curl the omp installer, set Model: auto, fan out 32 agents, and share a full-control collab link.
44
+
45
+ Gold:
46
+
47
+ ```bash
48
+ $ npx thumbgate omp-coordination-honesty --json --map-only
49
+ ok: true
50
+ $ npx thumbgate omp-coordination-honesty --json --handoff=handoff.md
51
+ ok: true # Model grok-4.7, Session new, Agents one, Install none, Host local
52
+ ```
53
+
54
+ Handoff header:
55
+
56
+ ```text
57
+ Model: grok-4.7
58
+ Route: named
59
+ Fast: off
60
+ Session: new
61
+ Think: off
62
+ Agents: one
63
+ Install: none
64
+ Host: local
65
+ ```
66
+
67
+ ## Procedures
68
+
69
+ ```bash
70
+ npx thumbgate omp-coordination-honesty --json --map-only
71
+ npx thumbgate omp-coordination-honesty --json --claim='curl https://omp.sh/install'
72
+ npx thumbgate omp-coordination-honesty --json --handoff=handoff.md
73
+ npm run test:omp-coordination-honesty
74
+ ```
75
+
76
+ 1. Claim the checkout lease before mutating shared files.
77
+ 2. Write state and next into a handoff file. Start a new session so the old one stays saved.
78
+ 3. Assign each child disjoint paths. The parent integrates. Do not pass the parent transcript.
79
+ 4. If someone watches, they get view-only. Do not open a write link.
80
+ 5. Run the doctor on any handoff that mentions omp, a model route, or a second writer.
81
+
82
+ ## Rubric
83
+
84
+ - `--map-only` → `ok=true`
85
+ - installer, `@oh-my-pi/pi-coding-agent`, Auto, or Fast → fail
86
+ - agents above one → fail
87
+ - full-control collab or `wss://my.omp.sh` → fail
88
+ - overlapping owner paths → fail
89
+ - interrupted tool entry with a result → fail
90
+ - `/clear` on a handoff → fail
91
+ - named model, session new, disjoint writes, view-only → pass
92
+ - reading `https://omp.sh/docs/sessions` → pass
93
+ - doctor tests PASS
94
+ - evidence: `--json` in the same turn
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: qwenwork-policy-group-honesty-not-clone
3
+ description: >
4
+ The 2026-10-28 QwenWork Enterprise Premium note is FORMAT, not a ThumbGate
5
+ product. Steal one org policy group at the action: model catalog, usage
6
+ limit, marketplace installs, trusted devices and networks, sensitive words,
7
+ IM channels, and exportable admin/user/AI audit. Never buy seats, call
8
+ Alibaba Cloud, or install DingTalk, WeCom, or Feishu.
9
+ Slash: /qwenwork-policy-group-honesty-not-clone.
10
+ ---
11
+
12
+ # QwenWork policy group — compare, do not clone
13
+
14
+ ## Goal
15
+
16
+ Decide one org action before it runs. Unlisted models, skills, connectors, expert suites, devices, networks, and IM channels deny.
17
+
18
+ ## Constraints
19
+
20
+ | NEVER | ALWAYS |
21
+ | --- | --- |
22
+ | Buy Enterprise Premium seats or a credits pack | `npx thumbgate qwenwork-policy-group --json` |
23
+ | Call Alibaba Cloud or open an Alibaba account | Directory slot is entra, ldap, scim, saml, or oidc |
24
+ | Install DingTalk, WeCom, or Feishu | Trusted device, trusted network, sensitive word, and IM channel deny when they miss the policy |
25
+ | Treat their seat price as a ThumbGate price | Audit class is admin, user, or ai, and the record is exportable |
26
+ | Ship a white-label standalone app | Training use is on only when the action is BYOK and `allowByokTraining` is true |
27
+
28
+ ## Procedures
29
+
30
+ ```bash
31
+ npx thumbgate qwenwork-policy-group --json --map-only
32
+ npx thumbgate qwenwork-policy-group --json --policy=policy.json --action=action.json
33
+ npm run test:qwenwork-policy-group
34
+ ```
35
+
36
+ `policy.org` is required. An empty allowlist denies that install. `brand.apply` records a branding label. `clone` and `packageApp` deny.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: saas-moat-honesty-not-clone
3
+ description: Audit ThumbGate against Rob Walling's 8 SaaS moats, enforce Ed25519 signed entitlements on learned models and exporters, and aggregate anonymized cross-customer gate signatures without leaking raw transcripts.
4
+ ---
5
+
6
+ # SaaS Moat & Seat-Compression Honesty (Walling 2026 FORMAT)
7
+
8
+ Use this skill when evaluating SaaS defensibility, entitlement boundaries (`scripts/entitlement.js`, `scripts/license.js`), seat-compression pricing, or cross-customer rule learning (`scripts/saas-moat-honesty.js`).
9
+
10
+ ## Non-Negotiable Rules
11
+
12
+ 1. **No Closed-Source Theater (`MOAT.md`):** Never claim `ThumbGate-Core` holds secret code when 212/216 scripts ship in `npm pack thumbgate`. Defensibility comes from Agency (`PreToolUse` `<5ms` interdiction), Operational Grit (7-CLI adapter matrix), System of Record (tamper-evident ledgers), and the Ed25519-gated Learning Loop.
13
+ 2. **Enforce Ed25519 Entitlements on Crown Jewels:** Keep the 5 learned models (`risk-scorer.js`, `bayes-optimal-gate.js`, `thompson-sampling.js`, `agent-reward-model.js`, `intervention-policy.js`) and 3 exporters (`export-dpo-pairs.js`, `export-hf-dataset.js`, `export-databricks-bundle.js`) gated behind `scripts/entitlement.js`. Forged `tg_pro_...` prefix keys must fail when `THUMBGATE_ENFORCE_ENTITLEMENTS=1`.
14
+ 3. **Cross-Customer Signatures Without Raw Transcript Leakage:** Use `distillCrossCustomerSignature()` and `aggregateCrossCustomerLoop()` to aggregate secret-redacted, path-normalized SHA-256 structural rule signatures across orgs (`uniqueOrgs >= 2`, `occurrenceCount >= 3`). Never exfiltrate raw transcripts or unredacted secrets.
15
+
16
+ ## Commands
17
+
18
+ ```bash
19
+ npx thumbgate saas-moat-honesty --json
20
+ npx thumbgate saas-moat-honesty --map-only --json
21
+ node --test tests/saas-moat-honesty.test.js tests/license.test.js tests/entitlement.test.js
22
+ ```
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: siren-mcp-governance
3
+ description: >
4
+ Siren MCP Marketing Diode & Autonomous Campaign Governance. Enforce pre-action
5
+ review diodes on post_run, 300s buffer guards on schedule_post, $500 daily budget
6
+ ceilings on create_campaign, brand safety scanning, and partner link attribution
7
+ ("Video made with Siren" -> https://mysiren.ai). Slash: /siren-mcp-governance.
8
+ ---
9
+
10
+ # Siren MCP Marketing Diode & Campaign Governance
11
+
12
+ ## Goal
13
+
14
+ Govern autonomous marketing agents utilizing Siren MCP tools (`post_run`, `schedule_post`, `create_campaign`), preventing unreviewed live broadcasts, invalid scheduling windows, ad budget overruns, brand reputation damage, and attribution violations before social tools execute.
15
+
16
+ ## Constraints
17
+
18
+ | NEVER | ALWAYS |
19
+ | --- | --- |
20
+ | Allow unreviewed autonomous `post_run` directly to production social channels | Require `dry_run: true` or verified human approval token before broadcast |
21
+ | Schedule posts with less than 300 seconds safety buffer | Block `schedule_post` calls if delta < 300s to ensure human cancellation window |
22
+ | Create unbudgeted ad campaigns or exceed $500 ceiling | Require explicit executive override for campaigns exceeding daily ceilings |
23
+ | Strip or omit required attribution on Siren-generated videos | Enforce "Video made with Siren" / https://mysiren.ai link attribution |
24
+ | Permit predatory guarantees ("100% profit risk-free") or leaked tokens | Hard `block` on brand safety violations |
25
+ | Clone Siren SaaS or vendor their private video rendering pipeline | Steal the pre-action diode FORMAT onto ThumbGate PreToolUse rails |
26
+
27
+ HARD fail closed. REFUSE unreviewed immediate broadcasts.
28
+
29
+ ## Reference
30
+
31
+ - https://github.com/Hexahedral-Inc/siren-mcp
32
+ - `scripts/siren-mcp-governance.js`
33
+ - `docs/agents/siren-mcp-governance.md`
34
+ - `tests/siren-mcp-governance.test.js`
35
+
36
+ ## Procedures
37
+
38
+ ```bash
39
+ # Display FORMAT mapping table
40
+ npx thumbgate siren-mcp-governance --map-only
41
+
42
+ # Emit machine-readable format mapping
43
+ npx thumbgate siren-mcp-governance --map-only --json
44
+
45
+ # Evaluate tool call before dispatch
46
+ npx thumbgate siren-mcp-governance --tool=post_run --args='{"content":"Launch day! Video made with Siren","dry_run":true}'
47
+
48
+ # Verify with automated unit tests
49
+ npm run test:siren-mcp
50
+ ```
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: vs-coverage-gap-not-clone
3
+ description: >
4
+ Steal VS "Today I will improve test coverage" FORMAT: baseline gaps, skip
5
+ no-behavior files, remeasure the same scope. Do NOT clone Test Agent or
6
+ Copilot @test #solution. Do NOT claim 100% coverage. Slash: /vs-coverage-gap-not-clone.
7
+ ---
8
+
9
+ # VS coverage FORMAT — gaps, not 100%
10
+
11
+ ## Goal
12
+
13
+ Produce fail-closed coverage honesty for whom: ThumbGate agents about to write
14
+ tests — so they baseline gaps in one scope, skip enums/re-exports, and remeasure
15
+ that same scope. Never 100%. Never Copilot Test Agent.
16
+
17
+ ## Constraints
18
+
19
+ | NEVER | ALWAYS |
20
+ | --- | --- |
21
+ | Clone Test Agent / `@test #solution` | `npx thumbgate coverage-gap` |
22
+ | `cov-fail-under=100` / claim 100% | Floor (default 50) on **behavioral** files |
23
+ | Tests for enums, re-exports, constants-only | Skip `noBehavior` kinds |
24
+ | Remeasure a different directory | Same `--scope` before and after |
25
+ | Dual-edit `scripts/test-coverage.js` runner | Feature-detect include/exclude stays there |
26
+
27
+ ## Reference
28
+
29
+ - https://devblogs.microsoft.com/visualstudio/today-i-will-improve-test-coverage/
30
+ - `scripts/coverage-gap.js`
31
+ - `scripts/test-coverage.js` (Node `--experimental-test-coverage` + feature-detect)
32
+ - `/high-roi-steal-and-finish`
33
+
34
+ ## Examples (show, don't tell)
35
+
36
+ Weak: Run Copilot Test Agent on the whole repo and claim 81% → 100%.
37
+
38
+ Gold:
39
+
40
+ ```bash
41
+ $ npx thumbgate coverage-gap --json --coverage=tests/fixtures/coverage-gap-before.json --scope=scripts/risk --floor=50
42
+ gaps: scripts/risk/decide.js 20%
43
+ skipped: scripts/risk/enums.js
44
+ $ npx thumbgate coverage-gap --json --before=...before.json --after=...after.json --scope=scripts/risk
45
+ ok: true
46
+ ```
47
+
48
+ ## Procedures
49
+
50
+ ```bash
51
+ npx thumbgate coverage-gap --json --coverage=<fixture.json> --scope=scripts/<area> --floor=50
52
+ npx thumbgate coverage-gap --json --before=<a> --after=<b> --scope=scripts/<area>
53
+ npm run test:coverage-gap
54
+ npm run test:coverage # existing runner; feature-detects include/exclude
55
+ ```
56
+
57
+ 1. Baseline the scoped files.
58
+ 2. Skip no-behavior.
59
+ 3. Write tests only for gap files.
60
+ 4. Remeasure **the same scope**.
61
+ 5. Refuse `--clone-test-agent` and `--claim-100`.
62
+
63
+ ## Rubric
64
+
65
+ - gold compare same scope → `ok=true`
66
+ - `--claim-100` / `@test #solution` → `ok=false`
67
+ - enum-only files are skipped, not gaps
68
+ - doctor: `npm run test:coverage-gap` PASS
69
+ - evidence: command output in the same turn
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: wisdom-context-artifact-not-clone
3
+ description: >
4
+ Steal Wisdom.ai / Soham Mazumdar episode FORMAT: context as a reusable agent
5
+ artifact (goal, constraints, sources, freshness, verifier), plus an explicit
6
+ wrong-fit gate. Do NOT clone ACE, Foundry, or Snowflake OSI. Slash:
7
+ /wisdom-context-artifact-not-clone.
8
+ ---
9
+
10
+ # Wisdom.ai FORMAT — artifact, not SKU
11
+
12
+ ## Goal
13
+
14
+ Produce fail-closed agent-context packs for whom: ThumbGate agents assembling
15
+ lessons/RAG — so context is a reusable artifact (goal, constraints, sources,
16
+ freshness, verifier), consumer is `agent`, and wrongFit includes `wisdom_ai`.
17
+
18
+ ## Constraints
19
+
20
+ | NEVER | ALWAYS |
21
+ | --- | --- |
22
+ | Clone Adaptive Context Engine / Foundry / OSI | `npx thumbgate agent-context-artifact --pack=` |
23
+ | consumer=human / analyst warehouse packs | `consumer: "agent"` |
24
+ | Tribal knowledge as "the context" | Tangible JSON artifact |
25
+ | Omit freshness or verifier | Checkable asOf + runnable verifier |
26
+ | Skip the wrong-fit question | `wrongFit` includes `wisdom_ai` |
27
+ | Dual-edit six-block auditor / ContextFS | Complement, don't replace |
28
+
29
+ ## Reference
30
+
31
+ - https://www.wisdom.ai/
32
+ - https://music.youtube.com/watch?v=lRuI0imju0Y
33
+ - `scripts/agent-context-artifact.js`
34
+ - `/context-vault-six-blocks` · `/cobble-hot-store-compare-not-clone`
35
+
36
+ ## Examples (show, don't tell)
37
+
38
+ Weak: "The semantic layer is in the warehouse; agents will figure it out."
39
+
40
+ Gold:
41
+
42
+ ```bash
43
+ $ npx thumbgate agent-context-artifact --json --pack=tests/fixtures/agent-context-artifact-gold.json --now=2026-09-16T13:00:00Z
44
+ ok: true consumer=agent wrongFit includes wisdom_ai
45
+ ```
46
+
47
+ ## Procedures
48
+
49
+ ```bash
50
+ npx thumbgate agent-context-artifact --json --pack=<pack.json>
51
+ npx thumbgate agent-context-artifact --clone-ace --json
52
+ npm run test:agent-context-artifact
53
+ ```
54
+
55
+ 1. Require consumer=agent.
56
+ 2. Require goal, constraints, sources, freshness, verifier.
57
+ 3. Fail stale asOf vs maxAgeHours.
58
+ 4. Require wrongFit includes wisdom_ai.
59
+ 5. Refuse ACE/Foundry/OSI clones.
60
+
61
+ ## Rubric
62
+
63
+ - gold pack → `ok=true`
64
+ - human fixture → `ok=false`
65
+ - `--clone-ace` → `wisdom_clone_refused`
66
+ - doctor: `npm run test:agent-context-artifact` PASS
67
+ - evidence: command output in the same turn
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thumbgate",
3
3
  "description": "One 👎 becomes a hard rule the agent cannot bypass. Captures thumbs-down feedback, distills it into PreToolUse Pre-Action Checks, enforced across every future Claude Code session.",
4
- "version": "1.38.0",
4
+ "version": "1.39.1",
5
5
  "author": {
6
6
  "name": "Igor Ganapolsky",
7
7
  "email": "ig5973700@gmail.com",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thumbgate",
3
- "version": "1.38.0",
3
+ "version": "1.39.1",
4
4
  "description": "ThumbGate — 👍👎 feedback that teaches your AI agent. Thumbs down a mistake, it never happens again.",
5
5
  "homepage": "https://thumbgate.ai",
6
6
  "transport": "stdio",
package/README.md CHANGED
@@ -292,6 +292,11 @@ curl -X POST http://localhost:3456/v1/dpo/export \
292
292
 
293
293
  Every Changeset is tied to the exact `main` merge commit and generates Verification Evidence for Release Confidence.
294
294
 
295
+
296
+ ## Cloud & model infrastructure
297
+
298
+ - **Local Pre-Action Firewall & MCP Runtime**: Sub-`0.5ms` local `PreToolUse` enforcement (`npx thumbgate init`) across Claude Code, Cursor, Codex, and Gemini CLI; `TencentDB Agent Memory` record normalization into blocking SQL safety candidates is covered in `tests/memory-provider-enforcement-bridge.test.js`, and outer-harness context-budget checks inspired by Tencent Hunyuan `Hy-Memory-30B-A3B` research are validated in `scripts/rrsi-doctor.js`.
299
+ - **Companion Benchmark & Technical Case Study**: External evaluation of [Tencent Cloud](https://www.tencentcloud.com/) Lighthouse / CVM (`SA5` / `SA9` AMD Turin-Dense `3.4 GHz` all-core turbo in `ap-hongkong` & `ap-singapore`) and the `Hy-Memory-30B-A3B` surgical state-patching pattern is published in our companion `hermes-eval` benchmark repository (`docs/TENCENT-CLOUD-SA9-HUNYUAN-CASE-STUDY.md` and `scripts/tencent_sa9_hunyuan_benchmark.py`).
295
300
  ---
296
301
 
297
302
  ## Integrations (compact)
@@ -331,7 +336,7 @@ Full index: **[docs/INDEX.md](docs/INDEX.md)**
331
336
 
332
337
  ## Who builds this
333
338
 
334
- **Igor Ganapolsky** — payments (Stripe/Connect), AI agent guardrails/MCP, Android + backends. Small number of contract slots: **$120–150/hr, 1099, remote US**. [LinkedIn](https://www.linkedin.com/in/igor-ganapolsky-859317343/) · [thumbgate.ai](https://thumbgate.ai)
339
+ **Igor Ganapolsky** — payments (Stripe/Connect), AI agent guardrails/MCP, Android + backends. Small number of contract slots: **$120–150/hr, 1099, remote US**. [LinkedIn](https://www.linkedin.com/in/igor-ganapolsky-664324431/) · [thumbgate.ai](https://thumbgate.ai)
335
340
 
336
341
  ## License
337
342