Skip to main content

Community

@forge/monorepo


@forge/monorepo / backend/src / Community

Type Alias: Community

Community = object

Defined in: backend/src/knowledge/communities.ts:42

A cluster of entities at one level of the hierarchy.

Properties

chunkIds

readonly chunkIds: readonly string[]

Defined in: backend/src/knowledge/communities.ts:57

Chunks behind those entities and edges, sorted. The provenance a summary inherits.


entityIds

readonly entityIds: readonly string[]

Defined in: backend/src/knowledge/communities.ts:53

Sorted.


fingerprint

readonly fingerprint: string

Defined in: backend/src/knowledge/communities.ts:65

A fingerprint of exactly what this community contains.

The mechanism behind incremental summarisation and visible staleness: a summary records the fingerprint it was written against, and a community whose fingerprint no longer matches is stale — knowable without re-reading the summary or trusting a timestamp.


id

readonly id: string

Defined in: backend/src/knowledge/communities.ts:50

Deterministic and readable: L<level>:<smallest member id>.

Derived from the membership rather than assigned by a counter, so the same cluster keeps the same id across runs — which is what lets a rebuild compare against the previous clustering at all. A counter would renumber everything whenever one entity moved.


level

readonly level: number

Defined in: backend/src/knowledge/communities.ts:51


relationshipIds

readonly relationshipIds: readonly string[]

Defined in: backend/src/knowledge/communities.ts:55

Edges with both endpoints inside this community, sorted.