mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-11-30 10:53:55 +01:00
fix(showcase): qualify the real free multiplayer lifecycle
This commit is contained in:
+12
-11
@@ -89,11 +89,12 @@ The fleet `playbooks/wowngeon-stage-candidate.yml` role transfers exactly one ta
|
||||
selected root-owned mode-0700 candidate inbox and compares its remote SHA-256 with the
|
||||
independently recorded literal digest. It is a one-shot custody boundary, not deployment.
|
||||
|
||||
The executable extraction and activation boundary lives only in the separately reviewed fleet
|
||||
repository as the default-closed `wowngeon_release_activate` role. This application checkout cannot
|
||||
attest which fleet revision is installed or authorize its execution. Follow the hash-pinned fleet
|
||||
runbook and literal receipt contract. Do not manually extract beneath `releases/`, install
|
||||
dependencies there, change `current`, restart an application, or run migrations merely because a
|
||||
Such Software application activation belongs to the reviewed Fleet control plane. Its generic
|
||||
`wowngeon_release_activate` role was retired on 2026-09-10; no repeatable replacement activation lane
|
||||
is available. The remaining one-shot Wownerogue cutover deliberately finishes stopped with ingress
|
||||
closed. This source checkout cannot authorize a live update. Follow Fleet's `playbooks/WOWNGEON.md`
|
||||
and `RUNBOOK-wowngeon.md` for current capabilities. Do not manually extract beneath `releases/`,
|
||||
install dependencies there, change `current`, restart an application, or run migrations because a
|
||||
blob has arrived.
|
||||
|
||||
---
|
||||
@@ -279,12 +280,12 @@ release artifact. Provision them separately on any instance that offers the 3D r
|
||||
## Updating the Deployment
|
||||
|
||||
Run the full suite from the clean source commit, then build and verify the runtime artifact using
|
||||
[RELEASE_ARTIFACT.md](./RELEASE_ARTIFACT.md). Use the fleet blob-staging playbook, then proceed only
|
||||
through the hash-pinned `wowngeon_release_activate` role after its clone, wallet, accounting, drain,
|
||||
predecessor, and receipt gates pass. That role, not an application service identity or a manual
|
||||
shell session, builds a new immutable `/var/www/<instance>/releases/<release-id>`, installs the
|
||||
locked graph, verifies the clone and preflight evidence, seals ownership, and atomically selects
|
||||
`current`.
|
||||
[RELEASE_ARTIFACT.md](./RELEASE_ARTIFACT.md). Fleet blob staging and disposable-clone validation are
|
||||
non-activating capabilities. The generic activation role is retired, so a new reviewed update
|
||||
transaction and its exact migration, accounting, predecessor, and recovery evidence are required
|
||||
before an operated instance can select a new release. In particular, test the deployed predecessor
|
||||
against the candidate's post-migration schema and writes; a source revision with a similar name
|
||||
cannot stand in for deployed overlay bytes.
|
||||
|
||||
Never run `git pull`, `npm install`, or `npm audit fix` inside the active release. Keep the previous
|
||||
release and database backup until the new version has passed public health, WebSocket,
|
||||
|
||||
@@ -74,15 +74,25 @@ The profile also controls what `/api/game-modes` publishes: `selectPublicPaidMod
|
||||
emits only the profile's own paid mode, so a Wownero instance never advertises `PAID_SINGLE` and a
|
||||
Monerogue instance never advertises `PAID_CREDITS`.
|
||||
|
||||
## Operated deployment status
|
||||
|
||||
The activation and wallet-promotion sequence below is historical design guidance. Fleet retired the
|
||||
generic application activation and stagenet wallet promotion paths on 2026-09-10. There is no
|
||||
repeatable operated-application activation lane today. Staging and clone validation remain
|
||||
non-activating. Consult Fleet's `playbooks/WOWNGEON.md` and `RUNBOOK-wowngeon.md`; do not execute
|
||||
manual service, configuration, or `current` changes from this document against an operated instance.
|
||||
A successor requires reviewed migration and exact predecessor compatibility evidence.
|
||||
|
||||
## Step 0: Stage an immutable release
|
||||
|
||||
Build one runtime artifact, then transfer only that blob into a root-owned mode-0700 candidate
|
||||
inbox. Compare the host's SHA-256 against an independently recorded digest; the sidecar file that
|
||||
travelled with the blob is not an independent provenance source.
|
||||
|
||||
Blob staging, two-dump clone validation ([CLONE_MIGRATIONS.md](./CLONE_MIGRATIONS.md)), wallet
|
||||
candidate preparation and promotion, and per-instance release activation are performed by the
|
||||
separate, default-closed, hash-pinned fleet automation. Each operation is bound to literal hashes
|
||||
Blob staging and two-dump clone validation ([CLONE_MIGRATIONS.md](./CLONE_MIGRATIONS.md)) remain
|
||||
separate Fleet capabilities. Wallet promotion and general per-instance activation are retired;
|
||||
the remaining wallet candidate and one-shot cutover do not provide a repeatable update path.
|
||||
Every admitted operation is bound to literal hashes
|
||||
and exact receipts and infers no release, dump, wallet, predecessor, or instance. Manual extraction
|
||||
under `/var/www/<instance>/releases`, manual dependency installation, manual service commands, and a
|
||||
hand-written `current` symlink switch are not supported substitutes. A release directory is never
|
||||
@@ -127,11 +137,10 @@ and mnemonic custody, an off-host recovery proof, an isolated rehearsal, exact a
|
||||
verification, and a separately reviewed maintenance and rollback plan. Root-level wallet templates in
|
||||
`scripts/deploy/` are operations source, not runtime files and not an instruction to install them.
|
||||
|
||||
After activation, verify:
|
||||
After a separately reviewed activation, use read-only verification:
|
||||
|
||||
```bash
|
||||
sudo systemctl restart wownerogue.service
|
||||
journalctl -u wownerogue.service -n 50 --no-pager # payment system enabled, payouts disabled
|
||||
systemctl is-active wownerogue.service
|
||||
curl -fsS localhost:3000/api/game-modes \
|
||||
| jq -e '.FREE.enabled == true and .PAID_CREDITS.enabled == true and (has("PAID_SINGLE") | not)'
|
||||
```
|
||||
@@ -234,9 +243,10 @@ sudo -u monerogue bash -c 'set -a; . /etc/monerogue/app.env; . /etc/monerogue/wa
|
||||
|
||||
## Step 5: Activate the instance and close the network
|
||||
|
||||
The runtime artifact contains no service units. Wallet promotion and instance activation run through
|
||||
the hash-pinned fleet roles after the recovery, clone-validation, protected-environment, wallet,
|
||||
drain, and financial-audit gates pass. Do not copy a unit out of an application release.
|
||||
The runtime artifact contains no service units. A future Fleet activation transaction must prove
|
||||
recovery, clone validation, protected configuration, wallet boundaries, drain, and financial audits.
|
||||
There is no current repeatable lane to execute this step. Do not copy a unit out of an application
|
||||
release.
|
||||
|
||||
Install the hash-pinned copies of `scripts/deploy/wowngeon-firewall.sh` (mode 0755 at
|
||||
`/usr/local/sbin/wowngeon-firewall`) and `scripts/deploy/wowngeon-firewall.service`, then set the
|
||||
|
||||
@@ -14,7 +14,9 @@ Everything else in the commit is excluded on purpose: `docs/`, `test/`, the root
|
||||
(service units, firewall and backup jobs, the hash-pinned financial audit SQL, the wallet output
|
||||
splitter), environment examples, `src/sim`, `src/jest.config.js`, and the operator-only commands
|
||||
`src/scripts/pvp-capture.js`, `src/scripts/stagenet-financial-canary.js`, `src/scripts/setup_db.js`,
|
||||
`src/scripts/smoke.js`, and `src/scripts/showcase-browser-smoke.js`. Tests and operator tooling are source and control-plane inputs; they are
|
||||
`src/scripts/smoke.js`, `src/scripts/showcase-browser-smoke.js`,
|
||||
`src/scripts/showcase-lifecycle-smoke.js`, and `src/scripts/showcase-network-guard.js`.
|
||||
Tests and operator tooling are source and control-plane inputs; they are
|
||||
not production runtime files, and sharing a Git commit with the runtime does not make them part of
|
||||
it.
|
||||
|
||||
@@ -121,12 +123,13 @@ activation boundary must then:
|
||||
validates payment and environment configuration only. It connects to neither PostgreSQL nor either
|
||||
RPC, so it does not replace database, daemon, or wallet health checks.
|
||||
|
||||
The clone runner is deliberately non-activating. Production activation uses the separately reviewed,
|
||||
default-closed `wowngeon_release_activate` role in the fleet control-plane repository. Do not
|
||||
substitute manual extraction, dependency installation, service commands, or a hand-written `current`
|
||||
switch. That role refuses activation until the matching clone-validation receipt, wallet-promotion
|
||||
receipt, drain and audit gates, literal hashes, and rollback target all satisfy the contract in the
|
||||
fleet runbook `RUNBOOK-wowngeon.md`.
|
||||
The clone runner is deliberately non-activating. Fleet retired `wowngeon_release_activate` on
|
||||
2026-09-10, and there is no repeatable operated-application activation lane today. Its remaining
|
||||
one-shot Wownerogue cutover finishes stopped with ingress closed. Consult Fleet's
|
||||
`playbooks/WOWNGEON.md` and `RUNBOOK-wowngeon.md` for current capabilities. A reviewed successor must
|
||||
bind the exact migration, financial, predecessor compatibility, and recovery evidence before a
|
||||
live update. Do not substitute manual extraction, dependency installation, service commands, or a
|
||||
hand-written `current` switch for that missing capability.
|
||||
|
||||
## Source and operations boundary
|
||||
|
||||
@@ -136,7 +139,10 @@ source-tree deployment scripts nor fleet tools are copied beneath the applicatio
|
||||
A runtime artifact hash attests nothing about a separately delivered operations file; record and
|
||||
verify an independent hash for every such file in the fleet change plan.
|
||||
|
||||
## Activation and rollback gate
|
||||
## Activation and rollback requirements
|
||||
|
||||
These are requirements for a future reviewed Fleet transaction, not an executable deployment
|
||||
procedure. An artifact or clone-validation receipt cannot activate an operated instance.
|
||||
|
||||
Drain public ingress and require zero active and queued games. Take and validate fresh dumps, and run
|
||||
the financial audit before and after stopping only the affected app. Preserve and validate the exact
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: Local multiplayer lifecycle rehearsal
|
||||
status: active
|
||||
updated: 2026-10-21
|
||||
owner: Wowngeon
|
||||
type: testing-guide
|
||||
---
|
||||
|
||||
# Local multiplayer lifecycle rehearsal
|
||||
|
||||
Run `npm run test:showcase-lifecycle` from `src/` on the Linux developer workstation. It needs the repository's installed npm dependencies, PostgreSQL `initdb` and `pg_ctl` binaries, and the cached Playwright Chromium browser. It does not install dependencies or contact production services.
|
||||
|
||||
The runner starts a fresh PostgreSQL cluster using a private Unix socket under its output directory, runs the actual application and migrations with anonymous browser sessions, then opens two isolated browser contexts. It drives the real free queue through the existing simulated block source, whose normal fixture cadence is 30 seconds, completes an Escape Race through keyboard movement, and verifies the persisted zero-fee result and empty financial ledgers. Payments, payouts, wallet RPC setup, and external browser egress are disabled.
|
||||
|
||||
Each run creates a new mode-0700 directory under `~/Build/wowngeon/showcase-lifecycle/`; it never overwrites earlier evidence. Pass `--output-root PATH` to choose another private output root, using only letters, digits, slash, dot, underscore, or hyphen. The run report includes screenshot paths and sanitized match metadata. Browser cookies, session tokens, profiles, wallet state, and database contents are not copied into the report.
|
||||
|
||||
## Acceptance checklist
|
||||
|
||||
- [ ] The actual queue, simulated-block scheduler and countdown start both clients.
|
||||
- [ ] Keyboard input reaches the authoritative exit and the database records the result.
|
||||
- [ ] The client returns to Tavern and financial ledgers remain empty.
|
||||
- [ ] No external request, browser error or unexpected HTTP failure occurs.
|
||||
- [ ] The application and disposable PostgreSQL server stop after the run.
|
||||
|
||||
This is a local source rehearsal. Installed-wallet and deployed acceptance remain separate in
|
||||
[Showcase qualification](SHOWCASE_QUALIFICATION.md).
|
||||
@@ -39,6 +39,11 @@ state hashes for the same seed. The capture imports the actual match engine but
|
||||
players. It does not qualify the deployed scheduler, queue UI, account restoration, or Tavern-to-match
|
||||
navigation.
|
||||
|
||||
For a fresh PostgreSQL cluster and the actual application entrypoint, run the two-browser
|
||||
[local lifecycle rehearsal](SHOWCASE_LIFECYCLE_SMOKE.md). It covers the free queue, real scheduler
|
||||
and countdown, keyboard-driven Escape Race, persisted result, and return to Tavern. It uses the
|
||||
local simulated-block source and has no wallet or payment authority.
|
||||
|
||||
## Smirk checkout contract
|
||||
|
||||
Invoice delivery and reconnect restoration never open a wallet prompt. The user first sees the
|
||||
|
||||
Reference in New Issue
Block a user