1 agents

intelligence-export-coordinator

intelligence-export-coordinator

Overview

The Intelligence Export Coordinator operates as an L2 tactical operations agent within the Medium Predator domain of the Prismatic Platform. This agent manages the transformation and export of internal intelligence data into external-facing formats suitable for client delivery, regulatory submission, compliance reporting, and inter-system data exchange. Every export operation applies data sanitization, format transformation, access control verification, and output validation before releasing intelligence beyond the platform boundary.

Intelligence gathered and analyzed within the Prismatic Platform exists in rich, interconnected graph structures with cross-references, confidence scores, and provenance chains. External consumers -- whether human analysts, client portals, or regulatory interfaces -- require intelligence in specific formats (PDF reports, JSON feeds, CSV exports, STIX bundles) with appropriate redaction of internal metadata. The Intelligence Export Coordinator bridges this gap, producing export-ready intelligence packages that maintain analytical value while respecting security boundaries.

Operational Domain

The Medium Predator domain encompasses agents that operate at the intersection of intelligence analysis and operational delivery. The Intelligence Export Coordinator sits at the output boundary of the intelligence pipeline, transforming analyzed intelligence into deliverable products. It coordinates with analysis agents for content and with infrastructure agents for delivery mechanisms.

Export Pipeline Architecture

The export pipeline processes internal intelligence through multiple transformation and validation stages.

StageFunctionInputOutput
SelectionChoose intelligence records for exportQuery criteriaSelected record set
AuthorizationVerify export permissionsRecords + requester identityAuthorized subset
RedactionRemove internal-only metadataAuthorized recordsRedacted records
TransformationConvert to target formatRedacted recordsFormatted output
ValidationVerify output completeness and formatFormatted outputValidated export package
DeliveryTransmit to destinationValidated packageDelivery confirmation
defmodule PrismaticAgents.IntelligenceExport do
  @moduledoc """
  Intelligence export coordination engine.
  Manages the transformation of internal intelligence
  into external-facing export formats.
  """

  use GenServer

  @supported_formats [:pdf, :json, :csv, :stix, :html, :xlsx]

  @type export_request :: %{
    query: map(),
    format: atom(),
    requester: String.t(),
    destination: destination(),
    redaction_level: :standard | :enhanced | :maximum
  }

  @type export_result :: %{
    id: String.t(),
    format: atom(),
    record_count: non_neg_integer(),
    file_path: String.t(),
    checksum: String.t(),
    exported_at: DateTime.t()
  }

  @spec export(export_request()) :: {:ok, export_result()} | {:error, term()}
  def export(request) do
    GenServer.call(__MODULE__, {:export, request}, :timer.minutes(10))
  end

  @impl true
  def handle_call({:export, request}, _from, state) do
    with {:ok, records} <- select_records(request.query),
         {:ok, authorized} <- verify_authorization(records, request.requester),
         {:ok, redacted} <- apply_redaction(authorized, request.redaction_level),
         {:ok, formatted} <- transform_format(redacted, request.format),
         {:ok, validated} <- validate_output(formatted, request.format),
         {:ok, delivered} <- deliver(validated, request.destination) do
      result = build_export_result(delivered, request)
      {:reply, {:ok, result}, log_export(state, result)}
    end
  end
end

Export Formats

The coordinator supports multiple export formats, each optimized for different consumption patterns.

FormatUse CaseContent TypeTypical Size
PDFClient reports, executive summariesRich text with charts2-50 pages
JSONAPI consumers, data pipelinesStructured dataVariable
CSVSpreadsheet analysis, bulk dataTabular dataRows to millions
STIXThreat intelligence sharingStructured threat dataBundle-dependent
HTMLWeb display, email deliveryRich formatted contentVariable
XLSXFinancial analysis, compliance reportsMulti-sheet workbooksVariable

Redaction Policy

All exports undergo redaction to remove internal-only metadata that should not cross the platform boundary.

Redaction LevelWhat Gets RemovedUse Case
StandardInternal IDs, process metadata, agent tracesNormal client delivery
EnhancedConfidence internals, scoring weights, source IDsRegulatory submission
MaximumAll internal metadata, only final conclusions remainPublic disclosure
defmodule PrismaticAgents.IntelligenceExport.Redactor do
  @spec redact(map(), :standard | :enhanced | :maximum) :: {:ok, map()}
  def redact(record, :standard) do
    {:ok, Map.drop(record, [:internal_id, :process_trace, :agent_refs, :pipeline_metadata])}
  end

  def redact(record, :enhanced) do
    {:ok, record} = redact(record, :standard)
    {:ok, Map.drop(record, [:scoring_weights, :source_ids, :confidence_breakdown])}
  end

  def redact(record, :maximum) do
    {:ok, record} = redact(record, :enhanced)
    {:ok, Map.take(record, [:entity, :findings, :risk_level, :summary, :timestamp])}
  end
end

Key Capabilities

  • Multi-format export transforming internal intelligence representations into PDF, JSON, CSV, STIX, HTML, and XLSX formats for diverse consumer requirements
  • Granular redaction applying configurable redaction levels that remove internal metadata while preserving analytical value appropriate for the target audience
  • Access control verification ensuring every export request is authorized by the requester's permissions before any data crosses the platform boundary
  • Output validation verifying that exported data is complete, properly formatted, and free of internal metadata that should have been redacted
  • Audit logging recording complete export history including requester identity, record counts, format, redaction level, and destination for compliance and accountability
  • Batch and streaming export supporting both one-time bulk exports and continuous streaming feeds for real-time intelligence consumers

Authority Level

L2 - Tactical Operations. Domain-specific tactical execution with cross-domain coordination capabilities. The Intelligence Export Coordinator can request intelligence from any analysis agent but requires L3 authorization for exports that cross security boundaries.

Coordination

AgentRelationshipPurpose
report-synthesis-specialistReport GenerationProduces formatted reports from intelligence data
risk-assessment-commanderRisk DataProvides risk assessment data for export inclusion
mendelian-genetics-coordinatorPattern DataSupplies evolved pattern data for export analysis
commit-coordinatorVersion ControlCoordinates export of version-controlled intelligence snapshots

Integration

ComponentRelationship
NABLA InfinityProvenance tracking for exported intelligence
EctoDatabase queries for intelligence record selection
SEADFEvolutionary fitness data for export analysis
Platform TelemetryExport throughput and latency metrics

Enforcement

The Intelligence Export Coordinator operates under the NO MERCY, NO DOUBTS doctrine. No intelligence is exported without authorization verification. All exports undergo mandatory redaction appropriate to the target audience. Export output validation ensures no internal metadata leaks through formatting artifacts. Every export operation is recorded in an immutable audit trail with complete provenance. Failed validation at any stage blocks the export entirely with no partial delivery.


Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL