interplane.Get Omega
Read in your language

hive-view

aien-dev/hive-view

Brought by drakestapleton

branch main Branches Tags History

hive-view / evidence / 2026-11-07-v1.md

139 lines · 9922 bytes Raw Blame History Rendered
1# hive-view v1 evidence, 2026-11-07 to 2026-11-09 (Spark, GB10, Ubuntu arm64)
2
3Binaries (built by omega-mv@943d9555 `seed/out/omc`, sha256 `5f90edea…f6df`, sources and omc taken
4from omega-mv git objects at that commit; builds byte-identical when repeated):
5
6| Binary | sha256 |
7|---|---|
8| server (this revision, deployed 2026-11-09) | `8971a878f83bf5dca673d1b25bc43666fce37f9372e927203b32b4c15914fd24` |
9| server, head `988b15b7` (entries-panel wrap below) | `8fb2dc8863271351f5ff48d7db0effe9c5bf864bf6ed181f64b18ecc01afe662` |
10| server, review-fix draft `0c2ad66d` without the UTF-8 chunk-edge back-off (deployed briefly, replaced) | `165e33615a05c6b2e83e4334bbb32cb102f34896ef12dea718d1f27f31083227` |
11| server, previous head `539f4575` (before the review fixes) | `12672fd8ac41cd47e7c9a826fb804ee587debed5b104b3e88eedbebdc1ea6c40` |
12| server, head `0971680f` (before the attempt line and argv redaction) | `f86347591c5e51f172eb12eca7c95b65efa13ee43a14c61385e1f2938b161349` |
13| gate (56 checks) | `a44c983a4a2645f0e5d8faf37f1dce604e005bb2397135e5ee60c37819c6bf39` |
14| negative-control server (this revision without the `;` escape in `vwchunk`) | `3268e343899b91cd2487c67998d8b14dad935a11e6209bfd3e28077dcbde7e1d` |
15
16Unless a section names another build, results below are for server `8971a878…`. The local CI replay
17ran server `f8634759…`; Chrome and CPU ran the builds named in their sections.
18
19## GitHub CI: NOT_RUN for every head after `999ab19`
20
21The first run (head `999ab19`) failed 2 of 52 and found the two defects described below. No run
22started for later heads: GitHub Actions has been blocked org-wide since about 08:16Z (BOARD
232026-11-07T08:20:48Z, "owner marked spammy"). Local replay of `.github/workflows/gate-arm64.yml` at
24head `551b10f` on the Spark (fresh clone, omc taken from omega-mv `943d9555` git objects and checked
25against `omega-mv.lock`, a fresh HOME holding only `~/.config`, port 18196): server and gate sha256
26equal `build.json` (MATCH, MATCH); `mktoken` exit 0; `gate nolog` 5 passed, 0 failed; after
27`install -d -m 700 ~/.local/state/hive-view`, `gate run` 52 passed, 0 failed (`ci-replay-*.txt`).
28This is a local replay of the previous head, not a GitHub result. Pushes are blocked as well (the
29push account is suspended, BOARD 08:24:41Z); this revision exists only as a local commit and patch.
30
31## Deployed (DEPLOYED on the Spark, not merged)
32
33`deploy/hive-view.service` installed as a systemd user unit; `systemctl --user` shows active, the
34main process has nice 10 and `Cpus_allowed_list 0-2`; `/health` answers on 127.0.0.1 and 100.64.0.2.
35`kill -KILL` of the main process (server `f8634759…`): restarted after RestartSec (NRestarts=1),
36`/health` ok. Server `8971a878…` installed 2026-11-09 with `server.prev` = `8fb2dc88…`, unit
37restarted, then `gate run 18190` against the deployed service: 56 passed, 0 failed (`gate-run.txt`).
38
39## Gate (EXERCISED)
40
41`gate run 18190` against the deployed service above: 56 passed, 0 failed, exit 0 (`gate-run.txt`).
42The same gate against this server on a scratch port with a HOME holding only the token: 56 passed
43(`gate-run-token-only-home.txt`).
44
45Negative control: the same gate against the negative-control server on port 18198: 50 passed,
466 failed, exit 1. The six failures are exactly the cases where a chunk ends in `;`
47(`semi;`, `;`, `;;`, `\;`, `bs\;`, the 4096-byte text with `;` at both chunk ends). Output:
48`gate-negative-control.txt`.
49
50Entries panel wrap (found by factory bay 6 at `988b15b7`): with no `## ` heading in QUESTIONS or
51DECISIONS (also a missing or empty file), `vwents` computed the start of the last 4000 bytes as an
52unsigned `n - 4000`, which wrapped below 4000; the connection then died after the 200 headers
53(curl: 200, 0 body bytes, exit 18). Fixed in `src/page.om` (emit the last min(n - b0, 4000) bytes
54only when n > b0); the fixed server is byte-identical to the bay's proposed-fix build (`8971a878…`).
55Two new gate cases fetch both panels and need a 200 and the closing `</body></html>`. Server
56`8fb2dc88…` on a token-only HOME: 54 passed, 2 failed, exactly those two (`gate-entries-before.txt`).
57Throwaway short-file check (QUESTIONS.md = "short <b>q</b>\n"): `8fb2dc88…` 200 with 0 body bytes,
58curl exit 18; `8971a878…` 200, 516 bytes, the text shown escaped. On the live service both panels
59answer 200 with the whole page.
60
61UTF-8 at a chunk edge (found in review: the code backs a chunk edge off continuation bytes, and no
62gate case covered it). New case: "a" followed by 1365 copies of U+20AC (4096 bytes; the 2048-byte
63edge falls inside a character). Experiment: a server without the back-off (`165e3361…`) also passed
64all 54 checks of that time (`gate-no-utf8-backoff-165e3361.txt`): tmux 3.4 `send-keys -l` delivers the split
65character intact to the pane. The back-off was kept anyway: each chunk is a separate write to the
66program in the pane, and the `tee` sink cannot show whether that program decodes a character split
67across two writes. The case therefore documents delivery; it does not detect removal of the back-off.
68
69Enter or Escape with text in the box: the form handler drops the text (route.om `vwfbuild`), so only
70the key is pressed. New gate case checks that the sink receives only the Enter byte.
71
72Send log unavailable (found by the first CI run): the first runner had no `~/.local/state/hive-view`,
73and the server then typed the text and only failed to log it afterwards. The server now opens the
74log before typing and refuses with code 8 when it cannot. `gate nolog`, run with a HOME holding only
75the token, against the server binary from before that change: 4 passed, 1 failed (the text was
76typed); against this revision: 5 passed, 0 failed (`gate-nolog.txt`).
77
78Send log write failure (found in review): opening alone did not guarantee a logged send, because the
79line was written only after typing and the write result was ignored. Now an `attempt` line must be
80written in full before typing (else code 8), and the outcome line follows. Control: the state
81directory holds `sends.log -> /dev/full`, which opens but fails every write with ENOSPC. Previous
82head `f8634759…`: 4 passed, 1 failed, the text was typed (`gate-nolog-full-before.txt`); this
83revision: 5 passed, 0 failed (`gate-nolog-full.txt`). The sends log of the `gate run` above shows
84`result=attempt` followed by `result=ok` for each typed send. CI runs both setups.
85
86Command lines on the machine panel (found in review): GPU and pool-lock holders were shown with their
87full argv, which could carry a secret. Throwaway check (a test `main` around `vwcmdl`, not kept):
88argv `bash -c "sleep 20; true" --password hunter2 --api-key=abc123 plain AuthHeader=Bearer.xyz
89--tokenfile /x/y keep` is shown as `bash -c sleep 20; true *** *** --api-key=*** plain AuthHeader=***
90*** *** keep`.
91
92Gate fix (also found by the first CI run): the "wrong cookie" check replaced the token's first
93character with `0`, which is the real token whenever that already starts with `0` (1 token in 16;
94inferred cause of the CI failure, since the runner's token is not shown). It now writes `1` in that case.
95
96## CPU (MEASURED)
97
98`gate cpu PID 60` (USER_HZ 100), two dashboard pages open in Chrome (1400x1000 and a 390x844 phone
99viewport) for the whole minute. Run 1 used server `9f70b61b…`, run 2 server `8e4ca0a1…`, run 3
100server `12672fd8…` (head `539f4575`; the poller and page code are unchanged in `165e3361…`):
101
102| What | Run 1 | Run 2 | Run 3 |
103|---|---|---|---|
104| hive-view main + poller + connection handlers (with reaped children), ticks in 60 s | 182 | 76 | 171 |
105| tmux server, hive-view running | 292 | 255 | 305 |
106| tmux server, hive-view stopped (baseline, minute after run 1) | 269 | | |
107
108WolframLanguageEvaluator: `N[182/(60*100)*100] -> 3.03`, `N[76/(60*100)*100] -> 1.27`,
109`N[171/(60*100)*100] -> 2.85` (% of one core); `N[182/(60*100*20)*100] -> 0.152`,
110`N[76/(60*100*20)*100] -> 0.0633`, `N[171/(60*100*20)*100] -> 0.1425` (% of 20 cores);
111`N[(292-269)/(60*100)*100] -> 0.383`. Likely cause of the spread (inferred, not measured): how many
112session screens changed during the minute, since unchanged panes are not captured again. The
113arithmetic and rounding are proven in Lean 4 in `cpu-shares.lean` (lake env lean rc 0; a false
114variant, 2.86, fails with rc 1).
115
116## Chrome (EXERCISED, headless Chromium managed by omp)
117
118Against server `8971a878…` (this revision), deployed on port 18190, 2026-11-09 (the same steps also
119passed on `8fb2dc88…` and `165e3361…`):
120
121- `/s/hv-chrome` (scratch session `stty raw -echo; tee` into a file): "chrome 8971; ünï <b> $(id) €€"
122 arrived byte for byte followed by CR; the page showed "Sent 35 bytes to hv-chrome, then pressed
123 Enter." Then "must not be typed" in the box with the Enter button: the sink received only one more
124 CR. Phone (iPhone 12 emulation): scrollWidth 390 = innerWidth. `/p/entries?f=questions` rendered
125 (10585 characters of text, newest entry first).
126
127Against server `12672fd8…` (head `539f4575`), deployed on port 18190:
128
129- `http://spark.hub.internal:18190/?t=<token>` signed in and showed the dashboard.
130- `/s/hv-chrome` (a scratch session running `tee` into a file): "chrome on head; ünï <b> $(id)" arrived
131 byte for byte followed by LF; the page showed "Sent 31 bytes to hv-chrome, then pressed Enter."
132- Phone (390 px wide, scale 3): no horizontal page scroll (scrollWidth 390 = innerWidth); queen
133 screen, form and buttons visible.
134- Service stopped with the page open: after 16 s every panel showed the browser's error page
135 (`chrome-error://chromewebdata/` frames); after restart `/health` answered `ok` and the page came back.
136
137Earlier, against server `9f70b61b…`: the full dashboard contents (queen with colours, omp tiles,
138Hermes, lead tiles, machine, BOARD, QUESTIONS, DECISIONS, CLAIMS, other sessions) and that the queen
139form on `/` targets `omp-queen` (hidden field checked; nothing was sent to the queen).