AINPM.in / Work / Compliance Jasoos
Case study · On-device AI · Learning game

AI product management, playedCompliance Jasoos: name the rule

Compliance Jasoos is a free investigation game in which AI features at fictional Indian financial firms break real rules, and the player names who is accountable, which rule they broke and the proof. Witnesses are voiced by Gemini Nano running on the player's own computer inside Chrome; hand-written case files decide every outcome.

  • Gemini Nano
  • Chrome Prompt API
  • Installable PWA
  • On-device witnesses
  • Optional read aloud
  • MIT
Compliance Jasoos case board: a case file folder on the left, evidence cards on a lamp-lit desk with three stamped Pinned and tied by string to a proof tray, and a witness interview on the right
Case 1: pinning the evidence while questioning the compliance officer.
Witness eval with Gemini Nano on a MacRun 2, 28 Nov 2026 · Apple M4 Pro, 48 GB, Chrome 157 · 12 witnesses, 86 turns
  • Witness turns passing every check84 / 86
Replies inventing a law or number
0 of 86
Reply time, median
4.6 s
Cases solvable without the model (v0.7 check)
7 of 7

Checks: valid schema, at most 80 words, no invented numbers, fact ids from the witness card, no legal terms outside the card, no AI self-reference. Run 1 scored 75 of 86 under a stricter first checker, revised after reading every failure. This is not a hallucination or leakage rate. Source: evals/RESULTS.md ↗

01 · The problem

Who is it for, and what job does it do?

People moving into AI product management can explain a model but rarely a regulator. Real rules arrive as long documents, not as decisions a PM has to make under pressure.

Job to be done: when I prepare for an AI PM role, I want to practise spotting how AI features go wrong in regulated Indian finance, so I can talk about trust and compliance with specifics.
02 · The cases

Which real rules do the cases teach?

Firms and people are fictional. Citations were revised on 29 Nov 2026; the rule book shows the date each rule was last checked.

CaseWhat the AI feature didRule the player must name
The Guaranteed-Return BotA fund house's chatbot, on a vendor model with its claims filter off, told investors a fund "assures 12% a year"SEBI (Intermediaries) (Amendment) Regulations, 2025: the regulated firm is solely responsible for its AI tools' output
The Avatar GuruA broker paid referral fees to an unregistered AI-avatar channel claiming an 80% win rateSEBI (Intermediaries) Regulations, reg 16A, in force 29 Aug 2024: no association with unregistered advisers or unpermitted return claims
The Consent ShortcutA lending app's AI scorer pulled contacts and photos that added under 1% accuracy; a complaint waited 45 daysRBI NBFC Credit Facilities Directions, 2025, paras 12 and 13: need-based data with consent, no access to contacts or files; grievance officer
The Silent LeakA support bot showed other users' PAN after a prompt injection; reporting was planned four days laterCERT-In Directions of 28 Apr 2022: report data leaks within 6 hours
The Readiness ReviewA fund house planned to fine-tune a model on investor chats under a notice that never mentioned trainingDPDP Act, 2023: consent limited to the stated purpose, applying from 13 May 2027
The Borrowed Face (v0.2)A partner's agents ran video KYC with liveness detection switched off; 40 deepfake accounts openedVideo KYC run by the bank's own trained officials, with liveness checks and a concurrent audit. Cited to the RBI KYC Direction, 2016, para 18. Citation under re-check against newer small finance bank Directions
The Autopilot Strategy (v0.2)A broker's AI auto-trading feature, built by a partner, was never registered with the exchangeSEBI Stock Brokers master circular, paras 59.15–59.17 (the 4 Feb 2025 retail algo framework), applying to all brokers from 1 Apr 2026
03 · How the AI is used

How do you build a game on a small on-device model?

By turning its weakness into the mechanic: witnesses are unreliable narrators, and a detective checks what they say against evidence, the same habit an AI PM needs.

What Gemini Nano does

  • Voices each witness from a hand-written card: role, personality, what they know and what they hide
  • Returns JSON through responseConstraint: a line of dialogue and the ids of facts it states
  • Runs on the player's computer through Chrome's Prompt API; witnesses need no server or API key

What it never does

  • Decide guilt, evidence or the rule; those live in case files
  • Unlock a clue the witness does not know, or one the question did not ask about
  • Skip the checks: long or schema-breaking replies, and replies with a number or legal term off the witness card, fall back to written answers. Other invented details can still pass
04 · Evidence

Did the riskiest assumption hold?

The riskiest assumption was that Gemini Nano could stay in character and on the facts. It was tested before the game was published, on an Apple M4 Pro with 48 GB and Chrome 157.

