Ingest Epic

User Journey

The Ingest bounded context enables the ingestion, parsing, validation, and indexing of SEA-DSL policy files for runtime governance enforcement. It processes .sea files through a multi-stage pipeline: parsing to AST via tree-sitter-sea grammar, RDF triple generation for semantic storage in Oxigraph, and vector embedding generation via EmbeddingGemma for similarity search in pgvector.

Jobs to be Done & EARS Requirements

Job: Ingest SEA-DSL Policy File

User Story: As a policy author, I want to ingest a SEA-DSL policy file into the system, so that the policy can be queried, enforced, and governed during runtime.

EARS Requirement:


Error Handling Strategy

Job: Query Ingested Policy

User Story: As a governance service or query system, I want to retrieve ingested policy documents, so that I can enforce policies at runtime.

EARS Requirement:


Job: Search Policies by Similarity

User Story: As a query system, I want to find semantically similar policies using vector search, so that I can retrieve related governance rules.

EARS Requirement:


Job: Query Policy via SPARQL

User Story: As a semantic query system, I want to execute SPARQL queries against policy triples, so that I can perform complex semantic reasoning.

EARS Requirement:


Domain Entities Summary

Root Aggregates

Value Objects

Policy Rules

Integration Points

Success Metrics

Non-Functional Requirements