-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
137 lines (131 loc) · 2.81 KB
/
__init__.py
File metadata and controls
137 lines (131 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
"""
Contract types shared across pawl modules.
This package houses the agreed-upon interfaces that multiple lanes
(forward, reverse, normalize) depend on. Types here are stable —
changes require consideration of all consumers.
"""
from pawl.contract.values import (
NodeId,
Value,
ValueBool,
ValueNumber,
ValueParamRef,
ValueRegex,
ValueString,
ValueSymbol,
)
from pawl.contract.coordinates import (
CoordinateIndex,
HashBoundaries,
NodeCoordinate,
SectionHashes,
)
from pawl.contract.policy_dag import (
FilterAtom,
Node,
NodeAllow,
NodeDeny,
NodeJumpOp,
NodeProvenance,
NodeTest,
NodeUnknown,
NodeUnknownInlinePolicyRef,
OperationDAG,
Policy,
)
from pawl.contract.compare import DAGDiff, compare_dags
from pawl.contract.render import render_atom, render_policy, render_terminal
from pawl.contract.envelope import (
IR_ENVELOPE_VERSION,
IREnvelope,
StructuralGateResult,
assemble_ir_envelope,
assert_structural_gate_d2,
extract_node_origins,
extract_subgraph_hashes,
validate_structural_gate_d2,
)
from pawl.contract.bundle_ir import (
BUNDLE_IR_VERSION,
BundleHeader,
BundleProfileRegionRecord,
BundleManifest,
BundleProfileEnvelopeRef,
BundleIR,
BundleProfileGateResult,
BundleStructuralGateResult,
profile_id_from_index,
assemble_bundle_ir,
validate_bundle_ir,
assert_bundle_ir,
)
from pawl.contract.status import (
ALL_STATUSES,
BLOCKED,
DECODE_ONLY,
DEGRADED,
MISMATCH,
NOT_APPLICABLE,
OK,
TIMEOUT,
UNSUPPORTED,
)
__all__ = [
"NodeId",
"Value",
"ValueBool",
"ValueNumber",
"ValueParamRef",
"ValueRegex",
"ValueString",
"ValueSymbol",
"CoordinateIndex",
"HashBoundaries",
"NodeCoordinate",
"SectionHashes",
"FilterAtom",
"Node",
"NodeAllow",
"NodeDeny",
"NodeJumpOp",
"NodeProvenance",
"NodeTest",
"NodeUnknown",
"NodeUnknownInlinePolicyRef",
"OperationDAG",
"Policy",
"DAGDiff",
"compare_dags",
"render_atom",
"render_policy",
"render_terminal",
"IR_ENVELOPE_VERSION",
"IREnvelope",
"StructuralGateResult",
"assemble_ir_envelope",
"validate_structural_gate_d2",
"assert_structural_gate_d2",
"extract_node_origins",
"extract_subgraph_hashes",
"BUNDLE_IR_VERSION",
"BundleHeader",
"BundleProfileRegionRecord",
"BundleManifest",
"BundleProfileEnvelopeRef",
"BundleIR",
"BundleProfileGateResult",
"BundleStructuralGateResult",
"profile_id_from_index",
"assemble_bundle_ir",
"validate_bundle_ir",
"assert_bundle_ir",
"ALL_STATUSES",
"OK",
"DEGRADED",
"MISMATCH",
"BLOCKED",
"UNSUPPORTED",
"DECODE_ONLY",
"TIMEOUT",
"NOT_APPLICABLE",
]