You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test-stack-up.sh: an app started by mxcli run --local always reads APP_OWNERSHIP=unverified, so journey-runner refuses the documented local loop #160
project-bin/test-stack-up.sh proves that a serving port is this project's only one way: through a Docker container under <project>/.docker (owned_app_port, ~l.131; find_app_port, ~l.161-177). An app started by mxcli run --local is the documented local loop, and it has no such container. The port is found by scan and recorded as APP_OWNERSHIP=unverified in stack.env. The harness then refuses it unless the port is asserted by hand (ALLOW_UNVERIFIED_APP=1 / APP_PORT=…), on every run.
Every journey run in the project needed APP_PORT=8080 asserted by hand. There is a register ruling for it.
The proof of ownership was available all along. The runtime's java process runs runtimelauncher.jar <project>/app/deployment (read from /proc/<pid>/cmdline), which names this project's own deployment directory.
Suggested fix
In find_app_port (or owned_app_port), after the container check, accept a second proof:
Find the PID listening on the candidate port:
Linux: ss -ltnp or /proc/net/tcp → inode → /proc/*/fd;
macOS: lsof -nP -iTCP:<port> -sTCP:LISTEN.
Read its command line:
Linux: /proc/<pid>/cmdline;
macOS/Git Bash: ps -o args= -p <pid>.
Record APP_OWNERSHIP=verified only when the command line runs runtimelauncher.jar and its argument resolves (realpath) to this project's deployment directory. Check both layouts: <root>/deployment and <root>/app/deployment on a two-tree checkout.
Otherwise it stays unverified, as today.
Filed rather than fixed because the field-proof bar needs a run against a live run --local app on each platform. test-stack-up.sh also probes the port over HTTP, which could not be done against the field app from this session.
Fixed by #319, which landed on master in the integration squash #329 (commit 31e90ae) after independent review. Closing; reopen if it still reproduces on master.
Activity
Merge #319: test-stack-up verifies run --local by its command line; s…
MendixMau commentedon Oct 14, 2026
Fixed by #319, which landed on master in the integration squash #329 (commit 31e90ae) after independent review. Closing; reopen if it still reproduces on master.
Generated by Claude Code