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
omega-mv / apps / interplane-forge / salvage / 15bundle.om
| 1 | note Portable POSIX tar: fixed safe member names, no paths, links, ownership metadata or executable flags. |
| 2 | text tltarct "application/x-tar" |
| 3 | text tltarcd "attachment; filename=interplane-part.tar" |
| 4 | text tltarurl "/bundle.tar" |
| 5 | text tlbundle "Download reproduction bundle" |
| 6 | text tlrecnm "record.ip" |
| 7 | text tlrcpnm "receipt.ip" |
| 8 | text tlsrcnm "source.om" |
| 9 | text tlinnm "stdin" |
| 10 | text tlexnm "expected" |
| 11 | text tlreadnm "README.txt" |
| 12 | text tlustar "ustar" |
| 13 | text tlreadme "INTERPLANE declared-example bundle v1\n\nrecord.ip is the canonical exact revision. Its filename-independent SHA-256 is the revision ID shown by the hub. Fields and replay instructions: docs/SALVAGE.md in the Interplane Forge source. No public Git URL yet: Interplane does not serve Git clones yet.\n\nUse salvage/replay.om with 00core.om, 10verify.om and the pinned Omega sha2.om. The compiler pin is 3ad9f10f64309e7acf8a725082b28e23a2a4aeb07e98322fb4dc0fcd8fc93194. Verify the compiler's seed chain before replay. Set OMEGA_COMPILER privately to the absolute path of that verified compiler. Run the native replay tool with RECORD_PATH EXPECTED_RECORD_SHA256 FRESH_PRIVATE_DIRECTORY_WITH_TRAILING_SLASH RECEIPT_PATH. The fresh directory must be empty. Linux AArch64 with bwrap, prlimit, Landlock ABI 3 and seccomp is required. Missing isolation fails closed.\n\nThe input and output are UTF-8 LF-normalized bytes, not approximate text matches. The tool recompiles and executes the exact source under the sandbox, checks exit zero and exact output, rejects an altered expected output, and compares rebuilt binary/output hashes to the receipt.\n\nThe receipt's HMAC authenticates the collector only to the hub; it is not a publicly verifiable digital signature. Independent replay is the public verification. A passing example is not a proof of general correctness, safety, authorship or license validity. Source and attribution claims are supplied by the submitting builder. No speed or mathematical claims are made.\n" |
| 14 | fn sloct hdr edit uchar * pos ulong width ulong value ulong to void |
| 15 | v = value |
| 16 | for i ulong width bound 16 |
| 17 | j = sub sub add pos width 1 i |
| 18 | put hdr j uchar add and v 7 48 |
| 19 | v = shr v 3 |
| 20 | end |
| 21 | end |
| 22 | fn slmember name view uchar * size ulong kind ulong off ulong to void |
| 23 | h = new uchar 512 0 |
| 24 | for i ulong len name bound 100 |
| 25 | put h i get name i |
| 26 | end |
| 27 | sloct h 100 7 420 |
| 28 | sloct h 108 7 0 |
| 29 | sloct h 116 7 0 |
| 30 | sloct h 124 11 size |
| 31 | sloct h 136 11 0 |
| 32 | for i ulong 8 |
| 33 | put h add i 148 32 |
| 34 | end |
| 35 | put h 156 48 |
| 36 | for i ulong len tlustar |
| 37 | put h add i 257 get tlustar i |
| 38 | end |
| 39 | put h 263 48 |
| 40 | put h 264 48 |
| 41 | sum = ulong 0 |
| 42 | for i ulong 512 |
| 43 | sum = add sum ulong get h i |
| 44 | end |
| 45 | sloct h 148 6 sum |
| 46 | put h 154 0 |
| 47 | put h 155 32 |
| 48 | for i ulong 512 |
| 49 | fputc get h i |
| 50 | end |
| 51 | for i ulong size bound 32768 |
| 52 | c = uchar 0 |
| 53 | if eq kind 0 |
| 54 | c = get glrec add off i |
| 55 | end |
| 56 | if eq kind 1 |
| 57 | c = get glrcpt i |
| 58 | end |
| 59 | if eq kind 2 |
| 60 | c = get tlreadme i |
| 61 | end |
| 62 | fputc c |
| 63 | end |
| 64 | pad = rem sub ulong 512 rem size 512 512 |
| 65 | for i ulong pad bound 512 |
| 66 | fputc 0 |
| 67 | end |
| 68 | end |
| 69 | fn slbundle id view uchar * to long |
| 70 | if ne get glrec 8 2 |
| 71 | ret 404 |
| 72 | end |
| 73 | if ne slreceiptget id 1 |
| 74 | ret 409 |
| 75 | end |
| 76 | put fkind 0 1 |
| 77 | fsetct tltarct |
| 78 | fsetcd tltarcd |
| 79 | slmember tlrecnm get glrl 0 0 0 |
| 80 | slmember tlrcpnm 353 1 0 |
| 81 | slmember tlsrcnm get gllen 5 0 get gloff 5 |
| 82 | slmember tlinnm get gllen 7 0 get gloff 7 |
| 83 | slmember tlexnm get gllen 8 0 get gloff 8 |
| 84 | slmember tlreadnm len tlreadme 2 0 |
| 85 | for i ulong 1024 |
| 86 | fputc 0 |
| 87 | end |
| 88 | ret 200 |
| 89 | end |