Skip to main content

internal/report

github.com/ensera-ai/taisce/internal/report · 2 files · 382 lines · 15 tests · source

Package report turns a community of entities into prose about the subject it represents.

A group of entity identifiers is not an answer. A thematic question needs something a person or a model can read, and something to search that is not a passage — because a thematic question resembles no single passage, which is what makes it thematic.

What this package is allowed to decide

What material a report is written from, how that material is cut when there is too much of it, and what shape the result has. It does not decide whether a report is stored, when it is rebuilt, or what an erasure does to it — that is D57, and keeping it out of here is what lets that answer change without touching how a report is made. Nothing in this package writes anything anywhere.

It also does not write the prose. A model does, behind a port, for the same reason extraction does: the parts carrying a correctness argument — what goes in, what is refused, what the caller receives — belong in code that does not vary with the vendor.

Where it sits

Imports: none in this repository

Imported by: cmd/taisce, internal/formation, internal/infra/inference, internal/infra/pg

Files

FileLinesDeclarationsWhat it is for
embedding.go605EmbeddingSurfaceBudget keeps one aggregate report from consuming an unbounded provider request.
report.go32220Carries the package documentation.

15 tests hold this package's behaviour; the list is named for what each one proves.