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 / apps / interplane-forge / salvage / 15bundle.om

89 lines · 3316 bytes Raw Blame History
1note Portable POSIX tar: fixed safe member names, no paths, links, ownership metadata or executable flags.
2text tltarct "application/x-tar"
3text tltarcd "attachment; filename=interplane-part.tar"
4text tltarurl "/bundle.tar"
5text tlbundle "Download reproduction bundle"
6text tlrecnm "record.ip"
7text tlrcpnm "receipt.ip"
8text tlsrcnm "source.om"
9text tlinnm "stdin"
10text tlexnm "expected"
11text tlreadnm "README.txt"
12text tlustar "ustar"
13text 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"
14fn sloct hdr edit uchar * pos ulong width ulong value ulong to void
15v = value
16for i ulong width bound 16
17j = sub sub add pos width 1 i
18put hdr j uchar add and v 7 48
19v = shr v 3
20end
21end
22fn slmember name view uchar * size ulong kind ulong off ulong to void
23h = new uchar 512 0
24for i ulong len name bound 100
25put h i get name i
26end
27sloct h 100 7 420
28sloct h 108 7 0
29sloct h 116 7 0
30sloct h 124 11 size
31sloct h 136 11 0
32for i ulong 8
33put h add i 148 32
34end
35put h 156 48
36for i ulong len tlustar
37put h add i 257 get tlustar i
38end
39put h 263 48
40put h 264 48
41sum = ulong 0
42for i ulong 512
43sum = add sum ulong get h i
44end
45sloct h 148 6 sum
46put h 154 0
47put h 155 32
48for i ulong 512
49fputc get h i
50end
51for i ulong size bound 32768
52c = uchar 0
53if eq kind 0
54c = get glrec add off i
55end
56if eq kind 1
57c = get glrcpt i
58end
59if eq kind 2
60c = get tlreadme i
61end
62fputc c
63end
64pad = rem sub ulong 512 rem size 512 512
65for i ulong pad bound 512
66fputc 0
67end
68end
69fn slbundle id view uchar * to long
70if ne get glrec 8 2
71ret 404
72end
73if ne slreceiptget id 1
74ret 409
75end
76put fkind 0 1
77fsetct tltarct
78fsetcd tltarcd
79slmember tlrecnm get glrl 0 0 0
80slmember tlrcpnm 353 1 0
81slmember tlsrcnm get gllen 5 0 get gloff 5
82slmember tlinnm get gllen 7 0 get gloff 7
83slmember tlexnm get gllen 8 0 get gloff 8
84slmember tlreadnm len tlreadme 2 0
85for i ulong 1024
86fputc 0
87end
88ret 200
89end