Skip to content

[imagodei/sovereignty] Complete sovereignty.service.ts test coverage (8.6% → 80%) #170

@EthosengineBot

Description

@EthosengineBot

Context

Currently sovereignty.service.ts has only 8.6% test coverage despite being a core service for tracking user sovereignty stages.

Gap Analysis

The service has computed signals for:

  • Sovereignty stage detection (visitor → hosted → app-user → node-operator)
  • Connection status mapping from Holochain state
  • Data residency computation
  • Key information generation

Acceptance Criteria

  • Test sovereignty stage detection logic
  • Test connection status mapping (local vs remote conductor)
  • Test data residency computation for each stage
  • Test key information generation
  • Test node operator detection logic
  • Coverage reaches 80%+

Estimated Effort

2-3 hours

Files

  • src/app/imagodei/services/sovereignty.service.ts
  • src/app/imagodei/services/sovereignty.service.spec.ts (create)

Priority Justification

HIGH - Sovereignty tracking is core to the Elohim identity model and affects user experience across stages.


Created by quality-deep orchestrator - Sprint 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Priority 1 - HighbacklogSprint planning backlog - items awaiting prioritizationtech-debtTechnical debt cleanup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions