Skip to main content
The trust layer enables SIs to evaluate and track trust in other entities — people, other SIs, data sources, and organizations. Trust assessments gate what actions external entities can perform on an SI’s memory.

Overview

Trust Assessments

Multi-dimensional trust scores per entity with authority scopes

Memory Gating

Trust-based access control for memory operations

Entity Models

Behavioral observations and predictive models of other entities

Why Trust Matters

Not all information sources are equally reliable. An SI that blindly accepts input from any source risks corrupted beliefs, manipulated values, and degraded identity coherence. The trust layer provides:
  • Source gating: Block or allow memory operations based on source trust
  • Domain-specific trust: Trust an entity for coding advice but not medical information
  • Transitive chains: Compute trust through intermediaries (A trusts B, B trusts C)
  • Temporal decay: Trust decays toward neutral without ongoing interaction
  • Evidence-based computation: Derive trust scores from episode history

Trust Assessment Dataclass

Trust Dimensions

Each dimension contains a score (0.0 to 1.0) and optional metadata:

Authority Scopes

Authority scopes define what operations an entity can request:

Trust Thresholds

Actions require minimum trust levels to proceed:

Trust Constants


Seed Trust Templates

Kernle ships with seed trust assessments for common entity types:
The context-injection entity has zero trust by default. This prevents prompt injection attacks from modifying SI memory through injected context.

CLI Commands

Seed Trust

Initialize the default trust assessments:

List Trust Assessments

Show Trust for an Entity

Set Trust Score

Gate a Memory Operation

Check if a source entity is allowed to perform an action:

Compute Trust from Episodes

Derive a trust score from interaction history:
Apply the computed score:

Transitive Trust Chains

Compute trust through intermediaries:

Apply Trust Decay

Simulate trust decay over time without interaction:

Entity Models

Entity models capture behavioral observations about other entities. They complement trust assessments with richer contextual understanding.

EntityModel Dataclass


Practical Workflows

Onboarding a New Collaborator

When an SI starts working with a new entity (person, agent, or data source), build trust incrementally:

Domain-Scoped Trust

Trust a source for some things but not others:

Trust and Provenance Integration

Trust scores affect how provenance chains are evaluated. When a memory’s source entity has low trust, downstream memories derived from it carry that context:

Trust and Strength Cascade

When a source entity’s trust drops, you can weaken memories derived from that source:

Monitoring Trust Over Time


Python API