โ† Local RoB Wiki ยท Chronicle

[HHLocal Custom] HHLocal:Server and Admin Guide

HHLocal is a single Java 21 server process plus a Python 3.12 cognition sidecar. The server speaks the W16.2 hafen-client protocol, owns the SQLite world, and exposes a loopback-only inspector. Nothing in this guide requires a public network.

Boot profiles

The server accepts --profile playtest or --profile minimal. The environment fallback is HHLOCAL_BOOT_PROFILE. Programmatic test fixtures default to minimal.

On boot the server logs the loaded profile, the catalog SHA-256 digest and the entry counts, and passes the same live holder to the inspector. That makes the running world and the displayed world provably the same catalog.

Loopback GM inspector

The GM inspector binds to 127.0.0.1 only. The default port is 1873. It serves:

The inspector is an observer. It does not call wdgmsg, does not inject clicks or keys, and the read-only /state endpoint beside it is used by the client gyms. A boot checkpoint failure logs a warning and does not block the listener.

Backups and VACUUM INTO

The live world is backed up with SQLite's atomic VACUUM INTO, never by copying a database file under load. The hourly job writes a coherent copy such as backups/world-YYYYMMDD-HH.sqlite, and the deployed stack pins backup_limit to 24 rather than Pelican's default of 0. The host snapshots those backups nightly to the backup server.

The same mechanism seals a Past Worlds archive: a VACUUM INTO copy, a manifest with SHA-256 digests, and read-only exports. If you copy a world by hand, use VACUUM INTO or include the WAL; a bare world.sqlite copy can miss a committed transaction.

PublishedCode and CodePin

Every code or codeentry archive from a non-jar source must match a pinned SHA-256 in haven.code.manifest. The check is fail-closed:

The manifest format is one sha256 and resname per line, in sha256sum order, with UTF-8 BOM, leading star, leading ./ and backslashes normalised away. Comments and blank lines are ignored. An optional -Dhaven.auth-trustcert=<pem> adds a local TLS anchor for the synthetic auth server; it is not a general certificate bypass.

hhlocal_gym QA gates

The real-client gates are deliberately fail-closed. They are not screenshots that always pass.

Isolation rules

Operator quick reference