Round 1 against STRATEGY-2026-10-23.md's backlog: - Wire register_agent/stake/set_credit_score/deposit_liquidity to the real Casper Testnet contracts (lib/casper/live_bridge.ts), verified live against the real RPC node with a freshly generated (unfunded) keypair (npm run casper:keygen). Honesty flags built in for the Odra payable calling convention and the admin-gated set_credit_score call. - Unblock NEAR's paid x402 route (npm run near:keygen generates a real implicit account id); QIE stays correctly flagged as blocked on unconfirmed external facts (asset contract, facilitator), not env plumbing. - New public Home tab: live-stats hero, how-it-works, a real competitor comparison table, and a "90-second proof" that calls the real API live in the browser (verified end-to-end with gstack browse). - Cold-start UX: visible retry state in X402Playground + the TS SDK, plus a keep-warm self-ping (lib/services/keepalive.ts) so the free Render dyno rarely idles out from under a real first-time caller. - New GET /v1/credit-score/:agentId alias + docs/integrations/ samples for Skyfire/Nevermined/Coinbase x402. - Self-hosting quickstart: root docker-compose.yml + scripts/bootstrap.sh, both run for real; fixed a real EACCES crash-loop bug in infra/Dockerfile (non-root user never owned the /data volume mount) found while verifying. 450/450 tests pass, typecheck clean, frontend build clean.
Cred402 infrastructure
Production deployment artifacts for the API + console and the Go event indexer.
Contents
Dockerfile multi-stage image: builds the console, runs the API (tsx) as non-root, healthchecked
docker-compose.yml local prod-like stack: api (durable journal) + indexer + postgres
helm/cred402/ Helm chart (deployment, service, ingress, hpa, pvc, secret-ref) — `helm lint` clean
terraform/ cloud-agnostic module: namespace + secret + helm_release onto any K8s cluster
Run locally
export CRED402_ADMIN_API_KEY=$(openssl rand -hex 24)
docker compose -f infra/docker-compose.yml up --build
# API on :4021 (auth on), indexer writes /data/projections.json, postgres on :5432
Deploy to Kubernetes
# 1. create the secret the chart references (or let Terraform do it)
kubectl create secret generic cred402-secrets \
--from-literal=CRED402_ADMIN_API_KEY=... \
--from-literal=CRED402_WEBHOOK_SECRET=...
# 2a. Helm directly
helm upgrade --install cred402 infra/helm/cred402 -n cred402 --create-namespace \
--set image.tag=0.1.0 --set ingress.enabled=true --set ingress.host=api.example
# 2b. or via Terraform
cd infra/terraform
terraform init && terraform apply \
-var admin_api_key=... -var webhook_secret=... -var environment=testnet
Configuration
All runtime config is environment-driven and validated at boot
(lib/gateway/config.ts) — the API refuses to start on testnet/mainnet without
the required secrets. Liveness/readiness use GET /v1/health. State is persisted
to the CRED402_DATA_DIR volume as an append-only event journal the indexer
consumes.