thumbgate 1.37.3 → 1.39.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 (134) hide show
  1. package/.agents/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
  2. package/.agents/skills/bolt-forge-opt-in-not-clone/SKILL.md +72 -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/halo-trace-optimize-not-clone/SKILL.md +60 -0
  6. package/.agents/skills/harness-evolution-ceiling/SKILL.md +52 -0
  7. package/.agents/skills/infoq-architect-honesty-not-clone/SKILL.md +37 -0
  8. package/.agents/skills/meko-datapack-honesty-not-clone/SKILL.md +45 -0
  9. package/.agents/skills/mintlify-knowledge-honesty-not-clone/SKILL.md +49 -0
  10. package/.agents/skills/model-distress-governance/SKILL.md +56 -0
  11. package/.agents/skills/omp-coordination-honesty-not-clone/SKILL.md +94 -0
  12. package/.agents/skills/saas-moat-honesty-not-clone/SKILL.md +22 -0
  13. package/.agents/skills/salt-code-policy-honesty-not-clone/SKILL.md +76 -0
  14. package/.agents/skills/siren-mcp-governance/SKILL.md +50 -0
  15. package/.agents/skills/vs-coverage-gap-not-clone/SKILL.md +69 -0
  16. package/.agents/skills/wisdom-context-artifact-not-clone/SKILL.md +67 -0
  17. package/.claude-plugin/plugin.json +1 -1
  18. package/.well-known/mcp/server-card.json +1 -1
  19. package/adapters/claude/.mcp.json +2 -2
  20. package/adapters/forge/forge.yaml +3 -3
  21. package/adapters/future-agi/.mcp.json +1 -1
  22. package/adapters/future-agi/config.toml +1 -1
  23. package/adapters/future-agi/opencode.json +1 -1
  24. package/adapters/herdr/herdr-plugin.toml +2 -2
  25. package/adapters/hotdata/hotdata-vector-store.js +575 -0
  26. package/adapters/mcp/server-stdio.js +1 -1
  27. package/adapters/opencode/opencode.json +1 -1
  28. package/adapters/strands/STRANDS.md +107 -0
  29. package/adapters/strands/strands-box-diode.js +344 -0
  30. package/adapters/strands/strands-decider-adapter.js +445 -0
  31. package/adapters/strands/strands-middleware.js +192 -0
  32. package/adapters/tailscale/.mcp.json +15 -0
  33. package/adapters/tailscale/TAILSCALE.md +117 -0
  34. package/adapters/tailscale/config.toml +16 -0
  35. package/bin/cli.js +602 -21
  36. package/config/gate-templates.json +109 -0
  37. package/config/gates/default.json +13 -0
  38. package/config/schemas/task-outcome-receipt.schema.json +12 -0
  39. package/package.json +150 -21
  40. package/public/blog/2026-09-28-pretool-secret-deny.html +83 -0
  41. package/public/blog/2026-10-01-aws-strands-harness-token-firewall.html +77 -0
  42. package/public/blog/2026-10-01-model-distress-relief-seeking-firewall.html +71 -0
  43. package/public/blog/2026-10-02-salt-code-honest-steal-40-guardrails.html +106 -0
  44. package/public/blog/2026-10-05-why-3-days-of-triage-wont-save-ai-speed-code.html +119 -0
  45. package/public/blog/2026-10-09-your-code-got-a-third-author-governance.html +141 -0
  46. package/public/connectors.html +329 -0
  47. package/public/enterprise-governance.html +311 -0
  48. package/public/gaming-playbook.html +732 -0
  49. package/public/index.html +77 -51
  50. package/public/install.html +7 -7
  51. package/public/learn.html +14 -0
  52. package/public/numbers.html +2 -2
  53. package/public/onboarding.html +794 -0
  54. package/public/operator-framework.html +385 -0
  55. package/public/pricing.html +14 -10
  56. package/scripts/activesaddler-curriculum-doctor.js +357 -0
  57. package/scripts/agent-context-artifact.js +325 -0
  58. package/scripts/agent-egress-policy.js +2 -2
  59. package/scripts/agent-operations-planner.js +1 -1
  60. package/scripts/agent-outcome-eval.js +1 -1
  61. package/scripts/agent-reliability-client.js +148 -0
  62. package/scripts/apple-minions-idle-compute-steal.js +428 -0
  63. package/scripts/autoresearch-runner.js +20 -1
  64. package/scripts/billing.js +0 -1
  65. package/scripts/cli-demo.js +505 -1
  66. package/scripts/cli-schema.js +36 -0
  67. package/scripts/colab-compute-honesty.js +93 -0
  68. package/scripts/corporate-email-isolation-diode.js +299 -0
  69. package/scripts/coverage-gap.js +396 -0
  70. package/scripts/dashboard-chat.js +3 -3
  71. package/scripts/dashboard.js +2 -2
  72. package/scripts/decisive-step-doctor.js +256 -0
  73. package/scripts/decisive-step-evaluator.js +390 -0
  74. package/scripts/entitlement.js +18 -7
  75. package/scripts/experiment-tracker.js +5 -3
  76. package/scripts/feedback-loop.js +26 -3
  77. package/scripts/fiddler-control-plane-honesty.js +303 -0
  78. package/scripts/financial-control-plane.js +10 -2
  79. package/scripts/gates-engine.js +3 -1
  80. package/scripts/github-license-compliance-diode.js +378 -0
  81. package/scripts/halo-trace-optimizer.js +631 -0
  82. package/scripts/harness-ceiling-doctor.js +326 -0
  83. package/scripts/hf-papers.js +1 -1
  84. package/scripts/human-escalation.js +7 -1
  85. package/scripts/hybrid-feedback-context.js +53 -7
  86. package/scripts/infoq-architect-honesty.js +362 -0
  87. package/scripts/lesson-graph.js +785 -0
  88. package/scripts/lesson-inference.js +1 -1
  89. package/scripts/lesson-retrieval.js +26 -18
  90. package/scripts/license.js +122 -21
  91. package/scripts/llm-behavior-monitor.js +1 -1
  92. package/scripts/llm-obs-honesty.js +52 -0
  93. package/scripts/local-model-profile.js +11 -7
  94. package/scripts/mailer/resend-mailer.js +6 -3
  95. package/scripts/mcp-transport-strategy.js +1 -1
  96. package/scripts/meko-datapack-honesty.js +414 -0
  97. package/scripts/migrate-lesson-graph.js +442 -0
  98. package/scripts/mintlify-knowledge-honesty.js +647 -0
  99. package/scripts/model-distress-detector.js +207 -0
  100. package/scripts/model-distress-doctor.js +368 -0
  101. package/scripts/multi-harness-invariants.js +305 -0
  102. package/scripts/omp-coordination-honesty.js +488 -0
  103. package/scripts/pro-local-dashboard.js +20 -3
  104. package/scripts/prompt-eval.js +1 -1
  105. package/scripts/prove-herdr-adapter.js +367 -3
  106. package/scripts/rag-embedding-identity.js +1 -1
  107. package/scripts/rrsi-regularizer.js +531 -0
  108. package/scripts/saas-moat-honesty.js +443 -0
  109. package/scripts/salt-code-policy-honesty.js +1204 -0
  110. package/scripts/secret-redaction.js +58 -0
  111. package/scripts/session-export-gate.js +368 -0
  112. package/scripts/siren-mcp-governance.js +539 -0
  113. package/scripts/strands-box-doctor.js +130 -0
  114. package/scripts/strands-harness-doctor.js +390 -0
  115. package/scripts/stripe-revenue-catalog-audit.js +12 -0
  116. package/scripts/stripe-revenue-catalog.js +40 -0
  117. package/scripts/switchyard-router.js +153 -0
  118. package/scripts/tailscale-p2p-doctor.js +252 -0
  119. package/scripts/task-outcomes.js +148 -3
  120. package/scripts/thumbgate-board-loop.js +4 -2
  121. package/scripts/thumbgate-daily-discoveries-publish.js +86 -38
  122. package/scripts/triage-savings-calculator.js +181 -0
  123. package/scripts/vector-store.js +41 -2
  124. package/scripts/vulnerability-pre-action-diode.js +319 -0
  125. package/scripts/windbg-evidence-diagnostics.js +241 -0
  126. package/scripts/workflow-intake-queue.js +1 -1
  127. package/scripts/workspace-agent-routines.js +534 -6
  128. package/scripts/workspace-evolver.js +143 -13
  129. package/server.json +2 -2
  130. package/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
  131. package/skills/siren-mcp-governance/SKILL.md +50 -0
  132. package/src/api/server.js +191 -5
  133. package/src/mcp-writeguard.js +1 -1
  134. package/src/session-interactivity.js +284 -0
@@ -0,0 +1,117 @@
1
+ # Tailscale P2P Governance & Zero-Trust Diode Adapter
2
+
3
+ > **Format Steal (HiveMind & Tailscale PAM) — Compare, Not Clone**
4
+ >
5
+ > **Steal from HiveMind (`projectmentor/hive-mind`):** Peer-to-peer decentralized synchronization over a private Tailnet using append-only journals and G-Set CRDTs (Conflict-free Replicated Data Types).
6
+ >
7
+ > **Steal from Tailscale PAM:** Zero-Trust identity verification and privileged infrastructure diode, pairing network-level WireGuard access control with ThumbGate's tool-level PreToolUse gating.
8
+ >
9
+ > **Never clone:** Do not clone HiveMind's passive notes-only memory format, do not require root SSH access across nodes, and do not introduce centralized cloud brokers or coordinators.
10
+
11
+ ---
12
+
13
+ ## 1. Problem: The Disconnected Fleet Vulnerability
14
+
15
+ Autonomous coding agents (Claude Code, Hermes, Codex, Gemini CLI) frequently run across multiple machines in a development team (developer laptops, CI/CD runners, staging servers, and headless devboxes).
16
+
17
+ In traditional setups:
18
+ 1. **Isolated Lessons:** When an agent on Developer Mac 1 makes a dangerous mistake (e.g. executing an unvetted `rm -rf`, leaking an API token, or triggering an unsafe database migration) and is corrected via thumbs-down feedback, that prevention rule remains stored locally on Developer Mac 1.
19
+ 2. **Repeated Failures:** An agent operating on Developer Mac 2 or in a CI runner has zero visibility into that failure and will execute the exact same dangerous mistake.
20
+ 3. **Cloud Egress Risks:** Routing agent lessons, audit traces, and internal commands through public SaaS databases introduces intellectual property and credential leakage risks.
21
+
22
+ ---
23
+
24
+ ## 2. The Solution: Tailscale Peer-to-Peer Rule Mesh
25
+
26
+ ThumbGate's Tailscale adapter turns your private Tailnet into a decentralized, encrypted, peer-to-peer governance mesh.
27
+
28
+ ```
29
+ +-----------------------------------------------------------------------+
30
+ | Your Private Tailnet (WireGuard) |
31
+ | |
32
+ | +--------------------+ +---------------------+ |
33
+ | | Developer Node 1 | | CI / Runner Node 2 | |
34
+ | | 100.x.y.1 | | 100.x.y.2 | |
35
+ | | | | | |
36
+ | | +----------------+ | P2P Rule Sync | +-----------------+ | |
37
+ | | | ThumbGate | | <----------------> | | ThumbGate | | |
38
+ | | | PreToolUse | | (G-Set CRDT Mesh) | | PreToolUse | | |
39
+ | | +----------------+ | Port: 9877 | +-----------------+ | |
40
+ | | | | | | | |
41
+ | | v | | v | |
42
+ | | Local Thumbs-Down | | Instant Fleet-Wide | |
43
+ | | "Block destructive | | Immunity to the | |
44
+ | | git push --force" | | Same Mistake | |
45
+ | +--------------------+ +---------------------+ |
46
+ +-----------------------------------------------------------------------+
47
+ ```
48
+
49
+ ### Architectural Pillars
50
+
51
+ 1. **G-Set CRDT Append-Only Rule Journal:**
52
+ Prevention rules, thumbs-down patterns, and interdiction receipts form an append-only set. Any rule learned by one agent node monotonically converges across all peer nodes without merge conflicts or split-brain states.
53
+
54
+ 2. **Tailscale PAM + PreToolUse Diode:**
55
+ - *Network Layer (Tailscale PAM):* Controls which machines and services the host can reach.
56
+ - *Agent Execution Layer (ThumbGate):* Controls which tools, CLI commands, and flags the agent is allowed to invoke before execution.
57
+ - Together, they form an airtight defense-in-depth perimeter for autonomous agents.
58
+
59
+ 3. **Zero External Cloud Dependency:**
60
+ All communication occurs over point-to-point WireGuard tunnels authenticated by Tailscale machine identities. No third-party servers, cloud databases, or external telemetry required.
61
+
62
+ ---
63
+
64
+ ## 3. Comparison: ThumbGate vs. HiveMind
65
+
66
+ | Feature | HiveMind (`projectmentor/hive-mind`) | ThumbGate Tailscale Adapter |
67
+ | :--- | :--- | :--- |
68
+ | **Primary Domain** | Passive shared memory & agent notes | **Active Pre-Action Governance & Infrastructure Firewall** |
69
+ | **Enforcement Point** | None (read-only advisory notes) | **PreToolUse Interdiction (blocks bad commands sub-millisecond)** |
70
+ | **Sync Content** | Text facts & journal entries | **Deterministic Prevention Rules, Regex Patterns, Thumbs Signals** |
71
+ | **Transport** | HTTP on port 9876 + Tailscale SSH | **Authenticated Peer Sync on port 9877 / embedded tsnet** |
72
+ | **Access Control** | Peer admission list | **Tailscale PAM + Cryptographic Tool Execution Receipts** |
73
+ | **DPO Export** | None | **Direct DPO Training Dataset Generation from Fleet Thumbs** |
74
+
75
+ ---
76
+
77
+ ## 4. Configuration
78
+
79
+ ```toml
80
+ # adapters/tailscale/config.toml
81
+ [tailscale]
82
+ enabled = true
83
+ port = 9877
84
+ mode = "p2p-mesh"
85
+ fail_closed = true
86
+ sync_interval_seconds = 60
87
+
88
+ [crdt]
89
+ journal_type = "g-set-append-only"
90
+ rules_sync = true
91
+ feedback_sync = true
92
+ advisory_sync = true
93
+
94
+ [pam]
95
+ enforce_privileged_access = true
96
+ audit_interdictions = true
97
+ ```
98
+
99
+ ---
100
+
101
+ ## 5. Verification & Diagnostics
102
+
103
+ Run the dedicated health check:
104
+ ```bash
105
+ node scripts/tailscale-p2p-doctor.js --json
106
+ ```
107
+
108
+ > [!NOTE]
109
+ > **Operational Boundary & Guarantees:**
110
+ > `evaluateDiagnostics()` reports local network probe status and local rule counts. If the Tailscale CLI is absent or inactive, it runs in simulated/advisory mode.
111
+ > - `replicatedRuleCount` reflects local rules eligible for mesh publication, not active confirmation of peer sync across other nodes.
112
+ > - To verify peer replication end-to-end, query the peer's node directly:
113
+ > ```bash
114
+ > tailscale ping <peer-ip-or-magicdns>
115
+ > curl -s http://<peer-ip>:9877/rules | jq '.count'
116
+ > ```
117
+ > - Always confirm that `hooks.PreToolUse` is active in `.claude/settings.json` or `hooks/hooks.json` to ensure fail-closed PAM enforcement across all agent worktrees.
@@ -0,0 +1,16 @@
1
+ [tailscale]
2
+ enabled = true
3
+ port = 9877
4
+ mode = "p2p-mesh"
5
+ fail_closed = true
6
+ sync_interval_seconds = 60
7
+
8
+ [crdt]
9
+ journal_type = "g-set-append-only"
10
+ rules_sync = true
11
+ feedback_sync = true
12
+ advisory_sync = true
13
+
14
+ [pam]
15
+ enforce_privileged_access = true
16
+ audit_interdictions = true