# Sophia Domain Implementation Map

Generated on May 8, 2026. This document maps the current repository footprint
and Oshun-specific integration points for Sophia.

## Implementation Context

Sophia is the knowledge backbone of the Oshun ecosystem. It turns documents,
research papers, scriptures, and any textual source into a searchable,
graph-connected, citation-verified knowledge base. Whether you are a researcher
building a bibliography, a worldbuilder grounding your fiction in historical
fact, or a content creator who needs AI answers backed by real sources, Sophia
provides the infrastructure.

## Status Snapshot

- Repository status: Repository implementation exists under apps/libs/services.
- Oshun integration status: Referenced in Oshun apps, libraries, or docs.
- TODO phases: `6`

## Applications

- `apps/sophia/ingestion/` - Ingestion
- `apps/sophia/knowledge-graph/` - Knowledge Graph
- `apps/sophia/search-api/` - Search Api
- `apps/sophia/workbench/` - Workbench

## Libraries

- `libs/sophia/agents/` - Agents
- `libs/sophia/citation-analysis/` - Citation Analysis
- `libs/sophia/citation-graph/` - Citation Graph
- `libs/sophia/client/` - Client
- `libs/sophia/concordia-knowledge/` - Concordia Knowledge
- `libs/sophia/CONVERGENCE_PLAN.md` - CONVERGENCE PLAN.md
- `libs/sophia/corpus/` - Corpus
- `libs/sophia/crawling/` - Crawling
- `libs/sophia/credibility/` - Credibility
- `libs/sophia/cultural-research/` - Cultural Research
- `libs/sophia/database/` - Database
- `libs/sophia/document-parser/` - Document Parser
- `libs/sophia/embeddings/` - Embeddings
- `libs/sophia/evaluation/` - Evaluation
- `libs/sophia/event-publisher/` - Event Publisher
- `libs/sophia/indexing/` - Indexing
- `libs/sophia/knowledge-base/` - Knowledge Base
- `libs/sophia/knowledge-graph/` - Knowledge Graph
- `libs/sophia/oshun-client/` - Oshun Client
- `libs/sophia/predictions/` - Predictions
- `libs/sophia/README.md` - README.md
- `libs/sophia/research-engine/` - Research Engine
- `libs/sophia/schemas/` - Schemas
- `libs/sophia/semantic-search/` - Semantic Search
- `libs/sophia/theory/` - Theory
- `libs/sophia/trend-curriculum/` - Trend Curriculum
- `libs/sophia/vectordb/` - Vectordb
- `libs/sophia/verification/` - Verification

## Services

No repository entries discovered.

## OpenAPI And Contract Roots

No OpenAPI or domain-specific API root discovered.

## Existing Standalone Domain Docs

- `docs/domains/sophia/api/` - Api
- `docs/domains/sophia/architecture.md` - Architecture.md
- `docs/domains/sophia/database.md` - Database.md
- `docs/domains/sophia/developer-guide.md` - Developer Guide.md
- `docs/domains/sophia/features.md` - Features.md
- `docs/domains/sophia/README.md` - README.md
- `docs/domains/sophia/service-catalog.md` - Service Catalog.md
- `docs/domains/sophia/user-stories.md` - User Stories.md

## Test And Verification Evidence

- `testing/e2e/page-objects/sophia/annotations.page.ts`
- `testing/e2e/page-objects/sophia/curation.page.ts`
- `testing/e2e/page-objects/sophia/dashboard.page.ts`
- `testing/e2e/page-objects/sophia/documents.page.ts`
- `testing/e2e/page-objects/sophia/index.ts`
- `testing/e2e/page-objects/sophia/layout.page.ts`
- `testing/e2e/page-objects/sophia/review.page.ts`
- `testing/e2e/page-objects/sophia/search.page.ts`
- `testing/e2e/tests/api/sophia/auth.e2e.ts`
- `testing/e2e/tests/api/sophia/documents.e2e.ts`
- `testing/e2e/tests/api/sophia/fixtures.ts`
- `testing/e2e/tests/api/sophia/health.e2e.ts`
- `testing/e2e/tests/api/sophia/index.ts`
- `testing/e2e/tests/api/sophia/knowledge-graph.e2e.ts`
- `testing/e2e/tests/api/sophia/search.e2e.ts`
- `testing/e2e/tests/sophia/annotations.e2e.ts`
- `testing/e2e/tests/sophia/curation.e2e.ts`
- `testing/e2e/tests/sophia/dashboard.e2e.ts`
- `testing/e2e/tests/sophia/documents.e2e.ts`
- `testing/e2e/tests/sophia/fixtures.ts`
- `testing/e2e/tests/sophia/index.ts`
- `testing/e2e/tests/sophia/local-runtime.e2e.ts`
- `testing/e2e/tests/sophia/navigation.e2e.ts`
- `testing/e2e/tests/sophia/review.e2e.ts`
- `testing/e2e/tests/sophia/search.e2e.ts`
- `testing/e2e/tests/sophia/viewport-smoke.e2e.ts`
- `testing/performance/k6/sophia/README.md`
- `testing/performance/k6/sophia/config.js`
- `testing/performance/k6/sophia/graph-load.js`
- `testing/performance/k6/sophia/search-load.js`
- `tests/integration/flows/sophia-hathor.integration.test.ts`

## Oshun Integration Summary

| Reference Scope | Count |
| --------------- | ----- |
| apps/oshun      | 65    |
| libs/oshun      | 45    |

## Oshun-Specific Integration References

- `apps/oshun/admin/.next/server/app/analytics/page.js`
- `apps/oshun/admin/.next/server/app/api/admin/workspaces/[workspaceId]/saved-views/route.js`
- `apps/oshun/admin/.next/server/app/inbox/page.js`
- `apps/oshun/admin/.next/server/app/incidents/page.js`
- `apps/oshun/admin/.next/server/app/page.js`
- `apps/oshun/admin/.next/server/app/policy/page.js`
- `apps/oshun/admin/.next/server/app/review/page.js`
- `apps/oshun/admin/.next/static/chunks/app/analytics/page.js`
- `apps/oshun/admin/.next/static/chunks/app/inbox/page.js`
- `apps/oshun/admin/.next/static/chunks/app/incidents/page.js`
- `apps/oshun/admin/.next/static/chunks/app/page.js`
- `apps/oshun/admin/.next/static/chunks/app/policy/page.js`
- `apps/oshun/admin/.next/static/chunks/app/review/page.js`
- `apps/oshun/bff/src/__tests__/nisaba-route.test.ts`
- `apps/oshun/bff/src/admin/state.ts`
- `apps/oshun/web/.next/server/_ssr_src_components_domains_VeritasSurface_tsx.js`
- `apps/oshun/web/.next/server/app/library/page.js`
- `apps/oshun/web/.next/static/chunks/_app-pages-browser_src_components_domains_VeritasSurface_tsx.js`
- `apps/oshun/web/.next/static/chunks/app/library/page.js`
- `apps/oshun/web/README.md`
- `apps/oshun/web/e2e/story-source-veritas.spec.ts`
- `apps/oshun/web/e2e/studio-hathor-sophia-citation-service-smoke.spec.ts`
- `apps/oshun/web/e2e/studio-hathor-sophia-integration-smoke.spec.ts`
- `apps/oshun/web/e2e/veritas-claim-detail-workspace.spec.ts`
- `apps/oshun/web/e2e/veritas-story-workspace.spec.ts`

Additional references omitted: 85

## Documentation Gaps

- Repository implementation roots are present and reflected above.
- Standalone domain docs exist and were folded into the evidence profile.
- Domain test evidence exists and is listed above.
