Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test
on: [push, pull_request]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: {python-version: "3.12"}
- run: pip install -e . pytest aiohttp
- run: python -m pytest -q
21 changes: 21 additions & 0 deletions docs/pilot-hyperframes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Pilot: a hyperframes node from a bare GCP VM (LPA-252 plan §4.1)

The first real end-to-end run. Every step records its time, every manual action and every doctor failure in `journey.md`, which becomes the "before" column of the M1 scorecard.

| Step | What | Who |
|---|---|---|
| H0 | VM in GCP project `naap-orchestrator` (outside the fleet; `livepeer-agent` has no billing): `e2-standard-8`, Ubuntu 24.04, public IP, ports 80/443 open, label `purpose=lpa-252-pilot` | Claude, after the owner's go |
| H1 | Install Docker; clone this repo; `pip install -e .`; write `lpo.yaml`; `lpo up` (renders, waits for the wallet files) | Claude |
| H2 | Fresh wallet (owner decision 2026-11-02: the livebit.ca key is not shared). Owner runs `lpo wallet` on the VM: types the password and RPC URL; the node image's `livepeer-chain` writes the keystore into `~/node/secrets/` (mode 600) and lpo fills `eth_address`. Owner backs up the keystore and password offline. Claude never handles them | owner |
| H3 | Owner funds the address on Arbitrum One (≈0.01 ETH, LPT above the active-set floor: 610.2 LPT on 2026-11-02, so ~1,000 LPT), runs `lpo register --lpt 1000` (dry run), then `--submit`: approve, bond, register (reward/fee cut 100), service URI `https://8-229-5-192.sslip.io`. Active from the next round (~21 h). Reward is optional for the pilot | owner |
| H4 | `lpo up` until every check passes; keep each report | Claude |
| H5 | Staging signer lists the node: simple-infra PR, folded into release R0 (planning only until R0) | Claude writes, owner applies |
| H6 | Agent catalog entry for `community/hyperframes` (planning only until M0) | Claude writes |
| H7 | Paid staging jobs by name under the gate cap; then bind to `hyperframes-render` | Claude |
| H8 | `journey.md`: time per stage, manual steps, staff touches, doctor failures | Claude |
| H9 | Delete the VM, or keep it as the M1 friendly node | owner decides |

Known gaps to close before M1:
- The runner renders untrusted HTML in headless Chromium. It refuses non-public background URLs, but page scripts can still fetch. Next step: no egress for the render process except the background fetch.
- The base image is pinned by tag, not digest, until the first pilot build.
- Bonding into a full active set evicts the lowest orchestrator; an operator a few LPT above the floor can be pushed out again by the next one.
23 changes: 23 additions & 0 deletions docs/pilot-journey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Pilot journey log (LPA-252 §4.1)

Times are UTC on 2026-11-03. "Manual" means a step a community operator would also do by hand today.

| Time | Step | Result | Manual? | Notes |
|---|---|---|---|---|
| 03:47 | H0 | `livepeer-agent` has no billing account, so Compute could not be enabled; switched to `naap-orchestrator` (owner) | staff | not an operator step; our own setup |
| 03:55 | H0 | VM `lpa-252-pilot-hf` (e2-standard-8, Ubuntu 24.04, us-west1-b, 8.229.5.192), firewall `lpa-252-pilot-web` (80/443, tag `lpa-252-pilot`) | yes | host name `8-229-5-192.sslip.io`, so no DNS step |
| 03:56–03:57 | H1 | Docker 29.9.2 + compose v5.7.0 installed (1 min 21 s) | yes | one script; should become part of `lpo up` on a bare host |
| 03:57 | H1 | `lpo up` → refuses: `orchestrator.eth_address is not a wallet address`; `lpo doctor` → stage 2/7 `node`, exit 1, report written | yes | correct stop; waiting for the owner's wallet |
| 03:58 | H1 | runner image build failed: livepeer-gateway needs Python ≥ 3.12, base had 3.11 | — | Kit bug, fixed (Python 3.12 base + Node 22); caught on the first real build |
| 04:03 | H4 (partial) | first real render in the runner image: HTTP 200 in 8.5 s; MP4 h264 1920×1080, 3.0 s, 90 frames | — | renderer works on CPU; node and payment path not yet involved |
| 04:04 | H2 | owner gave `0x2cC8…1328`; `lpo.yaml` filled, Kit rendered; `lpo up` waits for the wallet files | yes | |
| 04:05 | H3 (read only) | address is already an active, registered orchestrator: 17,086.57 LPT bonded, round 4392, on-chain service URI `https://livebit.ca:8935` | — | no bond/activate needed; changing the URI would move that node's traffic |
| 04:05 | H3 | public Arbitrum RPC returns 403 without a User-Agent | — | Kit bug, fixed in `lpo` (8d935a0) |
| 04:06 | H3 | new non-blocking check `chain.service_uri` warns when the on-chain URI names another host | — | covers "second host for an existing orchestrator" |
| 04:06 | H2 | doctor: stage 2/7, 7 blocking; its "Next step" points at container logs, though the real blocker is the missing wallet files | — | finding: next step should follow the root cause (`chain.keystore`) |
| 04:20 | H2 | owner decision: do not share the livebit.ca key; pilot uses a fresh wallet. VM `lpo.yaml` reset to the zero address | owner | |
| 04:25 | H3 (read only) | active set 100/100, lowest stake 610.2 LPT, top 4.53 M LPT; round length 6,377 L1 blocks (~21 h); unbonding 7 rounds | — | so a fresh operator needs ~1,000 LPT plus ~0.01 ETH |
| 04:30 | H2/H3 | node image ships `livepeer-chain` (no `livepeer_cli`): `account create` and `orchestrator register` (approve+bond+register+service URI, dry run by default) | — | Kit gains `lpo wallet` and `lpo register` on top of it (8c3c5d7) |
| 04:35 | H3 | smoke on the VM with a throwaway, unfunded key (deleted): create works; register dry run stops at "insufficient Livepeer token balance" | — | finding: an RPC URL file with a trailing newline is rejected; doctor now catches it (538ad6b) |

Waiting on the owner: `lpo wallet` on the VM (H2), then fund the address and `lpo register` (H3).
Empty file added lpo/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions lpo/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys

from .cli import main

sys.exit(main())
Loading
Loading