Repository navigation
Reject stale payment decisions at signed submission - #281
Merged
karagozemin merged 2 commits intoOct 1, 2026
Conversation
|
@emirykl Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test evidence
git diff --checkpassed.src/lib/security/analyzer.tsandsrc/lib/auth/use-auth-session.ts; full lint also reports unrelated directive errors insrc/lib/observability/metrics.test.ts.Fixes #258
Verification
Focused Vitest suite: 54 passed; final end-to-end rerun: 5 passed. Horizon was mocked.git diff --check: passed.Repository-wide lint and type checks failed on pre-existing syntax errors in analyzer.ts and use-auth-session.ts. Focused ESLint passed before the final assertion and UI reset; its final rerun stalled.Diagnostics
Recovered command failures:
/bin/zsh -lc 'rg -n "quote|decision|auditEntry|expiry|expires|now|Date" src/lib/decision/engine.ts src/app/api/decision/route.ts src/app/api/stellar/build-payment/route.ts src/app/api/stellar/submit-signed/route.ts src/lib/validation/stellar* src/lib/storage/audit-store.ts src/components/decision-console.tsx'(1),/bin/zsh -lc 'npm test -- src/app/api/stellar/e2e-decision-build-submit.test.ts src/app/api/stellar/submit-signed-idempotency.test.ts src/app/api/stellar/submit-signed/route.test.ts src/app/api/stellar/build-payment/route.test.ts src/lib/stellar/verify-payment-quote.test.ts'(1),/bin/zsh -lc 'npx tsc --noEmit'(2),/bin/zsh -lc 'npm run lint'(1),/bin/zsh -lc 'npm test -- src/app/api/stellar/e2e-decision-build-submit.test.ts src/app/api/stellar/build-payment/route.test.ts src/app/api/stellar/submit-signed-idempotency.test.ts src/app/api/stellar/submit-signed/route.test.ts src/lib/stellar/verify-payment-quote.test.ts'(1),/bin/zsh -lc 'npx eslint src/app/api/decision/route.ts src/app/api/stellar/build-payment/route.ts src/app/api/stellar/build-payment/route.test.ts src/app/api/stellar/e2e-decision-build-submit.test.ts src/app/api/stellar/submit-signed-idempotency.test.ts src/app/api/stellar/submit-signed/route.ts src/app/api/stellar/submit-signed/route.test.ts src/components/decision-console.tsx src/lib/stellar/payment-build-authorization.ts src/lib/stellar/verify-payment-quote.ts src/lib/stellar/verify-payment-quote.test.ts src/lib/types/domain.ts src/lib/validation/schemas.ts'(130),/bin/zsh -lc 'git diff --check && git diff -- src/lib/types/domain.ts README.md'(2),/bin/zsh -lc 'npx eslint src/app/api/decision/route.ts src/app/api/stellar/build-payment/route.ts src/app/api/stellar/build-payment/route.test.ts src/app/api/stellar/e2e-decision-build-submit.test.ts src/app/api/stellar/submit-signed-idempotency.test.ts src/app/api/stellar/submit-signed/route.ts src/components/decision-console.tsx src/lib/stellar/payment-build-authorization.ts src/lib/stellar/verify-payment-quote.ts src/lib/stellar/verify-payment-quote.test.ts src/lib/types/domain.ts src/lib/validation/schemas.ts'(130),/bin/zsh -lc './node_modules/.bin/eslint src/lib/stellar/payment-build-authorization.ts src/lib/stellar/verify-payment-quote.ts src/app/api/stellar/e2e-decision-build-submit.test.ts src/app/api/stellar/submit-signed/route.ts'(130)Pre-existing failures
These checks also fail on
mainwithout this change, so they are not caused by this PR:/bin/zsh -lc 'npx eslint src/app/api/decision/route.ts src/app/api/stellar/build-payment/route.ts src/app/api/stellar/build-payment/route.test.ts src/app/api/stellar/e2e-decision-build-submit.test.ts src/app/api/stellar/submit-signed-idempotency.test.ts src/app/api/stellar/submit-signed/route.ts src/components/decision-console.tsx src/lib/stellar/payment-build-authorization.ts src/lib/stellar/verify-payment-quote.ts src/lib/stellar/verify-payment-quote.test.ts src/lib/types/domain.ts src/lib/validation/schemas.ts',/bin/zsh -lc './node_modules/.bin/eslint src/lib/stellar/payment-build-authorization.ts src/lib/stellar/verify-payment-quote.ts src/app/api/stellar/e2e-decision-build-submit.test.ts src/app/api/stellar/submit-signed/route.ts'