Form I-9 — Employment Eligibility Verification (Sections 1 & 2, Firm Tightened SLA)
federal_i9- 8 USC 1324a
- 8 CFR 274a.2(b)(1)(i)(A)
- 8 CFR 274a.2(b)(1)(ii)(B)
- 8 CFR 274a.2(c)(1)
- Example Law Firm Policy OPS-101 (1-business-day I-9 SLA)
Example Law Firm binding pack (RFC 0004): maps legal, us-ny, us-federal, credentials-core, screening-core, and staffing-core concepts onto a law firm's professional/matter/matter_assignment entity graph, binds per-matter conflicts checks via PK0 scalar concept legal/matter_id, tightens Form I-9, NY pay notice, and confidentiality agreement deadlines, and adds a firm-specific ethics and client billing guidelines acknowledgment.
pnpm ir check packs/example-law-firm/pack.jsonpnpm ir test packs/example-law-firm/pack.jsonCompliance and operational rules declared in this pack's policies, with authority classification, legal citations, and due/renewal schedules.
federal_i9ny_pay_noticelegal_confidentiality_agreementfirm_ethics_billing_guidelinesMappings from abstract library concepts to concrete entity graph paths.
| Concept | Entity Path | Default & Notes |
|---|---|---|
work/location_state | matter_assignment.matter->matter.office_state | Work state from the matter's supervising office |
work/location_country | matter_assignment.matter->matter.office_country | Work country from the matter's supervising office |
work/is_remote | matter_assignment.is_remote | Whether the matter assignment is performed remotely |
engagement/start_date | matter_assignment.starts_on | First day of the professional's work on the matter assignment |
engagement/classification | matter_assignment.employment_type | W-2 employee or 1099 contractor classification on the matter assignment |
engagement/reviewer | matter_assignment.compliance_reviewer | Law firm legal operations reviewer completing verification sections |
engagement/employer_id | matter_assignment.firm_entity_id | Hiring law firm legal entity identifier for document reuse scoping |
engagement/everify_enrolled | matter_assignment.matter->matter.everify_participating | default: falseWhether the matter's supervising office participates in DHS/USCIS E-Verify |
principal/is_rehire | matter_assignment.professional->professional.is_rehire | default: falseWhether the legal professional was previously engaged by the firm |
principal/residence_state | matter_assignment.professional->professional.home_state | Primary state of residence on the linked professional entity |
principal/work_authorized_us | matter_assignment.professional->professional.us_work_authorized | US work authorization flag on the linked professional entity |
legal/role | matter_assignment.professional->professional.role | Legal role classification (attorney, paralegal, or legal_staff) on the linked professional |
legal/bar_state | matter_assignment.professional->professional.bar_state | Primary state or jurisdiction of bar admission on the linked professional |
legal/bar_status | matter_assignment.professional->professional.bar_status | Current bar admission standing on the linked professional |
legal/cle_compliant | matter_assignment.professional->professional.cle_compliant | Whether the attorney is current on state CLE requirements |
legal/matter_id | matter_assignment.matter->matter.matter_code | Per-matter identifier bound from the linked matter's matter_code to scope conflicts checks (PK0 option a) |
credential/required | matter_assignment.professional->professional.bar_credential_required | default: falseWhether the professional's engagement requires an active professional credential |
credential/expires_on | matter_assignment.professional->professional.bar_credential_expires_on | Expiration date of the professional's active bar credential |
credential/disciplinary_action | matter_assignment.professional->professional.disciplinary_action | default: falseWhether the professional's credential record carries an open or historical disciplinary action |
screening/background_required | matter_assignment.matter->matter.background_check_required | default: falseWhether the matter requires a pre-engagement consumer background report |
screening/drug_screen_required | matter_assignment.matter->matter.drug_screen_required | default: falseWhether the matter requires a pre-engagement drug screen |
screening/adverse_action_stage | matter_assignment.adverse_action_stage | default: noneCurrent FCRA adverse action stage on the matter assignment |
JSON Schema object definitions and typed x-ref edges shipped in this pack.
professionalv1full_name*stringemail*stringrole*stringhome_state*stringis_rehirebooleanus_work_authorizedbooleanbar_statestringbar_statusstringcle_compliantbooleanbar_credential_requiredbooleanbar_credential_expires_onstringdisciplinary_actionbooleanstatusstringmatterv1matter_code*stringtitle*stringpractice_areastringoffice_state*stringoffice_country*stringeverify_participatingbooleanbackground_check_requiredbooleandrug_screen_requiredbooleanmatter_assignmentv1firm_entity_id*stringemployment_type*stringstarts_on*stringis_remotebooleancompliance_reviewerstringadverse_action_stagestringstatusstringExecutable compliance test cases verified against this pack by pnpm ir test.
ny-attorney-new-matterNew W-2 New York attorney assigned to a new NY matter at an E-Verify enrolled office requires federal, NY, legal, and firm ethics/billing documents with tightened due dates; completing Form I-9 unlocks E-Verify.
matter_assignment (ma_ny_atty_01)=firm_entity_id=firm_ny_llp, employment_type=w2, starts_on=2026-12-10, is_remote=falseprofessional (prof_atty_01)=full_name=Jordan Ellis, email=jordan.ellis@example.test, role=attorney, home_state=NYmatter (matter_101)=matter_code=MTR-2026-101, title=Harbor Logistics Commercial Litigation, practice_area=litigation, office_state=NYny-paralegal-matter-assignmentW-2 New York paralegal assigned to a NY matter at a non-E-Verify office requires federal W-2 forms, NY statutory items, per-matter conflicts check, confidentiality agreement, and firm ethics/billing guidelines, but not attorney bar admission or CLE.
matter_assignment (ma_ny_para_01)=firm_entity_id=firm_ny_llp, employment_type=w2, starts_on=2026-12-10, is_remote=falseprofessional (prof_para_01)=full_name=Samira Haddad, email=samira.haddad@example.test, role=paralegal, home_state=NYmatter (matter_102)=matter_code=MTR-2026-102, title=Northbridge Real Estate Acquisition, practice_area=real_estate, office_state=NYnon-ny-contractor-legal-staff1099 legal_staff contractor assigned to a Connecticut matter requires only the confidentiality agreement and firm ethics/billing guidelines; W-2 federal, NY state, bar, CLE, and conflicts requirements do not apply.
matter_assignment (ma_ct_staff_01)=firm_entity_id=firm_ny_llp, employment_type=1099, starts_on=2026-12-10, is_remote=trueprofessional (prof_staff_01)=full_name=Devon Okafor, email=devon.okafor@example.test, role=legal_staff, home_state=CTmatter (matter_103)=matter_code=MTR-2026-103, title=Riverbend Regulatory Review, practice_area=regulatory, office_state=CTconflicts-check-reuse-same-vs-different-matterPrior conflicts check for MTR-2026-201 satisfies legal_conflicts_check on the same matter via legal/matter_id bound from matter_assignment.matter->matter.matter_code; reassigning to MTR-2026-202 requires a fresh conflicts check while firm ethics/billing guidelines remain satisfied for the same firm.
matter_assignment (ma_reuse_01)=firm_entity_id=firm_ny_llp, employment_type=1099, starts_on=2026-12-10, is_remote=falseprofessional (prof_para_02)=full_name=Tessa Lindholm, email=tessa.lindholm@example.test, role=paralegal, home_state=NYmatter (matter_201)=matter_code=MTR-2026-201, title=Meridian Corporate Financing, practice_area=corporate, office_state=NYtightened-due-dates-and-overdueTightened confidentiality agreement (days: -2) becomes overdue one day before start_date (2026-12-09 for a 2026-12-10 start), while tightened NY pay notice (days: -1) and firm ethics/billing guidelines (days: -1) become overdue on the start date.
matter_assignment (ma_due_01)=firm_entity_id=firm_ny_llp, employment_type=w2, starts_on=2026-12-10, is_remote=falseprofessional (prof_due_01)=full_name=Nadia Kowalski, email=nadia.kowalski@example.test, role=attorney, home_state=NYmatter (matter_301)=matter_code=MTR-2026-301, title=Beacon Employment Advisory, practice_area=employment, office_state=NYethics-guidelines-renewal-and-expiryCompleted firm ethics and billing guidelines acknowledgment opens a renewal item 30 days before its 1-year expiry and transitions to expired once as_of passes the expiry date.
matter_assignment (ma_exp_01)=firm_entity_id=firm_ny_llp, employment_type=1099, starts_on=2026-12-10, is_remote=trueprofessional (prof_exp_01)=full_name=Owen Takahashi, email=owen.takahashi@example.test, role=legal_staff, home_state=CTmatter (matter_401)=matter_code=MTR-2026-401, title=Summit Regulatory Filing, practice_area=regulatory, office_state=CTmissing-matter-link-tentativeWhen a matter_assignment has no linked matter entity, work/location_country and work/location_state are unresolved so federal and NY requirements wait on missing facts while legal and firm requirements remain available; supplying location facts resolves them.
matter_assignment (ma_missing_matter_01)=firm_entity_id=firm_ny_llp, employment_type=w2, starts_on=2026-12-10, is_remote=falseprofessional (prof_missing_01)=full_name=Caleb Morales, email=caleb.morales@example.test, role=attorney, home_state=NYpacks/example-law-firm/pack.json{
"format": 1,
"name": "example-law-firm",
"version": "2026.12.0",
"kind": "binding",
"description": "Example Law Firm binding pack (RFC 0004): maps legal, us-ny, us-federal, credentials-core, screening-core, and staffing-core concepts onto a law firm's professional/matter/matter_assignment entity graph, binds per-matter conflicts checks via PK0 scalar concept legal/matter_id, tightens Form I-9, NY pay notice, and confidentiality agreement deadlines, and adds a firm-specific ethics and client billing guidelines acknowledgment.",
"requires": [
{
"name": "legal",
"range": "^2026.12"
},
{
"name": "us-ny",
"range": "^2026.12"
}
],
"bindings": [
{
"concept": "work/location_state",
"path": "matter_assignment.matter->matter.office_state",
"description": "Work state from the matter's supervising office"
},
{
"concept": "work/location_country",
"path": "matter_assignment.matter->matter.office_country",
"description": "Work country from the matter's supervising office"
},
{
"concept": "work/is_remote",
"path": "matter_assignment.is_remote",
"description": "Whether the matter assignment is performed remotely"
},
{
"concept": "engagement/start_date",
"path": "matter_assignment.starts_on",
"description": "First day of the professional's work on the matter assignment"
},
{
"concept": "engagement/classification",
"path": "matter_assignment.employment_type",
"description": "W-2 employee or 1099 contractor classification on the matter assignment"
},
{
"concept": "engagement/reviewer",
"path": "matter_assignment.compliance_reviewer",
"description": "Law firm legal operations reviewer completing verification sections"
},
{
"concept": "engagement/employer_id",
"path": "matter_assignment.firm_entity_id",
"description": "Hiring law firm legal entity identifier for document reuse scoping"
},
{
"concept": "engagement/everify_enrolled",
"path": "matter_assignment.matter->matter.everify_participating",
"default": false,
"description": "Whether the matter's supervising office participates in DHS/USCIS E-Verify"
},
{
"concept": "principal/is_rehire",
"path": "matter_assignment.professional->professional.is_rehire",
"default": false,
"description": "Whether the legal professional was previously engaged by the firm"
},
{
"concept": "principal/residence_state",
"path": "matter_assignment.professional->professional.home_state",
"description": "Primary state of residence on the linked professional entity"
},
{
"concept": "principal/work_authorized_us",
"path": "matter_assignment.professional->professional.us_work_authorized",
"description": "US work authorization flag on the linked professional entity"
},
{
"concept": "legal/role",
"path": "matter_assignment.professional->professional.role",
"description": "Legal role classification (attorney, paralegal, or legal_staff) on the linked professional"
},
{
"concept": "legal/bar_state",
"path": "matter_assignment.professional->professional.bar_state",
"description": "Primary state or jurisdiction of bar admission on the linked professional"
},
{
"concept": "legal/bar_status",
"path": "matter_assignment.professional->professional.bar_status",
"description": "Current bar admission standing on the linked professional"
},
{
"concept": "legal/cle_compliant",
"path": "matter_assignment.professional->professional.cle_compliant",
"description": "Whether the attorney is current on state CLE requirements"
},
{
"concept": "legal/matter_id",
"path": "matter_assignment.matter->matter.matter_code",
"description": "Per-matter identifier bound from the linked matter's matter_code to scope conflicts checks (PK0 option a)"
},
{
"concept": "credential/required",
"path": "matter_assignment.professional->professional.bar_credential_required",
"default": false,
"description": "Whether the professional's engagement requires an active professional credential"
},
{
"concept": "credential/expires_on",
"path": "matter_assignment.professional->professional.bar_credential_expires_on",
"description": "Expiration date of the professional's active bar credential"
},
{
"concept": "credential/disciplinary_action",
"path": "matter_assignment.professional->professional.disciplinary_action",
"default": false,
"description": "Whether the professional's credential record carries an open or historical disciplinary action"
},
{
"concept": "screening/background_required",
"path": "matter_assignment.matter->matter.background_check_required",
"default": false,
"description": "Whether the matter requires a pre-engagement consumer background report"
},
{
"concept": "screening/drug_screen_required",
"path": "matter_assignment.matter->matter.drug_screen_required",
"default": false,
"description": "Whether the matter requires a pre-engagement drug screen"
},
{
"concept": "screening/adverse_action_stage",
"path": "matter_assignment.adverse_action_stage",
"default": "none",
"description": "Current FCRA adverse action stage on the matter assignment"
}
],
"entity_types": [
{
"kind": "professional",
"version": "1",
"schema": {
"type": "object",
"properties": {
"full_name": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string",
"format": "email"
},
"role": {
"type": "string",
"enum": [
"attorney",
"paralegal",
"legal_staff"
]
},
"home_state": {
"type": "string",
"enum": [
"AL",
"AK",
"AZ",
"AR",
"CA",
"CO",
"CT",
"DE",
"DC",
"FL",
"GA",
"HI",
"ID",
"IL",
"IN",
"IA",
"KS",
"KY",
"LA",
"ME",
"MD",
"MA",
"MI",
"MN",
"MS",
"MO",
"MT",
"NE",
"NV",
"NH",
"NJ",
"NM",
"NY",
"NC",
"ND",
"OH",
"OK",
"OR",
"PA",
"PR",
"RI",
"SC",
"SD",
"TN",
"TX",
"UT",
"VT",
"VA",
"WA",
"WV",
"WI",
"WY"
]
},
"is_rehire": {
"type": "boolean"
},
"us_work_authorized": {
"type": "boolean"
},
"bar_state": {
"type": "string"
},
"bar_status": {
"type": "string",
"enum": [
"active",
"inactive",
"suspended",
"disbarred",
"pending"
]
},
"cle_compliant": {
"type": "boolean"
},
"bar_credential_required": {
"type": "boolean"
},
"bar_credential_expires_on": {
"type": "string",
"format": "date"
},
"disciplinary_action": {
"type": "boolean"
},
"status": {
"type": "string",
"enum": [
"onboarding",
"active",
"inactive"
]
}
},
"required": [
"full_name",
"email",
"role",
"home_state"
],
"additionalProperties": false
}
},
{
"kind": "matter",
"version": "1",
"schema": {
"type": "object",
"properties": {
"matter_code": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"practice_area": {
"type": "string",
"enum": [
"corporate",
"litigation",
"regulatory",
"real_estate",
"employment"
]
},
"office_state": {
"type": "string",
"enum": [
"AL",
"AK",
"AZ",
"AR",
"CA",
"CO",
"CT",
"DE",
"DC",
"FL",
"GA",
"HI",
"ID",
"IL",
"IN",
"IA",
"KS",
"KY",
"LA",
"ME",
"MD",
"MA",
"MI",
"MN",
"MS",
"MO",
"MT",
"NE",
"NV",
"NH",
"NJ",
"NM",
"NY",
"NC",
"ND",
"OH",
"OK",
"OR",
"PA",
"PR",
"RI",
"SC",
"SD",
"TN",
"TX",
"UT",
"VT",
"VA",
"WA",
"WV",
"WI",
"WY"
]
},
"office_country": {
"type": "string",
"enum": [
"US",
"CA",
"GB",
"MX",
"OTHER"
]
},
"everify_participating": {
"type": "boolean"
},
"background_check_required": {
"type": "boolean"
},
"drug_screen_required": {
"type": "boolean"
}
},
"required": [
"matter_code",
"title",
"office_state",
"office_country"
],
"additionalProperties": false
}
},
{
"kind": "matter_assignment",
"version": "1",
"schema": {
"type": "object",
"properties": {
"firm_entity_id": {
"type": "string",
"minLength": 1
},
"employment_type": {
"type": "string",
"enum": [
"w2",
"1099"
]
},
"starts_on": {
"type": "string",
"format": "date"
},
"is_remote": {
"type": "boolean"
},
"compliance_reviewer": {
"type": "string"
},
"adverse_action_stage": {
"type": "string",
"enum": [
"none",
"pre_adverse",
"adverse"
]
},
"status": {
"type": "string",
"enum": [
"pending",
"active",
"completed",
"closed"
]
}
},
"required": [
"firm_entity_id",
"employment_type",
"starts_on"
],
"additionalProperties": false
}
}
],
"templates": [
{
"key": "law_firm_ethics_billing_ack",
"version": "2026.1.0",
"title": "Firm Ethics and Client Billing Guidelines Acknowledgment",
"roles": [
{
"name": "subject",
"kind": "person",
"label": "Legal Professional"
}
],
"sections": [
{
"id": "ethics_and_billing",
"role": "subject",
"title": "Ethics, Timekeeping, and Outside Counsel Billing Standards",
"fields": [
{
"id": "policy_edition",
"type": "choice",
"label": "Guidelines Edition Reviewed",
"options": [
"2026_firm_standard",
"2026_litigation_addendum"
],
"required": true
},
{
"id": "ethics_acknowledged",
"type": "boolean",
"label": "I have read and agree to follow the firm ethics, information-barrier, and client confidentiality rules.",
"required": true
},
{
"id": "billing_acknowledged",
"type": "boolean",
"label": "I have read and agree to follow the firm timekeeping and client billing guidelines.",
"required": true
},
{
"id": "signed_date",
"type": "date",
"label": "Date Acknowledged",
"required": true
}
],
"signature": {
"id": "subject_signature",
"attestation": "I acknowledge receipt of and agree to comply with the Example Law Firm Ethics and Client Billing Guidelines.",
"covers": [
"ethics_and_billing"
]
}
}
]
}
],
"policies": [
{
"key": "example-law-firm-onboarding",
"version": "2026.12.0",
"extends": [
{
"key": "us-federal",
"version": "2026.12.0"
},
{
"key": "us-ny",
"version": "2026.12.0"
},
{
"key": "legal",
"version": "2026.12.0"
}
],
"facts": {
"engagement/start_date": {
"type": "date"
},
"engagement/reviewer": {
"type": "string"
},
"engagement/employer_id": {
"type": "string"
},
"legal/role": {
"type": "choice",
"options": [
"attorney",
"paralegal",
"legal_staff"
]
}
},
"stages": [
{
"id": "firm_policies",
"title": "Firm Ethics and Billing Policies"
}
],
"requirements": {
"federal_i9": {
"title": "Form I-9 — Employment Eligibility Verification (Sections 1 & 2, Firm Tightened SLA)",
"kind": "document",
"template": "us_uscis_i9",
"stage": "eligibility",
"parties": {
"subject": "subject",
"reviewer": "engagement/reviewer"
},
"due": {
"subject": {
"relative_to": "engagement/start_date",
"days": -1
},
"reviewer": {
"relative_to": "engagement/start_date",
"business_days": 1
}
},
"reuse": {
"same": [
"engagement/employer_id"
],
"max_age_days": 1095,
"outcome": "needs_update"
},
"on_unknown": "wait",
"authority": "statute",
"cites": [
"8 USC 1324a",
"8 CFR 274a.2(b)(1)(i)(A)",
"8 CFR 274a.2(b)(1)(ii)(B)",
"8 CFR 274a.2(c)(1)",
"Example Law Firm Policy OPS-101 (1-business-day I-9 SLA)"
]
},
"ny_pay_notice": {
"title": "New York Pay Notice at Hire (NY Labor Law §195(1), Pre-Start Firm SLA)",
"kind": "document",
"template": "us_ny_ls54_pay_notice",
"stage": "ny_notices",
"parties": {
"employer": "engagement/reviewer",
"employee": "subject"
},
"due": {
"employer": {
"relative_to": "engagement/start_date",
"days": -1
},
"employee": {
"relative_to": "engagement/start_date",
"days": -1
}
},
"on_unknown": "wait",
"authority": "statute",
"cites": [
"NY Labor Law §195(1)",
"Example Law Firm Policy HR-201 (pre-start NY pay notice)"
]
},
"legal_confidentiality_agreement": {
"title": "Confidentiality Agreement (48-Hour Pre-Start Firm SLA)",
"kind": "document",
"template": "legal_confidentiality_agreement",
"stage": "ethics_conflicts",
"parties": {
"subject": "subject"
},
"due": {
"subject": {
"relative_to": "engagement/start_date",
"days": -2
}
},
"on_unknown": "wait",
"authority": "statute",
"cites": [
"ABA Model Rules 1.6, 5.1, 5.3",
"ABA Formal Op. 08-451",
"Example Law Firm Policy ETH-102 (48-hour pre-start confidentiality SLA)"
]
},
"firm_ethics_billing_guidelines": {
"title": "Firm Ethics and Client Billing Guidelines Acknowledgment",
"kind": "document",
"template": "law_firm_ethics_billing_ack",
"stage": "firm_policies",
"parties": {
"subject": "subject"
},
"due": {
"subject": {
"relative_to": "engagement/start_date",
"days": -1
}
},
"reuse": {
"same": [
"engagement/employer_id"
],
"max_age_days": 365,
"outcome": "satisfies"
},
"expires": {
"years": 1
},
"renew_within": {
"days": 30
},
"on_unknown": "wait",
"authority": "practice",
"cites": [
"Example Law Firm Policy ETH-205 (Ethics and Client Billing Guidelines)"
]
}
},
"policies": [
{
"id": "law-firm-ethics-billing-all",
"title": "Firm ethics and client billing guidelines acknowledgment for all legal professionals",
"when": {
"fact": "legal/role",
"operator": "in",
"value": [
"attorney",
"paralegal",
"legal_staff"
]
},
"require": [
"firm_ethics_billing_guidelines"
],
"optional": false,
"cites": [
"Example Law Firm Policy ETH-205 (Ethics and Client Billing Guidelines)"
]
}
]
}
],
"views": [
{
"key": "law-firm-professionals",
"title": "Legal Professionals",
"description": "Roster of attorneys, paralegals, and legal staff with bar state, standing, and CLE compliance.",
"source": "entity",
"entity_kind": "professional",
"layout": "table",
"columns": [
{
"key": "full_name",
"label": "Name"
},
{
"key": "role",
"label": "Role"
},
{
"key": "bar_state",
"label": "Bar State"
},
{
"key": "bar_status",
"label": "Bar Status"
},
{
"key": "status",
"label": "Status"
}
],
"actions": [
{
"id": "start_case",
"label": "Start Matter Onboarding",
"kind": "case.create"
}
]
},
{
"key": "law-firm-matters",
"title": "Client Matters",
"description": "Directory of client matters with matter codes, practice areas, and supervising office states.",
"source": "entity",
"entity_kind": "matter",
"layout": "table",
"columns": [
{
"key": "matter_code",
"label": "Matter Code"
},
{
"key": "title",
"label": "Matter"
},
{
"key": "practice_area",
"label": "Practice Area"
},
{
"key": "office_state",
"label": "Office State"
}
]
},
{
"key": "law-firm-matter-assignments",
"title": "Matter Assignments",
"description": "Board of professional matter assignments grouped by status.",
"source": "entity",
"entity_kind": "matter_assignment",
"layout": "board",
"group_by": "status",
"columns": [
{
"key": "firm_entity_id",
"label": "Firm Entity"
},
{
"key": "employment_type",
"label": "Type"
},
{
"key": "starts_on",
"label": "Start Date"
},
{
"key": "compliance_reviewer",
"label": "Reviewer"
}
]
}
],
"scenarios": [
{
"name": "ny-attorney-new-matter",
"description": "New W-2 New York attorney assigned to a new NY matter at an E-Verify enrolled office requires federal, NY, legal, and firm ethics/billing documents with tightened due dates; completing Form I-9 unlocks E-Verify.",
"policy_set": "example-law-firm-onboarding",
"as_of": "2026-12-01",
"snapshot": {
"subject": "ma_ny_atty_01",
"entities": [
{
"id": "ma_ny_atty_01",
"kind": "matter_assignment",
"attributes": {
"firm_entity_id": "firm_ny_llp",
"employment_type": "w2",
"starts_on": "2026-12-10",
"is_remote": false,
"compliance_reviewer": "usr_legal_ops_01",
"adverse_action_stage": "none",
"status": "pending"
}
},
{
"id": "prof_atty_01",
"kind": "professional",
"attributes": {
"full_name": "Jordan Ellis",
"email": "jordan.ellis@example.test",
"role": "attorney",
"home_state": "NY",
"is_rehire": false,
"us_work_authorized": true,
"bar_state": "NY",
"bar_status": "active",
"cle_compliant": true,
"bar_credential_required": true,
"bar_credential_expires_on": "2027-12-31",
"disciplinary_action": false,
"status": "onboarding"
}
},
{
"id": "matter_101",
"kind": "matter",
"attributes": {
"matter_code": "MTR-2026-101",
"title": "Harbor Logistics Commercial Litigation",
"practice_area": "litigation",
"office_state": "NY",
"office_country": "US",
"everify_participating": true,
"background_check_required": false,
"drug_screen_required": false
}
}
],
"links": [
{
"from": "ma_ny_atty_01",
"to": "prof_atty_01",
"relation": "professional"
},
{
"from": "ma_ny_atty_01",
"to": "matter_101",
"relation": "matter"
}
]
},
"expect": {
"required": [
"federal_i9",
"federal_w4",
"federal_everify",
"ny_pay_notice",
"ny_harassment_training",
"legal_bar_admission",
"legal_conflicts_check",
"legal_confidentiality_agreement",
"legal_cle_status",
"firm_ethics_billing_guidelines"
],
"not_required": [],
"states": {
"federal_i9": "available",
"federal_w4": "available",
"federal_everify": "waiting",
"ny_pay_notice": "available",
"ny_harassment_training": "available",
"legal_bar_admission": "available",
"legal_conflicts_check": "available",
"legal_confidentiality_agreement": "available",
"legal_cle_status": "available",
"firm_ethics_billing_guidelines": "available"
},
"missing_facts": []
},
"steps": [
{
"name": "complete-i9-unlocks-everify",
"progress": {
"federal_i9": {
"status": "completed",
"document": "doc_lf_i9_01",
"roles": {
"subject": "completed",
"reviewer": "completed"
}
}
},
"expect": {
"required": [
"federal_i9",
"federal_w4",
"federal_everify",
"ny_pay_notice",
"ny_harassment_training",
"legal_bar_admission",
"legal_conflicts_check",
"legal_confidentiality_agreement",
"legal_cle_status",
"firm_ethics_billing_guidelines"
],
"states": {
"federal_i9": "complete",
"federal_everify": "available"
},
"missing_facts": []
}
}
]
},
{
"name": "ny-paralegal-matter-assignment",
"description": "W-2 New York paralegal assigned to a NY matter at a non-E-Verify office requires federal W-2 forms, NY statutory items, per-matter conflicts check, confidentiality agreement, and firm ethics/billing guidelines, but not attorney bar admission or CLE.",
"policy_set": "example-law-firm-onboarding",
"as_of": "2026-12-01",
"snapshot": {
"subject": "ma_ny_para_01",
"entities": [
{
"id": "ma_ny_para_01",
"kind": "matter_assignment",
"attributes": {
"firm_entity_id": "firm_ny_llp",
"employment_type": "w2",
"starts_on": "2026-12-10",
"is_remote": false,
"compliance_reviewer": "usr_legal_ops_01",
"adverse_action_stage": "none",
"status": "pending"
}
},
{
"id": "prof_para_01",
"kind": "professional",
"attributes": {
"full_name": "Samira Haddad",
"email": "samira.haddad@example.test",
"role": "paralegal",
"home_state": "NY",
"is_rehire": false,
"us_work_authorized": true,
"bar_credential_required": false,
"disciplinary_action": false,
"status": "onboarding"
}
},
{
"id": "matter_102",
"kind": "matter",
"attributes": {
"matter_code": "MTR-2026-102",
"title": "Northbridge Real Estate Acquisition",
"practice_area": "real_estate",
"office_state": "NY",
"office_country": "US",
"everify_participating": false,
"background_check_required": false,
"drug_screen_required": false
}
}
],
"links": [
{
"from": "ma_ny_para_01",
"to": "prof_para_01",
"relation": "professional"
},
{
"from": "ma_ny_para_01",
"to": "matter_102",
"relation": "matter"
}
]
},
"expect": {
"required": [
"federal_i9",
"federal_w4",
"ny_pay_notice",
"ny_harassment_training",
"legal_conflicts_check",
"legal_confidentiality_agreement",
"firm_ethics_billing_guidelines"
],
"not_required": [
"federal_everify",
"legal_bar_admission",
"legal_cle_status"
],
"states": {
"federal_i9": "available",
"federal_w4": "available",
"ny_pay_notice": "available",
"ny_harassment_training": "available",
"legal_conflicts_check": "available",
"legal_confidentiality_agreement": "available",
"firm_ethics_billing_guidelines": "available"
},
"missing_facts": []
}
},
{
"name": "non-ny-contractor-legal-staff",
"description": "1099 legal_staff contractor assigned to a Connecticut matter requires only the confidentiality agreement and firm ethics/billing guidelines; W-2 federal, NY state, bar, CLE, and conflicts requirements do not apply.",
"policy_set": "example-law-firm-onboarding",
"as_of": "2026-12-01",
"snapshot": {
"subject": "ma_ct_staff_01",
"entities": [
{
"id": "ma_ct_staff_01",
"kind": "matter_assignment",
"attributes": {
"firm_entity_id": "firm_ny_llp",
"employment_type": "1099",
"starts_on": "2026-12-10",
"is_remote": true,
"compliance_reviewer": "usr_legal_ops_01",
"adverse_action_stage": "none",
"status": "pending"
}
},
{
"id": "prof_staff_01",
"kind": "professional",
"attributes": {
"full_name": "Devon Okafor",
"email": "devon.okafor@example.test",
"role": "legal_staff",
"home_state": "CT",
"is_rehire": false,
"us_work_authorized": true,
"bar_credential_required": false,
"disciplinary_action": false,
"status": "onboarding"
}
},
{
"id": "matter_103",
"kind": "matter",
"attributes": {
"matter_code": "MTR-2026-103",
"title": "Riverbend Regulatory Review",
"practice_area": "regulatory",
"office_state": "CT",
"office_country": "US",
"everify_participating": false,
"background_check_required": false,
"drug_screen_required": false
}
}
],
"links": [
{
"from": "ma_ct_staff_01",
"to": "prof_staff_01",
"relation": "professional"
},
{
"from": "ma_ct_staff_01",
"to": "matter_103",
"relation": "matter"
}
]
},
"expect": {
"required": [
"legal_confidentiality_agreement",
"firm_ethics_billing_guidelines"
],
"not_required": [
"federal_i9",
"federal_w4",
"federal_everify",
"ny_pay_notice",
"ny_harassment_training",
"legal_bar_admission",
"legal_conflicts_check",
"legal_cle_status"
],
"states": {
"legal_confidentiality_agreement": "available",
"firm_ethics_billing_guidelines": "available"
},
"missing_facts": []
}
},
{
"name": "conflicts-check-reuse-same-vs-different-matter",
"description": "Prior conflicts check for MTR-2026-201 satisfies legal_conflicts_check on the same matter via legal/matter_id bound from matter_assignment.matter->matter.matter_code; reassigning to MTR-2026-202 requires a fresh conflicts check while firm ethics/billing guidelines remain satisfied for the same firm.",
"policy_set": "example-law-firm-onboarding",
"as_of": "2026-12-01",
"snapshot": {
"subject": "ma_reuse_01",
"entities": [
{
"id": "ma_reuse_01",
"kind": "matter_assignment",
"attributes": {
"firm_entity_id": "firm_ny_llp",
"employment_type": "1099",
"starts_on": "2026-12-10",
"is_remote": false,
"compliance_reviewer": "usr_legal_ops_01",
"adverse_action_stage": "none",
"status": "pending"
}
},
{
"id": "prof_para_02",
"kind": "professional",
"attributes": {
"full_name": "Tessa Lindholm",
"email": "tessa.lindholm@example.test",
"role": "paralegal",
"home_state": "NY",
"is_rehire": true,
"us_work_authorized": true,
"bar_credential_required": false,
"disciplinary_action": false,
"status": "active"
}
},
{
"id": "matter_201",
"kind": "matter",
"attributes": {
"matter_code": "MTR-2026-201",
"title": "Meridian Corporate Financing",
"practice_area": "corporate",
"office_state": "NY",
"office_country": "US",
"everify_participating": false,
"background_check_required": false,
"drug_screen_required": false
}
}
],
"links": [
{
"from": "ma_reuse_01",
"to": "prof_para_02",
"relation": "professional"
},
{
"from": "ma_reuse_01",
"to": "matter_201",
"relation": "matter"
}
]
},
"evidence": [
{
"id": "doc_prior_conflicts_201",
"template": "legal_conflicts_check_record",
"template_version": "2026.1.0",
"status": "completed",
"completed_at": "2026-11-15",
"facts": {
"legal/matter_id": "MTR-2026-201"
}
},
{
"id": "doc_prior_ethics_firm",
"template": "law_firm_ethics_billing_ack",
"template_version": "2026.1.0",
"status": "completed",
"completed_at": "2026-10-01",
"facts": {
"engagement/employer_id": "firm_ny_llp"
}
}
],
"expect": {
"required": [
"legal_conflicts_check",
"legal_confidentiality_agreement",
"firm_ethics_billing_guidelines"
],
"not_required": [
"federal_i9",
"federal_w4",
"federal_everify",
"ny_pay_notice",
"ny_harassment_training",
"legal_bar_admission",
"legal_cle_status"
],
"states": {
"legal_conflicts_check": "complete",
"legal_confidentiality_agreement": "available",
"firm_ethics_billing_guidelines": "complete"
},
"missing_facts": []
},
"steps": [
{
"name": "reassign-to-different-matter-requires-fresh-conflicts-check",
"update_entity": {
"id": "matter_201",
"attributes": {
"matter_code": "MTR-2026-202"
}
},
"expect": {
"required": [
"legal_conflicts_check",
"legal_confidentiality_agreement",
"firm_ethics_billing_guidelines"
],
"states": {
"legal_conflicts_check": "available",
"legal_confidentiality_agreement": "available",
"firm_ethics_billing_guidelines": "complete"
},
"missing_facts": []
}
}
]
},
{
"name": "tightened-due-dates-and-overdue",
"description": "Tightened confidentiality agreement (days: -2) becomes overdue one day before start_date (2026-12-09 for a 2026-12-10 start), while tightened NY pay notice (days: -1) and firm ethics/billing guidelines (days: -1) become overdue on the start date.",
"policy_set": "example-law-firm-onboarding",
"as_of": "2026-12-08",
"snapshot": {
"subject": "ma_due_01",
"entities": [
{
"id": "ma_due_01",
"kind": "matter_assignment",
"attributes": {
"firm_entity_id": "firm_ny_llp",
"employment_type": "w2",
"starts_on": "2026-12-10",
"is_remote": false,
"compliance_reviewer": "usr_legal_ops_01",
"adverse_action_stage": "none",
"status": "pending"
}
},
{
"id": "prof_due_01",
"kind": "professional",
"attributes": {
"full_name": "Nadia Kowalski",
"email": "nadia.kowalski@example.test",
"role": "attorney",
"home_state": "NY",
"is_rehire": false,
"us_work_authorized": true,
"bar_state": "NY",
"bar_status": "active",
"cle_compliant": true,
"bar_credential_required": true,
"bar_credential_expires_on": "2027-12-31",
"disciplinary_action": false,
"status": "onboarding"
}
},
{
"id": "matter_301",
"kind": "matter",
"attributes": {
"matter_code": "MTR-2026-301",
"title": "Beacon Employment Advisory",
"practice_area": "employment",
"office_state": "NY",
"office_country": "US",
"everify_participating": false,
"background_check_required": false,
"drug_screen_required": false
}
}
],
"links": [
{
"from": "ma_due_01",
"to": "prof_due_01",
"relation": "professional"
},
{
"from": "ma_due_01",
"to": "matter_301",
"relation": "matter"
}
]
},
"expect": {
"required": [
"federal_i9",
"federal_w4",
"ny_pay_notice",
"ny_harassment_training",
"legal_bar_admission",
"legal_conflicts_check",
"legal_confidentiality_agreement",
"legal_cle_status",
"firm_ethics_billing_guidelines"
],
"states": {
"federal_i9": "available",
"ny_pay_notice": "available",
"legal_confidentiality_agreement": "available",
"firm_ethics_billing_guidelines": "available"
},
"missing_facts": []
},
"steps": [
{
"name": "advance-to-day-before-start-confidentiality-overdue",
"as_of": "2026-12-09",
"expect": {
"states": {
"legal_confidentiality_agreement": "overdue",
"ny_pay_notice": "available",
"firm_ethics_billing_guidelines": "available",
"federal_i9": "available"
},
"missing_facts": []
}
},
{
"name": "advance-to-start-date-ny-pay-notice-and-ethics-overdue",
"as_of": "2026-12-10",
"expect": {
"states": {
"legal_confidentiality_agreement": "overdue",
"ny_pay_notice": "overdue",
"firm_ethics_billing_guidelines": "overdue",
"federal_i9": "overdue",
"federal_w4": "available"
},
"missing_facts": []
}
}
]
},
{
"name": "ethics-guidelines-renewal-and-expiry",
"description": "Completed firm ethics and billing guidelines acknowledgment opens a renewal item 30 days before its 1-year expiry and transitions to expired once as_of passes the expiry date.",
"policy_set": "example-law-firm-onboarding",
"as_of": "2026-12-01",
"snapshot": {
"subject": "ma_exp_01",
"entities": [
{
"id": "ma_exp_01",
"kind": "matter_assignment",
"attributes": {
"firm_entity_id": "firm_ny_llp",
"employment_type": "1099",
"starts_on": "2026-12-10",
"is_remote": true,
"compliance_reviewer": "usr_legal_ops_01",
"adverse_action_stage": "none",
"status": "active"
}
},
{
"id": "prof_exp_01",
"kind": "professional",
"attributes": {
"full_name": "Owen Takahashi",
"email": "owen.takahashi@example.test",
"role": "legal_staff",
"home_state": "CT",
"is_rehire": true,
"us_work_authorized": true,
"bar_credential_required": false,
"disciplinary_action": false,
"status": "active"
}
},
{
"id": "matter_401",
"kind": "matter",
"attributes": {
"matter_code": "MTR-2026-401",
"title": "Summit Regulatory Filing",
"practice_area": "regulatory",
"office_state": "CT",
"office_country": "US",
"everify_participating": false,
"background_check_required": false,
"drug_screen_required": false
}
}
],
"links": [
{
"from": "ma_exp_01",
"to": "prof_exp_01",
"relation": "professional"
},
{
"from": "ma_exp_01",
"to": "matter_401",
"relation": "matter"
}
]
},
"evidence": [
{
"id": "doc_ethics_exp_01",
"template": "law_firm_ethics_billing_ack",
"template_version": "2026.1.0",
"status": "completed",
"completed_at": "2025-12-15",
"facts": {
"engagement/employer_id": "firm_ny_llp"
}
}
],
"progress": {
"legal_confidentiality_agreement": {
"status": "completed",
"document": "doc_conf_exp_01",
"roles": {
"subject": "completed"
}
},
"firm_ethics_billing_guidelines": {
"status": "completed",
"document": "doc_ethics_exp_01",
"roles": {
"subject": "completed"
}
}
},
"expect": {
"required": [
"legal_confidentiality_agreement",
"firm_ethics_billing_guidelines",
"firm_ethics_billing_guidelines:renewal"
],
"states": {
"legal_confidentiality_agreement": "complete",
"firm_ethics_billing_guidelines": "complete",
"firm_ethics_billing_guidelines:renewal": "available"
},
"wake_at": "2026-12-15",
"missing_facts": []
},
"steps": [
{
"name": "advance-past-annual-expiry",
"as_of": "2026-12-16",
"expect": {
"required": [
"legal_confidentiality_agreement",
"firm_ethics_billing_guidelines"
],
"not_required": [
"firm_ethics_billing_guidelines:renewal"
],
"states": {
"legal_confidentiality_agreement": "complete",
"firm_ethics_billing_guidelines": "expired"
},
"missing_facts": []
}
}
]
},
{
"name": "missing-matter-link-tentative",
"description": "When a matter_assignment has no linked matter entity, work/location_country and work/location_state are unresolved so federal and NY requirements wait on missing facts while legal and firm requirements remain available; supplying location facts resolves them.",
"policy_set": "example-law-firm-onboarding",
"as_of": "2026-12-01",
"snapshot": {
"subject": "ma_missing_matter_01",
"entities": [
{
"id": "ma_missing_matter_01",
"kind": "matter_assignment",
"attributes": {
"firm_entity_id": "firm_ny_llp",
"employment_type": "w2",
"starts_on": "2026-12-10",
"is_remote": false,
"compliance_reviewer": "usr_legal_ops_01",
"adverse_action_stage": "none",
"status": "pending"
}
},
{
"id": "prof_missing_01",
"kind": "professional",
"attributes": {
"full_name": "Caleb Morales",
"email": "caleb.morales@example.test",
"role": "attorney",
"home_state": "NY",
"is_rehire": false,
"us_work_authorized": true,
"bar_state": "NY",
"bar_status": "active",
"cle_compliant": true,
"bar_credential_required": true,
"bar_credential_expires_on": "2027-12-31",
"disciplinary_action": false,
"status": "onboarding"
}
}
],
"links": [
{
"from": "ma_missing_matter_01",
"to": "prof_missing_01",
"relation": "professional"
}
]
},
"expect": {
"required": [
"federal_i9",
"federal_w4",
"ny_pay_notice",
"ny_harassment_training",
"legal_bar_admission",
"legal_conflicts_check",
"legal_confidentiality_agreement",
"legal_cle_status",
"firm_ethics_billing_guidelines"
],
"not_required": [
"federal_everify"
],
"states": {
"federal_i9": "blocked_on_facts",
"federal_w4": "blocked_on_facts",
"ny_pay_notice": "blocked_on_facts",
"ny_harassment_training": "blocked_on_facts",
"legal_bar_admission": "available",
"legal_conflicts_check": "available",
"legal_confidentiality_agreement": "available",
"legal_cle_status": "available",
"firm_ethics_billing_guidelines": "available"
},
"missing_facts": [
"work/location_country",
"work/location_state"
]
},
"steps": [
{
"name": "supply-ny-location-facts",
"set_facts": {
"work/location_country": "US",
"work/location_state": "NY"
},
"expect": {
"required": [
"federal_i9",
"federal_w4",
"ny_pay_notice",
"ny_harassment_training",
"legal_bar_admission",
"legal_conflicts_check",
"legal_confidentiality_agreement",
"legal_cle_status",
"firm_ethics_billing_guidelines"
],
"not_required": [
"federal_everify"
],
"states": {
"federal_i9": "available",
"federal_w4": "available",
"ny_pay_notice": "available",
"ny_harassment_training": "available",
"legal_bar_admission": "available",
"legal_conflicts_check": "available",
"legal_confidentiality_agreement": "available",
"legal_cle_status": "available",
"firm_ethics_billing_guidelines": "available"
},
"missing_facts": []
}
}
]
}
]
}example-law-firm.forma(pack example-law-firm
:format 1
:version "2026.12.0"
:kind "binding"
:description "Example Law Firm binding pack (RFC 0004): maps legal, us-ny, us-federal, credentials-core, screening-core, and staffing-core concepts onto a law firm's professional/matter/matter_assignment entity graph, binds per-matter conflicts checks via PK0 scalar concept legal/matter_id, tightens Form I-9, NY pay notice, and confidentiality agreement deadlines, and adds a firm-specific ethics and client billing guidelines acknowledgment.")
;; ── Pack Dependencies ──────────────────────────────────────────────────────
(require-pack legal :range "^2026.12")
(require-pack us-ny :range "^2026.12")
;; ── Bindings ───────────────────────────────────────────────────────────────
(binding "work/location_state"
:path "matter_assignment.matter->matter.office_state"
:description "Work state from the matter's supervising office")
(binding "work/location_country"
:path "matter_assignment.matter->matter.office_country"
:description "Work country from the matter's supervising office")
(binding "work/is_remote"
:path "matter_assignment.is_remote"
:description "Whether the matter assignment is performed remotely")
(binding "engagement/start_date"
:path "matter_assignment.starts_on"
:description "First day of the professional's work on the matter assignment")
(binding "engagement/classification"
:path "matter_assignment.employment_type"
:description "W-2 employee or 1099 contractor classification on the matter assignment")
(binding "engagement/reviewer"
:path "matter_assignment.compliance_reviewer"
:description "Law firm legal operations reviewer completing verification sections")
(binding "engagement/employer_id"
:path "matter_assignment.firm_entity_id"
:description "Hiring law firm legal entity identifier for document reuse scoping")
(binding "engagement/everify_enrolled"
:path "matter_assignment.matter->matter.everify_participating"
:default false
:description "Whether the matter's supervising office participates in DHS/USCIS E-Verify")
(binding "principal/is_rehire"
:path "matter_assignment.professional->professional.is_rehire"
:default false
:description "Whether the legal professional was previously engaged by the firm")
(binding "principal/residence_state"
:path "matter_assignment.professional->professional.home_state"
:description "Primary state of residence on the linked professional entity")
(binding "principal/work_authorized_us"
:path "matter_assignment.professional->professional.us_work_authorized"
:description "US work authorization flag on the linked professional entity")
(binding "legal/role"
:path "matter_assignment.professional->professional.role"
:description "Legal role classification (attorney, paralegal, or legal_staff) on the linked professional")
(binding "legal/bar_state"
:path "matter_assignment.professional->professional.bar_state"
:description "Primary state or jurisdiction of bar admission on the linked professional")
(binding "legal/bar_status"
:path "matter_assignment.professional->professional.bar_status"
:description "Current bar admission standing on the linked professional")
(binding "legal/cle_compliant"
:path "matter_assignment.professional->professional.cle_compliant"
:description "Whether the attorney is current on state CLE requirements")
(binding "legal/matter_id"
:path "matter_assignment.matter->matter.matter_code"
:description "Per-matter identifier bound from the linked matter's matter_code to scope conflicts checks (PK0 option a)")
(binding "credential/required"
:path "matter_assignment.professional->professional.bar_credential_required"
:default false
:description "Whether the professional's engagement requires an active professional credential")
(binding "credential/expires_on"
:path "matter_assignment.professional->professional.bar_credential_expires_on"
:description "Expiration date of the professional's active bar credential")
(binding "credential/disciplinary_action"
:path "matter_assignment.professional->professional.disciplinary_action"
:default false
:description "Whether the professional's credential record carries an open or historical disciplinary action")
(binding "screening/background_required"
:path "matter_assignment.matter->matter.background_check_required"
:default false
:description "Whether the matter requires a pre-engagement consumer background report")
(binding "screening/drug_screen_required"
:path "matter_assignment.matter->matter.drug_screen_required"
:default false
:description "Whether the matter requires a pre-engagement drug screen")
(binding "screening/adverse_action_stage"
:path "matter_assignment.adverse_action_stage"
:default "none"
:description "Current FCRA adverse action stage on the matter assignment")
;; ── Entity Types ───────────────────────────────────────────────────────────
(entity professional :version "1"
{:full_name (meta String {:min-length 1})
:email (meta String {:format "email"})
:role (Union "attorney" "paralegal" "legal_staff")
:home_state (Union "AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "DC" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" "MI" "MN" "MS" "MO" "MT" "NE" "NV" "NH" "NJ" "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "PR" "RI" "SC" "SD" "TN" "TX" "UT" "VT" "VA" "WA" "WV" "WI" "WY")
:is_rehire (Option Bool)
:us_work_authorized (Option Bool)
:bar_state (Option String)
:bar_status (Option (Union "active" "inactive" "suspended" "disbarred" "pending"))
:cle_compliant (Option Bool)
:bar_credential_required (Option Bool)
:bar_credential_expires_on (Option (meta String {:format "date"}))
:disciplinary_action (Option Bool)
:status (Option (Union "onboarding" "active" "inactive"))})
(entity matter :version "1"
{:matter_code (meta String {:min-length 1})
:title (meta String {:min-length 1})
:practice_area (Option (Union "corporate" "litigation" "regulatory" "real_estate" "employment"))
:office_state (Union "AL" "AK" "AZ" "AR" "CA" "CO" "CT" "DE" "DC" "FL" "GA" "HI" "ID" "IL" "IN" "IA" "KS" "KY" "LA" "ME" "MD" "MA" "MI" "MN" "MS" "MO" "MT" "NE" "NV" "NH" "NJ" "NM" "NY" "NC" "ND" "OH" "OK" "OR" "PA" "PR" "RI" "SC" "SD" "TN" "TX" "UT" "VT" "VA" "WA" "WV" "WI" "WY")
:office_country (Union "US" "CA" "GB" "MX" "OTHER")
:everify_participating (Option Bool)
:background_check_required (Option Bool)
:drug_screen_required (Option Bool)})
(entity matter_assignment :version "1"
{:firm_entity_id (meta String {:min-length 1})
:employment_type (Union "w2" "1099")
:starts_on (meta String {:format "date"})
:is_remote (Option Bool)
:compliance_reviewer (Option String)
:adverse_action_stage (Option (Union "none" "pre_adverse" "adverse"))
:status (Option (Union "pending" "active" "completed" "closed"))})
;; ── Document Templates ─────────────────────────────────────────────────────
(template law_firm_ethics_billing_ack
:version "2026.1.0"
:title "Firm Ethics and Client Billing Guidelines Acknowledgment"
:roles [{:name "subject" :kind "person" :label "Legal Professional"}]
:sections
[{:id "ethics_and_billing"
:role "subject"
:title "Ethics, Timekeeping, and Outside Counsel Billing Standards"
:fields
[{:id "policy_edition"
:type "choice"
:label "Guidelines Edition Reviewed"
:options ["2026_firm_standard" "2026_litigation_addendum"]
:required true}
{:id "ethics_acknowledged"
:type "boolean"
:label "I have read and agree to follow the firm ethics, information-barrier, and client confidentiality rules."
:required true}
{:id "billing_acknowledged"
:type "boolean"
:label "I have read and agree to follow the firm timekeeping and client billing guidelines."
:required true}
{:id "signed_date" :type "date" :label "Date Acknowledged" :required true}]
:signature
{:id "subject_signature"
:attestation "I acknowledge receipt of and agree to comply with the Example Law Firm Ethics and Client Billing Guidelines."
:covers ["ethics_and_billing"]}}])
;; ── Compliance Policy Sets ─────────────────────────────────────────────────
(policy-set example-law-firm-onboarding
:version "2026.12.0"
:extends
[{:key "us-federal" :version "2026.12.0"}
{:key "us-ny" :version "2026.12.0"}
{:key "legal" :version "2026.12.0"}]
:facts
{"engagement/start_date" {:type "date"}
"engagement/reviewer" {:type "string"}
"engagement/employer_id" {:type "string"}
"legal/role" {:type "choice" :options ["attorney" "paralegal" "legal_staff"]}}
:stages [{:id "firm_policies" :title "Firm Ethics and Billing Policies"}]
:requirements
{:federal_i9
{:title "Form I-9 — Employment Eligibility Verification (Sections 1 & 2, Firm Tightened SLA)"
:kind "document"
:template "us_uscis_i9"
:stage "eligibility"
:parties {:subject "subject" :reviewer "engagement/reviewer"}
:due
{:subject {:relative_to "engagement/start_date" :days -1}
:reviewer {:relative_to "engagement/start_date" :business_days 1}}
:reuse {:same ["engagement/employer_id"] :max_age_days 1095 :outcome "needs_update"}
:on_unknown "wait"
:authority "statute"
:cites
["8 USC 1324a"
"8 CFR 274a.2(b)(1)(i)(A)"
"8 CFR 274a.2(b)(1)(ii)(B)"
"8 CFR 274a.2(c)(1)"
"Example Law Firm Policy OPS-101 (1-business-day I-9 SLA)"]}
:ny_pay_notice
{:title "New York Pay Notice at Hire (NY Labor Law §195(1), Pre-Start Firm SLA)"
:kind "document"
:template "us_ny_ls54_pay_notice"
:stage "ny_notices"
:parties {:employer "engagement/reviewer" :employee "subject"}
:due
{:employer {:relative_to "engagement/start_date" :days -1}
:employee {:relative_to "engagement/start_date" :days -1}}
:on_unknown "wait"
:authority "statute"
:cites
["NY Labor Law §195(1)"
"Example Law Firm Policy HR-201 (pre-start NY pay notice)"]}
:legal_confidentiality_agreement
{:title "Confidentiality Agreement (48-Hour Pre-Start Firm SLA)"
:kind "document"
:template "legal_confidentiality_agreement"
:stage "ethics_conflicts"
:parties {:subject "subject"}
:due {:subject {:relative_to "engagement/start_date" :days -2}}
:on_unknown "wait"
:authority "statute"
:cites
["ABA Model Rules 1.6, 5.1, 5.3"
"ABA Formal Op. 08-451"
"Example Law Firm Policy ETH-102 (48-hour pre-start confidentiality SLA)"]}
:firm_ethics_billing_guidelines
{:title "Firm Ethics and Client Billing Guidelines Acknowledgment"
:kind "document"
:template "law_firm_ethics_billing_ack"
:stage "firm_policies"
:parties {:subject "subject"}
:due {:subject {:relative_to "engagement/start_date" :days -1}}
:reuse {:same ["engagement/employer_id"] :max_age_days 365 :outcome "satisfies"}
:expires {:years 1}
:renew_within {:days 30}
:on_unknown "wait"
:authority "practice"
:cites ["Example Law Firm Policy ETH-205 (Ethics and Client Billing Guidelines)"]}}
:policies
[{:id "law-firm-ethics-billing-all"
:title "Firm ethics and client billing guidelines acknowledgment for all legal professionals"
:when
{:fact "legal/role"
:operator "in"
:value ["attorney" "paralegal" "legal_staff"]}
:require ["firm_ethics_billing_guidelines"]
:optional false
:cites ["Example Law Firm Policy ETH-205 (Ethics and Client Billing Guidelines)"]}])
;; ── Saved Views ────────────────────────────────────────────────────────────
(saved-view law-firm-professionals
:title "Legal Professionals"
:description "Roster of attorneys, paralegals, and legal staff with bar state, standing, and CLE compliance."
:source "entity"
:entity professional
:layout "table"
:columns
[{:key "full_name" :label "Name"}
{:key "role" :label "Role"}
{:key "bar_state" :label "Bar State"}
{:key "bar_status" :label "Bar Status"}
{:key "status" :label "Status"}]
:actions [{:id "start_case" :label "Start Matter Onboarding" :kind "case.create"}])
(saved-view law-firm-matters
:title "Client Matters"
:description "Directory of client matters with matter codes, practice areas, and supervising office states."
:source "entity"
:entity matter
:layout "table"
:columns
[{:key "matter_code" :label "Matter Code"}
{:key "title" :label "Matter"}
{:key "practice_area" :label "Practice Area"}
{:key "office_state" :label "Office State"}])
(saved-view law-firm-matter-assignments
:title "Matter Assignments"
:description "Board of professional matter assignments grouped by status."
:source "entity"
:entity matter_assignment
:layout "board"
:group-by "status"
:columns
[{:key "firm_entity_id" :label "Firm Entity"}
{:key "employment_type" :label "Type"}
{:key "starts_on" :label "Start Date"}
{:key "compliance_reviewer" :label "Reviewer"}])
;; ── Declarative Scenarios ──────────────────────────────────────────────────
(scenario ny-attorney-new-matter
:description "New W-2 New York attorney assigned to a new NY matter at an E-Verify enrolled office requires federal, NY, legal, and firm ethics/billing documents with tightened due dates; completing Form I-9 unlocks E-Verify."
:policy-set "example-law-firm-onboarding"
:as-of "2026-12-01"
:snapshot
{:subject "ma_ny_atty_01"
:entities
[{:id "ma_ny_atty_01"
:kind "matter_assignment"
:attributes
{:firm_entity_id "firm_ny_llp"
:employment_type "w2"
:starts_on "2026-12-10"
:is_remote false
:compliance_reviewer "usr_legal_ops_01"
:adverse_action_stage "none"
:status "pending"}}
{:id "prof_atty_01"
:kind "professional"
:attributes
{:full_name "Jordan Ellis"
:email "jordan.ellis@example.test"
:role "attorney"
:home_state "NY"
:is_rehire false
:us_work_authorized true
:bar_state "NY"
:bar_status "active"
:cle_compliant true
:bar_credential_required true
:bar_credential_expires_on "2027-12-31"
:disciplinary_action false
:status "onboarding"}}
{:id "matter_101"
:kind "matter"
:attributes
{:matter_code "MTR-2026-101"
:title "Harbor Logistics Commercial Litigation"
:practice_area "litigation"
:office_state "NY"
:office_country "US"
:everify_participating true
:background_check_required false
:drug_screen_required false}}]
:links
[{:from "ma_ny_atty_01" :to "prof_atty_01" :relation "professional"}
{:from "ma_ny_atty_01" :to "matter_101" :relation "matter"}]}
:expect
{:required
["federal_i9"
"federal_w4"
"federal_everify"
"ny_pay_notice"
"ny_harassment_training"
"legal_bar_admission"
"legal_conflicts_check"
"legal_confidentiality_agreement"
"legal_cle_status"
"firm_ethics_billing_guidelines"]
:not_required []
:states
{:federal_i9 "available"
:federal_w4 "available"
:federal_everify "waiting"
:ny_pay_notice "available"
:ny_harassment_training "available"
:legal_bar_admission "available"
:legal_conflicts_check "available"
:legal_confidentiality_agreement "available"
:legal_cle_status "available"
:firm_ethics_billing_guidelines "available"}
:missing_facts []}
:steps
[{:name "complete-i9-unlocks-everify"
:progress
{:federal_i9
{:status "completed"
:document "doc_lf_i9_01"
:roles {:subject "completed" :reviewer "completed"}}}
:expect
{:required
["federal_i9"
"federal_w4"
"federal_everify"
"ny_pay_notice"
"ny_harassment_training"
"legal_bar_admission"
"legal_conflicts_check"
"legal_confidentiality_agreement"
"legal_cle_status"
"firm_ethics_billing_guidelines"]
:states {:federal_i9 "complete" :federal_everify "available"}
:missing_facts []}}])
(scenario ny-paralegal-matter-assignment
:description "W-2 New York paralegal assigned to a NY matter at a non-E-Verify office requires federal W-2 forms, NY statutory items, per-matter conflicts check, confidentiality agreement, and firm ethics/billing guidelines, but not attorney bar admission or CLE."
:policy-set "example-law-firm-onboarding"
:as-of "2026-12-01"
:snapshot
{:subject "ma_ny_para_01"
:entities
[{:id "ma_ny_para_01"
:kind "matter_assignment"
:attributes
{:firm_entity_id "firm_ny_llp"
:employment_type "w2"
:starts_on "2026-12-10"
:is_remote false
:compliance_reviewer "usr_legal_ops_01"
:adverse_action_stage "none"
:status "pending"}}
{:id "prof_para_01"
:kind "professional"
:attributes
{:full_name "Samira Haddad"
:email "samira.haddad@example.test"
:role "paralegal"
:home_state "NY"
:is_rehire false
:us_work_authorized true
:bar_credential_required false
:disciplinary_action false
:status "onboarding"}}
{:id "matter_102"
:kind "matter"
:attributes
{:matter_code "MTR-2026-102"
:title "Northbridge Real Estate Acquisition"
:practice_area "real_estate"
:office_state "NY"
:office_country "US"
:everify_participating false
:background_check_required false
:drug_screen_required false}}]
:links
[{:from "ma_ny_para_01" :to "prof_para_01" :relation "professional"}
{:from "ma_ny_para_01" :to "matter_102" :relation "matter"}]}
:expect
{:required
["federal_i9"
"federal_w4"
"ny_pay_notice"
"ny_harassment_training"
"legal_conflicts_check"
"legal_confidentiality_agreement"
"firm_ethics_billing_guidelines"]
:not_required ["federal_everify" "legal_bar_admission" "legal_cle_status"]
:states
{:federal_i9 "available"
:federal_w4 "available"
:ny_pay_notice "available"
:ny_harassment_training "available"
:legal_conflicts_check "available"
:legal_confidentiality_agreement "available"
:firm_ethics_billing_guidelines "available"}
:missing_facts []})
(scenario non-ny-contractor-legal-staff
:description "1099 legal_staff contractor assigned to a Connecticut matter requires only the confidentiality agreement and firm ethics/billing guidelines; W-2 federal, NY state, bar, CLE, and conflicts requirements do not apply."
:policy-set "example-law-firm-onboarding"
:as-of "2026-12-01"
:snapshot
{:subject "ma_ct_staff_01"
:entities
[{:id "ma_ct_staff_01"
:kind "matter_assignment"
:attributes
{:firm_entity_id "firm_ny_llp"
:employment_type "1099"
:starts_on "2026-12-10"
:is_remote true
:compliance_reviewer "usr_legal_ops_01"
:adverse_action_stage "none"
:status "pending"}}
{:id "prof_staff_01"
:kind "professional"
:attributes
{:full_name "Devon Okafor"
:email "devon.okafor@example.test"
:role "legal_staff"
:home_state "CT"
:is_rehire false
:us_work_authorized true
:bar_credential_required false
:disciplinary_action false
:status "onboarding"}}
{:id "matter_103"
:kind "matter"
:attributes
{:matter_code "MTR-2026-103"
:title "Riverbend Regulatory Review"
:practice_area "regulatory"
:office_state "CT"
:office_country "US"
:everify_participating false
:background_check_required false
:drug_screen_required false}}]
:links
[{:from "ma_ct_staff_01" :to "prof_staff_01" :relation "professional"}
{:from "ma_ct_staff_01" :to "matter_103" :relation "matter"}]}
:expect
{:required ["legal_confidentiality_agreement" "firm_ethics_billing_guidelines"]
:not_required
["federal_i9"
"federal_w4"
"federal_everify"
"ny_pay_notice"
"ny_harassment_training"
"legal_bar_admission"
"legal_conflicts_check"
"legal_cle_status"]
:states
{:legal_confidentiality_agreement "available"
:firm_ethics_billing_guidelines "available"}
:missing_facts []})
(scenario conflicts-check-reuse-same-vs-different-matter
:description "Prior conflicts check for MTR-2026-201 satisfies legal_conflicts_check on the same matter via legal/matter_id bound from matter_assignment.matter->matter.matter_code; reassigning to MTR-2026-202 requires a fresh conflicts check while firm ethics/billing guidelines remain satisfied for the same firm."
:policy-set "example-law-firm-onboarding"
:as-of "2026-12-01"
:snapshot
{:subject "ma_reuse_01"
:entities
[{:id "ma_reuse_01"
:kind "matter_assignment"
:attributes
{:firm_entity_id "firm_ny_llp"
:employment_type "1099"
:starts_on "2026-12-10"
:is_remote false
:compliance_reviewer "usr_legal_ops_01"
:adverse_action_stage "none"
:status "pending"}}
{:id "prof_para_02"
:kind "professional"
:attributes
{:full_name "Tessa Lindholm"
:email "tessa.lindholm@example.test"
:role "paralegal"
:home_state "NY"
:is_rehire true
:us_work_authorized true
:bar_credential_required false
:disciplinary_action false
:status "active"}}
{:id "matter_201"
:kind "matter"
:attributes
{:matter_code "MTR-2026-201"
:title "Meridian Corporate Financing"
:practice_area "corporate"
:office_state "NY"
:office_country "US"
:everify_participating false
:background_check_required false
:drug_screen_required false}}]
:links
[{:from "ma_reuse_01" :to "prof_para_02" :relation "professional"}
{:from "ma_reuse_01" :to "matter_201" :relation "matter"}]}
:evidence
[{:id "doc_prior_conflicts_201"
:template "legal_conflicts_check_record"
:template_version "2026.1.0"
:status "completed"
:completed_at "2026-11-15"
:facts {"legal/matter_id" "MTR-2026-201"}}
{:id "doc_prior_ethics_firm"
:template "law_firm_ethics_billing_ack"
:template_version "2026.1.0"
:status "completed"
:completed_at "2026-10-01"
:facts {"engagement/employer_id" "firm_ny_llp"}}]
:expect
{:required
["legal_conflicts_check"
"legal_confidentiality_agreement"
"firm_ethics_billing_guidelines"]
:not_required
["federal_i9"
"federal_w4"
"federal_everify"
"ny_pay_notice"
"ny_harassment_training"
"legal_bar_admission"
"legal_cle_status"]
:states
{:legal_conflicts_check "complete"
:legal_confidentiality_agreement "available"
:firm_ethics_billing_guidelines "complete"}
:missing_facts []}
:steps
[{:name "reassign-to-different-matter-requires-fresh-conflicts-check"
:update_entity {:id "matter_201" :attributes {:matter_code "MTR-2026-202"}}
:expect
{:required
["legal_conflicts_check"
"legal_confidentiality_agreement"
"firm_ethics_billing_guidelines"]
:states
{:legal_conflicts_check "available"
:legal_confidentiality_agreement "available"
:firm_ethics_billing_guidelines "complete"}
:missing_facts []}}])
(scenario tightened-due-dates-and-overdue
:description "Tightened confidentiality agreement (days: -2) becomes overdue one day before start_date (2026-12-09 for a 2026-12-10 start), while tightened NY pay notice (days: -1) and firm ethics/billing guidelines (days: -1) become overdue on the start date."
:policy-set "example-law-firm-onboarding"
:as-of "2026-12-08"
:snapshot
{:subject "ma_due_01"
:entities
[{:id "ma_due_01"
:kind "matter_assignment"
:attributes
{:firm_entity_id "firm_ny_llp"
:employment_type "w2"
:starts_on "2026-12-10"
:is_remote false
:compliance_reviewer "usr_legal_ops_01"
:adverse_action_stage "none"
:status "pending"}}
{:id "prof_due_01"
:kind "professional"
:attributes
{:full_name "Nadia Kowalski"
:email "nadia.kowalski@example.test"
:role "attorney"
:home_state "NY"
:is_rehire false
:us_work_authorized true
:bar_state "NY"
:bar_status "active"
:cle_compliant true
:bar_credential_required true
:bar_credential_expires_on "2027-12-31"
:disciplinary_action false
:status "onboarding"}}
{:id "matter_301"
:kind "matter"
:attributes
{:matter_code "MTR-2026-301"
:title "Beacon Employment Advisory"
:practice_area "employment"
:office_state "NY"
:office_country "US"
:everify_participating false
:background_check_required false
:drug_screen_required false}}]
:links
[{:from "ma_due_01" :to "prof_due_01" :relation "professional"}
{:from "ma_due_01" :to "matter_301" :relation "matter"}]}
:expect
{:required
["federal_i9"
"federal_w4"
"ny_pay_notice"
"ny_harassment_training"
"legal_bar_admission"
"legal_conflicts_check"
"legal_confidentiality_agreement"
"legal_cle_status"
"firm_ethics_billing_guidelines"]
:states
{:federal_i9 "available"
:ny_pay_notice "available"
:legal_confidentiality_agreement "available"
:firm_ethics_billing_guidelines "available"}
:missing_facts []}
:steps
[{:name "advance-to-day-before-start-confidentiality-overdue"
:as_of "2026-12-09"
:expect
{:states
{:legal_confidentiality_agreement "overdue"
:ny_pay_notice "available"
:firm_ethics_billing_guidelines "available"
:federal_i9 "available"}
:missing_facts []}}
{:name "advance-to-start-date-ny-pay-notice-and-ethics-overdue"
:as_of "2026-12-10"
:expect
{:states
{:legal_confidentiality_agreement "overdue"
:ny_pay_notice "overdue"
:firm_ethics_billing_guidelines "overdue"
:federal_i9 "overdue"
:federal_w4 "available"}
:missing_facts []}}])
(scenario ethics-guidelines-renewal-and-expiry
:description "Completed firm ethics and billing guidelines acknowledgment opens a renewal item 30 days before its 1-year expiry and transitions to expired once as_of passes the expiry date."
:policy-set "example-law-firm-onboarding"
:as-of "2026-12-01"
:snapshot
{:subject "ma_exp_01"
:entities
[{:id "ma_exp_01"
:kind "matter_assignment"
:attributes
{:firm_entity_id "firm_ny_llp"
:employment_type "1099"
:starts_on "2026-12-10"
:is_remote true
:compliance_reviewer "usr_legal_ops_01"
:adverse_action_stage "none"
:status "active"}}
{:id "prof_exp_01"
:kind "professional"
:attributes
{:full_name "Owen Takahashi"
:email "owen.takahashi@example.test"
:role "legal_staff"
:home_state "CT"
:is_rehire true
:us_work_authorized true
:bar_credential_required false
:disciplinary_action false
:status "active"}}
{:id "matter_401"
:kind "matter"
:attributes
{:matter_code "MTR-2026-401"
:title "Summit Regulatory Filing"
:practice_area "regulatory"
:office_state "CT"
:office_country "US"
:everify_participating false
:background_check_required false
:drug_screen_required false}}]
:links
[{:from "ma_exp_01" :to "prof_exp_01" :relation "professional"}
{:from "ma_exp_01" :to "matter_401" :relation "matter"}]}
:evidence
[{:id "doc_ethics_exp_01"
:template "law_firm_ethics_billing_ack"
:template_version "2026.1.0"
:status "completed"
:completed_at "2025-12-15"
:facts {"engagement/employer_id" "firm_ny_llp"}}]
:progress
{:legal_confidentiality_agreement {:status "completed" :document "doc_conf_exp_01" :roles {:subject "completed"}}
:firm_ethics_billing_guidelines {:status "completed" :document "doc_ethics_exp_01" :roles {:subject "completed"}}}
:expect
{:required
["legal_confidentiality_agreement"
"firm_ethics_billing_guidelines"
"firm_ethics_billing_guidelines:renewal"]
:states
{:legal_confidentiality_agreement "complete"
:firm_ethics_billing_guidelines "complete"
"firm_ethics_billing_guidelines:renewal" "available"}
:wake_at "2026-12-15"
:missing_facts []}
:steps
[{:name "advance-past-annual-expiry"
:as_of "2026-12-16"
:expect
{:required ["legal_confidentiality_agreement" "firm_ethics_billing_guidelines"]
:not_required ["firm_ethics_billing_guidelines:renewal"]
:states
{:legal_confidentiality_agreement "complete"
:firm_ethics_billing_guidelines "expired"}
:missing_facts []}}])
(scenario missing-matter-link-tentative
:description "When a matter_assignment has no linked matter entity, work/location_country and work/location_state are unresolved so federal and NY requirements wait on missing facts while legal and firm requirements remain available; supplying location facts resolves them."
:policy-set "example-law-firm-onboarding"
:as-of "2026-12-01"
:snapshot
{:subject "ma_missing_matter_01"
:entities
[{:id "ma_missing_matter_01"
:kind "matter_assignment"
:attributes
{:firm_entity_id "firm_ny_llp"
:employment_type "w2"
:starts_on "2026-12-10"
:is_remote false
:compliance_reviewer "usr_legal_ops_01"
:adverse_action_stage "none"
:status "pending"}}
{:id "prof_missing_01"
:kind "professional"
:attributes
{:full_name "Caleb Morales"
:email "caleb.morales@example.test"
:role "attorney"
:home_state "NY"
:is_rehire false
:us_work_authorized true
:bar_state "NY"
:bar_status "active"
:cle_compliant true
:bar_credential_required true
:bar_credential_expires_on "2027-12-31"
:disciplinary_action false
:status "onboarding"}}]
:links [{:from "ma_missing_matter_01" :to "prof_missing_01" :relation "professional"}]}
:expect
{:required
["federal_i9"
"federal_w4"
"ny_pay_notice"
"ny_harassment_training"
"legal_bar_admission"
"legal_conflicts_check"
"legal_confidentiality_agreement"
"legal_cle_status"
"firm_ethics_billing_guidelines"]
:not_required ["federal_everify"]
:states
{:federal_i9 "blocked_on_facts"
:federal_w4 "blocked_on_facts"
:ny_pay_notice "blocked_on_facts"
:ny_harassment_training "blocked_on_facts"
:legal_bar_admission "available"
:legal_conflicts_check "available"
:legal_confidentiality_agreement "available"
:legal_cle_status "available"
:firm_ethics_billing_guidelines "available"}
:missing_facts ["work/location_country" "work/location_state"]}
:steps
[{:name "supply-ny-location-facts"
:set_facts {"work/location_country" "US" "work/location_state" "NY"}
:expect
{:required
["federal_i9"
"federal_w4"
"ny_pay_notice"
"ny_harassment_training"
"legal_bar_admission"
"legal_conflicts_check"
"legal_confidentiality_agreement"
"legal_cle_status"
"firm_ethics_billing_guidelines"]
:not_required ["federal_everify"]
:states
{:federal_i9 "available"
:federal_w4 "available"
:ny_pay_notice "available"
:ny_harassment_training "available"
:legal_bar_admission "available"
:legal_conflicts_check "available"
:legal_confidentiality_agreement "available"
:legal_cle_status "available"
:firm_ethics_billing_guidelines "available"}
:missing_facts []}}])