history

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 16 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bindings

func Bindings(root string) (map[string]string, error)

Bindings validates the selected material's complete history inventory and returns the manifest-bound relative paths.

func Check

func Check(root string, bindings map[string]string) error

Check verifies the exact files recorded in an execution descriptor without treating peer-created runtime files as source history.

func HashTree

func HashTree(root string) (map[string]string, error)

func InventoryDigest added in v0.2.0

func InventoryDigest(files map[string]string) string

InventoryDigest binds a descriptorless legacy tree without inventing a material.json file hash. Paths use the same canonical ordering as inventory.

func Materialize

func Materialize(source, target string) (map[string]string, error)

Materialize copies only independently bound history files and verifies both the source and destination bytes.

func MaterializeClaude

func MaterializeClaude(source, root, workspace string, plan tool.Object) error

Claude's public process/history APIs require an existing canonical WorkDir. Keep original native identities and storage untouched, and explicitly derive additional project-key/cwd copies for this attempt's isolated workspace.

func MaterializeSeed added in v0.2.0

func MaterializeSeed(source, target string, plan tool.Object) (map[string]string, error)

MaterializeSeed prepares only native startup files; it never clones a frozen source package into a baseline, template, route or writable execution.

func MaterializeStartup added in v0.2.0

func MaterializeStartup(source, target, workspace string) (map[string]string, error)

MaterializeStartup retains the complete writable native startup environment. Workspace is the published route identity, independent of the staging target. Templates have no execution envelope and therefore keep no sealed derivatives or materialization receipt; an execution creates its own independent evidence.

func RebindMaterialization added in v0.2.0

func RebindMaterialization(packageRoot, execution, oldPrefix, newPrefix string) error

RebindMaterialization runs before the execution envelope is sealed. Both the source bytes and sealed derived bytes must exist at their final references.

func Reset

func Reset(root string) error

func ResetNative added in v0.2.0

func ResetNative(root string) error

ResetNative replaces native history while preserving the writable project snapshot prepared for an existing-child record.

func SealMaterialization added in v0.2.0

func SealMaterialization(overlay, execution, sourceReference string) error

SealMaterialization moves the only persistent derived bytes into the execution and replaces runtime-tree references with package-relative references.

func SeedSource added in v0.2.0

func SeedSource(root string) string

SeedSource recognizes the fixed complete source/project closure. Legacy seed roots remain readable at their original location.

func StartupDerived added in v0.2.0

func StartupDerived(execution string) (map[string]string, error)

StartupDerived identifies the sealed startup copies. Record may subsequently change these native files; only unchanged copies can be omitted from runtime.

func ValidateBindings

func ValidateBindings(bindings map[string]string) error

func ValidateMaterialization added in v0.2.0

func ValidateMaterialization(packageRoot, execution string) error

ValidateMaterialization checks sealed transformations without reopening their former native workspace. All file references are relative to one package.

func VerifyTree

func VerifyTree(root string, bindings map[string]string) error

Types

type Binding added in v0.2.0

type Binding struct {
	Role            string `json:"role"`
	SessionID       string `json:"sessionId"`
	ParentSessionID string `json:"parentSessionId,omitempty"`
	ChildSessionID  string `json:"childSessionId,omitempty"`
	Project         string `json:"project"`
	NativeTarget    string `json:"nativeTarget"`
	Source          string `json:"source"`
	SHA256          string `json:"sha256"`
}

Binding maps one native target to immutable bytes. Source is material-relative; nativeTarget is a logical location in the writable native environment.

func CanonicalBindings added in v0.2.0

func CanonicalBindings(root string, plan, manifest tool.Object) ([]Binding, error)

CanonicalBindings validates explicit targets independently of the complete closure inventory. Project snapshots and source reports need no native target.

func CaptureCanonical added in v0.2.0

func CaptureCanonical(seed, overlay, core string, plan tool.Object, startupDerived map[string]string) ([]Binding, error)

CaptureCanonical closes a full frozen seed and only changed native runtime files. Reuse is by the same declared target and identity, never a hash search.

func Identify added in v0.2.0

func Identify(target string, data []byte, project string) (Binding, error)

Identify extracts only native identity; raw history is never re-encoded.

Jump to

Keyboard shortcuts

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