Skip to main content

Architecture

The Binary Networks platform has a browser app and an API. The API owns authentication, permissions, database transactions and file access. S.E.T questionnaire behavior is described in its module lifecycle.

ComponentStatusVerified scope
React and Vite web appMERGED, NOT DEPLOYEDReact dependency and Vite scripts. A:apps/web/package.json:6-20
NestJS and Fastify APIMERGED, NOT DEPLOYEDREST routes under /api, structured logs and generated request IDs. A:apps/api/src/app.ts:153-194
Postgres tenancyMERGED, NOT DEPLOYEDTenant login and schema; client scope inside a transaction. A:apps/api/src/db/client.ts:317-359,654-749
RDS and cacheLIVE ON STAGINGPostgres 16.13, private single-AZ RDS; encrypted ElastiCache. E:evidence-aws.md:49-52
Documents S3 bucketLIVE ON STAGINGVersioned, SSE-KMS, public access blocked; observed policy allows object IO only for API role. E:evidence-aws.md:54-55
WorkOS AuthKitMERGED, NOT DEPLOYEDGuard resolves sessions and checks declared permissions. Live login and MFA settings need app evidence. A:apps/api/src/auth/auth.guard.ts:256-300
API, migrate, cleanup and purge tasksLIVE ON STAGINGFour task families; API desired/running count 1. Task existence does not verify the application release. E:evidence-aws.md:42-45
Mover and extraction tasksAPPROVED, IN BUILDApproved work; evidence says roles are defined, not live. A:.set/work/decisions-2026-10-26.md:52-64 E:evidence-aws.md:46
Cloudflare request edgeNOT VERIFIEDAWS evidence verifies ALB origin-pull mTLS, but labels the Cloudflare request path inferred. Need DNS, proxy and health-check evidence. E:evidence-aws.md:40,99
Grafana box and CloudWatchLIVE ON STAGINGEC2 box, read roles and log group observed; loaded rules and dashboard remain unverified. E:evidence-aws.md:69,93-96
Bedrock AI expertAPPROVED, IN BUILDApproved design only; API task has no observed Bedrock permission. A:.set/work/decisions-2026-10-26.md:16-23,62-64 E:evidence-aws.md:87-88

Code topology below is MERGED, NOT DEPLOYED. AWS resources shown are observed as above; the Cloudflare edge remains NOT VERIFIED.

Approved additions (APPROVED, IN BUILD), not the running architecture:

Sources: A:.set/work/P2.23.md:37-99,117-195; A:.set/work/P2.22.md:75-183,223-267. See tenancy, files and AI expert for the boundaries and their limits.