Skip to content

HELIX-ARCH-002: C4 Level 1 Context Diagram

This specification defines the C4 Level 1 System Context Diagram for the Helix Governance Operating System. It visualizes the system's runtime boundaries, external systems, and logical user interactions.


1. C4 Context Diagram (Mermaid)

This diagram renders natively inside the documentation portal. It models the Helix boundary and all direct actors and external integrations.

flowchart TB
    %% Styling Definitions
    classDef actor fill:#1261A0,stroke:#0A4275,color:#FFFFFF,stroke-width:2px;
    classDef core fill:#D44000,stroke:#A30000,color:#FFFFFF,stroke-width:2px;
    classDef ext fill:#5C6B73,stroke:#3E4A50,color:#FFFFFF,stroke-width:2px;
    classDef boundary stroke:#333,stroke-dasharray: 5 5,fill:none;

    %% Actors
    Cit["Citizen (Person)"]
    Rep["Representative (Person)"]
    Off["Officer (Person)"]
    Fld["Field Engineer (Person)"]
    DAd["District Administrator (Person)"]
    PAd["Platform Administrator (Person)"]
    Dev["Developer (Person)"]

    %% Ingestion/Notification Intermediaries
    WA["WhatsApp API (System)"]
    SMS["SMS Gateway (System)"]
    EM["Email Gateway (System)"]

    %% Government & Knowledge Integrations
    GIS["Gov GIS and Asset Registry (System)"]
    OD["Gov Open Data Portal (System)"]
    Cen["Census Demographics (System)"]
    Wth["Weather API (System)"]
    Sat["Satellite Imagery (System)"]
    Pol["Policy Circular Repo (System)"]
    Ntf["Push Notification Provider (System)"]
    Dep["Department System (System)"]

    %% Helix Core System Boundary
    subgraph HelixBoundary ["Helix System Boundary"]
        HOS["Helix Governance OS"]
    end

    %% Citizen Interactions
    Cit -->|Submits reports to| WA
    Cit -->|Submits simple text to| SMS
    Cit -->|Submits circular forms to| EM

    %% Channel Intermediaries to Core
    WA -->|Forwards inputs to| HOS
    HOS -->|Dispatches notifications to| WA
    SMS -->|Forwards text to| HOS
    HOS -->|Dispatches SMS updates to| SMS
    EM -->|Mails documents to| HOS
    HOS -->|Dispatches summary digests to| EM

    %% Human Console Interactions
    Rep -->|Views dashboards and Audits outcomes in| HOS
    Off -->|Triages, views drafts and signs decisions on| HOS
    HOS -->|Routes work orders to| Dep
    Dep -->|Assigns tasks and receives updates from| Fld
    Fld -->|Pulls task lists and uploads repair photos to| HOS
    DAd -->|Configures local priority parameters in| HOS
    PAd -->|Configures deployments and secrets for| HOS
    Dev -->|Builds custom plugins and extends APIs for| HOS

    %% Core to External Queries
    HOS -->|Queries municipal budget limits| OD
    HOS -->|Validates asset locations| GIS
    HOS -->|Validates voter contexts| Cen
    HOS -->|Retrieves climate status metrics| Wth
    HOS -->|Verifies site layouts and landscapes| Sat
    HOS -->|Retrieves policy documents| Pol
    HOS -->|Triggers device push notifications| Ntf

    %% Apply Style Classes
    class Cit,Rep,Off,Fld,DAd,PAd,Dev actor;
    class WA,SMS,EM,GIS,OD,Cen,Wth,Sat,Pol,Ntf,Dep ext;
    class HOS core;

    %% Apply graph styles
    style HelixBoundary fill:#FFF5F0,stroke:#D44000,stroke-width:2px;

2. C4 Context Diagram (PlantUML)

This version-controlled model defines the C4 Context structure:

@startuml
' In production, vendor this library locally to avoid external build dependencies:
' !include C4_Context.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml

LAYOUT_WITH_LEGEND()

title System Context Diagram for Helix Governance Operating System

Person(citizen, "Citizen", "A community member submitting local issues or applying for welfare benefits.")
Person(representative, "Representative", "Elected political leader (MP/MLA) tracking constituency progress.")
Person(officer, "Officer", "Administrative officer reviewing reports, triaging issues, and signing decisions.")
Person(field_engineer, "Field Engineer", "Field technician resolving repair tasks and uploading evidence.")
Person(district_admin, "District Administrator", "Office manager maintaining policy documents and task priorities.")
Person(platform_admin, "Platform Administrator", "System operator configuring deployments, secrets, and telemetry.")
Person(developer, "Developer", "Software engineer building custom plugins and system integration extensions.")

System(helix, "Helix", "Governance Operating System. Ingests unstructured inputs, grounds policy circulars, tracks workflow state, and acts as decision support.")

System_Ext(whatsapp, "WhatsApp API", "External messaging connector forwarding citizen queries.")
System_Ext(sms, "SMS Gateway", "External carrier gateway for fallback ingestion and text alerts.")
System_Ext(email, "Email Gateway", "SMTP circular ingest and officer digest mail server.")
System_Ext(opendata, "Gov Open Data", "Public database supplying municipal budget and project records.")
System_Ext(gis, "Gov GIS & Asset Registry", "Government directory listing physical public assets (pipes, roads).")
System_Ext(census, "Census Database", "Official demographics directory for verification of voter context.")
System_Ext(weather, "Weather API", "Climate service supplying data for issue ranking.")
System_Ext(satellite, "Satellite Services", "Physical geography imagery database for site validation.")
System_Ext(notifications, "Push Provider", "Third-party notification system for mobile apps.")
System_Ext(policy_repo, "Policy Circulars Database", "Gazette circular files supplying grounding facts.")
System_Ext(dept_system, "Department System", "Existing external department workflow systems (e.g., PWD, Water Board) managing localized repair task execution.")

Rel(citizen, whatsapp, "Sends text, audio, and photo reports to")
Rel(citizen, sms, "Submits simple alerts to")
Rel(citizen, email, "Mails circular applications to")

Rel(whatsapp, helix, "Forwards citizen messages to")
Rel(sms, helix, "Forwards text alerts to")
Rel(email, helix, "Forwards mail documents to")

Rel(helix, whatsapp, "Dispatches status alerts back to")
Rel(helix, sms, "Dispatches verification codes to")
Rel(helix, email, "Dispatches digest reports to")

Rel_R(representative, helix, "Monitors dashboards and audits outcomes via")
Rel_L(officer, helix, "Triages issues, reviews drafts, and signs off via")
Rel_D(field_engineer, helix, "Updates task orders and posts completion photos to")
Rel_U(district_admin, helix, "Uploads policy documents and priority files to")
Rel_U(platform_admin, helix, "Configures environment, secrets, and monitors telemetry on")
Rel_U(developer, helix, "Implements plugins and consumes API contracts of")

Rel(helix, dept_system, "Routes work orders to")
Rel(dept_system, field_engineer, "Assigns work tasks and receives status updates from")

Rel(helix, opendata, "Queries budget limits and projects from")
Rel(helix, gis, "Verifies asset details and location records from")
Rel(helix, census, "Validates registration and demographic files in")
Rel(helix, weather, "Retrieves weather conditions from")
Rel(helix, satellite, "Loads site layouts and image maps from")
Rel(helix, notifications, "Requests push notifications from")
Rel(helix, policy_repo, "Retrieves policy documents from")

@enduml

3. Relationship Details

This section outlines the business intent of the context relationships:

3.1. Human Interactions with Helix

  • Citizen $\rightarrow$ Ingest Intermediaries: Citizens transmit reports asynchronously via consumer channels. No structural Helix credentials are required at this stage.
  • Representative $\leftrightarrow$ Helix: Read-only access to constituency performance metrics and outcomes. Access requires authenticated identity authorization.
  • Officer $\leftrightarrow$ Helix: Full read-write triage workstation context. Officers approve AI drafts, sign decisions, and delegate task items.
  • Field Engineer $\leftrightarrow$ Helix: Updates field tasks from mobile interfaces. Sends repair verification data (geotagged images, operator notes).
  • District Administrator $\rightarrow$ Helix: district admins write policy files, update officer routing directories, and modify local prioritizations via configuration interfaces.
  • Platform Administrator $\leftrightarrow$ Helix: Deploys software packages, provisions access keys, sets up environment configurations, and gathers performance telemetry.
  • Developer $\leftrightarrow$ Helix: Builds plugin packages, checks API models, and implements external bindings via the abstract extension interface boundaries.

