bluecollar

Memory facts

What a host recalled, rendered into the turn's context.

type MemoryFact struct {
	FactID            string
	ScopeType         string
	NamespaceID       string
	Content           string
	Score             float64
	SourceEpisodeID   string
	SourceKind        string
	ValidAt           time.Time
	SecurityLevelRank int
	RequiredClasses   []string
}

BuildMemoryContext groups facts by scope (user, circle, workspace, conversation) under a "Relevant memory" heading, prefixes each with its score, kind, source and valid date, and cuts content at 240 characters. Filtering what a requester may see is the host's job before the facts arrive.