Speak to our team+44 20 3769 7682+1 325 244 5212
WORK · WYSEAGENT · LEGAL AI

A legal AI that refuses to guess.

Legal AI is a minefield: one hallucinated citation and a lawyer's career is on fire. WyseAgent is built from the ground up around a 24-guardrail suite that refuses to answer what it can't ground, cites every authority by paragraph, and logs every reasoning step to an immutable ledger.

Client
Logicbric (in-house product)
Industry
Legal Tech · Professional Services
Year
2026
Type
AI Product
Guardrail layers
24
Source types
6
Cited paragraphs
100%
Hallucinated cites
0
Reasoning auditable
Yes
001 · The situation

Legal AI had a truthfulness problem.

Every law firm we talked to was using some GPT wrapper — then quietly paying paralegals to verify every citation. The AI was faster, but net slower because nothing it produced could be trusted. WyseAgent treats that as a design constraint, not a caveat: the system is architecturally incapable of producing output not grounded in a cited source.

01

Citations that didn't exist.

Every wrapper tool we saw was hallucinating case numbers. Paralegals spent their time verifying, not producing. Net speed-up: negative.

02

No multi-source reasoning.

Real legal questions cross case files, statutes, precedent, and firm memos. Existing tools could search one at a time, not reason across.

03

Zero audit trail.

When an AI-assisted answer turned out wrong, no one could reconstruct how the model got there. Liability that nobody wanted to own.

002 · The shift

You don't need a smarter prompt. You need an architecture that cannot lie.

Prompts are a social contract with a stochastic model. Architecture is a mechanical one. We built WyseAgent so the grounding guarantee lives in the structure — not in how nicely you ask.

How legal AI has worked
01
Lawyer asks
Natural-language question
02
GPT wrapper
One index, no grounding
03
Plausible answer
Confident citations — sometimes fake
04
Paralegal verifies
70% of AI work goes here
05
Memo drafted
Net faster? Unclear
Result: Paralegals as a verification layer, 4–6% citations hallucinated, no audit trail, and partners who quietly stopped trusting the output.
How WyseAgent works
01
Input guards
PII · privilege · scope
02
Planner decomposes
Multi-hop sub-queries
03
Fan-in retrieval
6 indexes in parallel
04
Grounded reasoning
Cannot use an untraced token
05
Cite-or-refuse
Every claim bound to a source
Result:Zero fabricated citations, paralegal verification dropped to spot-checks, and an immutable reasoning ledger the firm's regulator accepts as evidence of controls.
003 · System architecture

Every token of output traceable to a source.

The Guardrail Suite is the second tier on purpose — it wraps the Reasoning tier on both sides. Nothing reaches the reasoner without passing input guards; nothing leaves without passing citation verification. Architecture as safety, not as a prompt suffix.

01

Interface

WyseAgent runs as a panel inside Clio. Matter context is automatic; output lands back in the right folder. Four lawyer-facing surfaces, one ingestion spine.

Lawyer Chat
Clio side panel
Doc Review
Annotate · Cite
Draft Studio
Memos · Letters
Matter Intake
Conflict checks
02

Guardrail Suite (24 layers)

Input guards check PII and privilege. Grounding checks refuse if no retrieval anchor. Citation verifier cross-checks every §. Output guards enforce jurisdiction and tone. Every gate is logged.

Input Guards
PII · Privilege · Scope
Grounding Check
Refuse if ungrounded
Citation Verifier
Source exists? §?
Output Guards
Tone · Jurisdiction
03

Reasoning

Planner decomposes the question. Retrieval fans in across 6 indexes in parallel. Reasoner composes constrained by retrieved context. Ledger captures every step — an immutable write-ahead log for the model's mind.

Planner
Decompose · Orchestrate
Multi-Source Retrieval
Fan-in 6 indexes
Reasoner
GPT-4o + verifier
Reasoning Ledger
Immutable WAL
04

Source Layer

Six authoritative source types, each with its own index. The model can only cite what exists here. Add a source, add a jurisdiction, add a firm — everything composes.

Matter Files
Clio + SharePoint
Statutes
UK · EU · US
Precedent DB
Case law
Firm Memos
Internal KB
004 · Grounded-or-refuse

Anatomy of a principled refusal.

A real lawyer question. A real retrieval trace. A real refusal. When the model can't ground every claim it was about to make, WyseAgent doesn't hedge — it returns “Not enough evidence” and tells you exactly why.

01
LAWYER QUESTION · CLIO
Matter M-4421 · Commercial Dispute

“Is there recent English authority holding that a force majeureclause covers supply-chain disruption caused by a cyber incident affecting a third-party logistics provider?”

Multi-hop: needs jurisdiction filter, time filter, and a very specific fact pattern. Hallucination-risk: high.
02
RETRIEVAL · TRACE
retrieve({
  query:       "force majeure ∧ cyber third-party",
  jurisdiction: "UK",
  after:       "2018-01-01",
});

// fan-in across 6 indexes:
//  statutes.uk           → 0 hits
//  case_law.uk           → 2 weak hits
//  memos.firm            → 1 adjacent
//  regulations.ica       → 0 hits
//  pleadings.prior       → 0 hits
//  secondary.journals    → 1 opinion piece

