Beyond the MinLaw Guide

Your Firm's AI-First Technology Stack

The MinLaw Guide tells you what to do with GenAI. This page is about what to build with. Three open-source projects — all connected to Singapore — give law firms a path to sovereign, private, AI-native legal technology.

The Problem with Cloud-Only AI

Most legal AI tools today route your prompts, documents, and client data through overseas cloud providers. Every API call is a data transfer. Every vendor is a dependency. The MinLaw Guide's Confidentiality principle (Section 3.2) asks you to evaluate data residency, cross-border transfers, and vendor data handling — but what if you could avoid the question entirely?

What if your AI ran locally, on your terms, with a model built in Singapore?

SEA-LION — Singapore's Own LLM

SEA-LION is a family of large language models developed by AI Singapore — a national programme. It is purpose-built for Southeast Asian languages and contexts.

Why this matters for law firms:

  • Data sovereignty — your data never leaves Singapore. No cross-border transfer risk. No foreign jurisdiction concerns.
  • Regional expertise — trained on Southeast Asian content, SEA-LION understands local legal terminology, cultural nuance, and multilingual contexts that global models often miss.
  • Open source — you can run it on your own hardware, audit the model, and build on top of it without vendor lock-in.
  • Compliance by design — when the model runs locally, you satisfy the Guide's data handling requirements at the infrastructure level, not just the policy level.

FOSM — A New Paradigm for Legal Software

Most legal software today is built on CRUD — Create, Read, Update, Delete. It treats a contract, a case file, or a client matter as a static record to be edited. But legal work is not static. It flows through stages: drafted → reviewed → negotiated → executed → renewed.

Finite Object State Machines (FOSM) is a paradigm that models software around lifecycles instead of records. Every object has defined states, transitions, and rules — and AI becomes a collaborator within that lifecycle, not just a chatbot bolted on the side.

Imagine:

  • A contract that knows it is in "negotiation" state and can only move to "executed" after review
  • An AI agent that drafts clause amendments within the lifecycle rules your firm defines
  • Governance and human oversight built into the state machine itself — not as an afterthought

The FOSM book is a hands-on guide to building this kind of software using Rails 8 and AI coding agents. It is the "how" behind the MinLaw Guide's Step 4 (Implementation) and Step 5 (Continuous Improvement).

Zuzu — Private AI Desktop Apps

Zuzu is an open-source framework for building AI-native desktop applications that run entirely on your machine. No cloud. No API keys. No data leaving the building.

Built on JRuby with local LLM inference via llamafile, Zuzu ships as a single installable app (.dmg, .exe, .deb) — like any normal desktop software, except it has an AI agent inside.

For a law firm, this means:

  • 100% local processing — document review, summarisation, and drafting happen on your laptop. Client data never touches the internet.
  • No cloud dependency — works offline, in air-gapped environments, behind any firewall.
  • Sandboxed by design — Zuzu's AgentFS gives the AI a virtual filesystem. It can only access what you explicitly allow.
  • Distributable — build a tool, ship it to your team as a native installer. No Docker. No Java setup. Just double-click.

The Stack, Together

Model SEA-LION Singapore's sovereign LLM — regional expertise, local data
Paradigm FOSM Lifecycle-driven software where AI operates within defined rules
Runtime Zuzu Local-first desktop apps — no cloud, no data leakage

A Singapore law firm running SEA-LION through a FOSM-architected application on Zuzu would have an AI-first technology stack that is sovereign (Singapore model, Singapore data), governed (lifecycle rules, human oversight), and private (nothing leaves your machine). That is not a future vision — every piece exists today, open source, ready to build with.

Start Exploring

← Back to LawParVilla