reflectionstore

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package reflectionstore persists bounded learning proposals in a crash-safe, principal/project-partitioned document.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a flocked, crash-safe proposal repository.

func New

func New(dir string) (*Store, error)

New opens a proposal repository rooted at dir.

func (*Store) ClaimDecision

ClaimDecision records a bounded decision under proposal CAS.

func (*Store) ClaimPromotion

ClaimPromotion atomically moves a staged proposal to promoting.

func (*Store) Finalize

Finalize records a terminal promotion, reconciliation, or undo outcome.

func (*Store) Get

Get returns one proposal from its exact partition.

func (*Store) GetManifest added in v0.0.26

func (s *Store) GetManifest(ctx context.Context, p learning.ProposalPartition, id learning.ProposalID) (manifest learning.MaterializationManifest, found bool, err error)

GetManifest returns an owned copy of the immutable manifest for a staged v1 proposal.

func (*Store) LinkSkillDraft

LinkSkillDraft atomically links an explicitly materialized historical procedure.

func (*Store) List

List returns one bounded proposal page within a partition.

func (*Store) Promoting

func (s *Store) Promoting(ctx context.Context) (records []learning.ProposalRecord, err error)

Promoting returns durable in-flight records for startup-only crash reconciliation.

func (*Store) StageBatch

func (s *Store) StageBatch(ctx context.Context, p learning.ProposalPartition, input string, cs []learning.Candidate, signals []learning.Signal) ([]learning.ProposalRecord, error)

StageBatch atomically and idempotently stages bounded candidates.

func (*Store) StageBatchManifest added in v0.0.26

StageBatchManifest atomically persists the complete selected-evidence manifest with every new proposal.

Jump to

Keyboard shortcuts

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