fix(agent): optimize dflash stall recovery telemetry - #35694
Conversation
|
Review result: approve (non-blocking suggestions) Reviewed PR #35694 ( Key strengths
Suggestions (all non-blocking)
|
a5f508a to
141489d
Compare
Rebased onto upstream/main as a single commit to refresh PR NousResearch#35694.
141489d to
147369f
Compare
|
Rebased and refreshed this upstream mirror at head Current state:
I attempted the actual merge through |
|
Closing as a redundant intermediate of a cumulative stack. These PRs form a stack where each is a strict superset of the previous: #35632 ⊂ #35673 ⊂ #35694 ⊂ #35698 ⊂ #35702. Both ends have now been refreshed onto current |
What changed
dflashmodel alias.hard_stop_enabledis explicitly enabled.Why
The dflash retry path now recovers most no-tool-call stalls, but live agent sessions still showed avoidable turn churn. A recent trace also showed low-information terminal guardrails ending an interactive turn too aggressively. This patch reduces the initial stall frequency for the local alias, makes retry outcomes measurable, and lets guardrail redirects steer the model without prematurely finalizing the turn.
How to Review
Review
agent/stall_retry.pyfor telemetry and retry nudge behavior,agent/conversation_loop.pyfor result summaries,agent/prompt_builder.pyfor thedflashprompt-guidance match, andagent/tool_guardrails.pyfor the hard-stop gate on low-information redirects.Evidence
scripts/run_tests.sh tests/run_agent/test_run_agent.py tests/run_agent/test_tool_call_guardrail_runtime.py tests/agent/test_stall_retry.py tests/agent/test_tool_guardrails.py tests/agent/test_prompt_builder.py -- -qpassed: 529 tests, 0 failed.git diff --checkpassed with rc=0.python -m py_compile agent/stall_retry.py agent/conversation_loop.py agent/prompt_builder.py agent/tool_guardrails.py hermes_cli/config.pypassed with rc=0.Verification
Risks / Gaps
Collaborators
Participants: Omar, Codex.
Process: Derived from live Hermes/dflash MeshBoard traces and validated with focused regression coverage plus the broader main-loop test file.
Task context: MeshBoard task
hermes-dflash-stall-optimization-pass.Related work: Fork mirror PR OmarB97#37.