JJijibora
Docs & Product Guide
On this page (5 sections)

Feature Package PK-09 + PK-08 — Compliance, Safety & Guest Identity

Status: Package Specification
Domain: Compliance / Risk / Guest Identity
Maps to: Compliance Gates (s350), Scope Governance (s142), Record Federation (s184), Playbook H-8/H-10
External integration: Keycloak (identity), BBS+ (selective disclosure)


1. What These Packages Do

PK-09 (Compliance & Safety) gives the hotel one auditable system for health, fire, accessibility, and building-safety inspections with expert sign-off and certificate issuance. PK-08 (Guest Identity & Access) gives selective-disclosure identity verification and role-based access. Together they address regulatory compliance, insurance, and data-protection obligations.

2. Features & Functionality — Compliance & Safety (PK-09)

FeatureWhat it doesWho uses itWhat stands behind it
Compliance gatesRegister gates for health & safety, fire safety, food hygiene, accessibility with ordered stagesCompliance officerfn::compliance::register_gate; lookup.claims.sla.v1
Inspection stagesSeven-stage building-safety chain: scheduled → fire → accessibility → hygiene → expert sign-off → certificate → packet exportInspector, expertbuilding-safety-inspections.scenario.json
Expert sign-offMandatory expert sign-off (SoD: expert ≠ inspector) before certificate issuesLicensed expertlookup.claims.sod.v1; fn::poce::record_step
Certificate & packetCertificate issued; compliance packet exported (Gotenberg PDF) with evidence hashesGM, insurerfn::poce::finalize_session; Gotenberg export
Expiry watchCertificate expiry re-schedules the next inspectionCompliance officerSLA binding to Kestra
Incident escalationSecurity/safety incidents escalate ladder: property desk → GM → regional safety office (human approval at each step)Security, GM, regional officePoCE records each escalation step; no auto-fine

3. Features & Functionality — Guest Identity & Access (PK-08)

FeatureWhat it doesWho uses itWhat stands behind it
Selective-disclosure proofGuest proves age/nationality without surrendering full ID documentFront desk, securityBBS+ credential (s121-s123)
Keycloak anchoringGuest/staff identity anchored to Keycloak realm and DIDIT, securitycns://truth/node/person; Keycloak OIDC
Role-based accessAPF resolves what a principal may do in a property scopeDepartment heads, ITfn::app_perms::resolve_effective
Access auditEvery access grant and identity proof logged to PoCECompliance officer, auditorPoCE receipt; security audit log (s146)

4. Guard Rails

  • Expert sign-off mandatory for certificates; no auto-certify
  • No auto-fine; human approval at each escalation step
  • Bands and thresholds are data (KV lookups); resolver never defaults — missing band refuses
  • No PHI/system-of-record for medical clinics (non-goal)
  • No FedRAMP High / FIPS-validated crypto (target non-federal, non-PHI paths)

5. Evidence & Audit

  • Inspection records, expert sign-offs, certificates, packet exports, PoCE receipts, access-grant logs
  • Verifiable offline by regulators, insurers, and data-protection auditors