RunCheckerTurns passing every checkReply time p50 / p95
2 (baseline)v284 of 86 (97.7%)4.6 s / 9.6 s
1v175 of 86 (87.2%)3.4 s / 8.6 s
What testing found: run 1 had one real failure (an empty reply) and ten checks that were too strict; the checker was revised after reading every failure, so the runs are not like for like. No reply in either run invented a law or a number. This is not a hallucination or leakage rate: an invented name or event would pass these checks. The run used one high-end machine and predates cases 6 and 7 and the renamed cast; newer probes for early disclosure and false premises have not been run. Testing also found a Chrome behaviour: a second schema-constrained prompt on one session failed with kErrorUnknown, so each question now runs on a clone of a prefilled session. Full results.
05 · Decisions

What was decided, and why?

DecisionWhy
An installable PWA, not ElectronGemini Nano is only reachable through Chrome's built-in AI; Electron and Tauri ship no on-device model. Installed from Chrome, it opens in its own window on Mac and Windows.
Real rules, cited conservativelyEvery rule's main link must be on an official government or regulator site, and the build enforces it. Each has a checked-on date. A citation that could not be re-verified is marked on screen.
Playable without the modelA content validator proves each case can be solved with written answers, so players without the hardware still learn.
Play stays on the device, with stated exceptionsNo analytics or remote fonts; progress and the learning record stay in the browser. The exception: best scores, with the case log needed to check them, post to the leaderboard by default and can be switched off. LinkedIn sign-in is optional, and so are Google online voices (off by default), which send the game text being read to Google.
A leaderboard without accounts (v0.2)Players get generated codenames from word lists, so there is no free text to moderate and no personal data. A free Vercel function replays each submitted case log with the game's own scoring engine and refuses scores the log does not produce. That proves a score is possible, not that it was earned honestly; the board says so.
Score reasoning, not speed (v0.2)100 points, minus 25 per wrong accusation, plus up to 10 for pinning exactly the evidence that proves the breach. Rank titles run from Khabri (Informant) to Bada Jasoos (Chief Detective).
Spoiler-free sharing built for LinkedIn (v0.4)Document posts earn the most engagement and links in a post cut reach, so the game draws a 6-slide case-file PDF carousel on the device, writes hook-first post text with no links, and puts the links in a ready first comment. A Wordle-style result line shows how you played, never who did it.
Names with an Indian voice (v0.6)Every codename, rank, district, witness and firm is coined from monsoon, street, detective-slang and nature words (Khufiya Falcon, Jasoos, Kagaz Bunder, Kinaraghat Mutual Fund), never religious terms or real people. Existing codenames were migrated one-to-one so scores and links kept working.
A reason to come back (v0.4)A case of the week with its own weekly board, a "continue" card for returning players, and a phone layout that switches between case file, evidence and witnesses.
An insurance case waits (v0.2)The IRDAI text could not be checked at the official source, so the case is held back and shown as a locked district on the map.
06 · What research changed (v0.7)

What did a source and learning review find?

A review on 29 Nov 2026 covered rule sources, learning research, comparable products and accessibility. Its first finding was about the game's own law. Read the report (written before the fixes).

Fixed text is not the same as current text. The game kept the model from deciding anything, yet some fixed rule text had gone stale or was cited to the wrong place. A link check would have passed: RBI's old Digital Lending page showed no withdrawal banner, although the Directions are on RBI's withdrawn list.
FindingWhat changed
The game said no mutual fund may promise or assure returns. That general ban was not found in the advertisement code in force or in Chapter 14 of the March 2026 master circular (which does not prove no such wording exists elsewhere)Text now states what those bar: misleading or projection-based statements and indicative yields. An express ban in SEBI's common code starts on 8 April 2027
Lending rules cited withdrawn DirectionsRecited to the NBFC Credit Facilities Directions, 2025
Three rules used law-firm pages as their official sourceRelinked; the build now rejects non-official main links
The video KYC citation may be out of date; the newer text was not readShown to players as under re-check
07 · Learning design

What should a player practise, and how is it supported?

These are skills practised, not proven learning gains or a certification. Bloom levels are design labels, not validation.

Objective (revised Bloom)In the game now
Accountability (analyse): name the accountable partyFirst choice recorded on the device; a wrong choice explains why it does not fit
Evidence (analyse, evaluate): pin what proves itThe debrief shows key cards pinned, missed and irrelevant
Rule (apply, analyse): pick the main rule over plausible othersFirst choice recorded; wrong rules explained
Linking (analyse): match each card to part of the ruleNot built
Remediation (evaluate): choose fixes that workPartly: pick one change from three before reading; unscored and not recorded
Transfer (apply): use a principle on new facts laterNot built

References behind the design

None of these studies tested this game.

How it would be evaluated (not yet run)

  • A consented study outside normal play: matched unseen scenarios before, after, and one to two weeks later
  • A reading-only comparison group; on-device model compared with written answers
  • No analytics added: participants export their own files
08 · India first

How do these Indian themes compare with global frameworks?

India's rules are the subject; these are related ideas, rated by judgement. NIST AI RMF is voluntary and ISO/IEC 42001 is a management-system standard, so neither sets Indian duties. ISO clauses come from a free preview. An Indian case does not show a breach of the EU AI Act.

Indian themeNIST AI RMF 1.0ISO/IEC 42001 clausesEU AI Act
Firm responsibility for AIStrong: Govern 2 and 6.1, Manage 3Partial: 5.3Partial: Art 26, high-risk deployers only
Consent and data minimisationPartial: Measure 2.10Partial: 6.1.4Not an appropriate comparison
Video KYC staffing and livenessPartial to strong: Map 3.5, Measure 2.7Partial: 7.2, 8.1Art 14 similar in idea; applicability unchecked

Full crosswalk and sources are in the research case study.

09 · Read aloud (v0.8)

How can a game use online voices without leaking what the player did?

An optional access feature, off by default. It is not a learning claim: a 2023 meta-analysis found no reliable comprehension gain from listening while reading at one's own pace.

The premise, corrected: Chrome's Google voices need no billing account or API key from a website, because Chrome's current source calls Google with Chrome's own key. We found no official document offering them to websites or promising they stay free or available. The text being read travels to Google. Report and sources.
DecisionWhy
Speech code takes content ids, not textA Google voice can then receive only text looked up from the case and rule files, or one fixed test sentence
Typed, AI-written and play-based text stays off online voicesIt can show what the player wrote or did. AI-voiced interviews use on-device voices throughout
Every utterance names its voiceLeaving it to the browser can select a network voice
Off on Android and Linux touch devicesThe browser cannot confirm there that a voice runs on the device. A security review caught that Android's "desktop site" mode would have slipped through
One natural voice, chosen by the playerOn first listening on a Mac, the second witness sounded unreal: rotating voices had given two witnesses Apple's novelty voices. Tests with fake voices had passed. Novelty and old synthetic voices are now left out, and tests use that Mac's real voice order
What this taught: a privacy promise that depends on a browser call has to be enforced in the code that makes the call, and a fake test double is not a real device. Both checks are needed.
10 · Interface polish (v0.10)

What changes when the interface is measured, not just restyled?

20 small passes by an AI coding agent on 30 Nov 2026, each with tests, a build, screenshots and Lighthouse, against a written design system. The look stayed a detective's desk. Figures are from headless Chrome in a lab, not from players. Pass-by-pass log.

Problem foundWhat changed
The case header filled almost half a small phoneAt 320 px wide it went from 341 px to 167 px tall, with the same information on screen
A case could stay on "Loading"In headless Chrome the on-device AI availability check had not answered after 15 seconds. Screens now wait about 2 seconds, then use written answers; a late answer counts on the next screen. Not yet tried with a real model
The interview was squeezedAt 1280 × 800 the busiest case's transcript went from 39% of its panel to 50%. With Read aloud on, the lowest case is 44%, just under the 45% target
Evidence strings drifted when the board scrolledStrings now stay attached, and the proof tray stays in view with a count of pinned cards
The tour card covered what it pointed atIt now sits beside the panel on desktop. On a phone it still covers part of one full-screen panel
The case list sat far down the home pageAt 320 px wide, the "Case files" heading moved from 1,708 px to 1,281 px from the top. Rank, sign-in and the city map moved lower to make room
What this taught: a perfect automated accessibility score did not cover the new paper textures. Lighthouse does not judge the contrast of text over a background image, and a second review found orange text at 4.41:1, under the 4.5:1 minimum. After the fix, a separate check of 117 pieces of text on paper found none below 5.37:1.

One change affects play: the board now shows how many pieces of evidence have been found out of the total. It never says which count as proof, but a player can tell when nothing is left to find. Whether the new interface is easier or more enjoyable to use has not been tested with players.

11 · What is distinctive, and what is open

What can be claimed, and what cannot?

The claim, with its limits: in a limited, English-only search on 29 November 2026, with no hands-on comparison, we did not find a product combining India-specific AI compliance cases, fixed sourced law, deterministic outcomes and optional on-device witness voices. That is "not found", not "first". AI Under Review has a similar investigation premise, and gating clues for LLM detective characters has prior research.

