Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt

Use this file to discover all available pages before exploring further.

Feature ID: GR-06-EN-01 Owner: GR (Governance & Compliance) Status: 📝 Planned Created: 2026-03-31

Overview

GR-06-EN-01 enhances the GR-06 AI Compliance Advisor with jurisdiction-aware compliance checking. It integrates with PF-96 jurisdiction profiles, PF-60/PF-61 RAG/KB infrastructure, and PF-62 AI Skills to provide state-specific compliance guidance.

Platform Integration Layer Dependencies

Platform LayerIntegration TypeDirectionDescription
PF-96 (Jurisdiction Profiles)useJurisdictionProfile(siteId?)ReadResolves org/site jurisdiction profile for AI context injection
PF-60 (RAG Infrastructure)Embedding pipelineRead/WriteState regulatory document chunks embedded and retrieved via RAG
PF-61 (Knowledge Base)KB article storageWriteState regulatory documents stored as KB entries in per-state collections
PF-62 (AI Skills)Skill registryWriteRegisters state_compliance_advisor, state_gap_analyzer, state_training_advisor, multi_state_comparator skills
PF-27 (Platform AI)AI generationReadBase AI chat and generation capabilities
PF-72 (Agent SDK)useAISkillChat / ai-skill-executeReadSkill execution with structured output
PF-45 (Feature Flags)useFeatureFlagReadgr_state_compliance_enabled rollout gate
PF-10 (Notifications)Notification triggersWriteCritical gap analysis notifications

Internal GR Dependencies

GR ModuleIntegration TypeDirectionDescription
GR-06 (AI Compliance Advisor)Parent specExtendsAll GR-06 AI hooks enhanced with jurisdiction context
GR-03 (Compliance Tracking)Data readReadCompliance check statuses for gap analysis context
GR-02 (Training & CEU)Data readReadTraining completions and CEU records for training gap analysis
GR-16 (Accreditation Tracer)Feature extensionExtendsAI question simulator enhanced with jurisdiction context

Events Published

gr_state_gap_analysis_completed

  • Publisher: GR-06-EN-01
  • Subscribers: PF-91 (compliance dashboard), PF-10 (notifications for critical gaps)
  • Payload Schema:
    {
      organization_id: string; // UUID
      state_code: string;      // e.g., "AZ"
      domain: 'clinical' | 'billing' | 'compliance' | 'training' | 'comprehensive';
      compliance_score: number; // 0-100
      gap_count: number;
    }
    
  • Trigger: On completion of state-specific gap analysis
  • Status: 📝 Planned (Phase 4)

Events Consumed

None directly. GR-06-EN-01 reads data from GR-03 and GR-02 via hooks, not via events.

API Contracts

Frontend Hooks (Internal)

HookPurposeConsumers
useStateComplianceChat(siteId?)Jurisdiction-aware AI compliance chatGR compliance UI
useStateGapAnalysis(domain, siteId?)State-specific gap analysisGR gap analysis UI
useMultiStateComparison(profileIds[])Multi-state requirement comparisonGR comparison UI

Security Considerations

  • No PHI in AI prompts, KB documents, or RAG context
  • State regulatory documents are public information (no org-scoping on KB tables)
  • Org-specific compliance data sanitized via sanitizeContentForAI
  • All AI interactions audit-logged to pf_ai_usage_logs with jurisdiction context
  • Federal baseline enforcement: AI cannot recommend weakening federal requirements

References

  • Spec: specs/gr/specs/GR-06-EN-01-ai-state-compliance-checking.md
  • Plan: specs/gr/plans/GR-06-EN-01-ai-state-compliance-checking-PLAN.md
  • Parent: GR-06 Integration context
  • PF-96 Integration: docs/architecture/integrations/PF-96-medicaid-state-compliance-configuration-INTEGRATION.md