Skip to content

Improve stale session forensics and question recovery#494

Merged
dmoliveira merged 1 commit intomainfrom
improve/runtime-hardening-20260315
Mar 15, 2026
Merged

Improve stale session forensics and question recovery#494
dmoliveira merged 1 commit intomainfrom
improve/runtime-hardening-20260315

Conversation

@dmoliveira
Copy link
Owner

Summary

  • prevent fresh question tool lifecycles from being prematurely recovered during idle session recovery while still cleaning up tracked question state on reply, completion, and error paths
  • expose richer /session doctor stale forensics with derived cause codes/summaries for stuck and generic stale findings, and normalize the output for easier debugging
  • ignore generated gateway-core tarballs and extend selftests to cover the new stale recovery and forensic reporting behavior

Validation

  • python3 -m py_compile scripts/session_command.py scripts/selftest.py
  • python3 scripts/selftest.py
  • npm --prefix plugin/gateway-core run build
  • node --test plugin/gateway-core/test/session-recovery-hook.test.mjs
  • npm --prefix plugin/gateway-core run lint

@dmoliveira dmoliveira merged commit 119ce66 into main Mar 15, 2026
1 check 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