• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / compass / 23716887782
2%

Build:
DEFAULT BRANCH: main
Ran 29 Mar 2026 07:15PM UTC
Jobs 1
Files 57
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Mar 2026 07:13PM UTC coverage: 2.27% (-27.1%) from 29.328%
23716887782

push

github

web-flow
feat: entity system and temporal graph with Postgres-native search (#249)

* feat: add v2 entity system with Postgres-native search

New entity system built as an independent package alongside the existing
asset system. Zero changes to existing asset code. All search is
Postgres-native — no Elasticsearch dependency for v2.

Core domain (core/entity/):
- Entity: open type system, temporal (valid_from/valid_to), properties JSONB
- Edge: typed, directed, temporal relationships
- Chunk: pgvector embeddings for semantic search
- Service: context assembly, impact analysis, search orchestration
- HybridSearch: keyword + semantic fusion via Reciprocal Rank Fusion
- SearchRepository: Postgres tsvector + pg_trgm (replaces ES)

Storage (store/postgres/):
- EntityRepository: CRUD with temporal support
- EdgeRepository: recursive CTE graph traversal
- ChunkRepository: pgvector cosine similarity search
- EntitySearchRepository: tsvector full-text + pg_trgm fuzzy matching
- Migration 000019: entities, edges, chunks tables with search_vector
  generated column, GIN indexes, trigram indexes

Search architecture (all Postgres):
- Keyword: tsvector with weighted fields (URN/name=A, desc=B, source=C)
- Fuzzy: pg_trgm similarity with automatic fallback
- Semantic: pgvector cosine distance on chunk embeddings
- Hybrid: RRF fusion of keyword + semantic results
- Suggest: pg_trgm similarity-based autocomplete

MCP tools (internal/mcp/):
- search_entities: hybrid search across the entity graph
- get_context: assembled context subgraph
- impact: downstream blast radius analysis

* feat: add entity v2 handler with gRPC/REST endpoints

Generated Go code from proton proto definitions for entity v2 RPCs.
Created handler/entity.go implementing all 12 new RPC methods:

Entity CRUD: GetAllEntities, GetEntityByID, UpsertEntity, DeleteEntity
Search: SearchEntities, SuggestEntities, GetEntityTypes
Context: GetEntityContext, GetEntityImpact
Edges: UpsertEdge, GetEdges, DeleteEdge

Handle... (continued)

62 of 2499 new or added lines in 26 files covered. (2.48%)

597 existing lines in 16 files now uncovered.

189 of 8326 relevant lines covered (2.27%)

0.07 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% cli/root.go
2
59.09
0.95% core/namespace/service.go
2
0.0
0.0% internal/server/server.go
4
0.0
0.0% cli/utils.go
5
0.0
-76.92% handler/handler.go
6
0.0
0.0% core/star/errors.go
7
0.0
-88.46% internal/mcp/server.go
10
0.0
0.0% core/star/service.go
21
0.0
0.0% internal/server/bootstrap.go
35
0.0
store/postgres/jsonmap.go
42
0.0
-87.07% handler/user.go
45
0.0
internal/mcp/entity_tools.go
46
0.0
0.0% core/star/mocks/star_repository.go
56
34.12
core/entity/search.go
72
28.0
core/entity/service.go
72
0.0
-90.25% store/postgres/star_repository.go
81
0.0
store/postgres/chunk_repository.go
117
0.0
internal/mcp/entity_handlers.go
121
0.0
store/postgres/edge_repository.go
121
0.0
store/postgres/entity_search_repository.go
167
0.0
store/postgres/entity_repository.go
232
0.0
handler/entity.go
234
0.0
0.0% gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go
245
0.0
cli/entities.go
693
0.0
0.0% gen/raystack/compass/v1beta1/service.pb.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% core/star/service.go
1
0.0
0.0% internal/server/bootstrap.go
3
0.0
0.0% gen/raystack/compass/v1beta1/service.pb.go
5
0.0
0.0% core/star/mocks/star_repository.go
13
0.0
-100.0% store/postgres/config.go
14
0.0
-88.46% internal/mcp/server.go
16
0.0
-100.0% store/postgres/namespace_model.go
20
0.0
-76.92% handler/handler.go
36
0.0
0.0% gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go
37
0.0
-87.07% handler/user.go
37
0.0
-100.0% store/postgres/user_model.go
61
0.0
-66.3% store/postgres/namespace_repository.go
72
0.0
-72.0% handler/namespace.go
83
0.0
-90.25% store/postgres/star_repository.go
91
0.0
-84.26% store/postgres/user_repository.go
107
0.0
-61.85% store/postgres/postgres.go
Jobs
ID Job ID Ran Files Coverage
1 23716887782.1 29 Mar 2026 07:15PM UTC 57
2.27
GitHub Action Run
Source Files on build 23716887782
  • Tree
  • List 57
  • Changed 19
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8c341305 on github
  • Prev Build on main (#23696450071)
  • Next Build on main (#23717196410)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc