{"access":{"collection":"beta","defaultDays":30,"gate":"approval","password":{"_how":"The password rules, the same ones the Firebase project enforces (Authentication > Settings > Password policy). Create account and the new-password page show them and block saving until each is met.","minLength":8,"number":true,"special":true}},"ai":{"_backend":"Which Firebase AI Logic backend serves the AI. vertex = Vertex AI (billed on Blaze, no free-tier 429s); googleai = Gemini Developer API (the old path, instant rollback). location applies to vertex only (global, or a region such as us-central1).","_models":"Model chains per task, tried in order; the next one is used only if a model errors or times out. Only IDs the app's 'Check all AI models' list (candidates) has tested through Firebase AI Logic. Marking stays on flash for quality; chat and quick start on the cheaper lite models.","attemptTimeoutMs":{"chat":20000,"mark":45000,"quick":12000},"backend":"vertex","candidates":["gemini-3.5-flash","gemini-3-flash-preview","gemini-3.5-flash-lite","gemini-flash-lite-latest","gemini-3.8-flash"],"contextChars":6000,"crisis":{"_how":"Local safety check (src/app-guard.js crisis; v2/app/shell/ai.js crisisReply). Runs on every message typed to the tutor BEFORE the off-topic check, the allowance and any AI call, even when caps are off. A match shows `reply` instead of an AI answer: no AI call, nothing logged, stored in tutor memory or counted against the allowance. Patterns are regex sources, case-insensitive, on text with curly quotes straightened. Broad on purpose: a false alarm costs one extra message, a miss can cost far more. Review the wording and the numbers every quarter.","backLabel":"Back to studying","memoryRule":"Never record mental or physical health, wellbeing or distress, or anything sensitive about the student.","patterns":[{"id":"self-harm","re":"\\b(kill|killing|hurt|hurting|harm|harming|cut|cutting|hang|hanging|poison|poisoning|drown|drowning)\\s+(my\\s?self|myself)\\b(?!\\s+(some|a)\\s+slack)"},{"id":"self-harm","re":"\\b(kms|unalive\\s+my\\s?self)\\b"},{"id":"suicide","re":"\\bsuicid(e|al)\\b"},{"id":"self-harm","re":"\\bself[\\s-]?(harm|injur)"},{"id":"end-life","re":"\\b(end|ending|take|taking)\\s+(my\\s+(own\\s+)?life|it\\s+all)\\b"},{"id":"want-die","re":"\\b(want|wanna|wish|wished|going|plan|planning|ready|hope|hoping)\\s+(to|2)\\s+(just\\s+)?(die|be\\s+dead|disappear|not\\s+wake\\s+up|not\\s+exist)\\b"},{"id":"want-die","re":"\\bwish\\s+(i|that\\s+i)\\s+(was|were|could|would|had)\\s+(just\\s+)?(dead|die|disappear|never\\s+been\\s+born|not\\s+wake\\s+up)"},{"id":"not-here","re":"\\b(don'?t|do\\s+not|doesn'?t|no\\s+longer|never)\\s+(want|wanna)\\s+(to\\s+)?(be\\s+here|be\\s+alive|live|exist|wake\\s+up|go\\s+on)\\b"},{"id":"better-off","re":"\\b(better\\s+off\\s+(dead|without\\s+me)|everyone\\s+(would\\s+be|is)\\s+better\\s+off\\s+without\\s+me)\\b"},{"id":"no-reason","re":"\\b(no\\s+(reason|point)\\s+(to|in)\\s+(live|living|go\\s+on|going\\s+on|being\\s+alive|carry\\s+on)|nothing\\s+to\\s+live\\s+for|not\\s+worth\\s+living)\\b"},{"id":"cant-go-on","re":"\\b(can'?t|cannot|can\\s+not)\\s+(go\\s+on|carry\\s+on|take\\s+(it|this)\\s+any\\s?more|cope\\s+any\\s?more)\\b"},{"id":"want-end","re":"\\bwant\\s+(it\\s+all|everything|my\\s+life)\\s+to\\s+(end|stop)\\b"}],"promptRule":"WELLBEING: if the student says anything suggesting they may harm themselves, feel hopeless, or are in crisis, do not use the scope refusal. Reply warmly in two or three short sentences, say you are an AI and not a counsellor, encourage them to talk to someone now, and give these UK contacts: Samaritans 116 123 (free, 24 hours), text SHOUT to 85258, NHS 111, and 999 or A&E in an emergency. Do not give advice about methods, do not diagnose, and do not go back to exam content until they say they are ready. If a student sounds stressed about their exam, acknowledge it in one sentence, then give one concrete next step and mention taking a break; do not diagnose.","reply":"I'm really sorry you're feeling like this. I'm an AI study tutor, not a counsellor, so I can't give you the support you deserve right now, but there are people who can, and you don't have to cope with this alone.\n\n**Please talk to someone now:**\n- **Samaritans:** call **116 123** (free, any time, day or night)\n- **Shout:** text **SHOUT** to **85258** (free, 24/7, by text)\n- **NHS 111:** call **111** (or use 111.nhs.uk) for urgent mental health help\n- **In an emergency, or if you might act on these thoughts, call 999 or go to A&E.**\n\nIf you're outside the UK, you can find a local helpline at findahelpline.com.\n\nIf you can, tell someone you trust how you're feeling, such as a friend, family member or your doctor. Your exam can wait. You matter more than any result.\n\nThe study plan will be here when you're ready."},"disclosure":{"line":"AI answers are generated by a machine, not a person, and can be wrong. Marks are a guide, not your exam result.","link":"How marking works"},"historyTurns":6,"location":"global","maxChats":50,"maxOutputTokens":{"chat":2400,"mark":4096,"quick":800},"memoryMaxChars":600,"messages":{"_how":"Words for the Ask panel states (off, network, App Check, generic failure). Wording only; the app has the same defaults. hostedUrl: where the tutor works; leave out to use the first allowed host in AI_CONFIG.","appcheck":"Wisli couldn't verify this browser for the AI tutor just now. Reload the page and ask again. If it keeps happening, use Report a problem.","failed":"The tutor couldn't answer that one. Try rephrasing it, or ask something else.","network":"Couldn't reach the AI tutor. Check your connection, then try again. Nothing you typed is lost.","offBody":"It's available when you're signed in on","offOther":"Lessons, quizzes and flashcards work everywhere.","offTitle":"The AI tutor isn't available here.","ownAiHelp":"Pick or type a question and we'll copy it, with your notes, so you can paste it into any AI chat.","ownAiLink":"Use your own AI chat instead"},"models":{"chat":["gemini-3.5-flash-lite","gemini-flash-lite-latest","gemini-3.5-flash","gemini-3-flash-preview"],"mark":["gemini-3.5-flash","gemini-3-flash-preview","gemini-3.8-flash","gemini-3.5-flash-lite"],"quick":["gemini-3.5-flash-lite","gemini-flash-lite-latest","gemini-3-flash-preview"]},"offTopic":{"_how":"Client-side pre-check before any chat call (src/app-guard.js). A message is answered locally with the exam's tutor.offTopicReply, with no AI call, only if it matches one of these AND shares no word with the learner's exam content. Keep patterns obvious; when in doubt the call goes ahead and the system prompt's tutor.scopeRule handles it.","patterns":[{"id":"code","re":"\\b(python|javascript|typescript|java|c\\+\\+|c#|html|css|sql|regex|php|ruby|golang|kotlin|swift|react|node\\.?js)\\b|```"},{"id":"code","re":"\\b(write|fix|debug|build)\\b.{0,30}\\b(code|script|program|website|app|function)\\b"},{"id":"recipe","re":"\\b(recipes?|ingredients|bake|baking|dinner ideas|meal plan)\\b"},{"id":"travel","re":"\\b(flights?|hotels?|itinerary|vacation|sightseeing|airbnb|things to do in|best places to visit)\\b"},{"id":"writing","re":"\\b(write|compose|draft)\\b.{0,25}\\b(essay|poem|song|lyrics|story|novel|rap|cover letter|wedding speech|birthday message)\\b"},{"id":"other-subject","re":"\\b(chemistry|physics|biology|calculus|algebra|geometry|trigonometry|periodic table|shakespeare|organic compounds?)\\b"},{"id":"general","re":"\\b(weather|horoscope|tell me a joke|jokes|movie|netflix|football|lottery|dating|song lyrics)\\b"}]},"profileMaxChars":1200},"auth":{"_brandedEmails":"true = Wisli sends its own branded verify-your-email and reset-your-password emails (Cloud Function sendAuthEmail). Switch on only after the function is deployed (docs/runbooks/approval-email.md). false = Firebase default emails.","brandedEmails":true},"features":{"build_a_course":{"allowlist":[],"enabled":false,"tiers":[{"courses":2,"id":"starter","label":"Starter"},{"courses":5,"id":"standard","label":"Standard"},{"courses":10,"id":"max","label":"Max"}],"upload":{"max_files":120,"max_mb":100,"types":["pdf","docx","pptx","png","jpg","jpeg","txt","md"]}},"welcome_onboarding":{"enabled":false,"product_name":"Wisli","providers":{"apple":false,"google":false}}},"feedback":{"collection":"feedback","pulseAfterDays":2,"pulseEveryDays":7},"levels":[{"id":"learn","label":"Learn","needs":{"evidence":"points_read","min":1}},{"id":"check","label":"Check","needs":{"evidence":"quiz_score","min":0.7}},{"id":"strengthen","label":"Strengthen","needs":{"days_later":3,"evidence":"review_kept","min":0.7}},{"id":"apply","label":"Apply","needs":{"evidence":"written_score","min":0.5}}],"practice":{"coverage":{"cards_per_point":0,"quiz_per_point":1},"default_minutes":{"flashcard":0.5,"quiz":1},"pass_score":0.7,"quiz":{"daily_max":20,"order":"new_then_wrong","size":12},"review_gap_days":[1,3,7,14,30]},"privacy":{"_how":"The whole privacy notice and beta terms, shown by the current app (#privacy, #terms) and by v2 (Settings and sign-up). Each section: title, paras (text; {{email}} becomes the contact address) and items (a bold label then text). Change wording here, not in app code. Items marked in docs/legal/compliance-review-2026-11-21.md as needing the owner (legal name and address, Firestore region, transfer mechanism, backup period) are worded generally until she confirms them.","contactEmail":"hello@wisli.app","draft":false,"ico":{"fee":"answered","note":"The owner checked the ICO data protection fee: no fee is due for her. Nothing to publish; keep this note if the business changes."},"sections":[{"brief":[0,1],"id":"short","paras":["Wisli keeps what it needs to run your study plan and nothing more. We don't sell your data, show adverts or use tracking or advertising cookies. We don't use analytics. During the beta, what you type to the AI tutor goes to Google's free AI service, where Google staff may read it. Please keep personal details out.","Wisli is not a mental-health or emergency service, and no person watches your chats. If you are in immediate danger, call 999."],"title":"In short"},{"id":"who","paras":["Wisli is run from the UK. We decide how your data is used, which makes us the \"controller\" under UK data protection law. Email {{email}} with any question about your data. We reply within 5 working days."],"title":"Who we are"},{"after":["We don't ask for health or other sensitive information, so please don't type it in."],"id":"collect","items":[{"h":"Your account","t":"your email address and password. Google's Firebase sign-in looks after the password; we never see it. It lets you sign in on every device. (Contract)"},{"h":"Your plan","t":"your first name, exams and dates, study hours and days off. It builds your study plan. (Contract)"},{"h":"Your progress","t":"quiz and timed-answer results, what you have read, notes, flashcards, the answers you type and any photos of workings you attach for marking. It marks your work and shows your progress. (Contract)"},{"h":"Study files you upload","t":"we keep the text of files you add, and for exams built from your own material, the files themselves, the courses and the lessons made from them. It lets us make questions and lessons from your own material. (Contract)"},{"h":"What the tutor learns about you","t":"a short memory, shown in Settings as \"What Wisli knows about you\", so answers fit you. You can see, edit, remove or clear it there. (Contract)"},{"h":"Your chat with the tutor","t":"kept on your own device so you can scroll back. The words you type are sent to the AI to answer you (see \"How we use AI\"). A message that looks like a crisis is answered on your device and is not sent to the AI. (Contract)"},{"h":"AI question counts","t":"how many AI questions you ask each week and day, and when you were last active. It keeps AI costs fair for everyone and lets us run the beta. (Legitimate interests)"},{"h":"Your request to join the beta","t":"your name, a short note, the papers you are sitting and when. It helps us decide who to invite. (Legitimate interests)"},{"h":"Feedback and problem reports","t":"what you type, the screen you were on, the exam and your account ID. It fixes problems and improves Wisli. We email ourselves a digest of reports. (Legitimate interests)"},{"h":"Pictures with a problem report","t":"any picture you attach, with your message, the screen you were on and your account ID. It helps us see and fix the problem. Please don't include names or personal details. (Legitimate interests)"},{"h":"Emails from us","t":"we use your email address to tell you about your request to join, to welcome you, and to ask once for feedback. (Contract and legitimate interests)"},{"h":"Technical data","t":"your IP address and browser details, which Google and the services that deliver our code libraries receive when you load the app. It delivers the app and keeps it secure. (Legitimate interests)"},{"h":"On your device","t":"your settings, sign-in and chat history, so the app works and remembers you. This is strictly necessary, so there is no cookie banner."}],"paras":["Our reasons (the \"basis\") are in brackets. \"Contract\" means we need it to give you the service you asked for. \"Legitimate interests\" means it helps us run Wisli safely and fairly, and we have weighed that against your privacy."],"title":"What we keep and why"},{"brief":[1,2,3],"id":"ai","paras":["Wisli uses AI in four places: the AI tutor (answers your questions), AI marking (a mark and feedback on answers you write), quizzes and lessons made or checked with AI, and, if you use it, \"bring your own exam\", which reads the notes you upload and builds a course from them. We also use AI to keep a short memory of what you find hard.","What is sent: your question or answer, any photos of workings you attach, the lesson text it is about, a short summary of your results and your tutor memory. We don't send your email, password or account ID. The AI is Google Gemini, used through Google Firebase.","During the beta Wisli uses Gemini on Google's free tier. On the free tier, Google may use what is sent to improve its products, and people at Google may read it. Please don't put in personal, confidential or employer or client information.","AI makes mistakes, including confident ones. It can misread an exam question, get a number wrong or give out-of-date rules. Its marks apply our own marking points; they are not the exam body's marks and don't predict your result. No person checks tutor answers or marks as you ask for them. A person reviewed the lessons and questions we wrote, but not every AI answer. Always check important points against your syllabus and course text. The tutor only helps with your exam studies. It is not a counsellor, or a tax or accounting adviser, or a replacement for your tutor.","Nothing here makes a decision about you automatically. AI marks are only for your own study. Uploaded material and anything built from it is private to you and is not shown to other learners. Only upload notes you have the right to use.","If an answer is wrong or worrying, use \"Report a problem\"."],"title":"How we use AI"},{"id":"share","items":[{"h":"Google (Firebase)","t":"sign-in (Authentication), saving your progress (Firestore), serving the app (Hosting), protecting the AI from misuse (App Check), and our upload tools (Cloud Functions and Cloud Storage)."},{"h":"Google Gemini through Firebase AI Logic","t":"the AI tutor, marking, and quiz and lesson generation. Later we may also use Google's Vertex AI and Cloud Vision to read uploaded documents; we will update this notice first."},{"h":"ElevenLabs","t":"we made the lesson audio from our own scripts. No learner data goes to ElevenLabs."},{"h":"GitHub","t":"holds our code and runs our automated jobs. Staff only; no learner content is stored there."},{"h":"Google Gmail","t":"sends us a digest of feedback and problem reports."},{"h":"jsDelivr and Google (gstatic)","t":"deliver code libraries your browser loads, so they see your IP address."}],"paras":["These companies handle data for us and only on our instructions."],"title":"Who we share it with"},{"id":"security","paras":["Your data is sent over encrypted connections and stored with Google Firebase. Only the owner can open the database, and only to fix problems. No system is perfectly safe, so please use a password you don't use elsewhere."],"title":"Keeping it safe"},{"id":"transfers","paras":["Some of these companies, including Google, ElevenLabs and GitHub, are based in or process data in the US and other countries outside the UK. Where personal data goes outside the UK we rely on the safeguards in each provider's terms, such as the UK data bridge or the UK addendum to standard contractual clauses. We choose UK or European locations where we can. Ask us at {{email}} for details."],"title":"Sending data outside the UK"},{"id":"keep","items":[{"h":"Account and progress","t":"while you have an account. We delete them when you delete your account."},{"h":"Study files and courses built from them","t":"until you delete them or your account."},{"h":"Tutor memory","t":"until you remove it or delete your account."},{"h":"Chat history","t":"on your device only. Clear it with \"New chat\" or by clearing site data."},{"h":"Feedback, reports and pictures","t":"up to 12 months, then deleted or made anonymous. We delete the ones tied to your account when you delete it."},{"h":"Beta sign-up requests","t":"if you were never invited, within 30 days of the beta closing. If you were invited, with your account."},{"h":"Backups","t":"deleted data can stay in Google's backups for a limited time before they expire."}],"title":"How long we keep it"},{"id":"delete","paras":["On this device: Settings, then Backup and export, then Delete all progress.","Your account and everything saved in it: Settings, then Delete my account. It removes your progress, any files and courses built from your material, your invite, your feedback and your sign-in straight away. If you can't get into the app, email {{email}} from your sign-in address. We'll delete everything within 7 days and confirm."],"title":"Deleting your data"},{"id":"rights","paras":["Under UK data protection law you can ask to see your data, correct it, delete it, restrict or object to how we use it, and take a copy to use elsewhere. In the app: Settings, Backup and export gives you a copy, and Delete my data removes your progress. You can also email {{email}}. We reply within one month. The owner can see the database in the Firebase console to fix problems and won't look at your progress unless you ask for help."],"title":"Your rights"},{"id":"complaints","paras":["Please tell us first at {{email}} and we will try to put it right. You can also complain to the Information Commissioner's Office (ICO): ico.org.uk, 0303 123 1113."],"title":"Complaints"},{"id":"age","paras":["Wisli is for people aged 18 or over. If we find out someone younger has signed up, we'll delete their account."],"title":"Age"},{"id":"changes","paras":["We will tell you in the app (and by email for big changes) before changes take effect. The date at the foot of this notice shows the last update."],"title":"Changes"}],"updated":"2026-11-26"},"terms":{"sections":[{"id":"free","paras":["Wisli is free to use during the beta. Your access lasts one month from the day we approve you, and we will tell you before it ends. We will not charge you anything without telling you first and asking. You don't need to give us a card."],"title":"Free for now"},{"id":"who","paras":["The beta is for people aged 18 or over. Wisli is not affiliated with, or endorsed by, ACCA or any exam body. Our lessons and questions are written in our own words."],"title":"Who it is for"},{"id":"ai","paras":["The AI tutor and AI marking are made by a machine, can be wrong, and are a study aid only. Marks are a guide, not an official result. There is a weekly and daily limit on AI questions so everyone gets a fair share. See How marking works and the privacy notice."],"title":"AI limits"},{"id":"use","paras":["Use Wisli for your own study. Don't share your account, upload material you have no right to use, or try to break or misuse the AI. We can pause or close an account that does, and we can end the beta at any time."],"title":"Using it fairly"},{"id":"feedback","paras":["Tell us what works and what doesn't. By sending feedback you let us use it to improve Wisli, without naming you. Anything you type or upload stays yours; you let us use it only to run Wisli for you."],"title":"Your feedback"},{"id":"nopromise","paras":["The beta is a test. Things may change, break or be switched off, and we can't promise any exam result, pass or grade. Please keep your own copies of anything important. We take reasonable care, but we can't be responsible for losses from using a free beta, except where the law says we must be."],"title":"No guarantees"},{"id":"data","paras":["How we use your data is in the privacy notice. You can delete your data and account at any time. If you think content breaks someone's rights, or you want something removed, email {{email}}. These terms are governed by the law of England and Wales."],"title":"Your data"}],"title":"Beta terms","updated":"2026-11-26"},"usage":{"_caps":"The caps, the usage counter, the off-topic pre-check and the marking thumbs are active only when access.gate is not 'open' (they switch on together with 'allowlist' or 'approval'; no separate switch). AI calls per user. Applies to the built-in AI only (not to a learner's own Gemini key). A beta/{email} document with unlimited: true has no cap. persist: false keeps the count on this device only; true also keeps it in users/{uid}/aiUsage/{week} (owner approved 15 Nov).","caps":{"day":75,"week":null},"offTopicWeight":0.25,"persist":true,"weights":{"chat":1,"mark":1,"memory":0,"quick":1}}}