Add x402 product API - #10
Conversation
f18632e to
459b92e
Compare
|
Deployed commit 9858386 to AWS ECS task definition lecore-x402-api:8. Live verification on https://lecore.rati.foundation: /health 200 with private tenants enabled; /pricing lists regular $0.0011 and leOS $0.0010 routes; /v1/dashboard returns x402 402 amount 1100; /leos/v1/dashboard returns x402 402 amount 1000; admin tenant-token and admin tenant memory smoke tests returned 200 using AWS Secrets Manager-backed secrets. |
|
Follow-up deploy: wired durable tenant state to EFS. ECS is now on lecore-x402-api:9 with EFS fs-0692f704e0d5a6eef mounted at /data/tenants through access point fsap-0ba4691cb609a92a3, and LECORE_X402_TENANT_STATE_DIR=/data/tenants. Verified persistence by writing tenant efs-smoke-20260712-1118 before forced task replacement (memory id m1), forcing ECS replacement, then writing the same tenant again and receiving memory id m2. /health and /pricing remain healthy; rollout completed. |
491259d to
cbb4aed
Compare
…PIPELINE_MAP, FACULTY_MAP, DOC_MAP) [skip ci]
…PIPELINE_MAP, FACULTY_MAP, DOC_MAP) [skip ci]
…PIPELINE_MAP, FACULTY_MAP, DOC_MAP) [skip ci]
What changed
This adds a narrow product-facing leCore surface and a hardened x402 API publisher:
LocalAgentCoreremains the embedded/in-process SDK; the hosted product is consistently presented as the leCore Agent Memory & Routing API.Payment-Required,Payment-Signature, andPayment-Response./admin/*routes remain mounted but are not advertised.Hostor forwarded-protocol headers.The developer preview remains on Base Sepolia at
$0.0011per request. The superseded leOS discounted routes and offer metadata are intentionally removed.Validation
git diff --checkpassed.Deployment
Production is steady on ECS task definition
lecore-x402-api:15, pinned to image digestsha256:e5de7f1a46ece274bafb4b4dfc7a4a57653251d13f36da06341dc5bd5d8b041a.Live verification passed for the revised landing page, Swagger, ReDoc, typed OpenAPI, health, pricing, the canonical JSON
/v1/dashboardchallenge, and the SDK browser wallet page. ECS reports one running task, no pending tasks, one healthy ALB target, the exact pinned digest, and zeroERROR,Traceback, orExceptionlog matches during the rollout. Revision 14 and its prior digest remain available for rollback.The deployed application commit is
bfe83d9; the later branch commits change generated reference documentation and its deterministic ordering only.