RightWalk Foundation

Chatur AI - System Architecture

System Architecture for the WhatsApp Conversational Access Layer for NAPS (National Apprenticeship Promotion Scheme)

This document describes the NAPS-specific implementation of Citizen AI, currently referred to as Chatur AI (working name), and should not be read as the full Citizen AI vision.

Status: Live technical architecture (near-term, reality-first)
Shelf life: Evolving document – updated as system changes
Related vision document: RightWalk’s Citizen AI (long-horizon, product & policy narrative)

Positioning & Relationship to Citizen AI

This document intentionally differs in tone and scope from Citizen AI:

Both documents are correct for their own domain, and are complementary:


1. Objectives

A WhatsApp-first conversational system that enables opportunity discovery, assisted registration, and apprenticeship application on NAPS, using an AI-driven conversational layer with deterministic tool execution, human handoff, strong validation, and a secure, auditable AWS deployment.

Opportunity discovery is the primary value surface; workflows are executed only when intent is clear.

1.1 What exists today

1.2 Design principles


2. System Overview

2.1 User & HITL Layer

2.2 Backend (chatwhat, golang, containerised, private EC2)

2.3 AI Decision Engine (Agentor, part of backend)

Agent Design & Evolution

* Current
  - Single agent.
  - Single model.
  - End-to-end reasoning loop.
  
* Planned (if needed)
  - Hierarchical or classifier-first agents.
  - Validators for sensitive actions.
  - Cost-optimized executor models.

This evolution is optional, not assumed.

2.4. Tool Control Plane (FastMCP, MCP server)

The MCP server is the system’s safety and determinism boundary.

Responsibilities:

Agentor decide what to do; MCP defines how it happens.

2.5. Opportunity Intelligence Plane (Part of MCP server, with PGvector)

While NAPS remains the system of record, Opportunity Intelligence is a first-class internal plane:

Components:

This plane:

2.6. State & Workflow Management

State is distributed across:


3. Evaluation, Observability & Safety

Evaluation is treated as both observability and infrastructure.

3.1 Observability

3.2 Evaluation as infrastructure

Evaluation outputs influence:

3.3 Assertyr (written in golang) – Evaluation & Safety Infrastructure

Assertyr is RightWalk’s agent evaluation and safety infrastructure, designed specifically for non-deterministic, agentic conversational systems operating in public-sector workflows.

Unlike traditional observability, Assertyr focuses on system correctness, policy compliance, and regression immunity across real conversations.

#### Role in the architecture

Assertyr operates out of band from the live request path, consuming artifacts produced by:

It does not participate in runtime decision-making, but instead governs what is allowed to ship and scale.

#### Core capabilities

#### Why Assertyr is infrastructure (not just observability)

In practice, Assertyr acts as:

#### Positioning

Assertyr is treated as a first-class platform component, alongside the MCP and the Agentor, ensuring that agent behavior remains:

3.4. Infrastructure (AWS)

Stateless services enable horizontal scaling.

AWS Architectural diagram for RightWalk NAPS Whatsapp BOT


4. Way forward and decisions

4.1 Employer Bot

The Employer WhatsApp Bot will be:

While patterns and stack will be similar, it is not a shared runtime with the present system.

This document intentionally excludes employer architecture. A similar approach can be taken for creating a WA conversation layer for other portals like RTE.

4.2. Non-goals (Current)

4.3. Open Decisions


Closing Note

This architecture encodes what is real today, while remaining compatible with the longer-term vision articulated in Citizen AI. It is intentionally conservative, auditable, and field-aligned — designed to evolve without rewriting core assumptions.