2xx without a readable receipt: make on-chain confirmation the default when an RPC is available
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- blockchain, payments
Línea de trabajo
The payload names no files. Start from the SDK code that handles a 2xx response, the confirmAuthorization option and usdcAuthorizationCheck, and the payment.confirmed field. The issue calls for auto-wiring the on-chain check when a public client or RPC URL is given, and returning a 2xx without a receipt as confirmed = false instead of resending. Done means Glim-style, CoinMarketCap-style and genuine-failure tests pass, and the settlement_pending / settlement_unknown invariant still holds. Treat this as design work and discuss the approach before coding.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Some merchants deliver the resource with a 200 but no standard PAYMENT-RESPONSE:
- Glim (surf.cascade.fyi) sends none;
- CoinMarketCap and JustaName send non-standard ones.
Without confirmAuthorization, the client resends the same proof. The merchant then refuses it (402 invalid_payload / "nonce already used"), and the content that was already paid for is lost. With confirmAuthorization, the SDK checks authorizationState on-chain and returns the response (confirmedOnChain: true).
The MCP server now enables this by default (agent-pay-mcp 0.2.0, confirmOnChain). Proposal for the SDK:
- When the caller passes a public client or RPC URL for the network, wire
usdcAuthorizationCheckautomatically. - Otherwise, return a 2xx without a receipt with
payment.confirmed = falseinstead of resending. The resource was delivered, and a resend can only be refused.
This needs care with the never-sign-twice invariant (settlement_pending / settlement_unknown). Tests should cover Glim-style (no header), CoinMarketCap-style (non-standard) and a genuine failure.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 3 h 51 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DeepFirstHQ/deepfirstsearch
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
DeepFirstHQ/deepfirstsearch#40 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 42/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
Todos los issues de DeepFirstHQ/deepfirstsearch
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/playwright#43327 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/TypeScript#64758 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
opensearch-project/OpenSearch-Dashboards#12937 ·
Los mantenedores suelen responder en 2 días
-
Liveness marks block-included attesters live in the block's epoch instead of the attestation's epochAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
status: needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
a2ui-project/a2ui#3158 ·
Los mantenedores suelen responder en 2 días