domain capa

domain-legal-authorities

Legal reference corpus types — jurisdictions, legal authorities (statutes/codes/caselaw), and venues. Shared, read-mostly reference data (not tenant-scoped).

Legal reference corpus types — jurisdictions, legal authorities (statutes/codes/caselaw), and venues. Shared, read-mostly reference data (not tenant-scoped).

Tierdomain
Roleunclassified (baselined)
Pathcrates/domain/legal-authorities
Edition2021
Targetsdomain_legal_authorities
Public items0 across 0 modules
Tests8

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.

ExportDefined 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)
Locationcrates/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.

CrateTierOptionalOnly on
`foundation-basemodels`foundationnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
chrono^0.4serdenoalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
uuid^1v4, v7, serde, jsnoalways

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

KindNameSource
libdomain_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

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone 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.

2 workspace crates depend on this one: application-legal-authorities, domain-legal-matter.

Verification

KindCount
Unit tests8
Integration tests0
Examples0
Doctests0

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files3
Source lines503
Code lines413
Public API items0
Public modules0
Tests8
Examples0
Cargo features0
Direct runtime dependencies6
Workspace reverse dependencies2
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.

Todas las domain · Manual