Versions in this module Expand all Collapse all v0 v0.3.0 Jun 11, 2026 Changes in this version + var DefaultEASTConfig = EASTConfig + var DefaultTierConfig = TierConfig + func CalculateActivity(accessCounts map[string]int) float64 + func CalculateActivityPredicate(ctx interface{}, inputs []interface{}) ([][]interface{}, error) + func CalculateEntropy(conflicts int) float64 + func CalculateEntropyPredicate(ctx interface{}, inputs []interface{}) ([][]interface{}, error) + func CalculateSaliency(input string, keywords []string) float64 + func CalculateSaliencyPredicate(ctx interface{}, inputs []interface{}) ([][]interface{}, error) + func EstimateTokens(atoms []string) int + func LoadKernel() (string, error) + type AtomScore struct + Object string + Predicate string + Subject string + Weight float64 + func PruneCandidates(atoms []AtomScore, threshold float64) []AtomScore + type AutoShaveConfig struct + Enabled bool + MinFreeBudget int + Strategy ShaveStrategy + func DefaultAutoShaveConfig() AutoShaveConfig + type Calculator struct + func NewEASTCalculator() *Calculator + func (c *Calculator) Calculate(frame *EASTFrame) EASTMetrics + func (c *Calculator) FullAnalysis(frame *EASTFrame) (EASTMetrics, PathType) + func (c *Calculator) GetPath(metrics EASTMetrics) PathType + func (c *Calculator) WithConfig(cfg EASTConfig) *Calculator + type EASTConfig struct + ChaosThreshold float64 + EntropyThreshold float64 + SaliencyKeywords []string + type EASTFrame struct + AccessCounts map[string]int + ConflictCount int + DecisionSource string + Input string + type EASTMetrics struct + Activity float64 + Conflicts int + Entropy float64 + Saliency float64 + Trust TierLevel + func CalculateEAST(frame *EASTFrame, cfg EASTConfig) EASTMetrics + type KernelRules struct + Agents string + OODA string + Patterns string + Validation string + func (k *KernelRules) Combine() string + type Loader struct + func NewLoader() (*Loader, error) + func (l *Loader) GetKernel() string + func (l *Loader) Merge(profile Profile) (string, error) + type MemoryManager struct + func NewMemoryManager() *MemoryManager + func (m *MemoryManager) SelectAtomsForPruning(atoms map[Tier][]string, strategy ShaveStrategy) []string + func (m *MemoryManager) ShouldShave(ctx context.Context, stats MemoryStats) bool + func (m *MemoryManager) WithAutoShave(cfg AutoShaveConfig) *MemoryManager + func (m *MemoryManager) WithTierConfig(cfg TierConfig) *MemoryManager + type MemoryStats struct + GovernanceUsed int + PlaybookUsed int + SystemUsed int + UserUsed int + func (s MemoryStats) Usage() int + type PathType int + const FastPath + const PathUnknown + const SlowPath + func DeterminePath(metrics EASTMetrics, cfg EASTConfig) PathType + func (p PathType) String() string + type Profile struct + Metadata map[string]string + Name string + Rules string + func DefaultProfile() Profile + type ShaveStrategy int + const ShaveLowWeightFirst + const ShaveOldestFirst + const ShaveUserFirst + type Tier int + const TierGovernance + const TierPlaybook + const TierSystem + const TierUser + func ClassifyAtom(atom string) Tier + func MemoryTier(predicate string) Tier + func (t Tier) String() string + type TierConfig struct + GovernanceBudget int + PlaybookBudget int + SystemBudget int + UserBudget int + func (c TierConfig) TotalBudget() int + type TierLevel int + const T0_Axiom + const T1_Governance + const T2_Playbook + const T3_User + const TierUnknown + func DetermineTrust(decisionSource string) TierLevel + func (t TierLevel) String() string + type TierManager struct + func NewTierManager() *TierManager + func (m *TierManager) ClassifyAtoms(atoms []string) map[Tier][]string + func (m *TierManager) GetBudget(tier Tier) int + func (m *TierManager) IsWithinBudget(stats MemoryStats) bool + func (m *TierManager) PruneRequired(stats MemoryStats) map[Tier]int + func (m *TierManager) WithConfig(cfg TierConfig) *TierManager