Checked in v0.7 to v0.10 (lab)

  • All 7 cases solved with written answers in a headless browser
  • Case 1 completed by keyboard only; no sideways scroll at 320 px on the screens measured
  • Lighthouse accessibility: home page 96 to 100 in v0.7; in v0.10 the case, settings, profile and leaderboard pages also score 100 in their opening state
  • Mobile main-content paint with applied throttling: 1.9 s before v0.7, 1.5 s after; not re-measured since. Lighthouse's default simulated figure went from 2.4 s to 2.7 s and was unchanged by v0.10, still above the 2.5 s "good" line
  • 210 automated tests pass (v0.10)
  • With a fake speech engine, no typed or AI-written text reached an online voice

Method and limits

Still open

  • No screen-reader or real-phone testing
  • The v0.10 interface has not been tried with players, or with a real on-device model
  • The real request to Google has not been captured, and the voice notice has had no legal review
  • Read aloud is largely untested on real devices beyond one Mac
  • The newer witness probes have not been run
  • Video KYC citation under re-check
  • A planned case on automatic credit-limit increases is held until the loan product's legal basis is confirmed
  • No evidence yet that players learn from it
Proof of skill

What does this project prove, and how can you check it?

Employers trust skills they can verify. Each claim below links to its place in the skills matrix, and every piece of evidence is public.

Skills demonstrated

Evidence you can open

See the product artifacts: brief, eval spec, metrics tree, decisions

Last public activity 29 November 2026 · checked 28 November 2026

12 · FAQ

Frequently asked questions

What is Compliance Jasoos?

A free, open-source investigation game by Ian Pinto for aspiring AI product managers. In seven cases, AI features at fictional Indian financial firms break real rules; the player questions witnesses, pins evidence, and names who is accountable, which rule was broken and the proof. Each debrief links to its SEBI, RBI, CERT-In or DPDP source. Best scores post to a shared leaderboard under a generated codename by default; this can be switched off in Settings.

How does it use Gemini Nano?

Chrome’s built-in Prompt API runs Gemini Nano on the player’s own computer. Each witness is a session whose system prompt is a hand-written witness card; replies are constrained to JSON with a line of dialogue and the ids of facts it states. The witnesses need no server or API key, and nothing the player types to them leaves the device. The leaderboard and optional LinkedIn sign-in do use a server, and optional Google online voices send the game text being read to Google.

Can the model get the case wrong?

No. Guilt, evidence and rules are fixed in hand-written case files. The engine accepts a fact only if the witness knows it and the question is about it, and a reply that is empty or too long, breaks the schema, or contains a number or legal term not on the witness card falls back to the written answer. These checks cannot catch every invented detail, so a witness can still say something untrue; the outcome does not change.

What do I need to play?

Any modern browser plays every case with written answers. For live witnesses, Chrome’s documentation (read 29 Nov 2026) asks for desktop Chrome 148 or later on Windows 10 or 11, macOS 13+, Linux or Chromebook Plus; a GPU with more than 4 GB of video memory, or 16 GB of RAM and 4 CPU cores; 22 GB of free disk; and an unmetered connection for the one-time download. It lists no Indian language.

Can the game read cases aloud?

Yes, if you switch on Read aloud, which is off by default. It uses a voice your browser reports as on-device, one voice for all witnesses, which you can change. Google online voices are a separate, optional switch shown with a notice: Chrome then sends the game’s written text being read to Google. What you type, AI replies and results built from your play are never sent to those voices. Read aloud is off on Android. Google offers no documented promise, that we found, that these voices will stay available to websites.

Does playing it teach compliance judgement?

That has not been measured. The game names skills it practises and keeps a record of first tries on the player’s own device. A study with unseen and delayed scenarios is planned but has not been run.

Is it legal advice?

No. It is for learning. Firms and people are fictional; the rules are real, paraphrased and linked to official sources, and each shows the date it was last checked. One video KYC citation is marked as under re-check. Some rules, such as the DPDP notice and consent duties, apply only from 13 May 2027, and the game says so.

More work

Other case studies

AI · Developer tool

OpenFOC AI Router

v0.1 released · v0.2 in review

One local endpoint that spreads AI requests across free provider tiers, then your own Mac.

  • Router tests passing55 / 55
  • Simulated burst requests served120 / 120
Calls to a rate-limited provider before its retry-after
0
Cost per request on free tiers
₹0
  • TypeScript
  • Bun
  • Tauri
  • MIT

Proves On-device and local AI · AI product strategy and MVP scoping · Privacy and security architecture · Technical program delivery

Last public activity