vectie/moonlib/pipeline does not have a README file
pub(all) struct AuthorityGrant {
authority_id : String
actor_id : String
class : AuthorityClass
scope : Array[String]
granted_by : String
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct AutonomyDecision {
contract_id : String
decision_id : String
envelope_id : String
event_id : String
accepted : Bool
findings : Array[String]
remaining_budget : AutonomyBudgetBalance
checked_at : String
} derive(Eq, ToJson, Debug)pub(all) struct AutonomyEnvelope {
contract_id : String
envelope_id : String
mode : String
goal_ref : String
workspace_root : String
grants : Array[AutonomyGrant]
budget : AutonomyBudget
external_effects_allowed : Bool
physical_effects_allowed : Bool
granted_by : String
source_digest : String
recorded_at : String
expires_at : String
revoked : Bool
} derive(Eq, ToJson, Debug)pub(all) struct AutonomyEventRequest {
contract_id : String
event_id : String
run_id : String
product_id : String
operation : String
requested_authority : AuthorityClass
claim : ClaimClass
artifact_paths : Array[String]
external_destination : String
budget_request : AutonomyBudgetUsage
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct AutonomyGrant {
product_id : String
operations : Array[String]
authority_ceiling : AuthorityClass
claim_ceiling : ClaimClass
artifact_prefixes : Array[String]
} derive(Eq, ToJson, Debug)pub(all) struct BookkeeperReflection {
reflection_id : String
book_id : String
trigger : String
observations : Array[String]
gaps : Array[KnowledgeGap]
belief_updates : Array[BeliefUpdate]
proposed_actions : Array[ExecutableDeclaration]
learned_procedures : Array[LearnedProcedure]
confidence : Double
uncertainty : Array[String]
requested_authority : AuthorityClass
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct BrowserActionReceipt {
contract_id : String
receipt_id : String
session_id : String
action_id : String
actor_kind : BrowserActor
actor_id : String
operation : BrowserOperation
semantic_target : String
redacted_arguments : Array[String]
expected_observation : String
authority_decision_ref : String
before_digest : String
after_digest : String
outcome : String
observations : Array[String]
evidence_refs : Array[String]
completed_at : String
} derive(Eq, ToJson, Debug)pub(all) struct BrowserSessionScope {
contract_id : String
session_id : String
book_id : String
book_revision : String
code_revision : String
run_id : String
artifact_id : String
authority_envelope_id : String
origin_class : String
network_policy : String
allowed_origins : Array[String]
allowed_operations : Array[BrowserOperation]
upload_artifact_refs : Array[String]
download_root : String
storage_lifetime : String
capability_digest : String
expires_at : String
} derive(Eq, ToJson, Debug)pub(all) struct ConformanceSubject {
subject_id : String
product_id : String
operation : String
requested_authority : AuthorityClass
input_contracts : Array[String]
output_contracts : Array[String]
claim : ClaimClass
criteria : Array[CriterionOwnership]
negative_path_count : Int
execution_succeeded : Bool
accepted : Bool
acceptance_review_ref : String
workspace_root : String
artifact_paths : Array[String]
} derive(Eq, ToJson, Debug)pub(all) struct ConstitutionConformanceReport {
contract_id : String
report_id : String
subject_id : String
product_id : String
accepted : Bool
findings : Array[ConformanceFinding]
checked_at : String
} derive(Eq, ToJson, Debug)pub(all) enum ContractKind {
Identity
Authority
ArtifactRef
ExecutableDocument
WorkModel
KnowledgeGap
BeliefUpdate
BookkeeperReflection
LearnedProcedure
TownCommission
TownPromotion
ModelRoute
RunReceipt
BookReadiness
EvidenceEnvelope
ChangeReceipt
BookMessage
RobotDesign
ConstitutionConformance
AutonomyEnvelope
AutonomyDecision
InterventionScorecard
BrowserSession
BrowserActionReceiptContract
SpatialArtifact
RepresentationTransformContract
} derive(Compare, Eq, Hash, ToJson, Debug)pub(all) struct CriterionOwnership {
criterion_id : String
owner_product_id : String
required_claim : ClaimClass
negative_path_required : Bool
evidence_refs : Array[String]
} derive(Eq, ToJson, Debug)pub(all) struct ExecutableDeclaration {
declaration_id : String
book_id : String
revision : String
kind : DeclarationKind
title : String
statement : String
executor_product : String
requires : Array[String]
acceptance_criteria : Array[String]
requested_authority : AuthorityClass
} derive(Eq, ToJson, Debug)pub(all) struct InterventionRecord {
intervention_id : String
category : InterventionCategory
normal_path : Bool
product_id : String
reason : String
evidence_ref : String
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct InterventionScorecard {
contract_id : String
run_id : String
constitutional_authority_count : Int
optional_observation_count : Int
required_intervention_count : Int
hidden_orchestration_count : Int
normal_path_intervention_count : Int
unattended_qualified : Bool
records : Array[InterventionRecord]
checked_at : String
} derive(Eq, ToJson, Debug)pub(all) struct KnowledgeGap {
gap_id : String
book_id : String
kind : CognitionGapKind
question : String
required_by : Array[String]
current_evidence : Array[String]
missing : String
urgency : String
resolution_criteria : Array[String]
status : String
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct LearnedProcedure {
procedure_id : String
book_id : String
title : String
applicability : Array[String]
steps : Array[String]
verification_criteria : Array[String]
failure_modes : Array[String]
counterexamples : Array[String]
evidence_refs : Array[String]
status : String
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct ProductBoundary {
product_id : String
owner : String
operations : Array[String]
allowed_authorities : Array[AuthorityClass]
input_contracts : Array[String]
output_contracts : Array[String]
claim_ceiling : ClaimClass
prohibited_claims : Array[ClaimClass]
} derive(Eq, ToJson, Debug)pub(all) struct RepresentationTransform {
contract_id : String
transform_id : String
parent_artifact_id : String
parent_digest : String
parent_representation : RepresentationClass
child_artifact_id : String
child_digest : String
child_representation : RepresentationClass
lineage_relation : SpatialLineageRelation
operation : String
parameters_digest : String
tool_id : String
tool_version : String
authority_ref : String
declared_losses : Array[String]
validation_refs : Array[String]
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct SpatialArtifactManifest {
contract_id : String
artifact_id : String
project_id : String
representation : RepresentationClass
parent_artifact_ids : Array[String]
digest : String
payload_ref : String
units : String
coordinate_system : String
up_axis : String
handedness : String
source_refs : Array[String]
backend_id : String
backend_version : String
procedure_ref : String
authority_envelope_id : String
assumptions : Array[String]
unresolved_gaps : Array[String]
validation_refs : Array[String]
intended_consumers : Array[String]
forbidden_consumers : Array[String]
claim_ceiling : ClaimClass
recorded_at : String
} derive(Eq, ToJson, Debug)pub(all) struct WorkItem {
work_item_id : String
declaration_id : String
product_id : String
status : WorkStatus
depends_on : Array[String]
input_artifacts : Array[ArtifactRef]
output_artifacts : Array[ArtifactRef]
requested_authority : AuthorityClass
attempt_count : Int
blocker : String
} derive(Eq, ToJson, Debug)fn authorize_autonomy_event(envelope : AutonomyEnvelope, event : AutonomyEventRequest, usage : AutonomyBudgetUsage, decision_id : String, checked_at : String) -> AutonomyDecisionfn autonomy_timestamp_is_canonical(timestamp : String) -> Boolfn compile_work_graph(graph_id : String, book_id : String, declaration_revision : String, declarations : Array[ExecutableDeclaration], recorded_at : String) -> WorkGraphfn intervention_scorecard(run_id : String, records : Array[InterventionRecord], checked_at : String) -> InterventionScorecardfn representation_transition_issues(parent : RepresentationClass, child : RepresentationClass) -> Array[String]fn validate_constitutional_conformance(registry : Array[ProductBoundary], subject : ConformanceSubject, report_id : String, checked_at : String) -> ConstitutionConformanceReportShared utility library for the Moon suite
Dependencies