interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / evidence / ECOSYSTEM5 / independent-review / deps / admit.om

121 lines · 2490 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-or-later
2note L776 public record-admission preparation, consuming frozen L775 core84d03c55.
3note Caller supplies independently measured metadata and observation bytes.
4note This component does not authenticate receipts, execute candidates or persist state.
5note CMeta schema/profile/license/provenance/oracle/template/evidence/samples then source SHA256 then zero reserved.
6global CMeta ulong 16
7global CSeen ulong 64
8global CDiag ulong 64
9global CGood ulong 64
10global CBad ulong 64
11global CFreeze ulong 2048
12note CState good count,bad count,ready. Consume accepted indices only after cfinish returns zero.
13global CState ulong 3
14
15fn cbegin n ulong budget ulong to ulong
16put CState 2 0
17r = lbegin n 1 budget
18if ne r 0
19ret r
20end
21for i ulong mul n 32
22put CFreeze i get LT i
23end
24for i ulong 64
25put CSeen i 0
26put CDiag i 99
27put CGood i 0
28put CBad i 0
29end
30for i ulong 3
31put CState i 0
32end
33ret 0
34end
35
36fn cmeta task ulong to ulong
37base = mul task 32
38for k ulong 32
39if ne get LT add base k get CFreeze add base k
40ret 47
41end
42end
43if or ne get CMeta 0 1 ne get CMeta 1 get LT add base 4
44ret 40
45end
46note License1 is AGPL-3.0-or-later; provenance1 is disclosed handwritten public fixture.
47if ne get CMeta 2 1
48ret 41
49end
50if ne get CMeta 3 1
51ret 42
52end
53if ne get CMeta 4 get LT add base 6
54ret 43
55end
56if ne get CMeta 5 get LT add base 7
57ret 43
58end
59if eq get CMeta 4 get CMeta 5
60ret 43
61end
62note Only bounded tested evidence1; no formal-proof label admitted here.
63if ne get CMeta 6 1
64ret 44
65end
66note Narrow supported packet: three independent fixed u64 observations,24bytes.
67if or ne get CMeta 7 3 lt get LT add base 29 24
68ret 45
69end
70for k ulong 4
71if ne get CMeta add k 8 get LT add base add k 12
72ret 46
73end
74if ne get CMeta add k 12 0
75ret 40
76end
77end
78ret 0
79end
80
81fn csubmit task ulong status ulong gotcode ulong gotn ulong to ulong
82if ne get LS 0 1
83ret 24
84end
85if ge task get LS 1
86ret lattempt task 1 10
87end
88if ne get CSeen task 0
89note Charge the attempted duplicate; preserve its first stored record.
90ret lattempt task 2 10
91end
92why = cmeta task
93outcome = ulong 10
94if eq why 0
95outcome = lobserve status 0 gotcode 24 gotn
96why = outcome
97end
98code = lattempt task 1 outcome
99put CSeen task 1
100if ne code 0
101why = code
102end
103put CDiag task why
104if eq why 0
105put CGood get CState 0 task
106put CState 0 add get CState 0 1
107else
108put CBad get CState 1 task
109put CState 1 add get CState 1 1
110end
111ret why
112end
113
114fn cfinish to ulong
115code = lfinish
116if ne code 0
117ret code
118end
119put CState 2 1
120ret 0
121end