Skip to content

FairScale integration: score, trust-gate, and credit reads over x402 - #118

Open
mizuki0x wants to merge 17 commits into
mainfrom
feat/fairscale
Open

FairScale integration: score, trust-gate, and credit reads over x402#118
mizuki0x wants to merge 17 commits into
mainfrom
feat/fairscale

Conversation

@mizuki0x

Copy link
Copy Markdown
Contributor

Read-only FairScale provider for Covenant: FairScore, trust-gate, and credit reads as labeled soft signals, each wrapped in a Covenant provenance attestation.

  • Client with fairkey + x402 payer support (v2 envelope, USDC on Solana mainnet, Dexter as facilitator). Per-read caps: $0.01 for score/trust-gate, $0.60 for credit; a quote above the cap fails the read before anything is signed.
  • Daemon wiring stays env-gated: oracle off by default, credit read separately gated by COVENANT_FAIRSCALE_CREDIT_ENABLED.
  • Live receipts: score and trust-gate settled at $0.005/read (2026-07-20/21); first credit read settled at $0.50 on 2026-07-21, signed attestation hash checked via /v1/verify-hash.
  • Examples: live_paid_read, live_credit_probe, probe_verify, probe_header_variant, all opt-in via FAIRSCALE_LIVE=1.

Opened for FairScale-side review of the client integration: header naming, envelope shape, and retry/settle semantics.

mizuki0x and others added 17 commits July 21, 2026 22:09
…cient-funds hint

The 'one paid read' example actually settles two x402 challenges
(score + trust-gate), ~$0.01/run; say so. When the facilitator
refuses a payment because the funder token account can't cover the
quoted amount, name the condition instead of only echoing truncated
simulator logs.
CI fmt --check was failing on drift in 9 files (most predating this
branch); validate.sh also flagged the stale metrics block. Full sweep
so the check is clean repo-wide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants