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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
.{
.version = 1,
.campaigns = .{
.{
.name = "mst",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-mst"},
.seeds = .{ 1, 2 },
.cases = 100,
.timeout_seconds = 900,
.reach = .{
.{ .key = "mst", .event = "bare partial reload" },
.{ .key = "mst", .event = "copy followed by further operations" },
.{ .key = "mst", .event = "operation refused by a block reader fault" },
.{ .key = "mst", .event = "refused operation checked for atomicity" },
},
},
.{
.name = "codecs",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-codecs"},
.seeds = .{ 1, 2 },
.cases = 100,
.timeout_seconds = 900,
.reach = .{
.{ .key = "codecs", .event = "valid CAR and CBOR roundtrip" },
.{ .key = "crypto", .event = "both curves reject modified message" },
.{ .key = "crypto", .event = "signed commit rejects wrong identity" },
.{ .key = "parsers", .event = "arbitrary bytes reach parser boundaries" },
.{ .key = "structured", .event = "STAR chunked reads and structured parser mutations" },
.{ .key = "syntax", .event = "valid TID and datetime roundtrip" },
.{ .key = "syntax", .event = "space ref and record roundtrip" },
.{ .key = "syntax", .event = "space uri legacy and malformed mutations" },
},
},
.{
.name = "runtime",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-runtime"},
.seeds = .{ 1, 2 },
.cases = 100,
.timeout_seconds = 900,
.reach = .{
.{ .key = "runtime", .event = "DPoP generated under virtual clock and entropy" },
.{ .key = "runtime", .event = "client assertion lifetime checked" },
.{ .key = "runtime", .event = "retry canceled before virtual time advances" },
.{ .key = "runtime", .event = "retry timing compared with model" },
},
},
.{
.name = "xrpc",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-xrpc"},
.seeds = .{ 1, 2 },
.cases = 100,
.timeout_seconds = 900,
.reach = .{
.{ .key = "xrpc", .event = "call failed in transport" },
.{ .key = "xrpc", .event = "call retried" },
.{ .key = "xrpc", .event = "call returned XRPC error" },
.{ .key = "xrpc", .event = "call succeeded" },
.{ .key = "xrpc", .event = "transport replayed request after dead connection" },
},
},
.{
.name = "identity",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-identity"},
.seeds = .{ 1, 2 },
.cases = 100,
.timeout_seconds = 900,
.reach = .{
.{ .key = "identity", .event = "PLC document resolved" },
.{ .key = "identity", .event = "PLC resolution refused" },
.{ .key = "identity", .event = "did:web preflight found no usable DNS" },
.{ .key = "identity", .event = "did:web preflight passed to TLS" },
.{ .key = "identity", .event = "did:web preflight rejected unsafe address" },
.{ .key = "identity", .event = "handle refused for unsafe well-known host" },
.{ .key = "identity", .event = "handle resolution refused" },
.{ .key = "identity", .event = "handle resolved through DNS TXT" },
.{ .key = "identity", .event = "one address judged in isolation" },
},
},
.{
.name = "firehose",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-firehose"},
.seeds = .{ 1, 2 },
.cases = 100,
.timeout_seconds = 900,
.reach = .{
.{ .key = "firehose", .event = "backoff grew past 8s" },
.{ .key = "firehose", .event = "backoff reached its 60s cap" },
.{ .key = "firehose", .event = "events delivered" },
.{ .key = "firehose", .event = "resumed from cursor after reconnect" },
.{ .key = "firehose", .event = "undecodable frame skipped" },
},
},
.{
.name = "oauth",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-oauth"},
.seeds = .{ 1, 2 },
.cases = 100,
.timeout_seconds = 900,
.reach = .{
.{ .key = "oauth", .event = "DPoP request completed" },
.{ .key = "oauth", .event = "DPoP request failed in transport" },
.{ .key = "oauth", .event = "DPoP request retried with a fresh nonce" },
.{ .key = "oauth", .event = "nonce challenge without a nonce refused" },
.{ .key = "oauth", .event = "second nonce challenge exhausted the retry" },
},
},
.{
.name = "permissions",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-permissions"},
.seeds = .{ 1, 2 },
.cases = 150,
.timeout_seconds = 900,
.reach = .{
.{ .key = "permission-repo", .event = "repo relation checked" },
.{ .key = "permission-rpc", .event = "rpc relation checked" },
.{ .key = "permission-rpc", .event = "nested DID escape checked" },
.{ .key = "permission-rpc", .event = "wildcard checked against bare and malformed audiences" },
.{ .key = "permission-rpc", .event = "specific service checked against sibling and bare audiences" },
.{ .key = "permission-blob", .event = "blob relation checked" },
.{ .key = "permission-blob", .event = "redundant allow checked" },
.{ .key = "permission-account-identity", .event = "account default checked" },
.{ .key = "permission-rejection", .event = "unknown_attenuator" },
.{ .key = "permission-rejection", .event = "duplicate_singleton" },
.{ .key = "permission-rejection", .event = "positional_and_named" },
.{ .key = "permission-rejection", .event = "escaped_delimiter" },
.{ .key = "permission-rejection", .event = "malformed_escape" },
.{ .key = "permission-rejection", .event = "double_escape" },
.{ .key = "permission-rejection", .event = "double_rpc_wildcard" },
.{ .key = "permission-rejection", .event = "bare_scope_audience" },
.{ .key = "permission-rejection", .event = "invalid_wildcard_companion" },
.{ .key = "permission-wire-aliases", .event = "equivalent wire spellings checked" },
.{ .key = "permission-arbitrary-bytes", .event = "arbitrary bytes checked" },
},
},
.{
.name = "permission-calibration",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"zig-out/bin/pbt-permissions"},
.seeds = .{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 },
.cases = 150,
.timeout_seconds = 900,
.mutants = "pbt/permission-mutants.zon",
},
.{
.name = "calibration",
.build = .{ "zig", "build", "install-pbt", "-Dhegel" },
.command = .{"scripts/pbt-all"},
.seeds = .{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 },
.cases = 100,
.timeout_seconds = 3600,
.mutants = "pbt/mutants.zon",
},
},
}