fix: harden runtime API and simulation handling#718
Conversation
|
Note 🤖 Automated maintainer response — Generated by the MiroFish triage agent and checked against Reviewed against current main. The Zep 400-character query cap in this PR has now landed through #740 at the shared service boundary with regression tests for both graph search and profile enrichment. The provider configuration, IPC liveness, completed-state cleanup, initial-post handling, malformed JSON, BOM state, and psutil changes remain separate runtime work and have not been closed by #740. Please rebase and remove the now-duplicated Zep query change; this PR stays open for review of the remaining scope. |
2929097 to
690a6a2
Compare
|
Addressed in the force-updated head 690a6a2:
Validation after the rebase: backend 113 passed, frontend production build passed, and git diff --check passed. |
|
Note 🤖 Automated maintainer response — Generated by the MiroFish maintenance agent after reviewing this PR against Current The remaining provider request/header handling, IPC liveness, completed-state cleanup, initial-post behavior, malformed request handling, BOM state, and simulation UI changes are independent and remain eligible for review. Please rebase onto This PR stays open for the remaining runtime scope. |
690a6a2 to
d426d6b
Compare
|
Addressed in the force-updated head d426d6b:
Validation after the rebase: backend 133 passed, frontend production build passed, |
Summary
Fixes #717.
This PR hardens runtime paths that can break end-to-end runs when using OpenAI-compatible third-party providers and long-running dual-platform simulations:
psutilas a direct backend dependency because simulation liveness imports it directlyRebase notes
Rebased onto
main@60757b3cafter #742 merged.llm_client.pydelta is the provider-safeUser-Agentheader applied to the new fix: harden ontology JSON generation across LLM providers #742 client constructor. The graph API delta only makes malformed request bodies follow the existing validation path.The provider configuration, IPC liveness, state handling, initial-post handling, malformed JSON, BOM, and simulation action fixes remain independent changes in this PR.
Related context
Validation
uv run python -m pytest -q: 133 passednpm run build: passedgit diff --check origin/main...HEAD: passedorigin/mainverified as an ancestor of the rebased headThe frontend build still emits the existing warning about a large JS chunk and a module that is both statically and dynamically imported. The backend tests pass without failures.