@vaultfire/a2a Test Results
===========================
Date: 2026-01-01
Node: >=18
TypeScript: 5.x
Jest: 29.x

TypeScript Compilation (tsc --noEmit)
--------------------------------------
PASS — zero errors

TypeScript Build (tsc)
-----------------------
PASS — dist/ generated successfully:
  dist/index.js, dist/index.d.ts
  dist/types.js, dist/types.d.ts
  dist/enrich.js, dist/enrich.d.ts
  dist/middleware.js, dist/middleware.d.ts
  dist/discover.js, dist/discover.d.ts
  (+ .js.map and .d.ts.map for all)

Jest Test Results
-----------------
Test Suites: 3 passed, 3 total
Tests:       56 passed, 56 total
Snapshots:   0 total
Time:        9.574 s

PASS tests/enrich.test.ts (6.749 s)
  calculateStreetCred
    ✓ returns 0 for unregistered agent (2 ms)
    ✓ returns score for active agent with no bonds or reputation
    ✓ adds bond score (5 pts per active bond, max 30)
    ✓ caps bond score at 30 points (6 bonds max)
    ✓ adds bridge recognition bonus (1 ms)
    ✓ never exceeds 95
  buildExtensionData
    ✓ builds correct extension data structure (14 ms)
    ✓ calculates averageRating correctly (stored as x100)
    ✓ handles zero reputation gracefully
  enrichAgentCard (live RPC)
    ✓ enriches an Agent Card for deployer on Base (610 ms)
    ✓ enriches an Agent Card for deployer on Avalanche (795 ms)
    ✓ enriches an Agent Card for deployer on Arbitrum (864 ms)
    ✓ enriches an Agent Card for deployer on Polygon (837 ms)
    ✓ throws on invalid address (20 ms)
    ✓ throws on unsupported chain (1 ms)
    ✓ preserves all original Agent Card fields (741 ms)
  verifyAgentCard (live RPC)
    ✓ returns a VerificationResult for a freshly enriched card (377 ms)
    ✓ returns untrusted for a card with no x-vaultfire extension
    ✓ returns untrusted for a card with invalid schema (1 ms)

PASS tests/types.test.ts
  AgentCard Schema Validation
    ✓ validates a valid Agent Card (1 ms)
    ✓ requires name field
    ✓ requires url field (1 ms)
    ✓ validates url format
    ✓ allows optional fields to be missing (1 ms)
    ✓ validates capabilities sub-fields
    ✓ validates skills array
  VaultfireExtensionData Schema Validation
    ✓ validates a complete extension object (1 ms)
    ✓ rejects invalid chain
    ✓ rejects invalid Ethereum address (1 ms)
    ✓ rejects score > 95
    ✓ rejects non-ISO timestamp (1 ms)
    ✓ rejects averageRating > 5
    ✓ accepts all supported chains (1 ms)
  CHAIN_CONFIGS
    ✓ has all supported chains
    ✓ has correct chain IDs (2 ms)
    ✓ has valid RPC URLs
    ✓ has all contract addresses for each chain (1 ms)
    ✓ has correct Base contract addresses (2 ms)
    ✓ has correct Avalanche contract addresses
  Street Cred Tiers
    ✓ has correct tier boundaries
    ✓ getStreetCredTier returns correct tier for each range

PASS tests/discover.test.ts
  getTotalAgentCount (live RPC)
    ✓ returns a non-negative number for Base (100 ms)
    ✓ returns a non-negative number for Avalanche (210 ms)
    ✓ returns a non-negative number for Arbitrum (142 ms)
    ✓ returns a non-negative number for Polygon (103 ms)
  isAgentRecognized (live RPC)
    ✓ returns boolean for deployer address on Base (93 ms)
    ✓ returns boolean for deployer address on Avalanche (131 ms)
    ✓ returns boolean for deployer address on Arbitrum (120 ms)
    ✓ returns boolean for deployer address on Polygon (226 ms)
  discoverTrustedAgents (live RPC)
    ✓ returns an array (possibly empty) on Base (96 ms)
    ✓ returns agents sorted by Street Cred score descending (91 ms)
    ✓ filters by minStreetCred (93 ms)
    ✓ respects the limit parameter (96 ms)
    ✓ each discovered agent has required fields (92 ms)
    ✓ throws on unsupported chain (8 ms)
  Contract Address Validation
    ✓ all contract addresses are valid checksummed Ethereum addresses (2 ms)

All 56 tests passed with zero failures.
Live RPC calls verified deployer address 0xfA15Ee28939B222B0448261A22156070f0A7813C
on all 4 chains: Base, Avalanche, Arbitrum, Polygon.
