Repository navigation
Expand file tree
/
Copy pathscripts.toml
More file actions
389 lines (367 loc) · 15.4 KB
/
Copy pathscripts.toml
File metadata and controls
389 lines (367 loc) · 15.4 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# script/: staging, signing, the flows rig and the repository fences.
[[control]]
id = "stage-test-support-marker-refusal"
guards = "production staging rejects test-support markers in either binary"
file = "script/stage.sh"
old = '[ "$support" = 0 ] || die'
new = '[ "$support" -ge 0 ] || die # NON-VACUITY BREAK'
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageBinaryChecks.test_test_support_is_rejected_in_each_staged_binary"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-dry-run-port-checks-host"
guards = "dry runs do not refuse because a host process owns the rig port"
file = "script/flows-rig.sh"
old = '[ "$DRY" = 1 ] && return 0'
new = '[ "$DRY" = 2 ] && return 0 # NON-VACUITY BREAK'
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_dry_run_does_not_check_the_host_rig_port"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-routing-pin-accepts-a-catalog-without-luna"
guards = "the routing pin refuses a served catalog without openai/gpt-6-luna"
file = "script/flows-rig.sh"
old = 'if "openai/gpt-6-luna" not in models:'
new = "if False:"
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_pin_uses_served_providers_and_refuses_missing_luna"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-credential-check-accepts-extra-credentials"
guards = "the rig vault must hold exactly one active apikey:openai credential"
file = "script/flows-rig.sh"
old = "if len(rows) != 1 or"
new = "if len(rows) < 1 or"
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_credential_inventory_requires_one_active_openai_binding"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-grant-plan-tolerates-unexpected-grants"
guards = "the rig vault may hold no grants beyond Broca's read and routing's list"
file = "script/flows-rig.sh"
old = "if not existing <= allowed:"
new = "if False:"
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_grant_plan_is_exact_and_idempotent"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-auth-omits-the-explicit-key-path"
guards = "every rig auth command names the rig's own master-key file"
file = "script/flows-rig.sh"
old = '--data-dir "$VAULT_DIR" --key-path "$VAULT_KEY" --subc "$CONN"'
new = '--data-dir "$VAULT_DIR" --subc "$CONN"'
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_auth_dry_runs_name_all_three_rig_paths_without_reading_payload"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-auth-path-check-ignores-final-symlinks"
guards = "auth paths are resolved through a final symlink before the inside-the-rig check"
file = "script/flows-rig.sh"
old = "if not os.path.realpath(path).startswith(root):"
new = "if not os.path.abspath(path).startswith(root):"
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_auth_refuses_a_final_key_symlink_outside_the_rig"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "stage-schema-rise-condition"
guards = "the update requests a store backup exactly when its schema rises"
file = "script/stage.sh"
old = ' if [ "$BUILD_SCHEMA" -gt "$LIVE_SCHEMA" ]; then'
new = ' if [ "$BUILD_SCHEMA" -ge "$LIVE_SCHEMA" ]; then # NON-VACUITY BREAK'
edits = []
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageCardChecks.test_migrates_exactly_when_schema_rises"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "stage-worker-first-order"
guards = "the new worker is placed before the parent restart"
file = "script/stage.sh"
old = '''
1. Worker first, without restarting the parent:
\`place-module.sh --module basal --staged $(shell_quote "$STAGE_DIR/ck-basal-worker") --marker $(shell_quote "$WORKER_MARKER") --control $(shell_quote "$WORKER_CONTROL") --dest ~/.local/share/cortexkit/bin/ck-basal-worker --no-restart\`
2. Then ck-basal, with the default update restart:
\`place-module.sh --module basal --staged $(shell_quote "$STAGE_DIR/ck-basal") --marker $(shell_quote "$BASAL_MARKER") --control $(shell_quote "$BASAL_CONTROL")$MIGRATES_ARG\`'''
new = '''
1. Parent first: NON-VACUITY BREAK
\`place-module.sh --module basal --staged $(shell_quote "$STAGE_DIR/ck-basal") --marker $(shell_quote "$BASAL_MARKER") --control $(shell_quote "$BASAL_CONTROL")$MIGRATES_ARG\`
2. Worker last:
\`place-module.sh --module basal --staged $(shell_quote "$STAGE_DIR/ck-basal-worker") --marker $(shell_quote "$WORKER_MARKER") --control $(shell_quote "$WORKER_CONTROL") --dest ~/.local/share/cortexkit/bin/ck-basal-worker --no-restart\`'''
edits = []
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageCardChecks.test_worker_first_without_restart_then_parent_restart"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "stage-marker-refusal"
guards = "invalid staged or live markers refuse the update card"
file = "script/stage.sh"
old = ' [ "$staged_marker" -ge 1 ] && [ "$live_marker" -eq 0 ] \'
new = '''
# NON-VACUITY BREAK
[ "$staged_marker" -ge 0 ] && [ "$live_marker" -ge 0 ] \'''
edits = []
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageCardChecks.test_marker_refusal_writes_no_card"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "stage-push-event-ci-filter"
guards = "the card reports the push CI run rather than a newer scheduled audit"
file = "script/stage.sh"
old = ' gh run list --repo cortexkit/basal --workflow CI --commit "$SHA" --event push --limit 1 \'
new = '''
# NON-VACUITY BREAK
gh run list --repo cortexkit/basal --workflow CI --commit "$SHA" --limit 1 \'''
edits = []
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageCardChecks.test_push_event_ci_run_not_newer_nightly"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "cargo-path-dependency-outside-workspace-is-accepted"
guards = "Cargo path dependencies outside the workspace are refused"
file = "script/check-path-deps.py"
old = "if manifest_path != root and root not in manifest_path.parents:"
new = "if False and manifest_path != root and root not in manifest_path.parents: # NON-VACUITY BREAK"
edits = []
test_file = "script/tests/check_path_deps.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.check_path_deps.PathDependencyChecks.test_outside_path_dependency_is_refused_and_named"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "stage-strings-inspection-fails-open"
guards = "failed strings inspection is never evidence that a production binary lacks the kill hook"
file = "script/stage.sh"
old = 'hook_table=$(strings "$TARGET/release/ck-basal") || die "cannot inspect the built ck-basal; nothing staged"'
new = 'hook_table=$(strings "$TARGET/release/ck-basal" || true) # NON-VACUITY BREAK'
edits = []
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-c", 'import subprocess,sys; print("mutation diff stat:\n" + subprocess.run(["git","diff","--stat"], capture_output=True,text=True,check=True).stdout, flush=True); sys.exit(subprocess.run(["python3","-m","unittest",sys.argv[1]]).returncode)', "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageBinaryChecks.test_binary_inspection_fails_closed"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "stage-symbol-inspection-fails-open"
guards = "failed nm inspection is never evidence that a production binary has no debug map"
file = "script/stage.sh"
old = 'symbols=$(nm -a "$TARGET/release/$bin")'
new = 'symbols=$(nm -a "$TARGET/release/$bin" || true) # NON-VACUITY BREAK'
edits = []
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-c", 'import subprocess,sys; print("mutation diff stat:\n" + subprocess.run(["git","diff","--stat"], capture_output=True,text=True,check=True).stdout, flush=True); sys.exit(subprocess.run(["python3","-m","unittest",sys.argv[1]]).returncode)', "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageBinaryChecks.test_binary_inspection_fails_closed"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-dangling-symlinks-escape-the-root"
guards = "a dangling final symlink is resolved before allowing writes under the rig root"
file = "script/flows-rig.sh"
old = "print(Path(sys.argv[1]).resolve())"
new = "print(Path(sys.argv[1]).absolute()) # NON-VACUITY BREAK"
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-c", 'import subprocess,sys; print("mutation diff stat:\n" + subprocess.run(["git","diff","--stat"], capture_output=True,text=True,check=True).stdout, flush=True); sys.exit(subprocess.run(["python3","-m","unittest",sys.argv[1]]).returncode)', "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_dangling_symlink_cannot_redirect_a_rig_write"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "worker-network-probe-accepts-only-sandbox-denials"
guards = "The worker verification gate accepts only a sandbox denial, not a refused connection"
file = "script/sign-worker.sh"
old = "return error_number in (1, 13)"
new = "return error_number != 0 # NON-VACUITY BREAK"
edits = []
test_file = "script/tests/sign_worker.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.sign_worker.SignWorkerVerifyChecks.test_connection_refused_fails_gate"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-contract-project-root-is-not-the-registered-project"
guards = "The live contract receives the same isolated root registered in entorhinal"
file = "script/flows-rig.sh"
old = '--project-root "$project_root" \'
new = '--project-root "${RIG_HOME:?NON-VACUITY BREAK}" \'
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_live_contract_receives_the_registered_isolated_project_root"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-core-manifest-revision-mismatch-is-accepted"
guards = "The placed core's manifest revision must equal the named rig build"
file = "script/flows-rig.sh"
old = "if actual != expected:"
new = "if False: # NON-VACUITY BREAK"
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_core_revision_comes_from_the_manifest_and_must_match"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-cingulate-config-starts-the-wrong-binary"
guards = "Package consent uses the real ckdev-cingulate executable in the isolated rig"
file = "script/flows-rig.sh"
old = '"program": "$BIN/ckdev-cingulate",'
new = '"program": "$BIN/ckdev-basal", // NON-VACUITY BREAK'
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_real_cingulate_is_pinned_placed_and_configured_in_the_isolated_rig"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "stage-worker-protocol-change-stops-basal"
guards = "A changed worker protocol requires stop-the-world placement rather than an incompatible rolling pair"
file = "script/stage.sh"
old = " STOP_THE_WORLD=1"
new = " STOP_THE_WORLD=0 # NON-VACUITY BREAK"
edits = []
test_file = "script/tests/stage_card.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.stage_card.StageCardChecks.test_protocol_change_selects_stop_the_world"]
only = false
timeout_s = 600
build_timeout_s = 1800
[[control]]
id = "rig-report-accepts-unmarked-zero-check-case"
guards = "The script rejects a nominally passing contract report containing an unmarked zero-check case"
file = "script/flows-rig.sh"
old = "if empty:"
new = "if False: # NON-VACUITY BREAK: accept an unmarked empty case"
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-m", "unittest", "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_report_rejects_zero_checks_unless_explicitly_not_run"]
only = false
timeout_s = 120
build_timeout_s = 1800
[[control]]
id = "rig-root-guard-allows-forbidden-storage"
guards = "The rig root refuses the production store and removable volumes before rig paths are used"
file = "script/flows-rig.sh"
old = ''' /Volumes|/Volumes/*)
die "refusing: the rig root $RIG resolves under /Volumes; macOS external volumes are not supported" ;;'''
new = ''' /Volumes|/Volumes/*)
: # Permit the rig root to be located on an external disk
;;'''
edits = []
test_file = "script/tests/flows_rig.py"
runner = "command"
platforms = ["linux"]
command = ["python3", "-c", 'import subprocess,sys; print("mutation diff stat:\\n" + subprocess.run(["git","diff","--stat"], capture_output=True,text=True,check=True).stdout, flush=True); sys.exit(subprocess.run(["python3","-m","unittest",sys.argv[1]]).returncode)', "{test}"]
test_count_pattern = "Ran {count} test"
expect_red = ["script.tests.flows_rig.RigChecks.test_rig_root_refuses_production_store_and_external_volumes"]
only = false
timeout_s = 120
build_timeout_s = 1800