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