Case study / v1.1.0 released synthetic pilot prototype

NiyamGuard

An explainable policy-drift and citizen-service sandbox with auditable rule pathways.

NiyamGuard verified interface

Problem

Policy changes can leave citizen portals, forms, eligibility guidance, and operational rules out of sync.

Target user

Policy operators and citizens exploring synthetic public-service workflows.

Solution

A review-first sandbox that extracts synthetic policy changes, models rules, identifies drift, and explains verified decisions without performing real government transactions.

Personal contribution

Designed and implemented the rule/evidence workflow, citizen and operator surfaces, safe simulation boundaries, automated regression suite, and portfolio case study.

Architecture

Boundaries before buzzwords.

  1. FastAPI policy and service APIs
  2. SQLAlchemy persistence and synthetic fixtures
  3. React citizen/operator workflows
  4. Hybrid rule and assistant boundary

Main workflow

State moves with a reason.

  1. 01

    Ingest a synthetic circular

  2. 02

    Extract and review proposed rules

  3. 03

    Compare versions and detect drift

  4. 04

    Publish a verified sandbox rule

  5. 05

    Explain eligibility with evidence

Technical decisions

The trade-offs that define the system.

  • Deterministic rule evaluation remains authoritative
  • Assistant output is bounded by verified policy evidence
  • External identity/payment/government actions stay simulated

Difficult engineering challenge

Keeping citizen guidance helpful while preventing generative output from becoming an unreviewed policy authority required a clear rule/evidence boundary.

Verification

Evidence and boundaries.

Testing

  • 243 backend tests
  • 60 frontend tests
  • Vite production build

Security and privacy

  • No real government identity, payment, messaging, or submission is claimed
  • Optional geolocation requires user action

Known limitations

  • Synthetic policies and service data
  • No verified production government integration

Focused future work

  • Broaden reviewed fixtures and accessibility/browser evidence

Verified demonstration

Rendered product behavior.

Loading video metadata…

Next systemNIRA