gradatum-core
Shared primitives: traits, canonical types, errors. The L0 crate every other Gradatum crate depends on.
Status : Alpha — placeholder v0.0.2. Phase 2.0c-bis Auth Path 2 LIVE 2026-05-07 (git tag v0.1.0-alpha.5). Source code private until v1.0 public release per D5 criterion. See gradatum.org.
Part of gradatum — Memory backbone for AI agents.
Public API
Modules
// ACL filter types + visibility markers
// AuditEntry — immutable append-only audit trail
// AuthorId — note authorship
// GradatumConfig — root configuration deserialization
// GradatumError — typed error enum (thiserror)
// Frontmatter struct — YAML frontmatter canonical type
// ConsumerId, TenantId — identity primitives
// Index trait — storage-agnostic index contract
// Note, NoteId, NoteStatus, ContentHash
// Overridable trait + OverridePayload
// Schema version negotiation
// Scope — JWT audience scopes (read / write / admin)
// SectionId — vault section identifier
// NoteStatus enum
// Tag — normalized note tag
// TrustContext — auth context propagated through layers
Key Types
// Core error type
// Note identity
; // ULID-based note identifier
// Content integrity
; // SHA-256 hex digest
// Trust context propagated through all layers
// Index trait — implemented by gradatum-index::SqliteIndex
Multi-tenancy invariant
Every persisted row carries tenant_id TEXT NOT NULL.
Default tenant: "main". Aliased to vault in user-facing UI/CLI/SDK.
Enforced at storage layer; ACL filters by tenant_id first.
Documentation
- Project : https://gradatum.org
- Source : private until v1.0
- Roadmap : Phase 2.0c-bis (alpha.5 LIVE) → Phase 2.1
v0.1.0-rc.1→v0.1.0public - License : Apache-2.0