Skip to content

SerendipityModule

Serendipity — anti-optimization discovery (N3.3).

Reads Atlas facts (workspace-scoped, Aegis-gated), scores each by relevance (keyword overlap to the query) and novelty (inverse effective-confidence rank), then deliberately surfaces high-novelty / low-relevance items on a budget — the things optimization would have hidden. Every item cites its source_ref; every discovery is logged to Chronicle.

  • Version: 1.0.0
  • Class: SerendipityModule
  • Module name: serendipity

General purpose module.

discover(self, ctx, query: str, budget: int = DEFAULT_BUDGET) -> dict[str, Any]

Section titled “discover(self, ctx, query: str, budget: int = DEFAULT_BUDGET) -> dict[str, Any]”

async handle(self, message: str, context: dict[str, Any]) -> str

Section titled “async handle(self, message: str, context: dict[str, Any]) -> str”