Canada Law Wiki Schema
- DEVELOPMENT LOCATION:
/opt/data/workspace/Documents/Wiki/Canada-Law-Wiki/SCHEMA.md - DEPLOYED LOCATION:
/opt/data/workspace/Documents/Wiki/Canada-Law-Wiki/SCHEMA.md - JURISDICTION: Server:
server1| Container:hermes-agent
Domain
Federal and Provincial laws, regulations, and administrative tribunal rules of Canada, with core focus branches: 1. Housing: Residential tenancies, rights, landlord/tenant disputes, and provincial tribunal rules (e.g., LTB in Ontario, RTB in BC). 2. Immigration: IRCC guidelines, federal acts (IRPA), express entry, and permit structures. 3. Tax: Income Tax Act, CRA bulletins, credits, and deductions. 4. Benefits: Employment Insurance (EI), CPP, OAS, and Child Benefits.
Conventions
- File Names: Lowercase, hyphens, no spaces (e.g.,
residential-tenancies-act.md). - Markdown Links: Use
[[wikilinks]]to interlink pages. Every page must maintain at least 2 outbound links. - Synthesized Provenance: On pages summarizing multiple sources, use
^[raw/housing/source.md]at the end of paragraphs to map statements to primary legislative files. - Dates: Always format as
YYYY-MM-DD.
Frontmatter Template
Every page in the wiki must start with this frontmatter:
---
title: Page Title
created: YYYY-MM-DD
updated: YYYY-MM-DD
type: legislation | regulation | tribunal-rule | concept | entity | comparison | query
tags: [from taxonomy below]
sources: [raw/housing/source-file.md]
confidence: high | medium | low
contested: true | false
contradictions: [conflicting-page-slug]
---
Tag Taxonomy
Only the following tags are authorized inside frontmatter. Add new tags here before using them.
- Housing Branch: housing-act, ltb-rules, rtb-rules, eviction-guideline, rent-control, tenant-rights, landlord-obligations
- Immigration Branch: immigration-act, ircc-guideline, express-entry, work-permit, study-permit, pr-status
- Tax Branch: tax-act, cra-bulletin, deductions, tax-credits, audit-procedures
- Benefits Branch: employment-insurance, cpp-rules, oas-pension, child-benefits
- General Meta: federal-jurisdiction, provincial-jurisdiction, administrative-rule, comparison, query-synthesis
Page Thresholds
- Create Page: When a legal entity, specific rule, or concept appears in 2+ primary sources or requires dedicated synthesis.
- Update Page: When new legislation, tribunal decisions, or CRA bulletins modify current rules.
- Split Page: When a file exceeds 200 lines—sub-split and link.