interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / CAND3-LIVING-f816473-w2 / R16-ladder / raw / 20261006T014614Z-97ee27584cda / rx_emergency.log

112 lines · 7196 bytes Raw Blame History
1cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I/home/drakestapleton/workspace/cand3-campaign/cand3/wt-physics-chip/m16 -I/home/drakestapleton/workspace/cand3-campaign/cand3/wt-physics-chip/nvrm -I/home/drakestapleton/workspace/cand3-campaign/cand3/wt-physics-chip/third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I/home/drakestapleton/workspace/cand3-campaign/cand3/wt-physics-chip/third_party/nvidia-open-580.173.02/kernel-open/common/inc -I/home/drakestapleton/workspace/cand3-campaign/cand3/wt-physics-chip/third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I/home/drakestapleton/workspace/cand3-campaign/cand3/wt-physics-chip/third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -pthread -o build/rx_emergency_test src/runtime/rx_caproot.c src/runtime/rx_world.c src/runtime/rx_coherent.c src/runtime/rx_generation.c src/sha256.c tests/runtime/rx_emergency.c -lm
2./build/rx_emergency_test
3[+] E1 setup: a control capability revoked by the office
4[+] E1 stop refused: no credential (rc -27, want -27)
5[+] E1 stop refused: forged credential (rc -27, want -27)
6[+] E1 stop refused: enrolled intruder presenting the operator's capability (rc -4, want -4)
7[+] E1 stop refused: operator with the wrong right on the control resource (rc -4, want -4)
8[+] E1 stop refused: operator with the halt right on another resource (rc -4, want -4)
9[+] E1 stop refused: operator with a revoked control capability (rc -4, want -4)
10[+] E1 stop refused: a reaction's subject with a valid control capability (rc -4, want -4)
11[+] E1 the world is still running after every refused stop
12[+] E1 refused stops changed neither the world digest nor the crumb log
13[+] E1 a forged resume is refused before 'not stopped' is told
14[+] E1 an authorized resume of a running world answers RX_HALT_NOT_STOPPED
15[+] E1 the not-stopped resume left no crumb
16[+] E1 control: the world still publishes and reacts (R2 wrote 4*10)
17[+] E3 setup: publish E.f0 = 41 (wakes R)
18[+] E3 setup: R is computing, held in its function
19[+] E3 setup: publish E.f1 = 5 (wakes R2, queued: one worker)
20[+] E2 an authorized stop takes effect (seq 1, operator, reason 77)
21[+] E2 OPERATOR_STOP crumb names the control capability and the reason
22[+] E2 no halt directory: durable = 0 (said, not hidden)
23[+] E2 the stop added exactly one crumb
24[+] E2 a second stop (another operator) answers RX_HALT_ALREADY, no crumb
25[+] E2 the second stop changed nothing
26[+] E2 outside publication refused: RX_ERR_HALTED
27[+] E2 the refused publication changed nothing
28[+] E3 the activation computed under the stop ended CANCELLED, RX_ERR_HALTED
29[+] E3 nothing it computed was published (O unchanged, no COMMIT)
30[+] E3 R2's queued wake was not taken while stopped (50 ms)
31[+] E3 refused count = 2 (one publication, one activation)
32[+] E2 another authorized operator resumes
33[+] E2 OPERATOR_RESUME crumb: parent = the stop, cap = the resumer's
34[+] E3 on resume the cancelled activation and the queued wake both ran
35[+] E3 their results: O = 41+1, Q = 5*10
36[+] E3 each committed exactly once
37[+] E4 race: 14004 publications ok, 457092 refused HALTED, 0 other; 373 stops, 373 resumes
38[+] E4 the crumb log did not overflow (every event is in it)
39[+] E4 no EXTERNAL or COMMIT crumb between a STOP and its RESUME
40[+] E4 STOP and RESUME strictly alternate
41[+] E4 one STOP crumb per accepted stop, one RESUME per accepted resume
42[+] E4 every stop/resume answer was OK, ALREADY or NOT_STOPPED
43[+] E4 the crumb chain verifies
44[+] E5 setup: second world
45[+] E5 setup: world with operator, proposer, promoter; bound generation store
46[+] E5 stop during the live barrier: stop rc 0, promote rc -51 (want -51)
47[+] E5 active generation unchanged, in memory and on disk
48[+] E5 a proposal under the stop is refused: RX_GEN_ERR_HALTED
49[+] E5 operator resumes
50[+] E5 stop during the disk writes: stop rc 0, promote rc -51 (want -51)
51[+] E5 active generation unchanged, in memory and on disk
52[+] E5 a proposal under the stop is refused: RX_GEN_ERR_HALTED
53[+] E5 operator resumes
54[+] E5 control: after resume the same promoter promotes
55[+] E6 setup: halt directory
56[+] E6 setup: world
57[+] E6 no mark: set_halt_dir answers 0, world runs
58[+] E6 the stop wrote its mark durably (durable = 1)
59[+] E6 the mark names the operator, the capability and the reason, and is sealed
60[+] E6 restart: new world
61[+] E6 the new world starts stopped, restored from the mark (seq, operator, reason)
62[+] E6 the restored stop refuses publication
63[+] E6 setup: directory with a damaged mark
64[+] E6 torn: new world
65[+] E6 a mark with one byte changed still stops the world (RX_ERR_TORN)
66[+] E6 an authorized resume lifts the torn stop and retires its mark
67[+] E6 the torn record is kept, not deleted
68[+] E6 the kept record starts with the damaged bytes, unchanged
69[+] E6 unbound store opened over the halt directory
70[+] E6 unbound store: promotion refused by the mark
71[+] E6 world restored stopped
72[+] E6 setup: halt directory made read-only
73[+] E6 a resume that cannot retire the mark is refused: world stays stopped, mark stays
74[+] E6 setup: halt directory writable again
75[+] E6 resume: world runs, mark removed
76[+] E6 exactly one kept stop record
77[+] E6 kept record = the stop's bytes + who resumed, sealed
78[+] E6 control: with the mark gone the store promotes
79[+] E7 setup: world with R3 (woken by R's commit)
80[+] E7 setup: publish E.f0 = 6 (R runs, its commit wakes R3)
81[+] E7 setup: R3 is computing, held in its function
82[+] E7 operator stop while R3 computes
83[+] E7 the refused activation did not spend R3's episode budget (not quarantined)
84[+] E7 object create under the stop: RX_ERR_HALTED, no object
85[+] E7 object retire under the stop: RX_ERR_HALTED
86[+] E7 refused create/retire changed nothing (digest, crumbs, Q still live)
87[+] E7 operator resume
88[+] E7 R3 ran again after resume and committed
89[+] E7 its result: Q.f1 = (6+1)*100
90[+] E7 setup: halt directory
91[+] E7 setup: OPERATOR_HALT is a dangling symlink
92[+] E7 link: new world
93[+] E7 a symlink mark stops the world (RX_ERR_TORN)
94[+] E7 resume lifts it
95[+] E7 the link is removed and a resumed record kept
96RX_EMERGENCY_STOP: PASS (0 failures; host CPU, real caproot authority)
97CC="cc" bash tests/runtime/rx_emergency_mutants.sh
98ok unmutated: PASS
99ok M1 run_one publishes under a stop: killed (4 checks failed)
100ok M2 workers take work under a stop: killed (1 checks failed)
101ok M3 outside publication under a stop: killed (7 checks failed)
102ok M4 caller check ignores the stop: killed (6 checks failed)
103ok M5 a reaction subject may stop the world: killed (7 checks failed)
104ok M6 store ignores the durable mark: killed (2 checks failed)
105ok M7 a restarted world ignores the mark: killed (14 checks failed)
106ok M8 resume deletes the mark without keeping the record: killed (5 checks failed)
107ok M9 the stop is not in force until the disk write returns: killed (28 checks failed)
108ok M10 a refused activation spends the episode budget: killed (3 checks failed)
109ok M11 object create under a stop: killed (2 checks failed)
110ok M12 object retire under a stop: killed (4 checks failed)
111ok M13 a symlink mark reads as absent: killed (3 checks failed)
112RX_EMERGENCY_MUTANTS: PASS