Legal matters: cases, intake, jurisdiction, venue, conflict checks, engagement, and access policy
| Tier | domain |
| Role | unclassified (baselined) |
| Path | crates/domain/legal-matter |
| Edition | 2021 |
| Targets | domain_legal_matter |
| Public items | 0 across 0 modules |
| Tests | 36 |
What it is for
This crate does not document itself. No //! block on its entry point. The facts below are complete; the reason this crate exists is not written down anywhere, and belongs in src/lib.rs rather than here.
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 |
|---|---|
{AccessDenyReason,MatterAccessDeny,MatterAccessGrant} | access::{AccessDenyReason,MatterAccessDeny,MatterAccessGrant} |
{AuthorityType,Jurisdiction,LegalAuthority,LegalSystem,Venue,VenueType,} | domain_legal_authorities::{AuthorityType,Jurisdiction,LegalAuthority,LegalSystem,Venue,VenueType,} |
{CauseOfAction,CauseRole,CauseStatus} | cause::{CauseOfAction,CauseRole,CauseStatus} |
{ConfidentialityLevel,InternalPublicationState,LegalProtection} | policy::{ConfidentialityLevel,InternalPublicationState,LegalProtection} |
{ConflictCheck,ConflictCheckStatus,ConflictDecision,ConflictMatch,ConflictParty,} | conflict::{ConflictCheck,ConflictCheckStatus,ConflictDecision,ConflictMatch,ConflictParty,} |
{Engagement,EngagementType,FeeArrangement} | engagement::{Engagement,EngagementType,FeeArrangement} |
{Intake,IntakeParticipant,IntakeRole,IntakeStatus} | intake::{Intake,IntakeParticipant,IntakeRole,IntakeStatus} |
{LegalHold,RetentionPolicy} | retention::{LegalHold,RetentionPolicy} |
{LegalRole,Matter,MatterJurisdiction,MatterParty,MatterStatus,MatterType} | matter::{LegalRole,Matter,MatterJurisdiction,MatterParty,MatterStatus,MatterType} |
Boundary
Reaches into foundation, identity, operations.
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-matter |
| Vocabulary in force (lexicon) | current |
Tier flow. Which tiers this crate's own edges cross.
flowchart LR n_domain["domain"] --> n_foundation["foundation"] n_domain["domain"] --> n_identity["identity"] n_domain["domain"] --> n_operations["operations"]
Dependencies
Runtime, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `domain-legal-authorities` | domain | no | always |
| `foundation-basemodels` | foundation | no | always |
| `foundation-money` | foundation | no | always |
| `identity-parties` | identity | no | always |
| `identity-rbac` | identity | no | always |
| `identity-tenant` | identity | no | always |
| `operations-workflow` | operations | 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, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
tokio-test | ^0.4 | — | no | always |
Build. None.
Depended on by. 4 workspace crates.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR n_application_legal_matter["application-legal-matter"] -->|uses| SELF n_domain_legal_documents["domain-legal-documents"] -->|uses| SELF n_domain_legal_evidence["domain-legal-evidence"] -->|uses| SELF n_domain_legal_procedure["domain-legal-procedure"] -->|uses| SELF SELF["domain-legal-matter"] SELF -->|runtime| n_domain_legal_authorities["domain-legal-authorities"] SELF -->|runtime| n_foundation_basemodels["foundation-basemodels"] SELF -->|runtime| n_foundation_money["foundation-money"] SELF -->|runtime| n_identity_parties["identity-parties"] SELF -->|runtime| n_identity_rbac["identity-rbac"] SELF -->|runtime| n_identity_tenant["identity-tenant"] SELF -->|runtime| n_operations_workflow["operations-workflow"] 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_matter | `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
4 workspace crates depend on this one: application-legal-matter, domain-legal-documents, domain-legal-evidence, domain-legal-procedure.
Verification
| Kind | Count |
|---|---|
| Unit tests | 36 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
What the tests establish, by name:
test_access_grant—src/access.rstest_ethical_wall_creation—src/access.rstest_ethical_wall_release—src/access.rstest_cause_of_action_creation—src/cause.rstest_cause_with_mexican_law—src/cause.rstest_counterclaim—src/cause.rstest_conflict_check_clear_path—src/conflict.rstest_conflict_check_declined—src/conflict.rstest_conflict_check_waiver—src/conflict.rstest_conflict_check_with_matches—src/conflict.rstest_engagement_creation—src/engagement.rstest_engagement_sign_and_active—src/engagement.rstest_engagement_terminate—src/engagement.rstest_engagement_with_mxn_retainer—src/engagement.rstest_pro_bono_engagement—src/engagement.rstest_frozen_intake_cannot_transition—src/intake.rstest_intake_cannot_convert_without_engagement—src/intake.rstest_intake_creation—src/intake.rstest_intake_decline_from_contact_made—src/intake.rstest_intake_decline_from_new—src/intake.rstest_intake_full_lifecycle_to_conversion—src/intake.rstest_intake_participant_contact_vs_client—src/intake.rstest_new_intake_can_be_abandoned—src/intake.rstest_closed_matter_can_archive—src/matter.rstest_closed_matter_can_reopen—src/matter.rstest_matter_creation—src/matter.rstest_matter_invalid_transition—src/matter.rstest_matter_party_creation—src/matter.rstest_matter_terminal_states—src/matter.rstest_matter_valid_transitions—src/matter.rs- _… 6 more_
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 9 |
| Source lines | 1914 |
| Code lines | 1621 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 36 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 12 |
| Workspace reverse dependencies | 4 |
pie showData
title Rust source composition
"Code" : 1621
"Blank or comment" : 293
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.