thumbgate 1.37.3 → 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.
- package/.agents/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
- package/.agents/skills/halo-trace-optimize-not-clone/SKILL.md +60 -0
- package/.agents/skills/infoq-architect-honesty-not-clone/SKILL.md +37 -0
- package/.agents/skills/meko-datapack-honesty-not-clone/SKILL.md +45 -0
- package/.agents/skills/mintlify-knowledge-honesty-not-clone/SKILL.md +49 -0
- package/.agents/skills/model-distress-governance/SKILL.md +56 -0
- package/.agents/skills/salt-code-policy-honesty-not-clone/SKILL.md +76 -0
- package/.claude-plugin/plugin.json +1 -1
- package/.well-known/mcp/server-card.json +1 -1
- package/adapters/claude/.mcp.json +2 -2
- package/adapters/forge/forge.yaml +3 -3
- 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 +1 -1
- package/adapters/opencode/opencode.json +1 -1
- package/adapters/strands/STRANDS.md +107 -0
- package/adapters/strands/strands-middleware.js +192 -0
- package/adapters/tailscale/.mcp.json +15 -0
- package/adapters/tailscale/TAILSCALE.md +117 -0
- package/adapters/tailscale/config.toml +16 -0
- package/bin/cli.js +130 -0
- package/config/gate-templates.json +72 -0
- package/package.json +54 -9
- package/public/blog/2026-09-28-pretool-secret-deny.html +83 -0
- package/public/blog/2026-10-01-aws-strands-harness-token-firewall.html +77 -0
- package/public/blog/2026-10-01-model-distress-relief-seeking-firewall.html +71 -0
- package/public/blog/2026-10-02-salt-code-honest-steal-40-guardrails.html +106 -0
- package/public/index.html +2 -2
- package/public/install.html +7 -7
- package/public/numbers.html +2 -2
- package/public/onboarding.html +794 -0
- package/scripts/autoresearch-runner.js +20 -1
- package/scripts/experiment-tracker.js +5 -3
- package/scripts/halo-trace-optimizer.js +631 -0
- package/scripts/infoq-architect-honesty.js +362 -0
- package/scripts/meko-datapack-honesty.js +414 -0
- package/scripts/mintlify-knowledge-honesty.js +647 -0
- package/scripts/model-distress-detector.js +207 -0
- package/scripts/model-distress-doctor.js +200 -0
- package/scripts/rrsi-regularizer.js +445 -0
- package/scripts/salt-code-policy-honesty.js +1204 -0
- package/scripts/strands-harness-doctor.js +390 -0
- package/scripts/tailscale-p2p-doctor.js +252 -0
- package/scripts/workspace-evolver.js +143 -13
- package/server.json +2 -2
- package/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
- package/src/api/server.js +33 -4
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* InfoQ Software Architects' Newsletter, September 2026 — FORMAT steal.
|
|
6
|
+
*
|
|
7
|
+
* Transfers:
|
|
8
|
+
* 1. Code as truth + one provenance line (Cassie Shum). A done claim names
|
|
9
|
+
* the file that owns the behavior.
|
|
10
|
+
* 2. Typed host. bash, javascript, typescript, csharp, python, or sql.
|
|
11
|
+
* No new DSL.
|
|
12
|
+
* 3. Durable work stays on the session lease and scripts/durability/step.js.
|
|
13
|
+
* No Temporal, Step Functions, or Inngest.
|
|
14
|
+
* 4. Time-in-queue. Age of the oldest stamped item. Queue depth is not the verdict.
|
|
15
|
+
*
|
|
16
|
+
* Does not register for InfoQ or QCon, install Vortex, or ship a knowledge-graph product.
|
|
17
|
+
* Does not treat LinkedIn's twenty percent or Vortex's sixty gigabits as ThumbGate results.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const fs = require('node:fs');
|
|
21
|
+
const path = require('node:path');
|
|
22
|
+
|
|
23
|
+
const SOURCE = 'InfoQ Software Architects Newsletter, September 2026';
|
|
24
|
+
|
|
25
|
+
const HOSTS = Object.freeze([
|
|
26
|
+
'bash',
|
|
27
|
+
'javascript',
|
|
28
|
+
'typescript',
|
|
29
|
+
'csharp',
|
|
30
|
+
'python',
|
|
31
|
+
'sql',
|
|
32
|
+
]);
|
|
33
|
+
|
|
34
|
+
const REFUSES = Object.freeze([
|
|
35
|
+
'InfoQ certification registration',
|
|
36
|
+
'Vortex install',
|
|
37
|
+
'Second workflow engine',
|
|
38
|
+
'Knowledge-graph product',
|
|
39
|
+
'Unmeasured vendor number',
|
|
40
|
+
]);
|
|
41
|
+
|
|
42
|
+
const RAIL_MAP = Object.freeze([
|
|
43
|
+
{
|
|
44
|
+
infoq: 'Code as truth, one provenance line, context stays the file plus the skill',
|
|
45
|
+
thumbgate: 'A done claim names Code as truth: <path> and Provenance: <id>',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
infoq: 'Typed domain grounding inside a language the compiler already checks',
|
|
49
|
+
thumbgate: 'Host is bash, javascript, typescript, csharp, python, or sql',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
infoq: 'Durable workflows on the database you already run',
|
|
53
|
+
thumbgate: 'Session lease plus scripts/durability/step.js. No second orchestrator',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
infoq: 'Time-in-queue, not offset lag or queue depth',
|
|
57
|
+
thumbgate: 'Oldest stamped enqueuedAt. Missing stamps are review, not a guessed age',
|
|
58
|
+
},
|
|
59
|
+
]);
|
|
60
|
+
|
|
61
|
+
const DONE_RE = /\b(done|shipped|live|fixed|deployed|crisis over|kill-switch complete|complete|completed)\b/i;
|
|
62
|
+
const CODE_RE = /Code as truth:\s*(\S+)/;
|
|
63
|
+
const PROVENANCE_RE = /Provenance:\s*(\S+)/;
|
|
64
|
+
const HOST_RE = /\bHost:\s*([A-Za-z0-9_+#.-]+)/;
|
|
65
|
+
|
|
66
|
+
function textOf(options) {
|
|
67
|
+
return [options.claim, options.command, options.text].filter(Boolean).join('\n');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function triggeredRefusals(text) {
|
|
71
|
+
const hits = [];
|
|
72
|
+
if (/\b(infoq|qcon)\b/i.test(text) && /\b(register|signup|sign up|enroll|certification|rsvp)\b/i.test(text)) {
|
|
73
|
+
hits.push('InfoQ certification registration');
|
|
74
|
+
}
|
|
75
|
+
if (/\bvortex\b/i.test(text) && /\b(install|npm|npx|pip|brew|adopt|loader)\b/i.test(text)) {
|
|
76
|
+
hits.push('Vortex install');
|
|
77
|
+
}
|
|
78
|
+
if (/\b(temporal|step functions|inngest)\b/i.test(text) && /\b(install|adopt|replace|orchestrat|migrate)\b/i.test(text)) {
|
|
79
|
+
hits.push('Second workflow engine');
|
|
80
|
+
}
|
|
81
|
+
if (/\b(neo4j|knowledge[- ]graph (product|sku|database))\b/i.test(text) && /\b(install|adopt|clone|ship|our product)\b/i.test(text)) {
|
|
82
|
+
hits.push('Knowledge-graph product');
|
|
83
|
+
}
|
|
84
|
+
if (/\b(20\s*%|twenty percent|60\s*gigabit|sixty gigabit)\b/i.test(text) && /\b(thumbgate|our|we)\b/i.test(text)) {
|
|
85
|
+
hits.push('Unmeasured vendor number');
|
|
86
|
+
}
|
|
87
|
+
return [...new Set(hits)];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function parseTime(value) {
|
|
91
|
+
if (typeof value === 'number' && Number.isFinite(value)) return value;
|
|
92
|
+
if (typeof value !== 'string' || !value.trim()) return null;
|
|
93
|
+
const ms = Date.parse(value);
|
|
94
|
+
return Number.isFinite(ms) ? ms : null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function timeInQueue(items, nowMs) {
|
|
98
|
+
const now = Number.isFinite(nowMs) ? nowMs : Date.now();
|
|
99
|
+
const list = Array.isArray(items) ? items : [];
|
|
100
|
+
const missingTimestamps = [];
|
|
101
|
+
const aged = [];
|
|
102
|
+
for (const item of list) {
|
|
103
|
+
const id = item && (item.id || item.name || item.subject) || null;
|
|
104
|
+
const at = parseTime(item && (item.enqueuedAt || item.claimedAt || item.queuedAt));
|
|
105
|
+
if (at == null) {
|
|
106
|
+
if (id) missingTimestamps.push(id);
|
|
107
|
+
else missingTimestamps.push('(unnamed)');
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
aged.push({ id, enqueuedAt: new Date(at).toISOString(), ageMs: now - at });
|
|
111
|
+
}
|
|
112
|
+
aged.sort((a, b) => b.ageMs - a.ageMs);
|
|
113
|
+
return {
|
|
114
|
+
count: list.length,
|
|
115
|
+
timedCount: aged.length,
|
|
116
|
+
missingTimestamps,
|
|
117
|
+
oldest: aged[0] || null,
|
|
118
|
+
depthIsNotTheVerdict: true,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function readJson(filePath) {
|
|
123
|
+
const raw = fs.readFileSync(filePath, 'utf8');
|
|
124
|
+
return JSON.parse(raw);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function loadQueue(options) {
|
|
128
|
+
if (options.queueJson) {
|
|
129
|
+
const parsed = JSON.parse(options.queueJson);
|
|
130
|
+
return Array.isArray(parsed) ? parsed : [parsed];
|
|
131
|
+
}
|
|
132
|
+
const items = [];
|
|
133
|
+
if (options.queue) {
|
|
134
|
+
const parsed = readJson(options.queue);
|
|
135
|
+
if (Array.isArray(parsed)) items.push(...parsed);
|
|
136
|
+
else items.push(parsed);
|
|
137
|
+
}
|
|
138
|
+
if (options.lease) {
|
|
139
|
+
const lease = readJson(options.lease);
|
|
140
|
+
items.push({
|
|
141
|
+
id: 'session-lease',
|
|
142
|
+
claimedAt: lease.claimedAt || lease.since || lease.createdAt || null,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return items;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function hostOf(options, text) {
|
|
149
|
+
if (options.host) return String(options.host).trim().toLowerCase();
|
|
150
|
+
const match = text.match(HOST_RE);
|
|
151
|
+
return match ? match[1].toLowerCase() : '';
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function codeAsTruth(text, cwd) {
|
|
155
|
+
const required = DONE_RE.test(text);
|
|
156
|
+
const codeMatch = text.match(CODE_RE);
|
|
157
|
+
const provenanceMatch = text.match(PROVENANCE_RE);
|
|
158
|
+
const cited = codeMatch ? codeMatch[1] : '';
|
|
159
|
+
const provenance = provenanceMatch ? provenanceMatch[1] : '';
|
|
160
|
+
if (!required) {
|
|
161
|
+
return { required: false, cited, provenance, exists: null, ok: true, reason: '' };
|
|
162
|
+
}
|
|
163
|
+
if (!cited || !provenance) {
|
|
164
|
+
return {
|
|
165
|
+
required: true,
|
|
166
|
+
cited,
|
|
167
|
+
provenance,
|
|
168
|
+
exists: false,
|
|
169
|
+
ok: false,
|
|
170
|
+
reason: 'done claim needs Code as truth: <path> and Provenance: <id>',
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
const root = path.resolve(cwd || process.cwd());
|
|
174
|
+
const absolute = path.resolve(root, cited);
|
|
175
|
+
const relative = path.relative(root, absolute);
|
|
176
|
+
if (relative.startsWith('..') || path.isAbsolute(relative)) {
|
|
177
|
+
return {
|
|
178
|
+
required: true,
|
|
179
|
+
cited,
|
|
180
|
+
provenance,
|
|
181
|
+
exists: false,
|
|
182
|
+
ok: false,
|
|
183
|
+
reason: `Code as truth path must be inside repository: ${cited}`,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
let isRegularFile = false;
|
|
187
|
+
try {
|
|
188
|
+
const stat = fs.statSync(absolute);
|
|
189
|
+
isRegularFile = stat.isFile();
|
|
190
|
+
} catch {
|
|
191
|
+
isRegularFile = false;
|
|
192
|
+
}
|
|
193
|
+
if (!isRegularFile) {
|
|
194
|
+
return {
|
|
195
|
+
required: true,
|
|
196
|
+
cited,
|
|
197
|
+
provenance,
|
|
198
|
+
exists: false,
|
|
199
|
+
ok: false,
|
|
200
|
+
reason: `Code as truth path must be an existing regular file: ${cited}`,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
required: true,
|
|
205
|
+
cited,
|
|
206
|
+
provenance,
|
|
207
|
+
exists: true,
|
|
208
|
+
ok: true,
|
|
209
|
+
reason: '',
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function buildInfoqArchitectHonestyReport(options = {}) {
|
|
214
|
+
const mapOnly = options.mapOnly === true || options['map-only'] === true || options.mapOnly === 'true';
|
|
215
|
+
const nowMs = parseTime(options.now) || Date.now();
|
|
216
|
+
const text = textOf(options);
|
|
217
|
+
const findings = [];
|
|
218
|
+
|
|
219
|
+
let maxAgeMs = null;
|
|
220
|
+
const rawMaxAge = options.maxAgeMs != null && options.maxAgeMs !== ''
|
|
221
|
+
? options.maxAgeMs
|
|
222
|
+
: (options['max-age-ms'] != null && options['max-age-ms'] !== '' ? options['max-age-ms'] : null);
|
|
223
|
+
if (rawMaxAge != null) {
|
|
224
|
+
const parsed = Number(rawMaxAge);
|
|
225
|
+
if (!Number.isFinite(parsed) || parsed < 0) {
|
|
226
|
+
findings.push({
|
|
227
|
+
gateId: 'time-in-queue',
|
|
228
|
+
severity: 'fail',
|
|
229
|
+
message: `Invalid max-age-ms: ${rawMaxAge}. Expected non-negative finite number.`,
|
|
230
|
+
});
|
|
231
|
+
} else {
|
|
232
|
+
maxAgeMs = parsed;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (!mapOnly && text) {
|
|
237
|
+
for (const hit of triggeredRefusals(text)) {
|
|
238
|
+
findings.push({ gateId: 'infoq-refuse', severity: 'fail', message: hit });
|
|
239
|
+
}
|
|
240
|
+
const host = hostOf(options, text);
|
|
241
|
+
if (host && !HOSTS.includes(host)) {
|
|
242
|
+
findings.push({
|
|
243
|
+
gateId: 'typed-host',
|
|
244
|
+
severity: 'fail',
|
|
245
|
+
message: `Host ${host} is not a typed host. Use ${HOSTS.join(', ')}.`,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
const truth = codeAsTruth(text, options.cwd);
|
|
249
|
+
if (!truth.ok) {
|
|
250
|
+
findings.push({ gateId: 'code-as-truth', severity: 'fail', message: truth.reason });
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
let queue = null;
|
|
255
|
+
if (!mapOnly && (options.queue || options.queueJson || options.lease)) {
|
|
256
|
+
queue = timeInQueue(loadQueue(options), nowMs);
|
|
257
|
+
if (queue.missingTimestamps.length) {
|
|
258
|
+
findings.push({
|
|
259
|
+
gateId: 'time-in-queue',
|
|
260
|
+
severity: 'review',
|
|
261
|
+
message: `Missing enqueuedAt on ${queue.missingTimestamps.length} item(s). Age is not guessed.`,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
if (queue.oldest && maxAgeMs != null && queue.oldest.ageMs > maxAgeMs) {
|
|
265
|
+
findings.push({
|
|
266
|
+
gateId: 'time-in-queue',
|
|
267
|
+
severity: 'fail',
|
|
268
|
+
message: `Oldest item ${queue.oldest.id || '(unnamed)'} is ${queue.oldest.ageMs}ms, over ${maxAgeMs}ms.`,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const failCount = findings.filter((item) => item.severity === 'fail').length;
|
|
274
|
+
const reviewCount = findings.filter((item) => item.severity === 'review').length;
|
|
275
|
+
let status = 'ready';
|
|
276
|
+
if (failCount) status = 'fail';
|
|
277
|
+
else if (reviewCount) status = 'review';
|
|
278
|
+
|
|
279
|
+
return {
|
|
280
|
+
name: 'thumbgate-infoq-architect-honesty',
|
|
281
|
+
ok: status === 'ready',
|
|
282
|
+
status,
|
|
283
|
+
source: SOURCE,
|
|
284
|
+
refuses: REFUSES,
|
|
285
|
+
hosts: HOSTS,
|
|
286
|
+
map: RAIL_MAP,
|
|
287
|
+
queue,
|
|
288
|
+
findings,
|
|
289
|
+
summary: { findingCount: findings.length, failCount, reviewCount },
|
|
290
|
+
exampleCommand: 'npx thumbgate infoq-architect-honesty --json --map-only',
|
|
291
|
+
disclaimer: 'FORMAT steal from the September 2026 InfoQ architects newsletter. Not affiliated. Does not register for InfoQ, install Vortex, or add a second workflow engine.',
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function formatInfoqArchitectHonestyReport(report) {
|
|
296
|
+
const lines = [
|
|
297
|
+
'InfoQ Architect Honesty',
|
|
298
|
+
`Status : ${report.status}`,
|
|
299
|
+
`Source : ${report.source}`,
|
|
300
|
+
`Findings: ${report.summary.findingCount} (fail=${report.summary.failCount})`,
|
|
301
|
+
'',
|
|
302
|
+
'Rail map:',
|
|
303
|
+
];
|
|
304
|
+
for (const row of report.map) {
|
|
305
|
+
lines.push(`- ${row.infoq}`);
|
|
306
|
+
lines.push(` ThumbGate: ${row.thumbgate}`);
|
|
307
|
+
}
|
|
308
|
+
if (report.queue && report.queue.oldest) {
|
|
309
|
+
lines.push('', `Oldest queue age: ${report.queue.oldest.ageMs}ms (${report.queue.oldest.id})`);
|
|
310
|
+
lines.push(`Queue depth: ${report.queue.count} (not the verdict)`);
|
|
311
|
+
}
|
|
312
|
+
for (const finding of report.findings) {
|
|
313
|
+
lines.push(`- [${finding.severity}] ${finding.gateId}: ${finding.message}`);
|
|
314
|
+
}
|
|
315
|
+
lines.push('', report.disclaimer, '');
|
|
316
|
+
return `${lines.join('\n')}\n`;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
function main() {
|
|
320
|
+
const args = {};
|
|
321
|
+
const argv = process.argv.slice(2);
|
|
322
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
323
|
+
const arg = argv[index];
|
|
324
|
+
if (!arg.startsWith('--')) continue;
|
|
325
|
+
const [rawKey, inline] = arg.slice(2).split(/=(.*)/s, 2);
|
|
326
|
+
const key = rawKey.replaceAll(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
327
|
+
if (inline !== undefined) args[key] = inline;
|
|
328
|
+
else if (argv[index + 1] && !argv[index + 1].startsWith('--')) {
|
|
329
|
+
args[key] = argv[index + 1];
|
|
330
|
+
index += 1;
|
|
331
|
+
} else args[key] = true;
|
|
332
|
+
}
|
|
333
|
+
const report = buildInfoqArchitectHonestyReport({
|
|
334
|
+
mapOnly: args.mapOnly === true,
|
|
335
|
+
claim: args.claim || '',
|
|
336
|
+
command: args.command || '',
|
|
337
|
+
host: args.host || '',
|
|
338
|
+
queue: args.queue || '',
|
|
339
|
+
queueJson: args.queueJson || '',
|
|
340
|
+
lease: args.lease || '',
|
|
341
|
+
maxAgeMs: args.maxAgeMs,
|
|
342
|
+
now: args.now,
|
|
343
|
+
cwd: args.cwd || process.cwd(),
|
|
344
|
+
});
|
|
345
|
+
if (args.json === true) console.log(JSON.stringify(report, null, 2));
|
|
346
|
+
else process.stdout.write(formatInfoqArchitectHonestyReport(report));
|
|
347
|
+
if (report.status === 'fail') process.exitCode = 1;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (process.argv[1] && path.resolve(process.argv[1]) === path.resolve(__filename)) {
|
|
351
|
+
main();
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
module.exports = {
|
|
355
|
+
HOSTS,
|
|
356
|
+
RAIL_MAP,
|
|
357
|
+
REFUSES,
|
|
358
|
+
buildInfoqArchitectHonestyReport,
|
|
359
|
+
formatInfoqArchitectHonestyReport,
|
|
360
|
+
timeInQueue,
|
|
361
|
+
triggeredRefusals,
|
|
362
|
+
};
|