Files

66 lines
4.3 KiB
Markdown

# Queue 71: in-client update notification and restart handoff
The implementation adds an asynchronous signature check to the owned Backend,
exposed through two additional numeric actions on the existing C_Login registration.
It does not allocate a foreign Lua namespace in native code. The owned glue adapter
provides C_OctoUpdate.GetState and ApplyAndRestart using that established boundary.
The worker reads the client-root OctoUpdater.cfg with the same parser now used by
OctoUpdater. It checks on the first glue poll and 15 minutes after each completed
check. HTTP 200 plus two equal nonempty signatures means current; unequal signatures
mean pending. Missing/empty local data, a missing backend, failed HTTP, or unreadable
config-derived URL remain unknown. The signature is a notification hint, not a claim
that all updates are installed. OctoUpdater retains all authenticity verification.
The worker holds its module reference until it exits and never invokes Lua.
The native-look button uses the selected 70334 GlueButtonTemplate (FDID 5613054),
and OptionsFontLarge from selected shared glue fonts (7443190). It appears on login
or character selection only. The glue loader may precede its XML frames: creation
is deferred until GlueParent exists. Confirmation is required. The launch API
returns success only after CreateProcess succeeds; only then does the adapter call
the original ForceQuit. Missing ForceQuit or launch failure does not quit the client.
OctoUpdater receives --launch --wait-pid <client pid>. The new CLI handles these
before any installation or folder mutation. It waits at most 60 seconds for that
specific process, accepting an already-exited PID, and stops without installing or
relaunching if the wait fails. Explicit --no-launch still wins. Updater-only options
are removed before game launch. A separate review found that the old updater cached a newly downloaded signature
before installation. That can falsely hide pending updates after --check, a running
client skip or failed application. Cache publication now occurs only after a completed
non-check processing pass; signature is written last. The regression failed on the
old early-write ordering and passes success, empty, check, skip, first/partial failure
and maintenance-failure controls. Previously written cache pairs can still be ahead
of installed state; this byte-comparison feature does not retroactively prove them.
The ordinary updater verification and rollback paths remain in use.
## Evidence and limits
The state/config checks pass for equal, changed, missing, empty and failed fetch
results, plus launch precedence. The new feature had no header/API before the change;
the initial compilation failure is an implementation-availability check, not a
reproduced gameplay bug. Lua fixtures pass confirmation, failed launch, quit ordering,
missing providers and delayed root creation. The existing numeric dispatcher fixture
passes its prior cancellation checks plus actions 14/15 and invalid arguments.
Host service compilation, Windows service compile/link and the production C_Login
binding unit compile pass. Curie's updater CLI test exercises the actual parser and
wait functions with deterministic process results; its separate Windows updater
build also passed. Those accepted results are reused, not rerun. No whole regression
gate, client execution or live acceptance is claimed here.
The private composition in build/updater71/GlueParent.after.lua appends only owned
code to the selected signed d450 GlueParent FDID 5612385. Its full Lua syntax passes.
Only owned code and hashes are committed; original client payloads remain private.
Use ops/prepare_client_update_glue.py on the selected release parent's original
GlueParent, then the established STORE composition/readback/rollback pipeline.
This prepared file is not itself a published STORE step.
## Integration
Ship rebuilt Backend and Bridge, the updated OctoUpdater.exe, and the glue content
together. An older updater does not understand the wait/launch handoff. No codec or
server changes are needed. Claude owns integration, gate, signing, client installation,
content packaging and release. Verify pending and current states, cancellation,
launch failure, clean exit followed by verified installation and relaunch on LOCAL,
including Proton. No client was installed, launched or terminated by this work.