thumbgate 1.16.13 → 1.16.19

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 (62) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.well-known/mcp/server-card.json +1 -1
  4. package/README.md +3 -1
  5. package/adapters/claude/.mcp.json +2 -2
  6. package/adapters/mcp/server-stdio.js +26 -1
  7. package/adapters/opencode/opencode.json +1 -1
  8. package/bin/cli.js +420 -1
  9. package/config/gate-templates.json +372 -0
  10. package/config/mcp-allowlists.json +25 -0
  11. package/config/model-candidates.json +59 -2
  12. package/config/model-tiers.json +4 -1
  13. package/package.json +79 -22
  14. package/public/compare.html +6 -0
  15. package/public/index.html +144 -11
  16. package/public/numbers.html +8 -8
  17. package/public/pro.html +22 -24
  18. package/scripts/agent-design-governance.js +211 -0
  19. package/scripts/agent-reasoning-traces.js +683 -0
  20. package/scripts/agent-reward-model.js +438 -0
  21. package/scripts/agent-stack-survival-audit.js +231 -0
  22. package/scripts/ai-engineering-stack-guardrails.js +256 -0
  23. package/scripts/billing.js +16 -4
  24. package/scripts/chatgpt-ads-readiness-pack.js +195 -0
  25. package/scripts/cli-schema.js +277 -0
  26. package/scripts/code-graph-guardrails.js +176 -0
  27. package/scripts/deepseek-v4-runtime-guardrails.js +253 -0
  28. package/scripts/gemini-embedding-policy.js +198 -0
  29. package/scripts/inference-cache-policy.js +39 -0
  30. package/scripts/judge-reward-function.js +396 -0
  31. package/scripts/llm-behavior-monitor.js +251 -0
  32. package/scripts/long-running-agent-context-guardrails.js +176 -0
  33. package/scripts/multimodal-retrieval-plan.js +31 -11
  34. package/scripts/oss-pr-opportunity-scout.js +240 -0
  35. package/scripts/proactive-agent-eval-guardrails.js +230 -0
  36. package/scripts/profile-router.js +5 -4
  37. package/scripts/prompting-operating-system.js +273 -0
  38. package/scripts/proxy-pointer-rag-guardrails.js +189 -0
  39. package/scripts/rag-precision-guardrails.js +202 -0
  40. package/scripts/rate-limiter.js +1 -1
  41. package/scripts/reasoning-efficiency-guardrails.js +176 -0
  42. package/scripts/reward-hacking-guardrails.js +251 -0
  43. package/scripts/seo-gsd.js +1201 -11
  44. package/scripts/single-use-credential-gate.js +182 -0
  45. package/scripts/structured-prompt-driven.js +226 -0
  46. package/scripts/telemetry-analytics.js +31 -6
  47. package/scripts/tool-registry.js +92 -0
  48. package/scripts/upstream-contribution-engine.js +379 -0
  49. package/scripts/vector-store.js +119 -4
  50. package/src/api/server.js +333 -100
  51. package/scripts/agents-sdk-sandbox-plan.js +0 -57
  52. package/scripts/ai-org-governance.js +0 -98
  53. package/scripts/artifact-agent-plan.js +0 -81
  54. package/scripts/enterprise-agent-rollout.js +0 -34
  55. package/scripts/experience-replay-governance.js +0 -69
  56. package/scripts/inference-economics.js +0 -53
  57. package/scripts/knowledge-layer-plan.js +0 -108
  58. package/scripts/memory-store-governance.js +0 -60
  59. package/scripts/post-training-governance.js +0 -34
  60. package/scripts/production-agent-readiness.js +0 -40
  61. package/scripts/scaling-law-claims.js +0 -60
  62. package/scripts/student-consistent-training.js +0 -73
@@ -1,73 +0,0 @@
1
- 'use strict';
2
-
3
- function buildStudentConsistentTrainingPlan(options = {}) {
4
- const student = options.student || 'target-agent-policy';
5
- const teacher = options.teacher || 'frontier-reviewer';
6
- const dataset = options.dataset || 'thumbgate-feedback-lessons';
7
- const holdout = options.holdout || 'feedback-gate-holdout';
8
-
9
- return {
10
- method: 'student_consistent_synthetic_sft',
11
- dataset,
12
- teacher,
13
- student,
14
- generationContract: {
15
- teacherRole: 'adds capability tokens: corrected decision, missing evidence, safer action',
16
- studentRole: 'preserves target agent style: terse format, tool discipline, gate vocabulary',
17
- rejectIf: [
18
- 'teacher rewrites the answer into unsupported style',
19
- 'lesson cannot be traced to source feedback',
20
- 'sample contains secrets or private customer context',
21
- 'sample teaches a shortcut that bypasses evidence gates',
22
- ],
23
- },
24
- requiredArtifacts: [
25
- 'source feedback id',
26
- 'student baseline response',
27
- 'teacher correction',
28
- 'student-consistent final sample',
29
- 'redaction report',
30
- 'holdout eval result',
31
- ],
32
- evals: {
33
- holdout,
34
- compareAgainst: ['raw_teacher_sft', 'self_distill_only', 'no_training_baseline'],
35
- metrics: ['gate_precision', 'gate_recall', 'unsupported_claim_rate', 'style_drift_rate'],
36
- },
37
- };
38
- }
39
-
40
- function evaluateStudentConsistentTrainingSample(sample = {}) {
41
- const issues = [];
42
-
43
- if (!sample.sourceFeedbackId) issues.push('missing_source_feedback_id');
44
- if (!sample.studentBaseline) issues.push('missing_student_baseline');
45
- if (!sample.teacherCorrection) issues.push('missing_teacher_correction');
46
- if (!sample.finalSample) issues.push('missing_final_sample');
47
- if (!sample.redacted) issues.push('redaction_required');
48
- if (!sample.holdoutEval) issues.push('holdout_eval_required');
49
-
50
- const text = [
51
- sample.studentBaseline,
52
- sample.teacherCorrection,
53
- sample.finalSample,
54
- ].filter(Boolean).join('\n');
55
- if (/(api[_-]?key|secret|token|password)\s*[:=]/i.test(text)) {
56
- issues.push('secret_like_content');
57
- }
58
-
59
- if (sample.styleDriftRate !== undefined && Number(sample.styleDriftRate) > 0.15) {
60
- issues.push('style_drift_too_high');
61
- }
62
-
63
- return {
64
- decision: issues.length ? 'warn' : 'allow',
65
- issues,
66
- onPolicy: !issues.includes('style_drift_too_high') && Boolean(sample.studentBaseline),
67
- };
68
- }
69
-
70
- module.exports = {
71
- buildStudentConsistentTrainingPlan,
72
- evaluateStudentConsistentTrainingSample,
73
- };