@@ -152,6 +152,12 @@ unreadable command line in the approved proxy's supervision chain (or surviving
152152stopped manager) leaves wrapper ownership unknown, so the guarded stop cannot report success.
153153Missing or unreadable evidence blocks the guarded stop.
154154
155+ New runtime records include the bound hostname. For older records that omit it, a guarded
156+ stop accepts the discovered default loopback address only when the remaining approval and
157+ ownership checks agree. An omitted hostname cannot independently prove the listener's bind
158+ scope. When the record contains a hostname, it must match the approved value exactly;
159+ wildcard and loopback binds remain distinct.
160+
155161### ` ocx restart `
156162
157163When this CLI is newer than an attested standalone POSIX proxy, restart can stop the old
@@ -318,6 +324,33 @@ restart the proxy using the intended current installation; for a background serv
318324or resolve ` PATH ` to the intended installation. These diagnostics do not repair the service or
319325change whether requests are allowed.
320326
327+ If an update restart reports a blank hostname in the runtime record, it leaves the proxy running.
328+ Use ` ocx status ` and ` ocx service status ` as clues, not proof of ownership or the actual bind.
329+ Once ownership is verified, for a service use the owning installation's ` ocx service restart ` ;
330+ for Desktop, use the app; for a foreground proxy, use its terminal. A standalone proxy started by ` ocx ensure ` may be
331+ detached and have no terminal:
332+
333+ 1 . Independently verify the process identity, installation, home, supervisor and actual listening
334+ address and port. Use OS process and listener inspection with sufficient permissions; check
335+ IPv4, IPv6 and wildcard listeners as applicable. A PID alone can be reused, and missing or
336+ incomplete inspection results do not prove ownership or absence. For example, on macOS or
337+ Linux where ` lsof ` is available, ` ps -p <pid> -o pid=,ppid=,args= ` and
338+ ` lsof -nP -iTCP:<port> -sTCP:LISTEN ` provide process and listener clues. They do not by
339+ themselves establish the home, supervisor, or complete visibility; use the appropriate OS
340+ tools and permissions to verify those separately.
341+ 2 . Only if those facts are verified and forced termination is acceptable, the owner can run
342+ ` ocx stop ` from the owning installation and home. It tries a graceful stop first, but may
343+ fall back to forced termination if that fails; it can also refuse, including when the blank
344+ hostname prevents guarded ownership verification. Do not bypass a refusal.
345+ 3 . Independently confirm the identified process has exited, no supervisor will restart it,
346+ and the intended address and port are free. A successful stop or a status result alone is
347+ not proof of all three. Once confirmed, run ` ocx start ` from the intended installation and
348+ home with the intended bind and port settings; a successful start regenerates the record.
349+
350+ If any check is incomplete, the stop fails or is refused, or forced termination is unacceptable,
351+ stop and ask the owner or administrator to investigate. Do not edit the runtime record or kill
352+ unrelated processes. Retry the update restart if needed after the new proxy is running.
353+
321354Identical version strings and the ` unknown ` / ` 0.0.0 ` placeholders suppress the warning, as does
322355an absent proxy version. Doctor does not report placeholders as a confirmed match. Different
323356strings still produce a neutral warning when they cannot be strictly parsed as SemVer or differ
0 commit comments