interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / galaxy / README.md
| 1 | # galaxy: the INTERPLANE front page, live, in seeded Omega |
| 2 | |
| 3 | INTERPLANE is the home for space junk: builds that almost worked, abandoned repos, AI slop. Each |
| 4 | piece is checked against evidence on its exact revision; what passes is kept with its proof so the |
| 5 | next builder can reuse it. The front page shows that as a galaxy: the hive at the centre as a |
| 6 | honeycomb of factory stations, unverified work in review as dots on the inner ring, work that |
| 7 | passed review on the second ring, every public project as a star, and the latest merged heads on |
| 8 | Radicle beside it. The page carries no script element and no inline style. |
| 9 | |
| 10 | Status: IMPLEMENTED and EXERCISED on the Spark host (gates below; the daemon also ran against the |
| 11 | live stream). Not installed as a service and not served by the live forged until this is merged. |
| 12 | |
| 13 | On the integrated line (integrate/one, 2026-11-09) the galaxy is its own page, the map, at |
| 14 | `/galaxy` and `/galaxy/`. The forge root stays the explore page and the interplane.io root stays the |
| 15 | static page of the site repository, so the nginx file has no `location = /` block. `page.om`, |
| 16 | `live.om`, `stars.om` and `cli.om` are as mac-main wrote them (forge/galaxy-live 8f81e8fc). |
| 17 | |
| 18 | ## Units |
| 19 | |
| 20 | | Unit | What it is | |
| 21 | |---|---| |
| 22 | | `page.om` | the page and its stylesheet: reads a feed from the buffer `ib`, writes HTML to `ob` | |
| 23 | | `cli.om` | composed after `page.om`: a filter, feed on stdin (or `css`), page on stdout | |
| 24 | | `live.om` | composed after `page.om`: the daemon that keeps `index.html` current | |
| 25 | | `stars.om` | its own program: `stars.tsv` (stars and merges) from the Radicle registry | |
| 26 | | `server/route.om` | forged streams the three files; it does not build them | |
| 27 | | `tokens.css` | the Sovereign Intelligence design tokens, copied byte for byte | |
| 28 | |
| 29 | ```sh |
| 30 | OMC=$HOME/work/flux/omega-mv/seed/out/omc # sha256 3ad9f10f…93194, checked by every gate |
| 31 | cat galaxy/page.om galaxy/cli.om | $OMC > galaxy-filter |
| 32 | cat galaxy/page.om galaxy/live.om | $OMC > galaxy-live |
| 33 | $OMC < galaxy/stars.om > stars |
| 34 | ``` |
| 35 | |
| 36 | ## How the page stays current |
| 37 | |
| 38 | - `galaxy-live` connects to the factory's public Now stream (127.0.0.1:4748, server-sent events). |
| 39 | Each event replaces the top-level keys it carries (`generated`, `totals`, `machine`, `stations`). |
| 40 | After an event it rewrites `index.html` in its working directory, at most once per 30 s of |
| 41 | stream time: it compares the event's own `generated` second with the one it last published at |
| 42 | and reads no clock, so a recorded stream paces exactly as a live one. The stream sends an event |
| 43 | about every 2 s, so while the factory is up the page is rewritten every 30 s. There is no timer: |
| 44 | without events nothing is written. A lost connection is retried after 5 s. |
| 45 | - A cell shows `moving` (jobs in work), the figure the factory floor shows, then `done24`. |
| 46 | Delivered is `totals.done`; verdicts, the review queue and approved come from the `aegis` station. |
| 47 | - `stars` runs when the registry folder changes (through `aien-onchange`) and rewrites `stars.tsv`. |
| 48 | It lists exactly the rows forged's allow-list accepts: the first table of `RIDS.md`, a well-formed |
| 49 | name and RID, an existing storage folder, never the crypto repositories. So every star links to a |
| 50 | page that exists, and the star count equals the forge's public repository count. |
| 51 | - Every file is written to a `.tmp` name, synced and renamed, so a reader never sees half a page. |
| 52 | - forged serves `<data>galaxy/index.html` at `/galaxy` and `/galaxy/` on the interplane.io base, and |
| 53 | the two stylesheets at `/assets/galaxy.css` and `/assets/tokens.css`. Without the page file |
| 54 | `/galaxy` is 404. The root is the explore page either way. The `/forge/` base never serves the |
| 55 | galaxy. |
| 56 | |
| 57 | ## Install (after merge) |
| 58 | |
| 59 | ```sh |
| 60 | mkdir -p ~/.local/share/interplane-galaxy ~/forge-data/galaxy |
| 61 | cat galaxy/page.om galaxy/live.om | $OMC > ~/.local/share/interplane-galaxy/galaxy-live |
| 62 | $OMC < galaxy/stars.om > ~/.local/share/interplane-galaxy/stars |
| 63 | chmod 755 ~/.local/share/interplane-galaxy/galaxy-live ~/.local/share/interplane-galaxy/stars |
| 64 | cp galaxy/tokens.css ~/forge-data/galaxy/tokens.css |
| 65 | cp infra/spark/interplane-galaxy.service infra/spark/interplane-stars.service ~/.config/systemd/user/ |
| 66 | systemctl --user daemon-reload |
| 67 | systemctl --user enable --now interplane-stars.service interplane-galaxy.service |
| 68 | ./run.sh deploy # forged with the galaxy routes |
| 69 | # the first galaxy preview was copied into the static root; nginx serves a static folder before |
| 70 | # forged, so /galaxy reaches forged only after that folder moves out of the root (/var/www is |
| 71 | # root-owned, so the move needs sudo; the folder keeps its owner) |
| 72 | sudo mv /var/www/interplane.io/galaxy /var/www/interplane.io.galaxy-preview.$(date -u +%Y%m%dT%H%M%SZ) |
| 73 | curl -s https://interplane.io/galaxy | cmp - ~/forge-data/galaxy/index.html # the page is now at /galaxy |
| 74 | ``` |
| 75 | |
| 76 | No nginx change is needed: the existing `location /` already sends a path with no static file to |
| 77 | forged, and the root keeps its static page. |
| 78 | |
| 79 | Undo: `systemctl --user disable --now interplane-galaxy.service interplane-stars.service`; |
| 80 | remove `~/forge-data/galaxy/index.html`; deploy the previous forged; `sudo mv` the preview folder |
| 81 | back to `/var/www/interplane.io/galaxy` if wanted. |
| 82 | |
| 83 | ## Feed (the filter's input, and what the daemon builds) |
| 84 | |
| 85 | Tab-separated public facts, one per line. Unknown lines are ignored. Every field is HTML-escaped. |
| 86 | |
| 87 | | Line | Fields | Meaning | |
| 88 | |---|---|---| |
| 89 | | `K` | key, value | a headline figure: `delivered`, `verdicts`, `approved`, `waiting`, `gpuw`, `asof` | |
| 90 | | `S` | name, in work, done24 | a hive cell; the first 10 are drawn, rows of 3, 4 and 3 | |
| 91 | | `R` | name, tier | a project star; tier `core`, `rest` or `tail` sets its ring | |
| 92 | | `M` | repo, head, note | a merged head on Radicle | |
| 93 | |
| 94 | A missing `K` value prints "not read". |
| 95 | |
| 96 | ## Limits |
| 97 | |
| 98 | No input makes the page go blank. Feed input past 65,535 bytes is not read. A name prints at most |
| 99 | 64 of its bytes and a merge note 160, never cut inside a UTF-8 character. At most 400 stars, 12 |
| 100 | merges, 10 cells and 400 dots per ring are drawn; the legend still counts every `R` line. |
| 101 | |
| 102 | With those caps the largest page is 679,686 bytes, under the 1,048,576-byte output buffer: |
| 103 | |
| 104 | ``` |
| 105 | 2555 + 1920 + 63 + 160*101 + 800*81 + 400*1392 + 10*1124 + 12*2179 = 679686 |
| 106 | ``` |
| 107 | |
| 108 | The terms are the fixed text, 5 headline values, 3 legend numbers, 160 dust points, 800 ring dots, |
| 109 | 400 stars, 10 cells and 12 merges, each at its longest (every byte escaped to 6, every number 21 |
| 110 | characters). `OutputBound.lean` proves the inequality in Lean 4 with no axioms |
| 111 | (`lean galaxy/OutputBound.lean`); Wolfram gives the same sum and `679686 < 2^20` true. |
| 112 | |
| 113 | The daemon drops a stream line longer than 1,048,575 bytes, keeps the last good figures when an |
| 114 | event is cut off or is not JSON, and publishes nothing until it has seen the stations. It reads at |
| 115 | most 32,768 bytes of `stars.tsv`. `stars` reads at most 262,144 bytes of `RIDS.md`, lists at most |
| 116 | 400 rows (the page draws at most 400 stars, so the legend then says 400) and picks the merges from |
| 117 | the first 128 listed rows. Its file is therefore at most 8 merge lines of 281 bytes and 400 star |
| 118 | lines of 72 bytes, 31,048 bytes, under what the daemon reads; `tests/stars.sh` writes that largest |
| 119 | file from a 500-row registry. |
| 120 | |
| 121 | ## Geometry and dates |
| 122 | |
| 123 | Stars, dust and ring dots are placed by repeated rotation through the golden angle, |
| 124 | pi(3 - sqrt 5). The two constants are its cosine and sine to 17 digits from Wolfram |
| 125 | (`N[Cos[Pi (3 - Sqrt[5])], 17]`, `N[Sin[...], 17]`). No trigonometric host call is used. |
| 126 | The page time is the stream's `generated` second, turned into a UTC date with integer arithmetic; |
| 127 | `tests/live.sh` checks ten dates (epoch, leap days, year ends, year 2100) against `date -u`. |
| 128 | |
| 129 | ## Gates |
| 130 | |
| 131 | ```sh |
| 132 | sh galaxy/tests/run.sh # the filter: RESULT pass=36 fail=0 |
| 133 | sh galaxy/tests/live.sh # the daemon: RESULT pass=26 fail=0 |
| 134 | sh galaxy/tests/stars.sh # the stars: RESULT pass=17 fail=0 |
| 135 | bash galaxy/tests/route.sh # the routes: RESULT pass=28 fail=0 (trial forged on port 18489) |
| 136 | bash server/tests/check.sh # the server: 44 passed, 0 failed |
| 137 | ``` |
| 138 | |
| 139 | Each refuses any compiler but the pin (exit 2) and has a negative control: the `<` escape removed, |
| 140 | the old 4,096-line loop limit and the UTF-8 back-off removed (filter; an apostrophe prints as |
| 141 | `'` and a 64-byte cut never splits a character); reading `open` where the floor shows `moving` |
| 142 | and the 30 s pacing rule removed (daemon; an event 10 s after a publish is held, one 30 s after is |
| 143 | published); the deny rule removed and the 400-row cap removed (stars); the base commit's `route.om`, |
| 144 | which has no `/galaxy`, and a `route.om` whose root serves the galaxy file (routes; set |
| 145 | `GALAXY_BASE` to a commit before the galaxy routes, e3c2839 on the integrated line). The daemon gate requires the page it writes from recorded stream |
| 146 | bytes to equal, byte for byte, the page the filter prints for the same figures written by hand. |
| 147 | |
| 148 | ## Not done |
| 149 | |
| 150 | - The page is not the interplane.io home: it is the map at `/galaxy`. Its wordmark links to `/`, |
| 151 | the static page of the site repository. |
| 152 | - The hardware line is scoped on the page to the DGX Spark GB10, the only target CUDApp's |
| 153 | `targets doctor` lists as supported. |
| 154 | - The public proof chain and the owner's analytics are separate units, not in this change. |