Repository navigation
test(desktop): add agent stress diagnostics and resilience gauntlet - #9248
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7747c9009d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
7 issues found across 9 files
Confidence score: 2/5
- In
desktop/macos/scripts/stress_ptt_chat.py, the loopback check acceptshostname.startswith("127."), so values like127.evil.comcan route the automation bearer token to a non-local host; merging as-is risks credential exfiltration from the local trust boundary — tighten host validation to true loopback/IP parsing before merge. - In
desktop/macos/scripts/stress_ptt_chat.py, the early-return path truststerminal_reasoneven when the bridge payload reports failure (ok: false/error), which can misclassify failed runs as success and mask real regressions — gate success classification on explicit success fields and only accept terminal reasons from successful responses. - In
desktop/macos/scripts/stress_ptt_chat.py, type handling around JSONL fields and bridgeresult: nullis brittle, so malformed inputs can throwTypeErroror incorrectly pass validation, causing harness crashes or noisy/incorrect outcomes — add defensive type checks and null-safe parsing with explicit failure diagnostics before merging. - In
desktop/macos/scripts/agent-continuity-gauntlet-lib.py, resilience evidence/scoring is currently unreliable because forbidden-pattern reporting uses global trace data and the token self-check is tautological, which can produce misleading pass/fail signals — scope evidence to matched traces and replace the substring self-check with a non-tautological verification step.
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
7747c90 to
e0bbe16
Compare
There was a problem hiding this comment.
1 issue found across 10 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
d3f2a6d to
34ac803
Compare
34ac803 to
33f0cec
Compare
|
Monitor follow-up complete. Changed:
Verification passed:
|
Tighten realtime hub admission for very short PTT turns without rejecting clear short replies, and reject unexpected-language Gemini ask_higher_model tool calls before they hit the higher-model endpoint. Verification: - xcrun swift test --package-path Desktop --filter PushToTalkSpeechGateTests --jobs 1 - xcrun swift test --package-path Desktop --filter HubEscalationTests --jobs 1 - xcrun swift test --package-path Desktop --filter HubSystemInstructionTests --jobs 1 - TMPDIR=/tmp/omi-pr-9248-ptt-lang OMI_APP_NAME=omi-pr-9248-ptt-lang OMI_AUTOMATION_PORT=47949 ./run.sh --yolo
Add RealtimeHubTools.swift to the floating bar functional e2e coverage map so Desktop Swift CI recognizes the PTT realtime hub tool changes as covered. Verification: - python3 desktop/macos/scripts/check-e2e-flow-coverage.py --strict --base origin/main
Summary
stress_ptt_chat.pyplus Swift-side diagnostic models/tests for PTT, realtime, chat bridge, and subagent stress JSONL release gates.Review findings and fixes
ok:false/ action errors / unknown explicit reasons as forbidden failures, and covering the contract in tests.--require-scenariogates and documenting the release-candidate command requiring all four scenarios.--allow-remote-tokenis explicitly passed.--suite resiliencecannot go green while that bad-state path is uncovered.Verification
python3 -m py_compile desktop/macos/scripts/stress_ptt_chat.py- passedpython3 -m py_compile desktop/macos/scripts/agent-continuity-gauntlet-lib.py- passedpython3 desktop/macos/scripts/stress_ptt_chat.py --input-jsonl /tmp/omi-stress-pass.jsonl --require-scenario ptt_voiced --require-scenario ptt_silent --require-scenario chat_bridge --require-scenario subagent_launch- passed withpassed_release_gate: truepython3 desktop/macos/scripts/stress_ptt_chat.py --input-jsonl /tmp/omi-stress-fail.jsonl- failed as expected with exit 2 andaudio_frames_missingcd desktop/macos && ./scripts/agent-continuity-gauntlet.sh --self-check- passedcd desktop/macos && xcrun swift test --package-path Desktop --filter DesktopStressHarnessTests- passed, 7 testscd desktop/macos && xcrun swift test --package-path Desktop --filter AgentContinuityGauntletTests- passed, 5 testspython3 .github/scripts/desktop-changelog.py validate- passedpython3 .github/scripts/check-desktop-changelog.py --base origin/main --head HEAD- passedgit diff --check HEAD~1 HEAD- passedgit push -u origin codex/desktop-agent-stress-resilience-harness- pre-push hooks passed, including desktop Swift build; emitted existing/advisory warnings for the large gauntlet script/function and existing Swift warningsManual QA notes