principalv1full_name*stringemail*stringresidence_statestringis_rehirebooleanprior_engagementsintegerwork_authorized_usbooleanssn_last4stringCore staffing domain library pack (RFC 0004): canonical concepts for principal, engagement, and work location, plus reference entity types and saved views a customer may adopt or replace via bindings.
pnpm ir check packs/staffing-core/pack.jsonpnpm ir test packs/staffing-core/pack.jsonTyped domain facts introduced by this pack that policies evaluate against.
| Concept | Type | Choices / Description |
|---|---|---|
work/location_state | choice | US state or territory where the principal performs the work ALAKAZARCACOCTDEDCFLGAHIIDILINIAKSKYLAMEMDMAMIMNMSMOMTNENVNHNJNMNYNCNDOHOKORPAPRRISCSDTNTXUTVTVAWAWVWIWY |
work/location_country | choice | Country where the principal performs the work (ISO 3166-1 alpha-2 or OTHER) USCAGBMXOTHER |
work/is_remote | boolean | Whether the principal performs the engagement remotely |
engagement/start_date | date | First day of employment or engagement for pay (YYYY-MM-DD) |
engagement/classification | choice | Tax classification of the engagement (W-2 employee or 1099 independent contractor) w21099 |
engagement/reviewer | string | Operator or authorized representative who completes employer-side verification sections |
engagement/employer_id | string | Identifier of the employing legal entity used to scope prior-document reuse |
engagement/everify_enrolled | boolean | Whether the employing site is enrolled in DHS/USCIS E-Verify |
principal/is_rehire | boolean | Whether the principal was previously employed by the same employer |
principal/residence_state | choice | US state or territory of the principal's primary residence ALAKAZARCACOCTDEDCFLGAHIIDILINIAKSKYLAMEMDMAMIMNMSMOMTNENVNHNJNMNYNCNDOHOKORPAPRRISCSDTNTXUTVTVAWAWVWIWY |
principal/work_authorized_us | boolean | Whether the principal is authorized to work in the United States |
JSON Schema object definitions and typed x-ref edges shipped in this pack.
principalv1full_name*stringemail*stringresidence_statestringis_rehirebooleanprior_engagementsintegerwork_authorized_usbooleanssn_last4stringwork_locationv1name*stringstate*stringcountry*stringeverify_enrolledbooleanengagementv1employer_id*stringclassification*stringstart_date*stringis_remotebooleanreviewerstringstatusstringExecutable compliance test cases verified against this pack by pnpm ir test.
reference-new-hire-snapshotReference staffing-core entity graph snapshot for a new US W-2 engagement at an E-Verify enrolled California site.
engagement (eng_001)=employer_id=emp_ref_01, classification=w2, start_date=2026-12-07, is_remote=falseprincipal (pri_001)=full_name=Jordan Rivera, email=jordan.rivera@example.test, residence_state=CA, is_rehire=falsework_location (loc_001)=name=San Francisco General, state=CA, country=US, everify_enrolled=truereference-rehire-snapshotReference staffing-core entity graph snapshot for a rehired US W-2 principal returning to the same employer.
engagement (eng_002)=employer_id=emp_ref_01, classification=w2, start_date=2026-12-10, is_remote=trueprincipal (pri_002)=full_name=Avery Chen, email=avery.chen@example.test, residence_state=TX, is_rehire=truework_location (loc_002)=name=Austin Remote Hub, state=TX, country=US, everify_enrolled=truepacks/staffing-core/pack.json{
"format": 1,
"name": "staffing-core",
"version": "2026.12.0",
"kind": "library",
"certified": true,
"description": "Core staffing domain library pack (RFC 0004): canonical concepts for principal, engagement, and work location, plus reference entity types and saved views a customer may adopt or replace via bindings.",
"concepts": [
{
"key": "work/location_state",
"type": "choice",
"options": [
"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"
],
"description": "US state or territory where the principal performs the work"
},
{
"key": "work/location_country",
"type": "choice",
"options": [
"US",
"CA",
"GB",
"MX",
"OTHER"
],
"description": "Country where the principal performs the work (ISO 3166-1 alpha-2 or OTHER)"
},
{
"key": "work/is_remote",
"type": "boolean",
"description": "Whether the principal performs the engagement remotely"
},
{
"key": "engagement/start_date",
"type": "date",
"description": "First day of employment or engagement for pay (YYYY-MM-DD)"
},
{
"key": "engagement/classification",
"type": "choice",
"options": [
"w2",
"1099"
],
"description": "Tax classification of the engagement (W-2 employee or 1099 independent contractor)"
},
{
"key": "engagement/reviewer",
"type": "string",
"description": "Operator or authorized representative who completes employer-side verification sections"
},
{
"key": "engagement/employer_id",
"type": "string",
"description": "Identifier of the employing legal entity used to scope prior-document reuse"
},
{
"key": "engagement/everify_enrolled",
"type": "boolean",
"description": "Whether the employing site is enrolled in DHS/USCIS E-Verify"
},
{
"key": "principal/is_rehire",
"type": "boolean",
"description": "Whether the principal was previously employed by the same employer"
},
{
"key": "principal/residence_state",
"type": "choice",
"options": [
"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"
],
"description": "US state or territory of the principal's primary residence"
},
{
"key": "principal/work_authorized_us",
"type": "boolean",
"description": "Whether the principal is authorized to work in the United States"
}
],
"entity_types": [
{
"kind": "principal",
"version": "1",
"schema": {
"type": "object",
"properties": {
"full_name": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string",
"format": "email"
},
"residence_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"
},
"prior_engagements": {
"type": "integer",
"minimum": 0
},
"work_authorized_us": {
"type": "boolean"
},
"ssn_last4": {
"type": "string",
"pattern": "^[0-9]{4}$",
"x-sensitivity": "pii"
}
},
"required": [
"full_name",
"email"
],
"additionalProperties": false
}
},
{
"kind": "work_location",
"version": "1",
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"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"
]
},
"country": {
"type": "string",
"enum": [
"US",
"CA",
"GB",
"MX",
"OTHER"
]
},
"everify_enrolled": {
"type": "boolean"
}
},
"required": [
"name",
"state",
"country"
],
"additionalProperties": false
}
},
{
"kind": "engagement",
"version": "1",
"schema": {
"type": "object",
"properties": {
"employer_id": {
"type": "string",
"minLength": 1
},
"classification": {
"type": "string",
"enum": [
"w2",
"1099"
]
},
"start_date": {
"type": "string",
"format": "date"
},
"is_remote": {
"type": "boolean"
},
"reviewer": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"pending",
"active",
"completed",
"cancelled"
]
}
},
"required": [
"employer_id",
"classification",
"start_date"
],
"additionalProperties": false
}
}
],
"views": [
{
"key": "principal-roster",
"title": "Principals",
"description": "Reference roster of principals with residence state and rehire status.",
"source": "entity",
"entity_kind": "principal",
"layout": "table",
"columns": [
{
"key": "full_name",
"label": "Full Name"
},
{
"key": "email",
"label": "Email"
},
{
"key": "residence_state",
"label": "Residence State"
},
{
"key": "is_rehire",
"label": "Rehire"
}
],
"actions": [
{
"id": "start_case",
"label": "Start Onboarding Case",
"kind": "case.create"
}
]
},
{
"key": "engagement-pipeline",
"title": "Engagement Pipeline",
"description": "Reference board of engagements grouped by status.",
"source": "entity",
"entity_kind": "engagement",
"layout": "board",
"group_by": "status",
"columns": [
{
"key": "employer_id",
"label": "Employer"
},
{
"key": "classification",
"label": "Classification"
},
{
"key": "start_date",
"label": "Start Date"
},
{
"key": "reviewer",
"label": "Reviewer"
}
],
"actions": [
{
"id": "start_case",
"label": "Start Case",
"kind": "case.create"
}
]
},
{
"key": "work-locations",
"title": "Work Locations",
"description": "Reference directory of work locations and E-Verify enrollment.",
"source": "entity",
"entity_kind": "work_location",
"layout": "table",
"columns": [
{
"key": "name",
"label": "Location"
},
{
"key": "state",
"label": "State"
},
{
"key": "country",
"label": "Country"
},
{
"key": "everify_enrolled",
"label": "E-Verify Enrolled"
}
]
},
{
"key": "staffing-cases",
"title": "Active Staffing Cases",
"description": "Reference board of active onboarding cases grouped by status.",
"source": "case",
"layout": "board",
"group_by": "case/status",
"columns": [
{
"key": "subject_name",
"label": "Principal"
},
{
"key": "work/location_state",
"label": "Work State"
},
{
"key": "engagement/classification",
"label": "Classification"
},
{
"key": "engagement/start_date",
"label": "Start Date"
},
{
"key": "case/status",
"label": "Status"
}
],
"actions": [
{
"id": "send_journey_link",
"label": "Send Journey Link",
"kind": "journey.issue"
}
]
}
]
}staffing-core.forma(pack staffing-core
:format 1
:version "2026.12.0"
:kind "library"
:certified true
:description "Core staffing domain library pack (RFC 0004): canonical concepts for principal, engagement, and work location, plus reference entity types and saved views a customer may adopt or replace via bindings.")
;; ── Concepts ───────────────────────────────────────────────────────────────
(concept "work/location_state"
:type "choice"
:options
["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"]
:description "US state or territory where the principal performs the work")
(concept "work/location_country"
:type "choice"
:options ["US" "CA" "GB" "MX" "OTHER"]
:description "Country where the principal performs the work (ISO 3166-1 alpha-2 or OTHER)")
(concept "work/is_remote"
:type "boolean"
:description "Whether the principal performs the engagement remotely")
(concept "engagement/start_date"
:type "date"
:description "First day of employment or engagement for pay (YYYY-MM-DD)")
(concept "engagement/classification"
:type "choice"
:options ["w2" "1099"]
:description "Tax classification of the engagement (W-2 employee or 1099 independent contractor)")
(concept "engagement/reviewer"
:type "string"
:description "Operator or authorized representative who completes employer-side verification sections")
(concept "engagement/employer_id"
:type "string"
:description "Identifier of the employing legal entity used to scope prior-document reuse")
(concept "engagement/everify_enrolled"
:type "boolean"
:description "Whether the employing site is enrolled in DHS/USCIS E-Verify")
(concept "principal/is_rehire"
:type "boolean"
:description "Whether the principal was previously employed by the same employer")
(concept "principal/residence_state"
:type "choice"
:options
["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"]
:description "US state or territory of the principal's primary residence")
(concept "principal/work_authorized_us"
:type "boolean"
:description "Whether the principal is authorized to work in the United States")
;; ── Entity Types ───────────────────────────────────────────────────────────
(entity principal :version "1"
{:full_name (meta String {:min-length 1})
:email (meta String {:format "email"})
:residence_state (Option (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)
:prior_engagements (Option (meta Int {:minimum 0}))
:work_authorized_us (Option Bool)
:ssn_last4 (Option (meta String {:pattern "^[0-9]{4}$" :sensitivity "pii"}))})
(entity work_location :version "1"
{:name (meta String {:min-length 1})
: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")
:country (Union "US" "CA" "GB" "MX" "OTHER")
:everify_enrolled (Option Bool)})
(entity engagement :version "1"
{:employer_id (meta String {:min-length 1})
:classification (Union "w2" "1099")
:start_date (meta String {:format "date"})
:is_remote (Option Bool)
:reviewer (Option String)
:status (Option (Union "pending" "active" "completed" "cancelled"))})
;; ── Saved Views ────────────────────────────────────────────────────────────
(saved-view principal-roster
:title "Principals"
:description "Reference roster of principals with residence state and rehire status."
:source "entity"
:entity principal
:layout "table"
:columns
[{:key "full_name" :label "Full Name"}
{:key "email" :label "Email"}
{:key "residence_state" :label "Residence State"}
{:key "is_rehire" :label "Rehire"}]
:actions [{:id "start_case" :label "Start Onboarding Case" :kind "case.create"}])
(saved-view engagement-pipeline
:title "Engagement Pipeline"
:description "Reference board of engagements grouped by status."
:source "entity"
:entity engagement
:layout "board"
:group-by "status"
:columns
[{:key "employer_id" :label "Employer"}
{:key "classification" :label "Classification"}
{:key "start_date" :label "Start Date"}
{:key "reviewer" :label "Reviewer"}]
:actions [{:id "start_case" :label "Start Case" :kind "case.create"}])
(saved-view work-locations
:title "Work Locations"
:description "Reference directory of work locations and E-Verify enrollment."
:source "entity"
:entity work_location
:layout "table"
:columns
[{:key "name" :label "Location"}
{:key "state" :label "State"}
{:key "country" :label "Country"}
{:key "everify_enrolled" :label "E-Verify Enrolled"}])
(saved-view staffing-cases
:title "Active Staffing Cases"
:description "Reference board of active onboarding cases grouped by status."
:source "case"
:layout "board"
:group-by "case/status"
:columns
[{:key "subject_name" :label "Principal"}
{:key "work/location_state" :label "Work State"}
{:key "engagement/classification" :label "Classification"}
{:key "engagement/start_date" :label "Start Date"}
{:key "case/status" :label "Status"}]
:actions [{:id "send_journey_link" :label "Send Journey Link" :kind "journey.issue"}])