basefacts

package
v0.17.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 3 Imported by: 0

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

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL