Skip to content

feat: add Truth Bear fact-verification action provider - #1473

Open
CHANGCHINFU wants to merge 1 commit into
coinbase:mainfrom
CHANGCHINFU:feat/truthbear-verify-action
Open

feat: add Truth Bear fact-verification action provider#1473
CHANGCHINFU wants to merge 1 commit into
coinbase:mainfrom
CHANGCHINFU:feat/truthbear-verify-action

Conversation

@CHANGCHINFU

Copy link
Copy Markdown

Summary

  • Add truthbearActionProvider — verifies facts against 180+ official government and institutional data sources (USGS, NOAA, SEC EDGAR, EPA, FRED)
  • Free /trust/preview endpoint: no API key, no wallet, no signup required
  • Each response includes signal name, value, source URL, SHA-256 record_hash (Bitcoin-anchored via OpenTimestamps), and freshness timestamp
  • Network-agnostic (pure API, no on-chain interaction for free preview)

Files

File Purpose
truthbear/schemas.ts Zod input schema (query string)
truthbear/truthbearActionProvider.ts Action provider with truthbear_verify action
truthbear/truthbearActionProvider.test.ts 6 unit tests (success, error, network error, empty, partial, supportsNetwork)
truthbear/index.ts Re-export
index.ts Added truthbear export (alphabetical order)

Design

Follows the defillama pattern — wallet-free ActionProvider with supportsNetwork() → true. Single action truthbear_verify calls GET /trust/preview?q={query} and formats the response as human-readable lines.

Also available as:

Test plan

  • Unit tests cover success, HTTP error, network error, empty response, partial response, and supportsNetwork
  • Manual test with AgentKit + Claude Desktop

🤖 Generated with Claude Code

Add truthbear action provider for verifying facts against 180+ official
government and institutional data sources (USGS, NOAA, SEC EDGAR, EPA,
FRED). Free preview endpoint — no API key, wallet, or signup required.

Each response includes a SHA-256 record_hash for tamper-proof provenance
anchored to Bitcoin via OpenTimestamps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@github-actions github-actions Bot added action provider New action provider typescript labels Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants