Hardening/e2e critical path tests#496
Merged
Devsol-01 merged 10 commits intoDevsol-01:mainfrom Mar 28, 2026
Merged
Conversation
added 10 commits
March 28, 2026 22:06
…nfirm, release, dispute)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Hardening: E2E Tests, Observability, Governance & Frontend Components
Closes #426
Closes #425
Closes #424
Closes #427
Changes
1. E2E Critical Path Tests (#177)
backend/test/critical-path.e2e-spec.ts2. Request Correlation & Audit Logging (#181)
CorrelationIdInterceptor: Generates/forwards X-Correlation-ID headersAuditLogInterceptor: Logs structured audit entries for mutationsAuditLogwith indexed fields for fast queryingCreateAuditLogsTablewith 5 indices for performance3. Code Ownership & Governance (#180)
4. Frontend Component (#105)
Key Features
Observability
Testing
Governance
Commits
observability: add correlation ID interceptor for request tracingobservability: add audit log interceptor for mutation trackingobservability: add AuditLog entity for structured audit loggingobservability: add migration for audit_logs table with indicesobservability: register correlation ID and audit log interceptors globallyhardening: add E2E tests for critical trade pathgovernance: add CODEOWNERS file with critical path ownershipgovernance: add CONTRIBUTING.md with code ownership policyobservability: add incident tracing runbook with correlation ID usage guidefeat: add ContractDetailsCard component with contract details and loss ratio displayTesting
npm run test:e2eAcceptance Criteria Met
✅ E2E suite covers create, deposit, confirm, release, dispute flows
✅ Tests validate API, DB, and business logic integration
✅ Correlation IDs trace requests through entire system
✅ Audit logs include endpoint, actor, resource, request ID
✅ CODEOWNERS enforces required reviews on critical paths
✅ Governance policy documented in CONTRIBUTING.md
✅ Incident tracing runbook provided in OBSERVABILITY.md
✅ ContractDetailsCard displays contract details and loss ratio