QENEX Law — Legal Knowledge Base (single source of truth)#
This repository is the single source of truth for QENEX Law's legal knowledge. The directory tree is the taxonomy; git history is the audit trail. Every change to the law, guidance, or a model document lands as a reviewed, dated commit — so "what did our knowledge say on date X?" is always answerable, and provable.
Principles#
- Licence hygiene is the gate. Nothing is ingested without a licence tag. See
LICENSING.mdand_meta/licence-tagging-schema.md. Buckets: green (ingest), amber (ingest under a specific licence), red (reference only — never stored here). - Provenance by default. Each source carries
source.yaml(licence, dates, IPFS CID, audit anchor id). Git blame + the anchor = tamper-evident "law as of this date". - Single source of truth. Downstream clauses and templates cite source ids in
registry/sources.index.yaml; they never copy law without a traceable link. - Updated by process, not by memory. New regulations flow in via
UPDATING.md.
Layout#
_meta/— schema, taxonomy, trust scoring (the rules of the repo)docs/— design spec, knowledge-base plan, ops handoffsources/— the corpus:<instrument_type>/<practice_area>/<source>/source.yamlclause-library/— curated, trust-scored reusable clauses (the moat)templates/— assembled document templates that reference clausesregistry/sources.index.yaml— master index of every source recordCHANGELOG.md— human-readable regulatory/knowledge change log
Instrument types#
legislation · caselaw · guidance · model-documents
Practice areas (folders)#
company-governance · fundraising-seis-eis · fundraising-asa-termsheet · ip-patents · ip-trademarks · ip-assignment · employment · contractor · data-protection · commercial-nda · tax-reliefs
Validation (the gate, automated)#
python3 tools/validate_corpus.py enforces the licence gate + referential integrity: rejects red/prohibited sources, amber without licence_conditions, unindexed sources, and broken clause/template citations. Runs in CI on every push/PR via .forgejo/workflows/validate.yml.