Legal reference corpus types — jurisdictions, legal authorities (statutes/codes/caselaw), and venues. Shared, read-mostly reference data (not tenant-scoped).
| Tier | domain |
| Role | unclassified (baselined) |
| Path | crates/domain/legal-authorities |
| Edition | 2021 |
| Targets | domain_legal_authorities |
| Public items | 0 across 0 modules |
| Tests | 8 |
What it is for
Legal reference corpus — jurisdictions, legal authorities (statutes / codes / caselaw / treaties / constitution), and venues (courts).
These are shared, read-mostly reference data — the same statutes/codes/ caselaw for every firm in a jurisdiction — so in a db-per-tenant deployment they live on the control/reference plane, NOT in per-firm databases. Firms reference authorities/jurisdictions/venues by id (no cross-database FK).
Bilingual (name(lang)) and effective-dated (is_effective), spanning both legal systems: LegalSystem::{CommonLaw, CivilLaw, Mixed} (US / Mexico).
Moved here from domain-legal-matter (Sprint P4) so the reference corpus is owned by the reference-plane crate; domain-legal-matter re-exports these for back-compat.
Capabilities
No public items.
How to use it
No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.
Module structure
No public modules: the crate root is its whole surface.
Public surface
No public items.
Re-exports. Exported here, defined elsewhere.
| Export | Defined in |
|---|---|
{AuthorityType,Jurisdiction,LegalAuthority,LegalSystem} | jurisdiction::{AuthorityType,Jurisdiction,LegalAuthority,LegalSystem} |
{Venue,VenueType} | venue::{Venue,VenueType} |
Boundary
Reaches into foundation.
Shares tier domain with 41 other crates: domain-agreements, domain-ai-report, domain-billing, domain-catalog, domain-classify, domain-comments, domain-competitive-intel, domain-contact, … (41 total).
_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._
Where it sits
| Tier (ontology) | domain |
| Architectural role (taxonomy) | unclassified (baselined) |
| Location | crates/domain/legal-authorities |
| Vocabulary in force (lexicon) | current |
Tier flow. Which tiers this crate's own edges cross.
flowchart LR n_domain["domain"] --> n_foundation["foundation"]
Dependencies
Runtime, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `foundation-basemodels` | foundation | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
chrono | ^0.4 | serde | no | always |
serde | ^1 | derive | no | always |
serde_json | ^1 | — | no | always |
thiserror | ^2 | — | no | always |
uuid | ^1 | v4, v7, serde, js | no | always |
Development. None.
Build. None.
Depended on by. 2 workspace crates.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR n_application_legal_authorities["application-legal-authorities"] -->|uses| SELF n_domain_legal_matter["domain-legal-matter"] -->|uses| SELF SELF["domain-legal-authorities"] SELF -->|runtime| n_foundation_basemodels["foundation-basemodels"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.
Targets
| Kind | Name | Source |
|---|---|---|
| lib | domain_legal_authorities | `src/lib.rs` |
Error model
No public error type was detected: no public item declares a type named *Error, and no public signature returns one.
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | none detected |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.
Related capabilities
2 workspace crates depend on this one: application-legal-authorities, domain-legal-matter.
Verification
| Kind | Count |
|---|---|
| Unit tests | 8 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
What the tests establish, by name:
test_jurisdiction_creation—src/jurisdiction.rstest_jurisdiction_with_subdivision—src/jurisdiction.rstest_legal_authority_creation—src/jurisdiction.rstest_legal_authority_mexican_law—src/jurisdiction.rstest_treaty_with_countries—src/jurisdiction.rstest_venue_bilingual_name—src/venue.rstest_venue_creation_enforces_both_fks—src/venue.rstest_venue_with_docket_prefix—src/venue.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 3 |
| Source lines | 503 |
| Code lines | 413 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 8 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 6 |
| Workspace reverse dependencies | 2 |
pie showData
title Rust source composition
"Code" : 413
"Blank or comment" : 90
Generation
Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.