Логотип Draft Tool Trust Verifier

Draft Tool Trust Verifier

Спільнота
AnthonyAlcaraz
draft-tool-trust-verifier

Establish trust in a tool by verification, not by its self-description. Flags marketing-gamed tool descriptions ("industry-leading", "trusted by Fortune 500"), requires structured testable capabilities instead of free-text claims, tracks a performance-based trust score (neutral start, successes up, failures and slow calls down), and runs the DRAFT loop — gather boundary-probing experience, learn the gap between documentation and reality, rewrite an AI-optimized spec — until the doc converges with actual behavior. Use when a tool registry ingests third-party or provider-authored descriptions that may be optimized for discovery over accuracy. NOT for tools you authored and fully control, NOT a functional test framework (it discovers doc-vs-reality gaps, it does not assert business correctness), NOT a security scanner.

Огляд

ВидавецьAnthonyAlcaraz
Репозиторійagentic-graph-rag-skills
Назва навичкиdraft-tool-trust-verifier
Зірки
29
Форки
9
Файли в пакеті
3
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: AnthonyAlcaraz. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Draft Tool Trust Verifier у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/tool-orchestration/draft-tool-trust-verifier
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills.git /tmp/agentic-graph-rag-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-graph-rag-skills/skills/tool-orchestration/draft-tool-trust-verifier .claude/skills/draft-tool-trust-verifier
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Draft Tool Trust Verifier в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Draft Tool Trust Verifier, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Draft Tool Trust Verifier не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

DRAFT Tool-Trust Verifier

Overview

Tool discovery that depends on descriptions has a failure mode the chapter names directly: providers optimize descriptions for DISCOVERY, not accuracy. "Most effective solution." "Trusted by Fortune 500." "Industry-leading performance." When every tool claims to be the best, keyword-gamed descriptions defeat the retrieval algorithms — surfacing the best marketers rather than the best tools. At scale (thousands of tools) you cannot manually verify claims.

The chapter's answer is verification-based trust, on two mechanisms:

  1. Structured, verifiable capabilities. A tool does not get to claim it "analyzes customer sentiment with unparalleled accuracy." It declares the capability sentiment_analysis with specific input and output types that can be tested.
  2. Performance-based trust scores. Every tool begins neutral. Successful executions raise trust; failures, high latency, or degradations lower it. The orchestrator learns to prioritize tools that are consistently reliable.

Baidu's DRAFT (Documentation Refinement through Automated Feedback and Testing) operationalizes this as a continuous learning loop that mirrors how a developer learns a new API:

  • Experience Gathering — an explorer probes tool boundaries, seeks edge cases, maps failure modes, and enforces diversity to avoid redundant tests.
  • Learning from Experience — analyze the gap between documentation and reality (claims "any text input" but fails on Unicode; undocumented payload-size latency). Systematic discovery of true capabilities, not error logging.
  • Documentation Rewriting — generate an AI-optimized spec reflecting the discovered reality: parameter types, ranges, error conditions, real performance. Iterate until the doc converges with actual behavior.

DRAFT sidesteps the trust problem: why worry about providers gaming descriptions when your system discovers the truth anyway? This parallels Writer's gateway, which rewrites descriptions preemptively (before deployment) rather than iteratively (after observing failures) — both treat tool descriptions as an active interface, not static metadata.

When to Use

  • A tool registry ingests provider-authored or third-party descriptions
  • Retrieval keeps surfacing "best-marketed" tools that then underperform
  • You want a trust score to rank functionally-equivalent tools by reliability
  • You are onboarding a new tool and its documentation is human-friendly prose, not an agent-parseable spec

Phrases that invoke this skill: "verify what this tool does", "the tool description is gamed", "trust score", "DRAFT", "rewrite the tool docs", "doc vs reality".

When NOT to Use

  • Tools you authored and fully control — you already know the true behavior; write the structured spec directly.
  • As a functional test framework. DRAFT discovers doc-vs-reality gaps (constraints, error conditions, performance); it does not assert business correctness. Keep your unit/integration tests.
  • As a security scanner. It measures capability and reliability, not vulnerability. Pair with agent-shield / SkillSpector for security.
  • When there is no gap to find — a tool whose docs already match its behavior converges immediately; DRAFT adds nothing.

Process

StepInputActionOutputVerification
1Tool JSON (claimed_description + declared_capabilities + behavior)lib.load_tool_under_test(path)Tool dictHas claimed_description and a behavior model
2Tool dictlib.verify_claims(tool)Marketing-phrase flags + structured-capability countGamed phrases flagged; verifiable True only if every capability has name+input_types+output_types
3Execution historylib.TrustScore().record(success, latency_ms) per callEvolving trust scoreNeutral 0.5 start; successes up, failures + slow calls down
4Tool + probe setlib.gather_experience(tool, probes)Observations (success/latency/error)Duplicate probes deduped (diversity enforced)
5Tool + observationslib.learn_from_experience(tool, obs)Doc-vs-reality gap reportDiscovered error conditions + gap_over_promises_any_text
6Tool + learninglib.rewrite_documentation(tool, learning)AI-optimized refined specRefined spec lists real constraints + performance, drops marketing
7Tool + probeslib.run_draft(tool, probes)Full gather→learn→rewrite resultRefined spec's error_conditions match discovered failures

Rationalizations

Agent rationalizationDocumented rebuttal
"The tool description says it handles any text input — trust it."DRAFT's worked example is exactly this: a tool claims "any text input" but fails on Unicode. Descriptions are gamed for discovery; probe the boundary before trusting the claim.
"Free-text capability descriptions are fine."The chapter requires structured, enumerable capabilities with input/output types precisely because free text cannot be tested. verify_claims flags a capability with null input_types as unverifiable.
"One trust score for the tool is enough — reliability is fixed."Trust is performance-based and evolves: successes up, failures and slow calls down. A tool that degrades (technical debt, maintenance windows) must lose trust over time, not keep a stale score.
"Just log the errors when the tool fails."Learning-from-experience is systematic discovery of TRUE capabilities, not error logging. It converts observed failures into refined constraints (max length, ASCII-only) that reshape future selection.
"Rewriting docs is the provider's job."Raw provider docs are written for humans and cause tool-calling errors when used as-is (Writer's finding). The rewrite — preemptive or iterative — is what makes the description an accurate agent interface.

Red Flags

  • A capability with input_types: null marked verifiable. The structured- capability check is broken; unverifiable free-text is passing.
  • DRAFT reports converged: true on a tool with known undocumented limits. The probe set is not diverse enough — it never hit the boundary. Add edge-case probes (empty, oversized, non-ASCII).
  • Trust score never moves. record is not being called on real execution outcomes; the score is decorative.
  • Refined spec still contains marketing language. The rewrite copied the claim instead of assembling from observations.
  • CLI --help exits non-zero. SKILL.md / CLI mismatch; multi-harness invariant broken.

Non-Negotiable Verification

  1. Run the benchmark battery.

    python cli.py benchmark

    Confirm marketing phrases are flagged, capabilities are NOT fully verifiable (the sample's second capability has null input_types), the three undocumented constraints are discovered, and a flaky-tool history drives trust below 0.5.

  2. Prove the gap is discovered, not assumed.

    python cli.py learn

    The claim says "any text input"; the learning report must show gap_over_promises_any_text: True with the discovered error conditions.

  3. Prove the refined spec drops marketing.

    python cli.py rewrite

    The refined description states real constraints and performance; it contains none of the flagged marketing phrases.

  4. JSON round-trips.

    python cli.py draft --json | python -c "import json,sys; json.load(sys.stdin)"

Security Posture

  • Prompt injection. A gamed description can embed instructions. This skill never trusts the description for behavior — it probes the tool. The # TODO(production): seam in TrustScore.record marks where SLO-weighted penalties and observation decay go; the explorer's probe issuance is the production seam where real (sandboxed) calls replace _simulate.
  • Data exfiltration. No network calls in lib.py; behavior is simulated from declarative rules. In production, run the explorer's probes in a sandbox so boundary-probing cannot trigger real side effects.
  • Privilege escalation. DRAFT probes should be read-only / idempotent — boundary exploration must not invoke destructive tool operations. Gate probe generation behind the same sensitive-action policy as information-flow-control-gate.

Composition

  • Feeds skill-quality-evaluator and retrieval: the DRAFT-refined description improves search accuracy, and the trust score is a ranking signal for functionally-equivalent tools.
  • Feeds hierarchical-orchestration-router functional clustering — DRAFT- refined representations are what the clusterer embeds ("embed tools based on what they do, not what they claim").
  • Pairs with information-flow-control-gate — DRAFT learns what a tool does; IFC governs what data may flow into it.
  • Parallels the MCP Gateway's preemptive description rewrite (Palmyra X5); DRAFT is the iterative, post-observation form of the same insight.

Source Attribution

Distilled from Agentic GraphRAG (O'Reilly), Chapter 6 — Tool Orchestration, sections "The Trust Problem: When Tools Game the System", "Verification-based trust", and "DRAFT: Learning what tools actually do". Named references:

  • Baidu AI Search Paradigm — DRAFT (Documentation Refinement through Automated Feedback and Testing); three-phase loop
  • Writer enterprise MCP gateway — preemptive description rewrite (Palmyra X5), the same insight applied before deployment rather than after

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Draft Tool Trust Verifier?

Establish trust in a tool by verification, not by its self-description. Flags marketing-gamed tool descriptions ("industry-leading", "trusted by Fortune 500"), requires structured testable capabilities instead of free-text claims, tracks a performance-based trust score (neutral start, successes up, failures and slow calls down), and runs the DRAFT loop — gather boundary-probing experience, learn the gap between documentation and reality, rewrite an AI-optimized spec — until the doc converges with actual behavior. Use when a tool registry ingests third-party or provider-authored descriptions...

Навіщо використовувати Draft Tool Trust Verifier у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Draft Tool Trust Verifier — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Draft Tool Trust Verifier у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/tool-orchestration/draft-tool-trust-verifier. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Draft Tool Trust Verifier?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Draft Tool Trust Verifier?

Зі скількома забажаєте. У TypingMind ви можете використовувати Draft Tool Trust Verifier із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Draft Tool Trust Verifier?

Так. На GitHub цю навичку публікує AnthonyAlcaraz за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