Skip to content

Library Architecture (V5)

Sage libraries are manifest-pointer streams scoped by DAO.

Canonical Model

LibraryRegistry stores:

DAO -> libraryIdHash -> LibraryInfo(manifestCID, version, nonce)

Properties

  • Manifest-only storage on-chain (no full prompt payloads)
  • DAO-scoped namespaces prevent cross-DAO CID squatting
  • Timelock-governed updates preserve provenance
  • Multiple streams per DAO are supported (for example: default, coding, research)

Why This Model

  • Atomic library updates through a single manifest pointer
  • Low gas costs compared with storing per-prompt state on-chain
  • Clean separation between trust (chain) and content (IPFS)