temporal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package temporal implements an immutable temporal backbone. Every memory node is auto-linked to the previous node in chronological order. Based on MAGMA's temporal graph and Zep's Graphiti temporal knowledge graph.

The temporal backbone enables: - "When did we decide X?" → walk the timeline - "What happened before/after Y?" → traverse prev/next edges - Chronological ordering for session reconstruction

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backbone

type Backbone struct {
	// contains filtered or unexported fields
}

Backbone maintains the immutable temporal chain per project.

func New

func New(store storage.Storage) *Backbone
func (b *Backbone) Link(ctx context.Context, nodeID, project string) error

Link adds a node to the temporal backbone. Creates an immutable "next" edge from the previous node to this one. This edge is never modified or deleted — it's the ground truth timeline.

func (*Backbone) Timeline

func (b *Backbone) Timeline(ctx context.Context, startID string, direction string, limit int) ([]*storage.Node, error)

Timeline returns nodes in chronological order for a project, walking the temporal backbone from the given start node.

Jump to

Keyboard shortcuts

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