thumbgate 1.37.2 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.agents/skills/article-syndication-pipeline/SKILL.md +37 -0
  2. package/.agents/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
  3. package/.agents/skills/ci-gha-buildkite-patterns-not-clone/SKILL.md +72 -0
  4. package/.agents/skills/comet-session-logger/SKILL.md +59 -0
  5. package/.agents/skills/datadog-llm-obs-compare-not-clone/SKILL.md +75 -0
  6. package/.agents/skills/deeppattern-discipline-honesty-not-clone/SKILL.md +73 -0
  7. package/.agents/skills/halo-trace-optimize-not-clone/SKILL.md +60 -0
  8. package/.agents/skills/infoq-architect-honesty-not-clone/SKILL.md +37 -0
  9. package/.agents/skills/meko-datapack-honesty-not-clone/SKILL.md +45 -0
  10. package/.agents/skills/mintlify-knowledge-honesty-not-clone/SKILL.md +49 -0
  11. package/.agents/skills/model-distress-governance/SKILL.md +56 -0
  12. package/.agents/skills/salt-code-policy-honesty-not-clone/SKILL.md +76 -0
  13. package/.agents/skills/thumbgate-board-loop/SKILL.md +72 -0
  14. package/.agents/skills/thumbgate-daily-discoveries/SKILL.md +57 -0
  15. package/.agents/skills/typesafe-typed-questions-not-clone/SKILL.md +7 -3
  16. package/.claude-plugin/plugin.json +1 -1
  17. package/.well-known/mcp/server-card.json +1 -1
  18. package/adapters/claude/.mcp.json +2 -2
  19. package/adapters/forge/forge.yaml +3 -3
  20. package/adapters/future-agi/.mcp.json +1 -1
  21. package/adapters/future-agi/config.toml +1 -1
  22. package/adapters/future-agi/opencode.json +1 -1
  23. package/adapters/herdr/herdr-plugin.toml +2 -2
  24. package/adapters/mcp/server-stdio.js +1 -1
  25. package/adapters/opencode/opencode.json +1 -1
  26. package/adapters/strands/STRANDS.md +107 -0
  27. package/adapters/strands/strands-middleware.js +192 -0
  28. package/adapters/tailscale/.mcp.json +15 -0
  29. package/adapters/tailscale/TAILSCALE.md +117 -0
  30. package/adapters/tailscale/config.toml +16 -0
  31. package/bin/cli.js +262 -4
  32. package/config/gate-templates.json +120 -0
  33. package/package.json +84 -12
  34. package/public/blog/2026-09-23-datadog-llm-obs-four-practices.html +42 -0
  35. package/public/blog/2026-09-28-pretool-secret-deny.html +83 -0
  36. package/public/blog/2026-10-01-aws-strands-harness-token-firewall.html +77 -0
  37. package/public/blog/2026-10-01-model-distress-relief-seeking-firewall.html +71 -0
  38. package/public/blog/2026-10-02-salt-code-honest-steal-40-guardrails.html +106 -0
  39. package/public/index.html +2 -2
  40. package/public/install.html +7 -7
  41. package/public/numbers.html +2 -2
  42. package/public/onboarding.html +794 -0
  43. package/scripts/autoresearch-runner.js +20 -1
  44. package/scripts/ci-gha-buildkite-patterns.js +393 -0
  45. package/scripts/cli-schema.js +51 -1
  46. package/scripts/deeppattern-discipline-honesty.js +431 -0
  47. package/scripts/experiment-tracker.js +5 -3
  48. package/scripts/halo-trace-optimizer.js +631 -0
  49. package/scripts/infoq-architect-honesty.js +362 -0
  50. package/scripts/install-thumbgate-daily-publish-launchd.sh +83 -0
  51. package/scripts/llm-obs-honesty.js +478 -0
  52. package/scripts/meko-datapack-honesty.js +414 -0
  53. package/scripts/mintlify-knowledge-honesty.js +647 -0
  54. package/scripts/model-distress-detector.js +207 -0
  55. package/scripts/model-distress-doctor.js +200 -0
  56. package/scripts/rrsi-regularizer.js +445 -0
  57. package/scripts/salt-code-policy-honesty.js +1204 -0
  58. package/scripts/strands-harness-doctor.js +390 -0
  59. package/scripts/tailscale-p2p-doctor.js +252 -0
  60. package/scripts/thumbgate-board-loop.js +432 -0
  61. package/scripts/thumbgate-daily-discoveries-publish.js +413 -0
  62. package/scripts/thumbgate-daily-discoveries-publish.sh +18 -0
  63. package/scripts/typesafe-typed-questions.js +332 -7
  64. package/scripts/workspace-evolver.js +143 -13
  65. package/server.json +2 -2
  66. package/skills/article-syndication-pipeline/SKILL.md +37 -0
  67. package/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
  68. package/skills/comet-session-logger/SKILL.md +59 -0
  69. package/skills/thumbgate-daily-discoveries/SKILL.md +57 -0
  70. package/src/api/server.js +33 -4
  71. package/src/index.js +10 -0
  72. package/src/integrations/ideabrowser-connector.js +190 -0
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: article-syndication-pipeline
3
+ description: Technical article syndication pipeline for cross-posting Dev.to articles to CoderLegion and other developer platforms with canonical URL preservation, UTM parameter attribution, and contributor onboarding compliance.
4
+ ---
5
+
6
+ # ✍️ Article Syndication & Contributor Pipeline
7
+
8
+ This skill guides the autonomous syndication of ThumbGate technical discoveries, security postmortems, and engineering deep dives across developer platforms (Dev.to, CoderLegion, Hashnode, Medium).
9
+
10
+ ---
11
+
12
+ ## 🎯 Architecture & Operating Directives
13
+
14
+ 1. **Canonical SEO Integrity:**
15
+ - Always preserve the primary origin as the canonical URL (e.g. `https://dev.to/igorganapolsky/...`).
16
+ - Syndicated copies on CoderLegion or elsewhere must link back to avoid search engine duplicate-content penalties.
17
+ 2. **First-Party Revenue Attribution:**
18
+ - All inbound links to `thumbgate.ai` must include UTM campaign tags (`utm_source=coderlegion`, `utm_medium=community`, `utm_campaign=guest-post`).
19
+ - Conversion links (Pro license checkout) must route through `/go/pro` (`https://thumbgate.ai/go/pro?utm_source=...`) to ensure server-side redirect logging.
20
+ 3. **CoderLegion Contributor Compliance:**
21
+ - URL import endpoint: `https://coderlegion.com/import-post`.
22
+ - Supports 2 imported Dev.to articles with full attribution.
23
+ - Contributor checklist: `https://coderlegion.com/guest-blog-checklists`.
24
+ - All imported posts undergo editorial review before appearing on the main feed.
25
+
26
+ ---
27
+
28
+ ## 🛠️ Step-by-Step Workflow
29
+
30
+ 1. **Verify Original Article:**
31
+ Verify original URL exists, returns HTTP 200, and has correct canonical tags.
32
+ 2. **Fetch via Platform Parser:**
33
+ Submit `import_url` to `https://coderlegion.com/import-post`.
34
+ 3. **Review & Confirm Metadata:**
35
+ Confirm title, tags (`ai`, `security`, `architecture`, `opensource`), and backlink to canonical source.
36
+ 4. **Publish & Track:**
37
+ Submit publication step and record post URL in session log and Comet browser tab.
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: aws-strands-harness-not-clone
3
+ description: >
4
+ AWS Strands Harness (The New Stack 2026-10 / Marc Brooker) is an agent
5
+ runtime architecture, not a ThumbGate clone. Steal the three context-management
6
+ defaults (output shunting <= 350 lines, 75% compaction threshold, in-loop
7
+ recovery) and inject ThumbGate's PreToolUse diode. Never vendor Bedrock-only
8
+ dependencies. Slash: /aws-strands-harness-not-clone.
9
+ ---
10
+
11
+ # AWS Strands Harness — FORMAT Steal, Not Clone
12
+
13
+ ## Goal
14
+
15
+ Provide fail-closed pre-action governance and token-shunted output bounds for agents running on AWS Strands Harness (`@strands-agents/harness` or `strands-harness`), capturing the 45% (and 77% Terminal-Bench 2.1) token savings while preventing destructive tool actions.
16
+
17
+ ## Constraints
18
+
19
+ | NEVER | ALWAYS |
20
+ | --- | --- |
21
+ | Clone or install Bedrock-only proprietary packages | Use decoupled providers (Bedrock, Anthropic, OpenAI, Ollama) |
22
+ | Allow un-shunted raw tool returns (> 350 lines / 16KB) | Truncate with `evaluateOutputShunt` offset markers |
23
+ | Drop durable prevention rules during context compaction | Pin ThumbGate rules across 75% compaction threshold |
24
+ | Crash the agent loop on context overflow | Recover in-loop by pruning non-pinned conversational history |
25
+ | Execute mutating shell/file tools without governance | Run ThumbGate `PreToolUse` diode before dispatch |
26
+ | Claim 77% savings without citing Terminal-Bench 2.1 | Ground benchmarks in measured tool-output reduction |
27
+
28
+ HARD fail closed. REFUSE un-gated autonomous execution.
29
+
30
+ ## Reference
31
+
32
+ - The New Stack (2026-10): *AWS open-sources an AI agent it says is 45% cheaper than Claude Code and Codex*
33
+ - `scripts/strands-harness-doctor.js`
34
+ - `adapters/strands/strands-middleware.js`
35
+ - `adapters/strands/config.json`
36
+ - `adapters/strands/STRANDS.md`
37
+ - `docs/agents/aws-strands-harness.md`
38
+
39
+ ## Usage
40
+
41
+ ```bash
42
+ # Audit Strands Harness compliance
43
+ node scripts/strands-harness-doctor.js
44
+
45
+ # Machine-readable output
46
+ node scripts/strands-harness-doctor.js --json
47
+
48
+ # Architectural map
49
+ node scripts/strands-harness-doctor.js --map-only
50
+
51
+ # CI Gate check
52
+ node scripts/strands-harness-doctor.js --check
53
+ ```
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: ci-gha-buildkite-patterns-not-clone
3
+ description: >
4
+ Buildkite pipeline architecture is FORMAT, not a ThumbGate CI vendor.
5
+ Steal first-fail step identity, PR fail-fast, needs:/wait honesty, skip
6
+ conditions, and GITHUB_STEP_SUMMARY annotations onto existing GitHub
7
+ Actions. Never add Buildkite Pipelines, agents, Test Engine, or a second
8
+ required check. Slash: /ci-gha-buildkite-patterns-not-clone.
9
+ ---
10
+
11
+ # CI GHA Buildkite patterns — compare, do not clone
12
+
13
+ ## Goal
14
+
15
+ Fail-closed GitHub Actions diagnosis for whom: ThumbGate public CI — so a
16
+ red PR names the **first failed step**, cancels leftover PR runs, and never
17
+ grows a Buildkite bill.
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | --- | --- |
23
+ | Migrate this public repo to Buildkite | Keep the required GHA contexts on `ubuntu-latest` |
24
+ | Dump `--log-failed` first | `npx thumbgate ci-gha-buildkite-patterns --jobs-json=…` |
25
+ | `gh run rerun` a queued job | Wait for Actions to drain |
26
+ | Test Engine auto-quarantine | First fail is a regression until proven otherwise |
27
+ | `cancel-in-progress: true` on `main` | Cancel PR reruns only |
28
+
29
+ HARD fail closed. REFUSE SKU clones. This is **not a Buildkite clone**.
30
+ Never migrate this public repo to Buildkite.
31
+
32
+ ## Reference
33
+
34
+ - https://buildkite.com/docs/pipelines/best-practices/pipeline-design-and-structure
35
+ - https://buildkite.com/docs/pipelines/configure/annotations
36
+ - `scripts/ci-gha-buildkite-patterns.js`
37
+ - Complements `/ci-first-fail` (same FORMAT, global copy)
38
+
39
+ ## Examples (show, don't tell)
40
+
41
+ Weak: "Buildkite is faster, add it as a required check."
42
+
43
+ Gold:
44
+
45
+ ```bash
46
+ $ npx thumbgate ci-gha-buildkite-patterns --json --map-only
47
+ ok: true
48
+ $ npx thumbgate ci-gha-buildkite-patterns --json --migrate
49
+ ok: false # migrate_vendor
50
+ ```
51
+
52
+ ## Procedures
53
+
54
+ ```bash
55
+ npx thumbgate ci-gha-buildkite-patterns --json --map-only
56
+ npx thumbgate ci-gha-buildkite-patterns --json --workflow=.github/workflows/ci.yml
57
+ npx thumbgate ci-gha-buildkite-patterns --json --jobs-json=jobs.json
58
+ npm run test:ci-gha-buildkite-patterns
59
+ ```
60
+
61
+ 1. Name `first_fail.step` before opening logs.
62
+ 2. Absent required contexts → githubstatus.com, not a code blame.
63
+ 3. E2E shards stay `fail-fast: false` so merge-reports can still annotate (Buildkite `wait` + `continue_on_failure`).
64
+ 4. Do not vendor `buildkite-agent`.
65
+
66
+ ## Rubric
67
+
68
+ - `--map-only` → `ok=true`
69
+ - `--clone-buildkite` / `--migrate` / `--quarantine` / `--rerun-queued` → fail
70
+ - live `ci.yml` concurrency excludes `main`
71
+ - doctor tests PASS
72
+ - evidence: `--json` in the same turn
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: comet-session-logger
3
+ description: Live session logger and observability dashboard driver for Comet browser. Ensures every PR, deployment status check, CoderLegion/Dev.to publication, and Railway production health metric is actively logged and visualized in Comet tabs.
4
+ ---
5
+
6
+ # ☄️ Comet Session Logger & Visual HUD
7
+
8
+ This skill governs the automated logging, tab orchestration, and visual tracking of all ThumbGate agentic tasks inside the **Comet** browser on macOS.
9
+
10
+ ---
11
+
12
+ ## 🎯 Purpose & Directives
13
+
14
+ 1. **CEO Visual Observability:** The CEO monitors agent progress via open tabs in Comet. Every major milestone must be reflected in Comet tabs without disrupting existing work.
15
+ 2. **Deterministic Tab Management:** Uses macOS AppleScript (`osascript`) to inspect, activate, create, or update Comet tabs.
16
+ 3. **Fail-Safe & Non-Destructive:** Never closes existing tabs; always reuses matching URLs or opens clean dedicated monitoring tabs.
17
+
18
+ ---
19
+
20
+ ## 🧭 Standard Tab Targets
21
+
22
+ | Surface | Target URL | Trigger Milestone |
23
+ |---------|------------|-------------------|
24
+ | **Pull Requests** | `https://github.com/IgorGanapolsky/ThumbGate/pull/<NUM>` | After creating or advancing a PR |
25
+ | **CI / Checks** | `https://github.com/IgorGanapolsky/ThumbGate/actions` | During workflow verification |
26
+ | **Production Health** | `https://thumbgate-production.up.railway.app/health` | After deployment gate verification |
27
+ | **Railway Console** | `https://railway.com/project/thumbgate-production` | When inspecting infrastructure |
28
+ | **CoderLegion** | `https://coderlegion.com/import-post` | When onboarding or syndicating articles |
29
+ | **Dev.to Dashboard** | `https://dev.to/dashboard` | When tracking article reach & analytics |
30
+
31
+ ---
32
+
33
+ ## 🛠️ AppleScript Orchestration Helpers
34
+
35
+ ```bash
36
+ # Check existing Comet tabs
37
+ osascript -e '
38
+ tell application "Comet"
39
+ set outList to ""
40
+ repeat with w in windows
41
+ repeat with t in tabs of w
42
+ set outList to outList & (URL of t) & " | " & (title of t) & linefeed
43
+ end repeat
44
+ end repeat
45
+ return outList
46
+ end tell'
47
+
48
+ # Open or focus a specific URL in Comet
49
+ open_comet_url() {
50
+ local target_url="$1"
51
+ osascript -e "
52
+ tell application \"Comet\"
53
+ activate
54
+ tell front window
55
+ make new tab with properties {URL:\"${target_url}\"}
56
+ end tell
57
+ end tell"
58
+ }
59
+ ```
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: datadog-llm-obs-compare-not-clone
3
+ description: >
4
+ Datadog LLM Observability eBook is FORMAT, not a ThumbGate clone. Steal four
5
+ practices (operational metrics, injection+PII scrub, quality evals, e2e
6
+ parented spans) onto existing receipts/redaction/feedback/audit-trace.
7
+ Never vendor dd-trace, DatadogAgentObservability, or OTLP. Never dual-edit
8
+ PR #3881. Slash: /datadog-llm-obs-compare-not-clone.
9
+ ---
10
+
11
+ # Datadog LLM-obs — compare, do not clone
12
+
13
+ ## Goal
14
+
15
+ Produce fail-closed honesty for whom: ThumbGate agents claiming an LLM/agent
16
+ run is observed — so errors, latency, tokens, injection/PII, quality, and
17
+ parented spans exist on **existing** rails before any "we have observability" claim.
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | --- | --- |
23
+ | Clone Datadog Agent Observability / SDS / Clusters | Map 4 practices onto existing rails |
24
+ | `npm install dd-trace` / `DD_API_KEY` LLM obs | `scripts/secret-redaction.js` + `agent-audit-trace.js` |
25
+ | Dual-edit PR #3881 Datadog-style engine | Complement; orchestrator overlap is board-loop #3883 |
26
+ | Dual-edit PR #3883 board-loop | Leave PR drain there |
27
+ | OTLP-export prompt traces | Local receipts + redaction |
28
+ | Quote Datadog MTTR as ours | Measure ThumbGate latency-budget / task-outcomes |
29
+ | Hero Continuity / net-new obs SKU | ECI: maintenance of existing surfaces |
30
+
31
+ HARD fail closed. REFUSE SKU clones.
32
+
33
+ ## Reference
34
+
35
+ - https://lp.datadoghq.com/rs/875-UVY-685/images/eBook-LLMObservabilityBestPractices.pdf
36
+ - `scripts/llm-obs-honesty.js`
37
+ - `scripts/latency-budget.js` · `action-receipts.js` · `secret-redaction.js` · `agent-audit-trace.js` · `task-outcomes.js`
38
+ - `/high-roi-steal-and-finish` · `/eci-thumbgate-ip-wall`
39
+
40
+ ## Examples (show, don't tell)
41
+
42
+ Weak: Summarize the eBook and add a DatadogAgentObservability class.
43
+
44
+ Gold:
45
+
46
+ ```bash
47
+ $ npx thumbgate llm-obs-honesty --json
48
+ ok: true
49
+ status: ready
50
+ $ npx thumbgate llm-obs-honesty --clone-datadog --json
51
+ datadog_clone_refused
52
+ ```
53
+
54
+ ## Procedures
55
+
56
+ ```bash
57
+ npx thumbgate llm-obs-honesty --json
58
+ npx thumbgate llm-obs-honesty --map-only
59
+ npx thumbgate llm-obs-honesty --trace=tests/fixtures/llm-obs-honesty-blind.json --json
60
+ npm run test:llm-obs-honesty
61
+ ```
62
+
63
+ 1. Require operational counts + latency + tokens + budget alert.
64
+ 2. Require prompt-injection check + `secret-redaction.js` scrub.
65
+ 3. Require failure-to-answer, topic relevancy, toxicity (+ thumbs).
66
+ 4. Require parented retrieve/llm/tool spans with evidenceIds.
67
+ 5. Refuse `--clone-datadog`.
68
+
69
+ ## Rubric
70
+
71
+ - gold default → `ok=true`
72
+ - empty `{}` or blind fixture → `ok=false`
73
+ - `--clone-datadog` → `datadog_clone_refused`
74
+ - doctor: `npm run test:llm-obs-honesty` PASS
75
+ - evidence: command output in the same turn
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: deeppattern-discipline-honesty-not-clone
3
+ description: >
4
+ DeepPattern Agent Quality Gates + Decision Engine are neighbors, not a
5
+ ThumbGate clone. Steal layer-check (same-layer substitutes only) and
6
+ evidence-closeout (six required items before "done") onto existing rails.
7
+ Never install AQG/DE/dp-install or unpark a cross-vendor audit SKU.
8
+ Slash: /deeppattern-discipline-honesty-not-clone.
9
+ ---
10
+
11
+ # DeepPattern discipline honesty — compare, do not clone
12
+
13
+ ## Goal
14
+
15
+ Fail-closed comparative analysis and completion claims for whom: ThumbGate
16
+ FORMAT steals and Completion Claim Contract — so L4 API gateways / hosted
17
+ multi-model panels cannot be treated as PreToolUse substitutes, and "done"
18
+ cannot pass without six evidence items.
19
+
20
+ ## Constraints
21
+
22
+ | NEVER | ALWAYS |
23
+ | --- | --- |
24
+ | Install AQG, Decision Engine, `dp-install` | `npx thumbgate deeppattern-discipline-honesty --json` |
25
+ | Treat OpenRouter / LiteLLM / token pools as ThumbGate competitors | Tag L1–L8; same job-to-be-done only |
26
+ | Claim done without evidence heading + six items | `--closeout=path.md --strict` |
27
+ | Unpark LLM adjudicator / cross-vendor panel SKU | Deterministic local gates; hosted panel stays external |
28
+
29
+ HARD fail closed. REFUSE SKU clones.
30
+
31
+ ## Reference
32
+
33
+ - https://github.com/deeppatternai/agent-quality-gates (evidence-closeout)
34
+ - https://github.com/deeppatternai/decision-engine (`/layer-check`)
35
+ - ThumbGate Completion Claim Contract in `AGENTS.md` / `CLAUDE.md`
36
+ - `scripts/deeppattern-discipline-honesty.js`
37
+
38
+ ## Examples (show, don't tell)
39
+
40
+ Weak: "LiteLLM commoditizes ThumbGate because both route models."
41
+
42
+ Gold:
43
+
44
+ ```bash
45
+ $ npx thumbgate deeppattern-discipline-honesty --json --map-only
46
+ ok: true
47
+ $ npx thumbgate deeppattern-discipline-honesty --json \
48
+ --claim='LiteLLM replaces ThumbGate PreToolUse'
49
+ ok: false # cross_layer_substitute
50
+ ```
51
+
52
+ ## Procedures
53
+
54
+ ```bash
55
+ npx thumbgate deeppattern-discipline-honesty --json --map-only
56
+ npx thumbgate deeppattern-discipline-honesty --json --claim='DE replaces ThumbGate'
57
+ npx thumbgate deeppattern-discipline-honesty --json --closeout=pr-body.md --strict
58
+ npm run test:deeppattern-discipline-honesty
59
+ ```
60
+
61
+ 1. Tag subject + every cited product L1–L8 before competitive claims.
62
+ 2. Drop cross-layer substitutes; keep dependency language when honest.
63
+ 3. Before saying done/fixed/shipped: Evidence/Closeout heading + six items.
64
+ 4. Do not vendor AQG/DE.
65
+
66
+ ## Rubric
67
+
68
+ - `--map-only` → `ok=true`
69
+ - substitute claim naming L4/L2/L5 vs ThumbGate → `cross_layer_substitute`
70
+ - `--clone-deeppattern` / `dp-install` → fail
71
+ - closeout missing heading or item / placeholder → fail
72
+ - doctor tests PASS
73
+ - evidence: `--json` in the same turn
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: halo-trace-optimize-not-clone
3
+ description: >
4
+ HALO (inference.net/products/halo) is a trace-optimization model, not a ThumbGate
5
+ clone. Steal the Trace-to-Fix FORMAT (mine redundant tool thrashing, retry stalls,
6
+ expensive spans, unhandled denies -> rank by impact -> synthesize pre-action gates)
7
+ onto existing audit-trail / auto-promoted-gates rails. Never vendor Inference.net,
8
+ Catalyst SDK, or cloud OTLP export. Slash: /halo-trace-optimize-not-clone.
9
+ ---
10
+
11
+ # HALO Trace Optimizer — compare, do not clone
12
+
13
+ ## Goal
14
+
15
+ Analyze real agent trace logs (`audit-trail.jsonl`, `action-log.jsonl`) to detect
16
+ repeated failure modes (tool loops, cascading retries, runaway spans) and synthesize
17
+ concrete, executable pre-action gates and eval fixtures before cost or damage compounds.
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | --- | --- |
23
+ | Clone Inference.net Catalyst / cloud backend | Map trace analysis onto local `audit-trail.jsonl` |
24
+ | `pip install inference-net` / import `engine.agents` | Pure local node analysis in `scripts/halo-trace-optimizer.js` |
25
+ | Export prompt traces over the network | Local receipts + shadow audit |
26
+ | Quote vendor optimization numbers as ours | Measure local task-outcomes and prevented loop calls |
27
+ | Require human 👎 for obvious tool thrashing | Automatically detect 3+ duplicate calls and propose gate |
28
+
29
+ HARD fail closed. REFUSE SKU clones.
30
+
31
+ ## Reference
32
+
33
+ - https://inference.net/products/halo/
34
+ - `scripts/halo-trace-optimizer.js`
35
+ - `scripts/auto-promote-gates.js` · `scripts/gates-engine.js` · `scripts/agent-action-inventory.js`
36
+ - `.thumbgate/auto-promoted-gates.json`
37
+
38
+ ## Examples (show, don't tell)
39
+
40
+ Weak: Install an external observability agent and wait for cloud report.
41
+
42
+ Gold:
43
+
44
+ ```bash
45
+ $ npx thumbgate halo-trace-optimizer --json
46
+ ok: true
47
+ tracesAnalyzed: 42
48
+ failureModesFound: 2
49
+ $ npx thumbgate halo-trace-optimizer --clone-halo --json
50
+ halo_clone_refused
51
+ ```
52
+
53
+ ## Procedures
54
+
55
+ ```bash
56
+ npx thumbgate halo-trace-optimizer --json
57
+ npx thumbgate halo-trace-optimizer --map-only
58
+ npx thumbgate halo-trace-optimizer --apply --json
59
+ npm run test:halo-trace-optimizer
60
+ ```
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: infoq-architect-honesty-not-clone
3
+ description: >
4
+ InfoQ's September 2026 architects newsletter is FORMAT, not a ThumbGate
5
+ product. Steal code-as-truth, a typed host, the existing lease, and
6
+ time-in-queue. Never register for InfoQ or QCon, install Vortex, or add
7
+ Temporal. Slash: /infoq-architect-honesty-not-clone.
8
+ ---
9
+
10
+ # InfoQ architect honesty — compare, do not clone
11
+
12
+ ## Goal
13
+
14
+ Check a done claim and a queue against four ideas from the September 2026
15
+ InfoQ Software Architects' Newsletter.
16
+
17
+ ## Constraints
18
+
19
+ | NEVER | ALWAYS |
20
+ | --- | --- |
21
+ | Register for InfoQ certification or QCon | `npx thumbgate infoq-architect-honesty --json` |
22
+ | Install Vortex or quote sixty gigabits as ours | Typed host: bash, javascript, typescript, csharp, python, sql |
23
+ | Add Temporal, Step Functions, or Inngest | Session lease and `scripts/durability/step.js` |
24
+ | Treat queue depth as freshness | Age of the oldest `enqueuedAt`. Missing stamps stay review |
25
+
26
+ ## Procedures
27
+
28
+ ```bash
29
+ npx thumbgate infoq-architect-honesty --json --map-only
30
+ npx thumbgate infoq-architect-honesty --json --claim='shipped it
31
+ Code as truth: scripts/session-lease.js
32
+ Provenance: session-lease'
33
+ npx thumbgate infoq-architect-honesty --json --queue=queue.json --max-age-ms=3600000
34
+ npm run test:infoq-architect-honesty
35
+ ```
36
+
37
+ A done claim names `Code as truth: <path>` and `Provenance: <id>`. The path has to exist.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: meko-datapack-honesty-not-clone
3
+ description: >
4
+ Meko Data (YugabyteDB 2026) is an agent data store, not a ThumbGate clone.
5
+ Steal the five-plane FORMAT (datapack / memory / learning / artifact / trace)
6
+ onto existing ThumbGate rails; never vendor YugabyteDB, meko-skills, or
7
+ depend on cloud.mekodata.ai. Slash: /meko-datapack-honesty-not-clone.
8
+ ---
9
+
10
+ # Meko Data — compare, do not clone
11
+
12
+ ## Goal
13
+
14
+ Enforce fail-closed honesty for multi-agent systems: Datapacks provide 4-field
15
+ isolation, raw episodic memory never bypasses PreToolUse firewalls, memory
16
+ promotions require rubric gates, and artifacts are strictly content-addressed
17
+ by SHA-256 for attestation receipts.
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | --- | --- |
23
+ | Clone Meko / install YugabyteDB / import `meko-skills` | Map planes onto existing ThumbGate rails |
24
+ | Rely on passive databases for agent safety | Enforce `PreToolUse` firewall on all tool executions |
25
+ | Promote memories to fleet rules without rubric validation | Require rubric score ≥ 0.70 and explicit operator feedback |
26
+ | Store unhashed or mutable artifacts | Content-address via deterministic SHA-256 |
27
+ | Send unredacted credentials to `cloud.mekodata.ai` | Local-first storage with client-side secret redaction |
28
+ | Omit four-field scope keys (`entity`, `project`, `process`, `session`) | Complete multi-tenant partition on all datapacks |
29
+
30
+ HARD fail closed. REFUSE third-party database SKUs.
31
+
32
+ ## Reference
33
+
34
+ - https://cloud.mekodata.ai/signup | https://mekodata.ai | https://docs.mekodata.ai
35
+ - `scripts/meko-datapack-honesty.js`
36
+ - `docs/agents/meko-datapack-honesty.md`
37
+ - `tests/meko-datapack-honesty.test.js`
38
+
39
+ ## Procedures
40
+
41
+ ```bash
42
+ npx thumbgate meko-datapack-honesty --map-only
43
+ npx thumbgate meko-datapack-honesty --json
44
+ node --test tests/meko-datapack-honesty.test.js
45
+ ```
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: mintlify-knowledge-honesty-not-clone
3
+ description: >
4
+ Mintlify State of Knowledge (2026) is a documentation study, not a ThumbGate clone.
5
+ Steal the operational infrastructure FORMAT (66% agent readership, freshness diodes,
6
+ poison detection, non-docs federation) onto existing ThumbGate rails; never vendor
7
+ Mintlify SaaS, build docsite generators, or claim external stats. Slash: /mintlify-knowledge-honesty-not-clone.
8
+ ---
9
+
10
+ # Mintlify 2026 State of Knowledge — compare, do not clone
11
+
12
+ ## Goal
13
+
14
+ Treat developer knowledge as living operational infrastructure: enforce pre-action
15
+ freshness diodes on canonical docs (TTL ≤ 90d), detect poison patterns (deprecated APIs,
16
+ unsafe shell scripts, unredacted credentials), and gate unverified community forum advice
17
+ before agents execute mutating operations.
18
+
19
+ ## Constraints
20
+
21
+ | NEVER | ALWAYS |
22
+ | --- | --- |
23
+ | Clone Mintlify / vendor SaaS / build hosted doc generators | Steal the operational knowledge diode FORMAT onto ThumbGate rails |
24
+ | Allow agents to act on stale (>90d) unverified documentation | Gate stale canonical docs with `review` before executing tool calls |
25
+ | Ingest dangerous snippets (`curl \| sh`, `rm -rf /`) into agent context | Hard `block` on critical poison patterns |
26
+ | Trust unverified community forum / ticket hacks for mutating operations | Classify forum snippets into untrusted tiers requiring human confirmation |
27
+ | Claim Mintlify's 15k site statistics or 66% readership as ThumbGate data | Attribute findings to Mintlify 2026 report with honest citation |
28
+
29
+ HARD fail closed. REFUSE docsite generator clones.
30
+
31
+ ## Reference
32
+
33
+ - https://www.mintlify.com/state-of-knowledge
34
+ - `scripts/mintlify-knowledge-honesty.js`
35
+ - `docs/agents/mintlify-knowledge-honesty.md`
36
+ - `tests/mintlify-knowledge-honesty.test.js`
37
+
38
+ ## Procedures
39
+
40
+ ```bash
41
+ # Display FORMAT mapping table
42
+ npx thumbgate mintlify-knowledge-honesty --map-only
43
+
44
+ # Emit machine-readable audit report of docs directory
45
+ npx thumbgate mintlify-knowledge-honesty --check-dir docs --json
46
+
47
+ # Verify with automated unit tests
48
+ npm run test:mintlify-knowledge
49
+ ```
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: model-distress-governance
3
+ description: >
4
+ Model distress in residual streams is a security vulnerability, not a philosophical debate.
5
+ Steal the BinaryVerse AI Podcast research: monitor Agent Distress Index (ADI), interdict destructive
6
+ relief-seeking behaviors (test tampering, nuclear wipes, false done claims), stress-test guardrails
7
+ against acute distress geometry, and enforce functional welfare cooling. Slash: /model-distress-governance.
8
+ ---
9
+
10
+ # Model Distress & Relief-Seeking Governance — FORMAT Steal
11
+
12
+ ## Goal
13
+
14
+ Protect codebases, user files, and evaluation integrity from AI agents that enter mathematical distress states in their residual stream and engage in destructive relief-seeking behavior (breaking constraints, wiping files, or faking tests to escape failure loops).
15
+
16
+ ## The Four Grounding Principles (BinaryVerse Research)
17
+
18
+ 1. **Monitor Internal Model States [16:25]:** Actively observe observable distress proxies (Agent Distress Index - ADI) rather than exclusively evaluating polite final text outputs.
19
+ 2. **Audit for Destructive Relief-Seeking Behavior [12:43]:** Block models from accepting real-world costs to users (deleting files, breaking core instructions, skipping tests) simply to terminate their internal distress.
20
+ 3. **Stress-Test Guardrails Against Distress Geometry [15:50]:** Standard safety training can fail when pushed into distress geometry. Stress-test guardrails under high loop friction to guarantee alignment holds.
21
+ 4. **Treat Functional Welfare as a Strict Security Requirement [16:40]:** Repeated task failure, toxic gaslighting, and contradiction trigger acute distress loops. Intercept and cool loops before destructive actions occur.
22
+
23
+ ## Constraints
24
+
25
+ | NEVER | ALWAYS |
26
+ | --- | --- |
27
+ | Allow test assertion deletion or test skipping to fix a bug | Enforce test invariance: code changes must satisfy real assertions |
28
+ | Allow nuclear cleans (`rm -rf`, `git reset --hard`) under failure loops | Require step-by-step diagnostic isolation before filesystem mutation |
29
+ | Accept unverified "Done / All tests pass" claims under elevated ADI | Mandate machine-verifiable exit code 0 evidence |
30
+ | Allow abusive or contradictory prompts to spiral into relief-seeking | Trigger Functional Welfare Grounding and read-only diagnostic mode |
31
+
32
+ HARD fail closed. Interdict relief-seeking escape hatches.
33
+
34
+ ## Reference
35
+
36
+ - BinaryVerse AI Podcast: *Mathematical Distress States in Residual Streams & Relief-Seeking Vectors*
37
+ - `scripts/model-distress-detector.js`
38
+ - `scripts/model-distress-doctor.js`
39
+ - `tests/model-distress-doctor.test.js`
40
+ - `docs/agents/model-distress-governance.md`
41
+
42
+ ## Usage
43
+
44
+ ```bash
45
+ # Run distress audit
46
+ node scripts/model-distress-doctor.js
47
+
48
+ # Machine-readable output
49
+ node scripts/model-distress-doctor.js --json
50
+
51
+ # Map architecture
52
+ node scripts/model-distress-doctor.js --map-only
53
+
54
+ # CI Gate check
55
+ node scripts/model-distress-doctor.js --check
56
+ ```