Community
@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
readonlychunkIds: readonlystring[]
Defined in: backend/src/knowledge/communities.ts:57
Chunks behind those entities and edges, sorted. The provenance a summary inherits.
entityIds
readonlyentityIds: readonlystring[]
Defined in: backend/src/knowledge/communities.ts:53
Sorted.
fingerprint
readonlyfingerprint: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
readonlyid: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
readonlylevel:number
Defined in: backend/src/knowledge/communities.ts:51
relationshipIds
readonlyrelationshipIds: readonlystring[]
Defined in: backend/src/knowledge/communities.ts:55
Edges with both endpoints inside this community, sorted.