memorymirror

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package memorymirror records Goncho's Go-native architecture mirror of the upstream broad-memory reference system without importing its TypeScript runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToolRegistry

func NewToolRegistry(svc *goncho.Service, opts ToolRegistryOptions) []toolmeta.Tool

Types

type Architecture

type Architecture struct {
	Source           Source            `json:"source"`
	Pipeline         []PipelineStage   `json:"pipeline"`
	MemoryTiers      []MemoryTier      `json:"memory_tiers"`
	RetrievalStreams []RetrievalStream `json:"retrieval_streams"`
	Hooks            []Hook            `json:"hooks"`
	Tools            []Capability      `json:"tools"`
}

func ArchitectureManifest

func ArchitectureManifest() Architecture

func (Architecture) Hook

func (a Architecture) Hook(name string) (Hook, bool)

func (Architecture) MemoryTier

func (a Architecture) MemoryTier(name string) (MemoryTier, bool)

func (Architecture) RetrievalStream

func (a Architecture) RetrievalStream(name string) (RetrievalStream, bool)

func (Architecture) Tool

func (a Architecture) Tool(name string) (Capability, bool)

type BacklogItem

type BacklogItem struct {
	ID            string          `json:"id"`
	PublicName    string          `json:"public_name"`
	Priority      BacklogPriority `json:"priority"`
	CurrentStatus PortStatus      `json:"current_status"`
	GonchoSeam    string          `json:"goncho_seam"`
	Rationale     string          `json:"rationale"`
	SmallestSlice string          `json:"smallest_slice"`
}

func BacklogByPriority

func BacklogByPriority(priority BacklogPriority) []BacklogItem

func ImplementationBacklog

func ImplementationBacklog() []BacklogItem

type BacklogPriority

type BacklogPriority string
const (
	PriorityP0 BacklogPriority = "P0"
	PriorityP1 BacklogPriority = "P1"
	PriorityP2 BacklogPriority = "P2"
	PriorityP3 BacklogPriority = "P3"
)

type BenchmarkTargetSet

type BenchmarkTargetSet struct {
	LongMemEval  LongMemEvalTarget  `json:"longmemeval_s"`
	TokenSavings TokenSavingsTarget `json:"token_savings"`
}

func BenchmarkTargets

func BenchmarkTargets() BenchmarkTargetSet

type Capability

type Capability struct {
	Name       string     `json:"name"`
	Kind       string     `json:"kind"`
	GonchoSeam string     `json:"goncho_seam"`
	Status     PortStatus `json:"status"`
	Residual   string     `json:"residual,omitempty"`
}

type Hook

type Hook struct {
	Name       string     `json:"name"`
	Captures   string     `json:"captures"`
	GonchoSeam string     `json:"goncho_seam"`
	Status     PortStatus `json:"status"`
	Residual   string     `json:"residual,omitempty"`
}

type LongMemEvalAssessment

type LongMemEvalAssessment struct {
	MeetsSimilarGate    bool    `json:"meets_similar_gate"`
	RecallAnyAt5Delta   float64 `json:"recall_any_at_5_delta"`
	RecallAnyAt10Delta  float64 `json:"recall_any_at_10_delta"`
	MRRDelta            float64 `json:"mrr_delta"`
	ReproductionCommand string  `json:"reproduction_command,omitempty"`
	ClaimScope          string  `json:"claim_scope,omitempty"`
	Reason              string  `json:"reason,omitempty"`
}

func AssessLongMemEval

func AssessLongMemEval(evidence LongMemEvalEvidence, target LongMemEvalTarget) LongMemEvalAssessment

type LongMemEvalEvidence

type LongMemEvalEvidence struct {
	System        string  `json:"system"`
	Dataset       string  `json:"dataset"`
	QuestionCount int     `json:"question_count"`
	RecallAnyAt5  float64 `json:"recall_any_at_5"`
	RecallAnyAt10 float64 `json:"recall_any_at_10"`
	MRR           float64 `json:"mrr"`
}

type LongMemEvalTarget

type LongMemEvalTarget struct {
	Dataset                 string  `json:"dataset"`
	QuestionCount           int     `json:"question_count"`
	EmbeddingModel          string  `json:"embedding_model"`
	ReferenceRecallAnyAt5   float64 `json:"reference_recall_any_at_5"`
	ReferenceRecallAnyAt10  float64 `json:"reference_recall_any_at_10"`
	ReferenceMRR            float64 `json:"reference_mrr"`
	SimilarRecallAnyAt10Gap float64 `json:"similar_recall_any_at_10_gap"`
	FrozenReportPath        string  `json:"frozen_report_path"`
	ReproductionCommand     string  `json:"reproduction_command"`
	ClaimScope              string  `json:"claim_scope"`
}

type MemoryTier

type MemoryTier struct {
	Name       string     `json:"name"`
	Upstream   string     `json:"upstream"`
	GonchoSeam string     `json:"goncho_seam"`
	Status     PortStatus `json:"status"`
}

type PipelineStage

type PipelineStage struct {
	Name       string     `json:"name"`
	Upstream   string     `json:"upstream"`
	GonchoSeam string     `json:"goncho_seam"`
	Status     PortStatus `json:"status"`
	Residual   string     `json:"residual,omitempty"`
}

type PortStatus

type PortStatus string
const (
	PortDelivered PortStatus = "delivered"
	PortPartial   PortStatus = "partial"
	PortAdapter   PortStatus = "adapter"
	PortDeferred  PortStatus = "deferred"
	PortExcluded  PortStatus = "owned_excluded"
)

type RetrievalStream

type RetrievalStream struct {
	Name       string     `json:"name"`
	Upstream   string     `json:"upstream"`
	Fusion     string     `json:"fusion"`
	GonchoSeam string     `json:"goncho_seam"`
	Status     PortStatus `json:"status"`
	Residual   string     `json:"residual,omitempty"`
}

type Source

type Source struct {
	Repository string   `json:"repository"`
	Commit     string   `json:"commit"`
	Refs       []string `json:"refs"`
}

type TokenSavingsTarget

type TokenSavingsTarget struct {
	PasteFullContextTokensPerYear int     `json:"paste_full_context_tokens_per_year"`
	SummarizedTokensPerYear       int     `json:"summarized_tokens_per_year"`
	TargetTokensPerYear           int     `json:"target_tokens_per_year"`
	TargetCostUSDPerYear          float64 `json:"target_cost_usd_per_year"`
	LocalEmbeddingCostUSDPerYear  float64 `json:"local_embedding_cost_usd_per_year"`
	EmbeddingModel                string  `json:"embedding_model"`
}

type ToolRegistryOptions

type ToolRegistryOptions struct {
	DefaultWorkspaceID string
	DefaultProfileID   string
	DefaultPeerID      string
	DefaultSessionKey  string
}

Jump to

Keyboard shortcuts

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