Skip to main content

Sourced Kb

@stateless/sourced-kbv2026.06.23.2· 4d agoMODELS
01README

A domain-neutral, sourced, versioned knowledge base — the provenance-aware core generalised out of @stateless/llm-catalog. One uniform entry record (open kind + open facets + claims + relations, like @stateless/inventory), but with a provenance envelope (asOf, source, versionPins, supersededBy) on every volatile assertion, so it can hold external, decaying, contested knowledge honestly — a value without a date + source is not trustworthy here. Declarative lifecycle: apply materialises the declared entries (re-run = versioned trend), update folds in a public catalog without clobbering local truth, prune soft-retires undeclared entries, contribute sanitises selected entries into PR-ready public fragments. It knows no domain (no typed facets, no compute methods); a consuming catalog — LLM-ops, cloud-storage pricing — is an instance whose entries carry that domain's kinds and facets.

02Models1
@stateless/sourced-kbv2026.06.23.2sourced_kb.ts
fn apply()
Materialise each declared entry as an `entry` resource (one per id).
fn update()
Pull the public catalog (assembled catalog.json) from `catalogUrl` and
fn prune()
Reconcile: soft-prune stored `entry` resources no longer present in
fn contribute()
Sanitise selected declared entries into generic, public-shaped

Resources

entry(infinite)— A declared knowledge-base entry — materialised one per id by `apply`.
catalog-entry(infinite)— A public entry pulled from a shared catalog by `update`. Kept in a
contribution(infinite)— A sanitised, public-shaped entry produced by `contribute` — the
03Previous Versions1
2026.06.23.1Jun 23, 2026
04Stats
A
100 / 100
Downloads
2
Archive size
17.7 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels