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 ¶
func Input(ctx context.Context, partition learning.SkillPartition, owner string, record learning.ProposalRecord, inventory []learning.SkillInventoryItem) (learning.SkillDraftInput, error)
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.
Click to show internal directories.
Click to hide internal directories.