Help us shape the future of Go! Take the 2026 Go Developer Survey

skillmaterialize

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package skillmaterialize converts evidence-backed procedure proposals into validated, inactive learned-skill drafts and links them by compare-and-swap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Input

Input converts an evidence-backed named procedure to a validated draft input. Historical deferred_unsupported records are accepted only when passed explicitly.

Types

type Result

type Result struct {
	Input    learning.SkillDraftInput
	Draft    learning.SkillVersion
	Proposal learning.ProposalRecord
}

Result is the recoverable result of draft creation followed by proposal linkage.

func Materialize

func Materialize(ctx context.Context, proposals learning.ProposalRepository, skills learning.SkillRepository, partition learning.SkillPartition, owner string, record learning.ProposalRecord, inventory []learning.SkillInventoryItem, decision learning.Decision) (Result, error)

Materialize creates the inactive draft, then CAS-links the proposal. A crash between stores is reconciled by the content-addressed draft and ProposalID.

Jump to

Keyboard shortcuts

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