Skip to content

RayVerify platform foundation: schema, engines, dashboard, infrastructure & documentation#1

Merged
durga710 merged 16 commits into
mainfrom
Durgas-Mac-mini
Jun 11, 2026
Merged

RayVerify platform foundation: schema, engines, dashboard, infrastructure & documentation#1
durga710 merged 16 commits into
mainfrom
Durgas-Mac-mini

Conversation

@durga710

Copy link
Copy Markdown
Owner

Summary

Foundation release for RayVerify™ — a government-grade fraud detection & identity
verification platform for Medicaid, HCBS, and personal-care programs (parent: RayHealthEVV™).

Included

  • Data model: Prisma schema (22 tables) + production PostgreSQL DDL — monthly partitioning,
    row-level-security tenant isolation, append-only evidence, tamper-evident audit hash chain
  • NestJS backend: auth (JWT/MFA/RBAC), identity verification (selfie + liveness), visit
    verification chain, fraud engine (rule detectors + explainable score fusion), case
    management, provider risk scoring, immutable audit center, reports, hardware SDK layer
  • Next.js 15 investigator dashboard (11 routes)
  • OpenAPI 3.1 contract + live Swagger UI
  • Terraform AWS stack (7 modules) and CI/CD with security scanning
  • 12 architecture & compliance documents (HIPAA / NIST 800-63 / SOC 2 / CMS EVV)
  • HANDOFF.md — developer onboarding and roadmap

Verification

✅ TypeScript clean · ✅ ESLint zero warnings · ✅ 9/9 tests · ✅ production builds

Known gaps (HANDOFF.md §8)

Stub identity matcher, 6 of 13 detectors implemented, async workers pending,
Prisma migrations not yet generated, frontend on mock data.

durga710 added 7 commits June 10, 2026 00:09
- Generate Prisma client; backend typecheck/lint/test/build all green (9 tests)
- Frontend typecheck + next build green (11 routes); fix Server/Client boundary
  in DataTable, eslint config, unused imports, tsconfig baseUrl
- Enable esModuleInterop, fix CORS default, RLS extension lint
- Commit package-lock.json; make frontend CI job blocking
- HANDOFF.md: full onboarding for incoming developer (setup, architecture,
  verified state, known gaps, first-two-weeks plan)
- PrismaService.forRequest(): use batch $transaction so set_config binds to
  the same connection as the query (Prisma's documented RLS pattern)
- AuthService: await Prisma calls inside TenantContext.run scopes
- CI: restore npm ci (lockfile is committed)
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread .github/workflows/ci.yml
Comment on lines +15 to +61
name: Backend (lint · typecheck · test · build)
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: rayverify
POSTGRES_PASSWORD: rayverify
POSTGRES_DB: rayverify_test
ports: ['5432:5432']
options: >-
--health-cmd "pg_isready -U rayverify"
--health-interval 5s --health-timeout 5s --health-retries 10
redis:
image: redis:7-alpine
ports: ['6379:6379']
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s --health-timeout 5s --health-retries 10
env:
DATABASE_URL: postgresql://rayverify:rayverify@localhost:5432/rayverify_test?schema=public
REDIS_URL: redis://localhost:6379
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Generate Prisma client
run: npm run prisma:generate --workspace @rayverify/backend
- name: Lint
run: npm run lint --workspace @rayverify/backend
- name: Typecheck (shared + backend)
run: |
npm run typecheck --workspace @rayverify/shared
npm run typecheck --workspace @rayverify/backend
- name: Unit tests
run: npm run test --workspace @rayverify/backend
- name: Apply schema (migrations + physical SQL)
run: |
npm run prisma:migrate:dev --workspace @rayverify/backend -- --name ci --skip-seed || true
node packages/backend/scripts/apply-sql.js || true
- name: Build
run: npm run build --workspace @rayverify/backend

frontend:
Comment thread .github/workflows/ci.yml
Comment on lines +62 to +74
name: Frontend (typecheck · build)
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: '1'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run typecheck --workspace @rayverify/frontend
- run: npm run build --workspace @rayverify/frontend
- uses: actions/checkout@v4
- id: meta
run: echo "tag=${GITHUB_SHA::12}" >> "$GITHUB_OUTPUT"
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_DEPLOY_ROLE_ARN }}
aws-region: ${{ vars.AWS_REGION }}
- uses: aws-actions/amazon-ecr-login@v2
environment: ${{ github.event.inputs.environment || 'staging' }}
steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4
Comment thread .github/workflows/security-scan.yml Fixed
Comment thread .github/workflows/security-scan.yml Fixed
Comment thread .github/workflows/security-scan.yml Fixed
Comment thread .github/workflows/security-scan.yml Fixed
Comment thread .github/workflows/security-scan.yml Fixed
steps:
- uses: actions/checkout@v6
- name: Trivy filesystem scan
uses: aquasecurity/trivy-action@v0.36.0
@durga710
durga710 merged commit 0551758 into main Jun 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants