feat: harden model library + worker reconnect lifecycle and fix compose GUI backend#8
Merged
rwilliamspbg-ops merged 1 commit intoJun 23, 2026
Conversation
…I backend - add persistent model library index and local/HuggingFace registration support\n- improve HF loading/download behavior and argument handling\n- add worker join/leave/reconnect lifecycle operations with secure re-handshake\n- implement slice cache re-share/failover path to avoid inference interruption\n- fix secure worker manifest handling, encrypted execution compatibility, and IO payload flow\n- correct deterministic key derivation for secure controller/worker interoperability\n- replace fragile slice serialization with shape-safe NPZ transport + compatibility fallback\n- add worker lifecycle regression tests and expand model loader download tests\n- adjust metrics aggregation determinism and stabilize noisy throughput test threshold\n- wire docker compose services to real runnable backend processes for local GUI verification\n- add lightweight mock backend API for GUI endpoints on compose main stack\n\nValidation:\n- full test suite: 84 passed, 4 skipped\n- targeted tests after compose/backend edits: tests/test_models.py, tests/test_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR now includes full real GUI/API wiring, model lifecycle hardening, worker lifecycle resilience, and compose/CI verification improvements.
Scope
What Changed
Real GUI Wiring
mohawk_gui/main_window.py.Controller Service (GUI Backend)
prototype/controller_service.pywith in-memory state and endpoints:GET /healthGET /api/modelsPOST /api/models/loadPOST /api/models/downloadGET /api/workersPOST /api/workers/addPOST /api/workers/connectPOST /api/queuePOST /api/inference/chatGET /api/metricsGET /api/sessionsPOST /api/sessions/{session_id}/cancelPOST /api/security/jwt/refreshPOST /api/security/pqc/enableModel + Worker Hardening
Compose and Docker Wiring
CI / Verification
Tests and Validation
87 passed, 4 skippedtests/test_controller_service.py(all passing)docker compose -f docker-compose.yml configdocker compose -f docker-compose.dev.yml configNotes for Reviewers
Primary files to review:
mohawk_gui/main_window.pyprototype/controller_service.pytests/test_controller_service.pydocker-compose.ymldocker-compose.dev.yml.github/workflows/ci.ymlRisk