3.2. Helix Core to External Integrations

  • Helix $\rightarrow$ Government GIS / Asset Registry: Read-only query to match an issue's geo-coordinates against municipal asset databases. Checks if the target pipe, road, or utility is registered under government domain responsibility.
  • Helix $\rightarrow$ Policy Circular Repository: Aggregates gazette records and regulatory texts to ground system recommendations.
  • Helix $\rightarrow$ Weather & Satellite Systems: Imports data streams to calculate risk metrics. For example, satellite image scans provide proof of road erosion, while weather alerts flag flood-prone assets.
  • Helix $\rightarrow$ Census / Demographic Registries: Validates citizen registration attributes to check if the applicant lives within the administrative boundaries required for a scheme.
  • Helix $\leftrightarrow$ Department System: Routes assigned work tasks to the department's existing workflow systems. The department manages the deployment of its staff and field engineers.

4. Trust Boundary Explanations

Helix isolates platform components into three clear trust zones: * The Public Ingestion Boundary: WhatsApp, SMS, and Email systems belong to the Public Zone. Payload verification filters, input size limiters, and PII scanners clean all incoming strings before they enter internal contexts. * The Administrative Workstation Boundary: The officer dashboard web consoles communicate across a secure Government LAN/WAN boundary. Sessions require Multi-Factor Authentication (MFA), and all transactions are cryptographically signed. * The Internal Operational Core: Direct connection routes between services, databases, and message brokers are isolated within a private virtual network. No external IP route may reach these databases directly.


5. Architectural Assumptions

  • Availability of Intermediaries: We assume the WhatsApp Business API, SMS Carrier networks, and SMTP mail servers are operational. Helix handles external outages by buffering citizen requests.
  • Open Geospatial Coordinates: We assume mapping services (e.g. OpenStreetMap) are accessible to convert citizen coordinate inputs into administrative wards and panchayat polygons.
  • Standardized Government Identity Tokens: We assume the administrative client implements identity protocols to verify administrator credentials.

6. Architectural Constraints

  • PII Governance: Under law-mandated citizen privacy criteria, sensitive identifier strings must be masked before text segments are passed to external AI model endpoints.
  • Low Network Latency Fallbacks: In low-bandwidth areas (rural districts), Helix client portals must load simplified pages, disabling map layers and auto-draft pre-rendering while preserving basic keyboard workflows.
  • Read-Only Integration Rules: Government asset databases and census files are accessed strictly as read-only systems. Helix must not modify external state directly.

7. Design Rationale

  • Mermaid and PlantUML Dual Specification: We maintain both configurations to serve different needs. Mermaid renders directly in our browser-based documentation portal. PlantUML is kept as our version-controlled industry standard to generate PDF specifications, presentation slides, and formal architecture models.
  • Decoupled Boundary Routing: Routing issues directly to existing Department Systems prevents duplicate tracking and respects municipal task workflows already in place.

8. Design Validation Checklist

  • Charter Alignment: Directly matches the core principles defined in HELIX-SPEC-000.
  • Constitution Alignment: Conforms to all Twelve Laws of the Helix Constitution.
  • C4 Standard Conformity: Follows C4 C-Level mapping templates (Actors, Systems, Boundaries, Relationships).
  • Diagram Sync: Mermaid and PlantUML models show identical actors, external systems, and relationship names.
  • Domain Vocabulary Sync: All labels match the definitions in the frozen HELIX-DOMAIN-001 (Citizen, Officer, Representative, Asset, Department, Location, Decision).
  • No Tech Specifications: Avoids referencing databases, programming languages, protocols (e.g., HTTP/SMTP), or host platforms.
  • Checklist Compliance: Ends with this validation gate.