Inspiration
A civil servant who signs an administrative act answers for every line of it. The checks that matter are simple to name and tedious to do: is the law I cite still in force? Did I give the reasons the law requires? Am I publishing personal data I should not? Usually these checks are done alone, late, by re-reading the same page. And when a new rule comes out, the same person has to learn it, again alone.
We wanted the minute before the signature to work differently: you keep the page in front of you, three reviewers read it independently, a fixed rule decides what must change, public law databases confirm the laws, and you decide each change yourself. And we wanted a sparring partner for the day the rules change.
What it does
Carpe Lex gives an act a second reading before you sign it, and helps you learn a new rule. It runs in the headset (mixed reality, seated, hands only) and on a computer, with one engine behind both.
Two ways in. The entrance is split in two. The paper world is the full experience: check an act, study a rule, listen, practise, in a cut-paper world that builds itself like a pop-up book. The plain desk only corrects a document, in a sober interface, with no study and no games. Both are available in the headset and on a computer.
Checking an act
- Bring the document: a Word file or plain text, a photo of the page, a scan taken with the headset camera, or a file sent from a computer to the headset with a four-digit code. Files arrive exactly as written; a photo is transcribed by an AI model told not to correct anything, and you check the text before the review starts.
- Three independent reviewers. Three different AI models read the text in parallel; none sees the others. Each reports only what must change: the words that are wrong, a rewrite, the legal basis (act and article) and a short reason.
- An arbiter that is a rule, not a model. A paragraph "must change" when at least two of the three flag it. If only one does, the text is confirmed and that reviewer's doubt stays on record, in its own words.
- Five public law databases. Every act the reviewers cite is looked up in the official database of its legal system: EUR-Lex / CELLAR (European Union), Normattiva (Italy), BOE (Spain), legislation.gov.uk (United Kingdom), gesetze-im-internet.de (Germany). When a reviewer names the national law that applies an EU act, that law is looked up too. An act the database does not know is dropped; an act the draft cites that is no longer in force is flagged. The databases confirm that the act exists and link to its official page; "in force" is stated only where the database says so (EU, Spain, UK). Whether the article says what the reviewer claims is left to the reader, and the app says so. In the paper world the sources are a pop-up atlas of the five legal systems.
- You decide. Apply: the paragraph on the page becomes the corrected text (the original is one click away; your file is never changed). Keep: your wording stays. Everything can be undone.
- A real output. The corrected working copy downloads as a Word file, with the legal basis of each change and a record page. From the headset, a four-digit code hands it to your computer.
- A tutor answers questions about the open document, typed or spoken, and "Hear why" reads the reason for a finding aloud.
A sparring partner for a new rule (paper world)
- Read it: open a law, an article or your notes (the EU AI Act, Articles 4 and 50, is built in).
- Listen to it: two AI voices talk you through the text for about a minute and a half. One model writes the conversation; the three reviewers check every line against the text; a line is read aloud only if at least two of three confirm it; the script is shown with each line's count. You can play it whenever you want.
- Play it, so it sticks: five questions written from the text and checked by the same two-of-three rule, played as a quiz or as paper athletics (100 m, hurdles, long jump, javelin, diving). Pinching fast only makes the athlete run; every other move is decided by a question. Right: the move comes out clean. Wrong: it costs you.
A sample case is included (a fictional municipality's contract award with deliberate mistakes); its review is saved, so it runs without any AI call unless you ask the tutor.
Carpe Lex is a drafting aid, not legal advice. The reviewers are AI models and can be wrong; every decision stays with the person who signs.
How we built it
- Headset app: Meta's Immersive Web SDK (IWSDK) on three.js and WebXR, AR session with hand tracking; IWSDK's ray interaction handles pointing and pinching. Pages, highlights, the atlas and the games are drawn on canvases at high resolution; the desk height adapts to the measured eye height for seated use. You can stay in the paper world or switch to your own room (passthrough).
- Desktop pages: plain HTML, CSS and JavaScript, no framework, talking to the same engine.
- Engine (Node.js, no external packages): runs the three reviewers in parallel and applies the two-of-three rule in plain code; resolves act names and queries the five public databases; reads and writes Word files with its own small zip reader and writer; pairs headset and computer with a four-digit code; keeps the API key on the server; enforces spending caps and rate limits with a usage ledger.
- The two-voice explainer reuses the review engine: same three models, same rule, applied to each line of a script; voices by text-to-speech with two speakers.
- The paper games are canvas modules with unit tests for the scoring rules, shared by the headset view and the desktop page.
- Models: Google Gemini (three different models as reviewers; text-to-speech for the voices).
- Hosting: the author's own PC behind a Cloudflare tunnel.
Challenges we ran into
- Keeping the AI accountable. No fourth model "judges" the other three: the arbiter is a fixed rule, and a database, not a model, says whether a law exists.
- Showing disagreement instead of hiding it. A single reviewer's doubt is kept visible, in that reviewer's words.
- Getting a document into a headset. Typing in VR is slow and acts are Word files on a computer, hence the four-digit code.
- Honest labels everywhere. Every screen says what is saved and what is live, what a database confirmed and what it did not.
- Building without a headset. The author has no Quest: the headset app was built and tested in the IWSDK emulator only.
Accomplishments that we're proud of
- A review that is reproducible: same three readings, same rule, same result.
- Legal sources looked up in official databases, each with a link to its official page, for five legal systems.
- The original document is never touched; the result is a Word file a colleague can read.
- A learning path where even the podcast script is checked line by line before it is read aloud.
What we learned
- An honest display of disagreement is more useful to a careful reader than one confident answer.
- A small fixed rule plus a public database adds more trust than a stronger model would.
- Designing for hands first forced every step down to one pinch.
What is and is not tested
- Tested on a computer, end to end, with real documents and live AI calls: both versions, review, sources, apply and undo, Word export, tutor, the two-voice explainer on a user's own text, the practice games.
- Tested in the emulator only: the headset app, in both versions (IWSDK emulator, mouse or emulated pinches standing in for hands): sending a file from a computer with the code, review, sources, apply, Word copy, study, listening, games. The headset footage in the video is recorded there.
- Not tested: the app has never run on a physical Meta Quest. Real hand tracking, voice input, the camera scan in an immersive session, legibility at headset distance and frame rate are unverified.
What's next
- Test on a physical Meta Quest.
- More national law databases (France first) and the in-force check for Italy and Germany.
- Bring the mechanic into the author's training suite for civil servants.
Privacy
Your own document is sent to AI models through the Gemini API to be reviewed, transcribed, explained or turned into questions. Texts and their reviews are kept on the server for about a day and then deleted; photos are not stored. Please do not upload confidential documents to this demo.
Credits
Font: Manrope (SIL Open Font License). Music (optional): J. S. Bach, Prelude in C major BWV 846, Kimiko Ishizaka, Open Well-Tempered Clavier (public domain); Erik Satie, Gymnopédie No. 1, Kevin MacLeod (CC BY 4.0). Paper illustrations, backdrops, the athlete's poses and the example rooms: generated for this project with AI image and video tools on the author's own accounts, then cut out and animated by the project's code; no third-party artwork, no real persons. Voices (tutor, recorded clips, the two-voice explainer): synthetic, generated with text-to-speech; "Mia" and "Leo" are fictional names for synthetic voices. Stadium crowd sound: Mixkit, Sound Effects Free License. Study text: Regulation (EU) 2024/1689, Articles 4 and 50, official text. Legal data: EUR-Lex / CELLAR (EU Publications Office), Normattiva, BOE, legislation.gov.uk, gesetze-im-internet.de. Sample act: fictional, written for this project.