tiny.closure.project
Defined in tiny.closure.
API (7)
Actions
Public operations.
Types and contracts
Public types and contracts.
Source
Source: lib/closure/src/project/check.zig:28
zig
pub const Reason = enum(u8) { none, claim_missing, work_limit, visited_capacity, frontier_capacity, generation_root_unknown, claim_name_unknown, profile_unknown, edge_mask_unsupported, artifact_missing, artifact_ambiguous, artifact_node_missing, artifact_digest_unknown, artifact_digest_mismatch, artifact_witness_unknown, byte_range_missing, byte_range_digest_unknown, byte_range_witness_unknown, byte_range_overflow, byte_range_out_of_bounds, byte_range_overlap, byte_coverage_gap, foreign_only_executable, node_identity_ambiguous, node_evidence_unknown, claim_root_missing, claim_root_node_missing, artifact_unreachable, treatment_missing, treatment_unknown, treatment_conflict, treatment_forbidden, origin_evidence_missing, origin_treatment_forbidden, edge_kind_omitted, predecessor_omitted, edge_target_missing, oracle_influence, authority_evidence_missing, authority_edge_missing, authority_target_missing, authority_unknown, authority_forbidden, service_evidence_missing, service_evidence_unknown, service_requirement_mismatch, record_reference_missing, record_evidence_unknown,};Source: lib/closure/src/project/check.zig:79
zig
pub const Result = struct { verdict: schema.Verdict, reason: Reason, work: u64, high_water: u32,};Source: lib/closure/src/project/check.zig:4
zig
pub const Scratch = struct { visited: []u8, queue: []u32,};Source: lib/closure/src/project/check.zig:26
zig
pub const WorkBoundError = error{WorkArithmeticOverflow};Source: lib/closure/src/project/check.zig:9
zig
pub const WorkCardinality = struct { nodes: usize, edges: usize, artifacts: usize, ranges: usize, digests: usize, provenance_parents: usize, source_records: usize, build_records: usize, authorities: usize, lineage_references: usize, service_descriptors: usize, residual_roots: usize, claims: usize, claim_nodes: usize,};Source: lib/closure/src/project/check.zig:1019
zig
pub fn check( input: schema.GenerationInput, claim_id: schema.ClaimId, scratch: Scratch, work_limit: u64,) Result { var checker = Checker{ .input = input, .claim_id = claim_id, .scratch = scratch, .work_limit = work_limit, }; return checker.run();}Source: lib/closure/src/project/check.zig:1034
zig
pub fn maximumWork(cardinality: WorkCardinality) WorkBoundError!usize { const node_pairs = try triangular(cardinality.nodes); const range_pairs = try triangular(cardinality.ranges); const origin_scans = try sum(&.{ try product(&.{ 2, cardinality.source_records }), try product(&.{ 2, cardinality.artifacts }), try product(&.{ 2, cardinality.build_records }), cardinality.provenance_parents, cardinality.digests, cardinality.lineage_references, cardinality.service_descriptors, }); return sum(&.{ try setupWork(cardinality, node_pairs, range_pairs), try traversalWork(cardinality, origin_scans), try policyWork(cardinality), try recordWork(cardinality, range_pairs), });}Source: lib/closure/src/project/root.zig
zig
const checker = @import("check.zig");pub const Reason = checker.Reason;pub const Result = checker.Result;pub const Scratch = checker.Scratch;pub const WorkBoundError = checker.WorkBoundError;pub const WorkCardinality = checker.WorkCardinality;pub const check = checker.check;pub const maximumWork = checker.maximumWork;Source: lib/closure/src/root.zig:17
zig
pub const project = @import("project/root.zig");Complete caller list for project.check
17 direct callers.
lib.closure.src.project.check.test_artifact_mismatch_refutes_despite_unknown_profile_evidence[function] — test source atlib/closure/src/project/check.zig:1522in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_authority_provenance_and_build_predecessors_must_be_included[function] — test source atlib/closure/src/project/check.zig:1452in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_coverage_overlap_and_foreign_executable_evidence_refute[function] — test source atlib/closure/src/project/check.zig:1686in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_forbidden_workload_authority_flow_refutes[function] — test source atlib/closure/src/project/check.zig:1772in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_frontier_and_work_exhaustion_are_inconclusive_and_bounded[function] — test source atlib/closure/src/project/check.zig:1806in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_incomplete_traversal_does_not_refute_an_unvisited_predecessor[function] — test source atlib/closure/src/project/check.zig:1428in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_missing_roots_and_unreachable_artifacts_refute[function] — test source atlib/closure/src/project/check.zig:1653in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_missing_service_and_dangling_selected_edge_are_inconclusive[function] — test source atlib/closure/src/project/check.zig:1737in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_omitted_data_validation_authority_and_service_edges_refute[function] — test source atlib/closure/src/project/check.zig:1553in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_oracle_influence_and_forbidden_treatment_each_refute[function] — test source atlib/closure/src/project/check.zig:1702in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_owned_and_receipted_origins_require_matching_evidence[function] — test source atlib/closure/src/project/check.zig:1583in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_projection_passes_a_complete_directed_rooted_claim_with_fixed_work[function] — test source atlib/closure/src/project/check.zig:1349in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_projection_reports_a_missing_claim_as_not_exercised[function] — test source atlib/closure/src/project/check.zig:1508in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_represented_predecessor_outside_the_rooted_projection_refutes[function] — test source atlib/closure/src/project/check.zig:1390in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_undersized_visited_scratch_cannot_create_a_graph_refutation[function] — test source atlib/closure/src/project/check.zig:1835in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_unknown_required_profile_is_inconclusive[function] — test source atlib/closure/src/project/check.zig:1538in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.test_unreceipted_and_platform_supplied_nodes_cannot_be_owned_or_verified[function] — test source atlib/closure/src/project/check.zig:1621in nearest public ownerlib.closure.src.project.check
Complete call list for project.maximumWork
7 direct calls.
lib.closure.src.project.check.policyWork[function] — private source atlib/closure/src/project/check.zig:1098in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.product[function] — private source atlib/closure/src/project/check.zig:1183in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.recordWork[function] — private source atlib/closure/src/project/check.zig:1141in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.setupWork[function] — private source atlib/closure/src/project/check.zig:1054in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.sum[function] — private source atlib/closure/src/project/check.zig:1190in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.traversalWork[function] — private source atlib/closure/src/project/check.zig:1071in nearest public ownerlib.closure.src.project.checklib.closure.src.project.check.triangular[function] — private source atlib/closure/src/project/check.zig:1178in nearest public ownerlib.closure.src.project.check
Audit
| Definitions | 8 |
|---|---|
| Public names | 8 |
| Members | 69 |
| Version | 26.7.0 |
| Revision | daab053ee433 |