Greenlight
One event description → every USC approval it needs, every deadline, and a rule-checked verdict before you submit.
The Problem
Running an event as a USC student org means getting approvals from up to six different offices: USG or GSG funding, the venue, the event permit (UEPA), catering, fundraising sign-off and social dance approval. Each one has its own system, its own lead time and its own rules, and most of those rules are spread across PDFs, FAQ pages and Google Docs. Officers often find out about a missed deadline or a broken funding rule only after they apply, when the event is already in trouble. USG reviewers then spend their time sending back applications that were never going to pass.
Our Solution
Greenlight walks an org officer through five steps:
- Describe: Type your event in plain English ("Diwali Night, Dec 12, TCC Ballroom, ~300 people, selling food and tickets, asking USG for $3,500"). Greenlight pulls out the details and asks follow-up questions only for what's missing.
- See what you need: It lists every approval the event triggers, in the order you have to do them (venue → food → UEPA → funding). It works each deadline back from your event date and flags academic breaks that fall inside a deadline window.
- Fix problems: It checks your request against USC's written rules and gives one verdict: Ready, At risk or Will be rejected. Each problem comes with the exact rule text, a link to its source and a one-click fix: move the date (a calendar shows which days work), change a budget line, attach a vendor quote, or drop dancing or ticket sales. The verdict updates live, so a request can go from "Will be rejected" to "Ready" in under a minute.
- Prepare your forms: It drafts the text for each form so you can copy it into the office's own system, such as EngageSC. Greenlight never submits anything for you.
- Track: Mark each approval as submitted or approved. Greenlight shows what's blocking you right now and drafts a reminder email to your advisor.
An Ask box answers funding questions ("Can USG pay for T-shirts?") using only the official guidelines, with a citation. If it can't find an answer, it points you to [email protected].
The AI understands, the rules decide. Every pass/fail decision is plain Python reading a rules file built from USC's published guidelines. The AI only turns messy text into structured event data and explains flagged rules in friendly language. It never decides a verdict or invents a rule, a dollar amount or a date. Every flag links to its source, and "Ready" means the request meets every written rule we check. The final decision still belongs to USG.
Tech Stack
- Backend: Python, FastAPI, Uvicorn
- AI: Anthropic Claude API (Claude Sonnet) for text-to-event extraction, rule explanations, form drafts and grounded Q&A
- Rules engine: deterministic Python plus
rules.json. It covers 9 approval types and 12 funding and vendor rules, plus an academic-calendar file for breaks and lead times worked back from the event date. - Knowledge base: 11 public USG, GSG, Campus Activities and Trojan Event Services sources turned into Markdown, each with its source URL, for retrieval-backed answers
- Frontend: React 18 + Vite, with a 5-step accessible flow (keyboard and screen-reader support, works on mobile)
- Testing: 149 pytest tests, with a pass and a fail case for every rule, plus AI guardrail tests and edge-case extraction tests
- Deployment: Replit, serving the API and the built frontend from one server
Challenges We Faced
- Finding the rules: USC's event and funding rules live in PDFs, FAQ pages, Senate bills and Google Docs. We had to find them, reconcile them and link each rule to its source so every flag can be traced back.
- Keeping the AI honest: Early explanations sometimes added numbers that weren't in any rule. We built a grounding check that rejects any AI output containing a figure not found in the sources, and we kept every decision out of the model entirely. If the AI is unavailable, the app falls back to the engine's own text and never crashes.
- Messy real-world input: Officers write things like "next Friday," "$3.5k," "we're not selling food" or "tickets are $10" (a price, not a cost). Each of these needed careful extraction and its own test.
- Subtle deadline logic: Steps depend on each other (no UEPA before a confirmed venue), breaks can land inside a deadline window, and "submitted after the deadline" is different from "approved." We had to model all of this without overwhelming the user.
- No public vendor list: USG's approved food-vendor list isn't public, so we built the vendor check against a clearly labeled synthetic list that can be swapped for the real one.
- Four people, one night: We split into two sub-teams that owned separate files and merged on a fixed schedule, so we could build in parallel without merge conflicts.
Goals for Future Implementation
- Check the rules with USG and Campus Activities, and replace the synthetic vendor list with the real approved list.
- A reviewer dashboard for USG/GSG: AI summaries of incoming applications, sorted by verdict, so reviewers spend their time on decisions instead of paperwork.
- EngageSC integration to prefill forms and sync approval status automatically.
- Rule-change monitoring that updates the rules file whenever the guidelines change.
- Deadline reminders sent to officers and advisors before each cutoff.
- Wider coverage: more offices (athletics venues, off-campus travel, risk management) and USC SSO login.