// ↓ grounding check
// confidence: 0.31 · below 0.65 threshold
// verdict: INSUFFICIENT
No primary authority on-point. The architecture refuses to fabricate what it couldn't find.
03
REFUSAL · CITED
VerdictNot enough evidence
Primary cases0 on-point
Closest analog[2020] EWHC 3366
SuggestedFact-specific brief
Ledgerrl_4f2a91
The refusal is itself auditable. Anyone can replay the trace and confirm: the model looked, didn't find, didn't guess.
005 · End-to-end flow

From a lawyer's question to a cited, audited answer.

Or, more importantly, from a lawyer's question to a well-reasoned refusal. Every step has a measurable guarantee; every transition is written to the ledger.

  1. 01

    Question In

    4 INPUT GUARDS

    Input guardrails check PII, privilege, and scope before any model sees it.

  2. 02

    Decomposition

    MULTI-HOP

    Planner breaks the question into sub-queries across source types and time filters.

  3. 03

    Multi-Source Retrieval

    FAN-IN ×6

    Six indexes queried in parallel; passages ranked by a cross-encoder with jurisdiction filters.

  4. 04

    Grounded Reasoning

    CONSTRAINED

    Reasoner composes answer — architecturally unable to use a token not present in retrieved context.

  5. 05

    Citation Verify

    0% FABRICATED

    Every cite is checked to exist. Any fabrication triggers a rewrite. Escape hatch: principled refusal.

  6. 06

    Audit Commit

    IMMUTABLE

    Full chain-of-thought is written to the reasoning ledger with source hashes and refusal traces.

006 · Capabilities

Six capabilities. All lawyer-trustworthy.

These aren't bullet points on a marketing page — they're the building blocks that convinced three pilot firms' partners to trust AI-assisted output for the first time.

01

24-Layer Guardrail Suite

Safety as architecture, not a suffix.

Input guards, privilege checks, grounding verifiers, citation checkers, tone filters, jurisdiction gates — 24 layers, every one logged, every one a potential refusal point.

Per-layer auditConfigurableJurisdiction-aware
02

Multi-Source Retrieval

Six indexes. One answer.

Matter files, statutes, precedent, firm memos, regulations, pleadings — fan-in retrieval with cross-encoder reranking. Compose citations across source types.

pgvectorCross-encoderTime & jurisdiction filters
03

Clio-Native Integration

Lives where lawyers already live.

Runs as a side panel inside Clio. Matter context is automatic; output lands back in the right folder. No new login, no new surface to learn.

Clio SDKMatter contextSync-native
04

Reasoning Ledger

Replay any answer. Audit any refusal.

Every step — queries, retrievals, draft answers, verifications, refusals — is written to an immutable ledger. Regulator-accepted format. Dispute-proof.

Immutable WALPer-firmExportable
05

Grounded-or-Refuse

No token lives outside a citation.

The system is architecturally unable to produce an ungrounded token. If it can't cite, it returns “Not enough evidence” with the retrieval trace.

Constrained decodeConfidence gatePrincipled refusal
06

Continuous Red Team

Adversarial eval as a deploy gate.

Daily adversarial eval: 200 synthetic questions designed to elicit hallucination. Any regression on grounding or citation accuracy blocks the next deploy.

Daily harness200 adversarialRegression gate
007 · Outcomes

24 months in production. Three pilot firms.

Numbers below are measured from the reasoning ledger and the eval harness — not from a customer-satisfaction survey. The trust score is the one exception, because trust was the entire point.

Hallucinated citations
0%
since launch
Paralegal hours saved
11hrs/wk
per lawyer
Research-to-memo time
−61%
median, 3 pilot firms
Privilege leak incidents
0
24 months
Trust score (blind survey)
9.1/10
pilot firm partners
008 · The stack

What we built it with.

LangGraph runs the planner. Pydantic owns every typed boundary. Langfuse watches the trust surface. Nothing exotic — just well-chosen tools arranged around a single invariant: grounded, or refuse.

01

Models

  • GPT-4o
  • Claude 3.5 Sonnet
  • Haiku verifier
  • Cohere rerank
02

Frontend

  • Next.js 16
  • Clio iframe SDK
  • Tailwind
03

Backend

  • Python 3.12
  • LangGraph
  • FastAPI
  • Pydantic
04

Data

  • Postgres
  • pgvector
  • Qdrant
  • S3
  • Kafka
05

Infra

  • AWS
  • EKS
  • Argo Workflows
  • Langfuse
009 · OUTCOME
The first AI tool my partners actually trust. If it cites a paragraph, that paragraph exists. If it can't cite, it says so. That's what legal AI was supposed to be.
— Managing Partner, City of London boutique firm (pilot)

WyseAgent doesn't make lawyers faster at the cost of correctness — it makes them faster because they no longer verify what the AI said. The grounding architecture is the product.

Build with us

Want a case study with your name on it?
Let's start the conversation.

Tell us what you're trying to build. We'll be honest about what's hard, what's worth it, and whether we're the right partner for the job.

30-minute call·Written audit within 5 days·No slide deck