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.
| Component | Status | Verified scope |
|---|---|---|
| React and Vite web app | MERGED, NOT DEPLOYED | React dependency and Vite scripts. A:apps/web/package.json:6-20 |
| NestJS and Fastify API | MERGED, NOT DEPLOYED | REST routes under /api, structured logs and generated request IDs. A:apps/api/src/app.ts:153-194 |
| Postgres tenancy | MERGED, NOT DEPLOYED | Tenant login and schema; client scope inside a transaction. A:apps/api/src/db/client.ts:317-359,654-749 |
| RDS and cache | LIVE ON STAGING | Postgres 16.13, private single-AZ RDS; encrypted ElastiCache. E:evidence-aws.md:49-52 |
| Documents S3 bucket | LIVE ON STAGING | Versioned, SSE-KMS, public access blocked; observed policy allows object IO only for API role. E:evidence-aws.md:54-55 |
| WorkOS AuthKit | MERGED, NOT DEPLOYED | Guard 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 tasks | LIVE ON STAGING | Four task families; API desired/running count 1. Task existence does not verify the application release. E:evidence-aws.md:42-45 |
| Mover and extraction tasks | APPROVED, IN BUILD | Approved 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 edge | NOT VERIFIED | AWS 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 CloudWatch | LIVE ON STAGING | EC2 box, read roles and log group observed; loaded rules and dashboard remain unverified. E:evidence-aws.md:69,93-96 |
| Bedrock AI expert | APPROVED, IN BUILD | Approved 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.