feat(agentkit): add OSF action provider for sanctions/entity/CVE data#1356
Open
onefreeman1337 wants to merge 1 commit into
Open
feat(agentkit): add OSF action provider for sanctions/entity/CVE data#1356onefreeman1337 wants to merge 1 commit into
onefreeman1337 wants to merge 1 commit into
Conversation
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an OSF (Open Source Filings) action provider giving agents three paid, provenance-stamped data tools over x402 (USDC on Base mainnet):
lookup_entity($0.01) — entity / counterparty verification (KYC/KYB) via CMS NPI, GLEIF LEI, FDIC, and SEC EDGAR.screen_entity($0.05) — sanctions screening against OFAC SDN, EU consolidated, and UK OFSI lists (AML/KYC).check_cve_exploited($0.02) — CVE exploitation check via CISA KEV, EPSS score, and CVSS severity (DevSecOps).Every result carries a provenance URL to the authoritative primary source (and, for sanctions, an audit receipt), so an agent can justify a decision to an auditor or regulator. Payment is automatic per request via x402, with a per-call spend ceiling enforced by the
max_amountpolicy. OSF settles on Base mainnet only.How it works
Each action is a
@create_actiononOsfActionProvider(ActionProvider[EvmWalletProvider]). Paid calls use the x402 client (x402ClientSync+register_exact_evm_client+x402_requests); the OSF endpoint replies402, the client signs and settles the USDC micropayment with the agent's wallet, then retries and returns the record plus the on-chain payment proof.Testing
tests/action_providers/osf/) — provider name, network support, action names, URL encoding, success/non-200/exception handling. All passing.ruff formatandruff checkclean.screen_entitycall settled on-chain — settlement tx0xb7426254fc4eaab16d0812fcd94ff5ef5feee9a740ec809667ba3edcc0eb161d(eip155:8453), returning a verified sanctions record with a provenance URL.Network support
Base mainnet (
base-mainnet/ eip155:8453).More on OSF: https://api.osf-master-server.com/mcp