| Unit | `repixelizer-gui.service`, enabled, active since 2026-08-21 10:51 UTC, 93 MB RSS. Runs `/srv/repixelizer/.venv/bin/python /srv/repixelizer/app/scripts/run_gui.py --host 127.0.0.1 --port 8765` as `repixelizer`, with `EnvironmentFile=/srv/repixelizer/env/service.env` | `systemctl status`. The unit is byte-identical to `gamecult-ops/systemd/repixelizer-gui.service` |
| Running code | **`01dfab9`, on `codex/repixelizer-eve-surface`, not `main`.** Deployed 2026-06-16 by a workstation tarball (`repoRoot=E:\Projects\repixelizer`). CultLib is at `d595f5a5` as a separate tarball | `/srv/repixelizer/deployment-manifest.txt` |
| Branch drift | `main` and the deployed branch diverged at `1e1a344`. `main` has 1 commit the branch lacks (`9e8c8f6`, dead-code removal). The branch has 4 commits `main` lacks: the Eve surface, `verse_state.py`, `cultlib_support.py`, and the msgpack dependency. That is 3,081 lines across 20 files | `git diff --stat main origin/codex/...` |
| Venv | `/srv/repixelizer/.venv`, 1007 MB (CPU torch). Built on the host from an unpinned `pip install` | `ops scripts/deploy-repixelizer-gui.sh:113-116` |
| State | `/srv/repixelizer/cultcache/repixelizer.service.cc` (38 KB, rewritten continuously). It holds a queue, auth projection, Eve surface and `idunn.daemon_health` witness, and it is rebuildable. There are also 4 orphan `.tmp` files from 2026-08-20. The upload spool is at `/srv/repixelizer/spool`. Job queue state is in-process only | `ls`. Branch file `verse_state.py:374-395, 440-560` |
| Env keys | `REPIXELIZER_*` limits, `REPIXELIZER_SPOOL_DIR`, `GC_ACCESS_MODE/REQUIRED/PROTECT_QUEUE/HEIMDALL_BASE_URL/APP_PUBLIC_BASE_URL/ALLOWED_PROVIDERS`, `REPIXELIZER_ACCESS_DISCORD_GUILD_ID`, `..._DISCORD_ALLOWED_ROLE_IDS`, `REPIXELIZER_ACCESS_PATREON_TIER_TITLE`, `GC_ACCESS_CULTCACHE_PATH`, `GC_ACCESS_IDUNN_DAEMON`, `GC_ACCESS_IDUNN_HEALTH_CONTRACT`. There are 3 backup copies (`service.env.before-*`) | `cut -d= -f1`, key names only |
| Secrets | **None.** Auth verifies Heimdall JWTs against the public JWKS and refreshes through `/v1/apps/repixelizer/sessions/refresh` with the user's refresh cookie. No shared app secret is read. Payment is Patreon tier membership, which Heimdall resolves as an entitlement. Repixelizer holds no payment credential | `src/repixelizer/access.py:49-54, 487-575, 1030-1033`. Grep for `secret` finds nothing |
| Proxy | `/etc/nginx/sites-enabled/repixelizer.gamecult.org.conf` is byte-identical to `gamecult-ops/nginx/repixelizer.gamecult.org.conf`. TLS comes from Let's Encrypt (`certbot.timer` is active). It rate-limits `POST /api/jobs` to 6/min with a burst of 4, sets `client_max_body_size 5m`, and sets SSE `proxy_buffering off; proxy_read_timeout 3600s`. It proxies `/` and everything else to `127.0.0.1:8765` | `diff`, IDENTICAL |
| Public | `/` 200, `/app/` 303 (to the login), `/api/health` 200, `/api/config` 200 (heimdall mode, discord and patreon providers), `/api/queue` 401 | `curl` from the workstation |
| Traffic | The last 30 days of journal show **zero `/api/jobs` requests**, 12 `POST /api/auth/heimdall/start` (2026-09-17), and a few session checks. Most requests are scanners probing `/.env`. The journal reaches back at least to the 2026-08-21 restart | `journalctl -u repixelizer-gui --since -30d` |
| Idunn today | `idunn-yggdrasil.service` is active. Bindings exist for odin, ghostlight, heimdall, raven-muninn, and streampixels-service and -web. StreamPixels web and service are admitted, and their vhost already points at stable routes `8832` and `8833`. Odin continuity shows repeated failed restarts ("workload identity changed during native observation"). There is **no repixelizer binding** | `idunn status`, `ls /etc/gamecult/idunn/bindings` |
| Legacy actuator | No repixelizer arm in sudoers and no `/srv/odin/deploy-manifests/repixelizer`. Both were already retired. `deploy-repixelizer-gui.sh` refuses to run without `IDUNN_COMMAND_AUTHORITY=idunn-daemon`, so it is an actuator body with no caller | `sudoers.d` grep. `ops scripts/deploy-repixelizer-gui.sh:9-12`. `ops scripts/idunn/idunn-deployment-targets.ps1:196-208` (`Status = "blocked"`) |
| Retired health path | The app still publishes `idunn.daemon_health` over RUDP when `GC_ACCESS_IDUNN_RUDP_HEALTH` is set. That key is **absent** on the host, so the path is dormant. It belongs to the retired generation: the current `idunn serve` has no health ingress (`Idunn docs/migration.md:127-130`) | Branch file `verse_state.py:23-26, 276-305, 391-392, 638-697` |
The current Idunn contract has five requirements. They come from the admitted
StreamPixels and Ghostlight targets and from `Idunn/src`.
- **Recipe** (`gamecult.idunn.target_declaration.v1`) goes in the repo:
steps, artifacts, `[service]`, health contract, state slots, provides and
dependencies. It names no host paths.
- **Binding** (`gamecult.idunn.operator_binding.v2`) goes in gamecult-ops as
`idunn/yggdrasil/bindings/<target>.toml.in`, rendered to
`/etc/gamecult/idunn/bindings/<target>.toml`. It holds the runner images
pinned by digest, the workload roots, `[workload.secret_files]`,
`[runtime_identity]`, `[route]`, two different brake stores, rollout and
placement.
- **The workload runs as a `systemd-run` transient unit.** The settings are
`DynamicUser`, `PrivatePIDs`, `PrivateTmp`, `ProtectSystem=strict` and a
5. Poll until the transaction reaches terminal `Admitted`: signed `warming`,
then `active`, then the route challenge passes, then promotion to `8834`.
`Committing` is not admission. If it stalls in `Committing` or `Warming`
with Odin continuity failing (as on 2026-09-28 for StreamPixels, and as the
repeated Odin continuity failures in today's status suggest can happen),
stop and route it as an Odin/Idunn defect. Do not widen trust or flip nginx.
6. Host probes against `127.0.0.1:8834`: `/` 200, `/api/health` 200,
`/api/config` byte-equal to legacy's `/api/config` apart from any field that
names the old generation, and `/app/` 303. Run a signed snapshot challenge
three times in a row, and it must succeed each time.
### Cut 7. Flip the public route and verify externally
1. Edit the vhost in gamecult-ops and on the host (`nginx/repixelizer.gamecult.org.conf`):
-`upstream repixelizer_gui { server 127.0.0.1:8834; }`
- add `location ^~ /cultnet/ { return 404; }` so the signed challenge is
loopback-only;
- keep everything else, including the rate limit, body size, SSE settings
and TLS lines certbot manages.
2. Check the legacy journal (last 2 minutes) for no `POST /api/jobs` and no
open `/api/jobs/*/events` (Q5). Then run `nginx -t` and
`systemctl reload nginx`.
3. External checks from the workstation:
-`/`: 200;
-`/app/`: 303 to login;
-`/api/health` and `/api/config`: 200;
-`/api/queue`: 401;
-`POST /cultnet/snapshot`: 404;
- an oversize upload is refused with 413 at nginx;
-`POST /api/jobs` beyond the rate limit gets 503/429.
4. Check that a real conversion works. This needs a Heimdall-authenticated
browser, so **the operator does it**: log in with Discord or Patreon, submit
the Cut 0 fixture, watch live progress over SSE, and download the output.
Compare its SHA-256 with Cut 0 and with the Cut 4 acceptance output. In
parallel, confirm on the host that the job ran in the Idunn unit (its
journal) and not in `repixelizer-gui` (whose journal stays quiet).
5.**Rollback (during the soak):** revert the upstream to `8765` and reload
nginx. The legacy unit is still running, so that is the whole rollback.
### Cut 8. Retire the legacy body (after the soak, see Q5)
-`systemctl disable --now repixelizer-gui.service`, then remove
`/etc/systemd/system/repixelizer-gui.service` and run `daemon-reload`.
- Archive `/srv/repixelizer` as a tarball under root's backup location. That
covers the env files and their three `.before-*` backups, the source and
CultLib tarballs, the venv, the old witness and its 4 orphan `.tmp` files,
and the spool. Then remove the tree. The `repixelizer` system user is left in
place unless the operator wants it gone. It owns nothing afterwards.
- Negative checks:
-`systemctl list-unit-files | grep repixelizer-gui` is empty;
-`ss -ltn '( sport = :8765 )'` is empty;
- nothing under `/srv` references `repixelizer/.venv`;
-`idunn status` shows `repixelizer` admitted;
- kill the Idunn workload's main PID once. Idunn continuity restarts the
same admitted release, and nothing else does.
- **Rollback after retirement:** an Idunn release decision on the retained
previous release (`retain_releases = 2`). There is no legacy path.
---
## Operator questions
- **Q1. Which ref does Idunn admit?**
- A: merge `codex/repixelizer-eve-surface` into `main` (Cut 1) and admit
`main`.
- B: admit the codex branch as it stands.
- C: admit `main` as it stands, dropping the Eve surface and Verse witness
that production runs today.
**Recommended: A.** Production has run the branch for 3.5 months. C would
regress the live product. B launders a branch pin into a typed contract
(`migration.md:137-145`).
- **Q2. How does a Python workload prove signed presence?**
- A: port the Idunn runtime authority and presence publisher into CultLib
`cultnet-py` (Cut 2), with parity against Rust and TS.
- B: make the release executable a small Node or Rust launcher that holds the
identity, publishes presence, and supervises Python as a child.
**Recommended: A.** Under B the signed identity attests a launcher, not the
process serving traffic. The launcher would be PID 1 and hold the
descriptors. It would publish `active` from a probe of its child, which is a
compensator that relabels a proxy as the owner. A is a CultLib foundation
cut of about 1,100 lines of TS to port, and it gives every future Python
service the path.
- **Q3. What is a Python release?**
- A: a pinned CPython (python-build-standalone as a sha-pinned external
input), laid out as a root `python` executable plus a `lib/` tree, with
RUNPATH patched and dependencies installed from a hash lock. This needs no
Idunn change and depends on Cut 4's layout proof.
- B: extend Idunn so a directory artifact can name an entry executable inside
it, which would allow an unmodified interpreter tree. That is an Idunn
contract change.
- C: use the host's `/usr/bin/python3`. It is not sealed, and apt would
change the release underneath Idunn. It cannot be expressed in the release
model anyway.
**Recommended: A**, with B recorded as the answer if the layout proof fails
or a second interpreted target appears. A works in the recipe alone. B is
the more general shape but spends Idunn surface on one target today.
- **Q4. Does the recipe declare Heimdall as a dependency?**
- A: no. Heimdall stays an external HTTPS dependency, reached by public URL,
as it is today.
- B: yes. Declare `heimdall.*``before-promotion`.
**Recommended: A.** Heimdall is not Idunn-managed. Every `idunn up heimdall`
in `idunn status` has failed, and the bindings README says Ghostlight's
equivalent declaration cannot be satisfied. B would block Repixelizer on
Heimdall's migration. Revisit when Heimdall is admitted.
- **Q5. Cutover window and soak length.**
- A: flip at any time the legacy journal shows no job in flight. Soak for 48
hours with legacy running but out of route, then Cut 8.
- B: announce a maintenance window.
**Recommended: A.** The flip is a graceful nginx reload. The journal shows
zero job submissions in 30 days. The only seam is a job that straddles the
flip: its SSE stream stays on the old worker, but browser heartbeats
(`POST /api/jobs/{id}/heartbeat`, `gui.py:1272-1283`) would reach the new
process, get a 404, and the legacy job would be cancelled as stale after
30 s. An OAuth login started before the flip also fails its callback, because
auth attempts are in-process (`access.py:482`), and the user retries. Neither
justifies downtime. The check in step 2 of Cut 7 avoids both.
---
## Verification summary (what "done" means)
-`idunn status` shows `repixelizer` in terminal `Admitted`. Its unit is the
only process listening for Repixelizer, and the old unit file is gone.
- Public: `/`, `/app/`, `/api/health`, `/api/config` and `/api/queue` return
the same codes as Cut 0. `/cultnet/snapshot` returns 404 publicly.
- An operator-authenticated conversion of the Cut 0 fixture completes through
the public site, with live SSE, and its output matches Cut 0 and the Cut 4
acceptance hash (or a recorded torch-version difference explains it).
- A continuity restart (killing the workload PID) comes back as the same
release, driven only by Idunn.
- Negative greps from Cuts 3 and 5 are clean. No `GC_ACCESS_IDUNN_*` key
exists in the binding or the app.
## Subtraction ledger (estimate)
| Cut | Removed | Added | Targets/formats |
|---|---|---|---|
| 1 | 0 | merge only | none |
| 2 | 0 | ~900-1,200 lines of Python plus parity tests (CultLib) | a new public cultnet-py surface: Idunn runtime presence |
| 3 | ~150 (the idunn health path in `verse_state.py`, and `cultlib_support.py`'s path hack) | ~150 (`idunn_serve.py`), plus the lock and submodule | retires the `idunn.daemon_health` RUDP publication |
| 4 | 0 | ~90-line recipe | one Idunn target, one runner |
| 5 | ~330 (deploy and check scripts, env example, Compose entry, trace script line, old runbook, repo unit) | ~110 (binding template) plus a ~150-line runbook | one retired lifecycle definition set |
| 8 | host: 1 unit, a ~1 GB venv, tarballs | none | legacy body retired |
Net: the machine gains one CultLib capability that any Python service can use,
and loses a second lifecycle owner, a host-built unpinned venv, a
workstation-tarball deploy path, and a dead health generation.