QENEX Law
Legal-source taxonomy, licence tagging, corpus gate

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#

  1. Licence hygiene is the gate. Nothing is ingested without a licence tag. See LICENSING.md and _meta/licence-tagging-schema.md. Buckets: green (ingest), amber (ingest under a specific licence), red (reference only — never stored here).
  2. 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".
  3. Single source of truth. Downstream clauses and templates cite source ids in registry/sources.index.yaml; they never copy law without a traceable link.
  4. Updated by process, not by memory. New regulations flow in via UPDATING.md.

Layout#

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.