Documentation
¶
Overview ¶
Package adoptionmaterialization owns the explicit promotion of admitted adoption records into a repository-bound, recoverable write transaction.
Index ¶
Constants ¶
const ( SchemaVersion = 1 RequestKind = "proofkit.adoption-materialization-request" PlanKind = "proofkit.adoption-materialization-plan" ReceiptKind = "proofkit.adoption-materialization-receipt" ProjectManifestPath = "proofkit/project.v1.json" MaximumRequirementSources = repositorytransaction.MaximumOperations - 3 MaximumOutputBytes = 256 << 10 MaximumTextBytes = 16 << 10 MaximumTextLines = 96 )
const ( ArtifactRequirementSource = "requirement_source" ArtifactRequirementBinding = "requirement_proof_binding" ArtifactTestInventory = "test_evidence_inventory" ArtifactProjectManifest = "project_routing_manifest" )
const ( OperationPlan = "plan" OperationApply = "apply" OperationRecover = "recover" )
const ( ReceiptStateBlocked = "blocked" ReceiptStateCleanupRequired = "cleanup_required" ReceiptStateDurabilityUnknown = "durability_unknown" ReceiptStateFailed = "failed" ReceiptStatePassed = "passed" ReceiptStateRecoveryRequired = "recovery_required" )
const ManifestKind = "proofkit.project-routing-manifest"
Variables ¶
This section is empty.
Functions ¶
func RenderPlanText ¶
func RenderReceiptText ¶
Types ¶
type Manifest ¶
type Manifest struct {
ManifestID string
MaterializationRequestID string
ProjectID string
Routes []Route
SourcePlanID string
}
func AdmitManifest ¶
type MaterializedProjectAdmission ¶ added in v0.9.0
type MaterializedProjectAdmission struct {
ClosureAdmitted bool
ClosureEvaluated bool
Project *Project
Records []RoutedProjectRecordAdmission
}
MaterializedProjectAdmission separates child admission from cross-record closure. Closure is evaluated only for a complete, digest-matched, admitted route set.
func AdmitMaterializedProject ¶ added in v0.9.0
func AdmitMaterializedProject(manifest Manifest, records []RoutedProjectRecord) (MaterializedProjectAdmission, error)
AdmitMaterializedProject routes child bytes through their semantic owners and evaluates the adoption-materialization closure without reading a repository or establishing freshness or execution.
type Plan ¶
type Plan struct {
Manifest Manifest
NonClaims []string
ProjectID string
RequestID string
SourceIntent string
SourcePlanID string
Transaction repositorytransaction.Plan
}
func AdmitPlanOutput ¶
type Project ¶ added in v0.14.0
type Project struct {
// contains filtered or unexported fields
}
Project retains only a complete, child-admitted, cross-record-closed project. It does not establish repository freshness or native witness execution.
func AdmitProject ¶ added in v0.14.0
AdmitProject replays a logical project projection through the materialization owner. Route digests bind canonical child bytes, not a new filesystem read.
type Receipt ¶
type Receipt struct {
ExpectedDesiredStateID string
ExpectedTransactionID string
FailureClass string
NonClaims []string
Operation string
ReceiptID string
State string
TransactionResult *repositorytransaction.Result
}
func AdmitReceiptOutput ¶
type Request ¶
type Request struct {
Binding requirementbinding.Input
BindingPath string
Inventory testevidenceinventory.Inventory
InventoryPath string
NonClaims []string
ProjectID string
RequestID string
SourceIntent string
SourcePlanID string
Sources []requirementsourceadmission.Source
}
type RoutedProjectRecord ¶ added in v0.9.0
RoutedProjectRecord is one manifest-routed record observed by a read-only caller. Content remains untrusted until AdmitMaterializedProject returns.
type RoutedProjectRecordAdmission ¶ added in v0.9.0
RoutedProjectRecordAdmission is the canonical child-owner result for one supplied manifest route.