Awwab.md

wipOct 2026 – present

LexGraph

Temporal, citation-constrained Q&A over Pakistan's constitution

result85/85 dated graph-query cases and 36/36 relation checks passing

LexGraph architecturePrimary sources, including constitution pages, Gazette PDFs and amendments, are snapshotted with SHA-256 hashes and provenance, then reviewed and approved by a person before entering a provision graph of dated versions and amendment events. A question with an as-of date goes to deterministic, date-aware graph retrieval with no model calls. A model then writes atomic claims that may only cite the version IDs it was given, and a verifier checks each cited ID against the accepted snapshot. The answer releases verified claims and withholds the rest.building the graphPrimary sourcesgazette pdfsamendmentsSnapshotssha-256 hashprovenanceHuman reviewapprove eachversionProvision graphdated versionsamendment eventsdated evidenceaccepted snapshotansweringQuestion+ an as-of dateGraph retrievaldeterministicno model callsGenerationatomic claimscite given IDsVerifierchecks eachcited IDAnswerreleasedwithheldUnknown coverage, ambiguous dates and provider failures make it abstain instead of answering.the reviewed, dated grapha person
fig. 1Answers come from the graph, not from the model's memory. A person reviews every version that enters it, every claim must cite a version the graph supplied, and the verifier withholds anything that doesn't check out.

LexGraph answers questions about Pakistan’s constitution as it stood on a given date. Constitutional text changes through amendments, orders, and schedules, so a question about Article 175 in 2017 can have a different answer than the same question today. A flat RAG index can’t tell those versions apart.

The core is a versioned provision graph in Postgres. Every source is snapshotted with a SHA-256 hash and provenance: constitutional chapters, schedules, amendments, and the primary Gazette PDFs. Articles, clauses, and provisos become dated nodes. A deterministic query layer answers questions like “what were the children of Article 175 on this date” or “which exemptions applied to Article 8” without calling a model.

Generation sits on top of that graph and is only allowed to cite provisions the graph returns, with a verifier checking each answer. Development is spec-driven, and I evaluate against a hand-approved gold set of questions with held-out baselines. I’m deliberately cautious about claiming coverage: anything that hasn’t been reconciled against primary sources stays marked unverified.