ClauseChain logo
Official HTML statutebinding
Scanned amendmentamends
Ministry guidelinecontext
Evidence compiler
Authority0.91PredicateverifiedRDTIIP6.2Riskabstain
Provenance bundle
spanhashreviewURLsectionledger
UN AI Hackathon proposal demo

ClauseChain

A measured legal evidence compiler for digital trade regulations. It finds official sources, resolves authority, extracts legal predicates, maps them to RDTII Pillars 6 and 7, and proves every claim with reviewable citations.

8
verification gates
P6/P7
mandatory RDTII focus
0
uncited AI claims

Official evidence is fragmented

Digital trade rules sit across statutes, amendments, portals, gazettes, guidelines, and scanned archives.

Authority is easy to misread

A guideline can paraphrase the law, an amendment can be outdated, and a translation can be useful but non-binding.

Extraction changes meaning

OCR errors, broken section boundaries, and lost exceptions can turn a conditional transfer rule into the wrong policy signal.

AI claims need audit trails

Judges and reviewers need exact quotations, source status, page or section anchors, and a reason to trust every mapped claim.

How we solve it

Evidence first, model second.

ClauseChain treats AI as a constrained analyst inside a pipeline. Retrieval, source status, document structure, exact spans, and counter-evidence are checked before an output is allowed into the audit view.

01

Discover

Official portals and semantic search

02

Acquire

HTML, PDF, scanned PDF, OCR

03

Resolve

Authority and current-law status

04

Structure

Sections, definitions, exceptions

05

Predicate

Actor, action, object, condition

06

Map

RDTII Pillars 6 and 7

07

Verify

Eight gates plus abstention

08

Export

Ledger, JSON, CSV, provenance bundle

How it is built

System Architecture

Ten typed pipeline stages. Click any stage to see what it does and which verification gates it feeds. Click a gate to see which stages produce its evidence.

Jurisdiction Packs (YAML)
Official Portals SG · TH · BD
JSONL
CSV matrix
Provenance bundle

Eight Verification Gates

All must pass before a claim is exported. Click to see thresholds.

Model routing

Local-firstvLLM · Qwen / Llama
Cloud-optionalOpenAI · Anthropic

Proof layer

Accuracy is measured per stage, not promised at the end.

The demo benchmark shows where errors leak: discovery recall, authority status, OCR, section boundaries, retrieval, predicate extraction, classification, citation verification, and abstention. The point is to catch failure before a reviewer sees a confident wrong answer.

0.94
Discovery recall@20
+0.11 vs baseline
0.91
Authority accuracy
guidelines downgraded
1.8%
OCR CER
risk spans routed
0.89
Section-boundary F1
exceptions preserved
0.82
Classification macro-F1
predicate-first
0.96
Citation accuracy
span hash verified
Regression guardrail stream
Simulated benchmark run
running
Guideline treated as binding law
blocked
OCR flips "shall not" into "shall"
abstain
Exception lost during chunking
review
Outdated amendment selected
blocked
Baseline comparisonClauseChain
Citation fidelity96%
Authority resolution91%
Abstention calibration86%

Verification

The CVR Loop

Cite · Verify · Reject. Every mapped clause flows through eight gates before it can ship as evidence. Any failure rejects or routes to human review. Click a gate to see its threshold.

Review
Pass
Clause in
Verified
Reject
VERIFIED

All 8 gates pass → claim exported with full provenance bundle.

HUMAN REVIEW

Any gate returns uncertain → claim enters the reviewer queue.

REJECTED

Any gate fails hard → claim blocked from export entirely.

Human audit

Every mapped clause stays reviewable.

The reviewer sees the original source, extracted legal node, predicate tuple, RDTII classification, verification gates, counter-evidence, and exportable provenance bundle in one audit workspace.

Original source
An organisation shall not transfer any personal data outside Singapore except in accordance with requirements ensuring comparable protection.
Legal predicate tuple
Actororganisation
Actiontransfer personal data
Conditioncomparable protection
Policyconditional cross-border regime
Verification gates
Source official
Current law
Exact span
Citation anchor
OCR confidence
Predicate support
Counter-evidence
Human review

Built for a demo judges can inspect.

Start with the benchmark, show source authority resolution, audit a PDPA clause, then export the evidence bundle with citations, hashes, and reviewer state.