Skip to content

fix: fail closed on corrupt clients.json and switch on ensure - #55

Merged
SoryAK merged 1 commit into
mainfrom
fix/fail-closed-clients
Sep 20, 2026
Merged

SoryAK merged 1 commit into
mainfrom
fix/fail-closed-clients

Conversation

@SoryAK

@SoryAK SoryAK commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Corrupt clients.json is no longer treated as empty. Add/remove, connect, and stage refuse (503) instead of overwriting or using the wrong envelope. mba status shows clients.json blocked.
  • When MBA_MODEL_SWITCH=on, mba models ensure stops the guest-book occupant on the switch port (and any entry already serving that file), then boots. Default remains off.

Test plan

  • npm run typecheck plus clients, connect, status, and ensure route tests
  • CI test required check

Made with Cursor

Garbage clients.json no longer looks like an empty catalog, so connect
and writes refuse instead of clobbering. Armed ensure stops the occupant
on the switch port, then boots the requested model.
@SoryAK
SoryAK merged commit 2de4c13 into main Sep 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant