The problem
Think Digital builds avatars and agents for many clients. Without a platform, each new client means a new stack, and a shared database is one bad filter away from one client's documents reaching another client's users.
Atlas AI answers that with hard isolation and one tested turn path. Each client runs in its own AWS account. A hub account holds shared knowledge, analytics and monitoring. Every turn passes through the same guardrails, routing and filtered retrieval.
Who uses it
- Tenant administrators and testers, in the admin portal
- Members and kiosk visitors, who talk to the avatars in text and voice
- Product teams who build on it, such as the planning assistant, which routes each station to its own avatar on Atlas AI
What I built
I joined the build in October 2026 as a core engineer. The platform architect owns the design and the release process, and my work sits inside it. I have merged nine pull requests across the turn pipeline, the guardrails, the content verifier and the admin portal, and I am one of three code owners who review changes to the security paths.
In the turn pipeline
- Retrieval starts beside the Gate. It used to wait for the routing model. Now both run at once, and the answer model still gets no text before the safety check
- The answer model gets the turn's language from the Gate's decision
- Each retrieved passage carries its document name into the answer model's context
In safety
- An emergency cannot fail quietly. An invalid emergency reply from the Gate still raises the emergency alert. This was a priority-zero fix
- The guardrail password filter now checks the model's output only
In ingestion and the admin portal
- The content verifier now accepts findings that arrive with no verdict
- A resulting-reach view, so administrators see each person's effective knowledge access before they revoke it, with a revoke dialog
- Four accessibility fixes, and clearer copy in the knowledge tab
In testing
- I ran and wrote up the exit check for the knowledge milestone
- I built a kiosk client for Atlas AI on the avatar platform, now in testing
Architecture
One turn, inside one client's account
Every client gets its own AWS account, and every turn takes the same path through it. The platform is a TypeScript monorepo, deployed with AWS CDK.
- Connect. The client opens a WebSocket. An authoriser checks the user's token when the connection opens.
- Turn worker. A Lambda function takes the turn. A dead-letter queue catches any turn that fails.
- Input guardrails. Amazon Bedrock Guardrails check the input for personal data, harmful content and denied topics.
- Gate and retrieval, in parallel. The Gate, a fast routing model, returns a schema-checked decision: rules, escalation, emergency, avatar route, knowledge route and language. Retrieval from Bedrock Knowledge Bases on S3 Vectors starts at the same time, always under an access filter.
- Emergency path. When the Gate flags an emergency, the emergency alert fires, even if its reply is invalid.
- Answer. The answer model gets text only after the safety check. It streams the reply in the turn's language, from passages that name their documents.
- Output guardrails. Guardrails check the output. The client receives tokens, cards, alerts and an end-of-turn event.
- Hub. Analytics events, such as token use for each stage and failed queries, flow with the logs to the hub account.
Off the turn path, ingestion runs in four stages: a format allowlist, extraction with Bedrock Data Automation, a verifier model that marks each document pass, flag or reject, and vector sync.
Key decisions and trade-offs
380 ms faster, and the safety check stays first
The first word of each answer came late, because retrieval waited for the Gate. I built and measured two ways to fix it.
Median time to first token. Retrieval waited for the Gate, in series.
BaselineRetrieval starts beside the Gate. Median 2,415 ms against a 300 ms target, and 12 of 12 on the test rig. The safety check still runs before the answer model sees any text.
ShippedSends text to the answer model before the safety check.
RejectedOption B was almost three times the gain, and I turned it down. On a platform that handles emergencies, the answer model must never see text that the safety check has not cleared. A gain that changes the safety order is not a latency fix.
An emergency that cannot fail quietly
I fixed a priority-zero fault, so an invalid emergency classification still raises the emergency alert.
Smaller calls
- Show the reach before the revokeAn administrator who removes access should first see what that person can actually reach. The resulting-reach view shows each person's effective knowledge access before the revoke dialog opens.
- Name the document in every passageEach retrieved passage now carries its document name, so the answer model can say which document an answer came from.
- Pass the language onThe Gate already detects the turn's language, so the answer model now receives it with the turn.
Evaluation and quality
My changes have to pass the platform's own release gates. The gates fail a release on any unauthorised retrieval, watch escalation misses and Gate latency, and report a probe that did not run as not evaluated, never as a pass.
- The knowledge milestone exit check, which I ran and wrote up: 26 of 26 adversarial retrieval tests passed, with zero unauthorised retrievals and zero errors
- The 380 ms change was measured at the median against a 300 ms acceptance target
Safety, privacy and failure handling
Most of these controls belong to the platform design. The ones I changed say so.
- Isolation by account. One AWS account for each client, and each hub admits only its own client accounts
- No retrieval without an access filter. Every document carries a visibility tier and a scope, and the filter fails closed
- Guardrails on both sides of the model: personal data, content filters and denied topics
- Emergencies always alert, my fix: an invalid Gate reply on an emergency still raises the emergency alert
- Failed turns are kept in a dead-letter queue, not lost
- A kill switch for each avatar
- Capability-based access control in the admin portal, with invitations limited to approved domains
- A turn record of what happened on each turn and why, for audit
Results
- 9
- merged pull requests, across the Gate, retrieval, guardrails, verifier and admin portal
- 380 ms
- faster median time to first token, against a 300 ms target
- 1,057 ms
- the faster option I rejected, because it put text before the safety check
- 26 of 26
- adversarial retrieval tests passed in the knowledge milestone exit check
- 0
- unauthorised retrievals in the same exit check
- P0
- emergency fault fixed: an invalid Gate reply still raises the emergency alert
Stack
- TypeScript
- AWS CDK
- Amazon Bedrock
- Bedrock Knowledge Bases
- Bedrock Guardrails
- Bedrock Data Automation
- S3 Vectors
- Claude
- AWS Lambda
- API Gateway WebSocket
- DynamoDB
- EventBridge
- CloudWatch
- Zod
- pnpm
- Turborepo
- GitHub Actions