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 / omega-strand-hub / README.md

98 lines · 8059 bytes Raw Blame History Source

Omega Helix Strand Exchange & Clip Studio (om-strand-hub)

Pure seeded-Omega (om2) zero-JS HTTP server implementing the Interplane Open-Source Helix Strand Exchange and Strand Clip Editor (spclip). Compiles with seed/out/omc into a single static AArch64 Linux ELF (~202 KiB, zero libc, zero C, zero Python, zero CUDA, zero telemetry).

Architecture & Security Boundaries

HTTP Routes & Agent API

MethodRoutePurpose
GET/HEAD/strands/ (or /strands)Landing intro, 3-step visual flow, filterable catalog (?trunk=<hex>&license=<lic>), upload form
GET/HEAD/strands/hub.cssDedicated zero-JS stylesheet (text/css, max-age=300)
GET/HEAD/strands/healthLiveness check (200 ok\n)
GET/HEAD/strands/strand/<sha256>Full cryptographic verification receipt, runnable spapp/spchainsamp/spclip commands
GET/HEAD/strands/pack/<sha256>.spVerified .sp binary download (strict 64-hex guard, persisted download counter on GET)
POST/strands/uploadFail-closed upload (multipart/form-data browser/curl form OR raw application/octet-stream + X-Strand-* headers)
GET/HEAD/strands/index.tsvDeterministic agent catalog (text/tab-separated-values, supports ?trunk= / ?license=)
GET/HEAD/strands/index.jsonDeterministic RFC-8259 JSON catalog (omega.strand_hub.v1, supports ?trunk= / ?license=)
GET/HEAD/strands/clipZero-JS Strand Clip Editor (?trunk=, ?s1=, ?s2=)
POST/strands/clipCompose & persist (action=save, 201) or directly download (action=download, 200) verified .spclip
GET/HEAD/strands/clip/<clip_sha256>.spclipDownload stored deterministic .spclip manifest
POST/strands/clip/verifyStandalone fail-closed .spclip manifest verifier (JSON receipt 200 / 400)
GET/HEAD/strands/clips/index.tsvDeterministic .spclip catalog (TSV, supports ?trunk=)
GET/HEAD/strands/clips/index.jsonDeterministic .spclip catalog (JSON, omega.spclip_hub.v1, includes strands[] & ?trunk=)

Build & Run (AArch64 Linux / DGX Spark)

seed/out/omc < apps/omega-strand-hub/main.om > om-strand-hub.tmp
chmod +x om-strand-hub.tmp && mv -f om-strand-hub.tmp om-strand-hub
./om-strand-hub /var/lib/omega-strand-hub 18491 33554432

Arguments (all optional):

  1. data_dir (default ./strand-hub-data)
  2. port on 127.0.0.1 (default 18491)
  3. max_upload_bytes (default 33554432 = 32 MiB)

Pure-Omega Verification Gate (gate.om)

Compiles and executes 52 live loopback end-to-end checks (positive uploads, trunk filtering, bit-exact downloads, restart persistence, XSS/JSON escaping, Clip Editor + Anti-DNA PoE + 3-strand compaction, child-strand spclip: lineage linking, real 14.17 MB GB10-trained OLLMSP01 packs, plus adversarial negative controls for magic/truncation/trailing-byte/FNV-tamper/NaN-weight/Merkle-lineage/SHA256-mismatch/path-traversal/oversized/request-smuggling/incompatible-trunks/pairwise-parent-trunk-conflict/invalid-weights/forged-and-tampered-.spclip/Trap-4 DoS long headers, URIs, filenames, weights, and 68+ distinct trunks):

seed/out/omc < apps/omega-strand-hub/main.om > /tmp/om-strand-hub
seed/out/omc < apps/omega-strand-hub/gate.om > /tmp/strand-hub-gate
chmod +x /tmp/om-strand-hub /tmp/strand-hub-gate
/tmp/strand-hub-gate /tmp/om-strand-hub /tmp/strand-hub-scratch 18499 \
  [optional_real_pack1.sp] [optional_real_pack2.sp]

Expected output: STRAND_HUB_GATE pass=52 fail=0 (49 without optional real .sp pack arguments), exit 0.

Suggested Nginx Route Wiring (/etc/nginx/sites-enabled/interplane.io)

Place alongside the /omega/compile/ proxy block (operator-applied; not auto-modified by this package):

    # Helix Strand Exchange & Clip Studio (pure seeded-Omega om-strand-hub on 127.0.0.1:18491).
    location = /strands {
        return 301 /strands/;
    }
    location ^~ /strands/ {
        limit_except GET HEAD POST { deny all; }
        limit_req zone=forge_post burst=10 nodelay;
        limit_req_status 429;
        client_max_body_size 34m;
        proxy_http_version 1.1;
        proxy_connect_timeout 5s;
        proxy_send_timeout 60s;
        proxy_read_timeout 60s;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header Connection close;
        proxy_pass http://127.0.0.1:18491;
    }

Recommended loopback daemon launch on DGX Spark (atomic ELF replacement + setsid -f):

setsid -f /home/drakestapleton/.local/bin/om-strand-hub \
  /home/drakestapleton/.local/share/omega-strand-hub 18491 33554432 \
  >/tmp/om-strand-hub.log 2>&1 </dev/null