Documentation
¶
Overview ¶
Package basefacts assembles the base facts shipped with the sdd binary. Base facts are framework reference knowledge merged into every graph as Embedded `fact` signals — the pull layer that answers the engine's push-only knowledge gap (d-cpt-dtv). They mirror the base-procedures pattern: always loaded, no participants, no project refs, stable IDs, and overridable per-project by a superseding entry on the same ID.
Unlike base procedures — static .md files embedded at compile time — a base fact body may be rendered at load from live executor vocabularies, so the fact tracks the code with zero manual sync. To keep this package free of a dependency on the read stack (finders assembles the vocabulary and merges these entries, so importing it here would cycle), the caller supplies the vocabulary as data — the same dependency inversion viewlayout uses.
Index ¶
Constants ¶
const ViewGrammarFactID = "20260717-110000-s-prc-vwg"
ViewGrammarFactID is the stable identity of the view-layout-grammar fact. It never changes across releases: readers cite it, and the first-hit view hint (mcpapp) points at it. Its timestamp is a fixed authoring stamp, not a live clock. Exported so the hint producer references one shared constant.
Variables ¶
This section is empty.
Functions ¶
func Entries ¶
func Entries(vocab viewlayout.Vocabulary) ([]*model.Entry, error)
Entries returns the base facts to merge into a graph, rendered against the supplied live vocabulary. The set is compile-time-shaped, so a construction error means a broken build — callers fail hard, exactly as with base procedures.
Types ¶
This section is empty.