Skip to content

fix(bots): restore context after delegated thread completion - #1494

Merged
nixuuu merged 2 commits into
devfrom
fix/bot-instruction-adherence
Nov 29, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/bot-instruction-adherence

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Trace completed local thread delegations to the owner request, routine or event trigger that started them. Give verified continuations read-only access to current procedures and restore the private chat context for owner requests.
  • Tell bots to check the scope of a failed action before reporting a denial and continue any authorized work that can proceed. Refresh existing native sessions when the gateway's approval or external conversation instructions change.
  • Cover a procedure revised while a delegation runs and verify that a delegation originating from another bot cannot retrieve private procedures or chat history.

Fixes: #1391

Verification

  • 47 local integration tests passed across thread notices, bot skills, event triggers, parked interactions, approval review, instruction refresh and bot memory.
  • Gateway typecheck, lint on the changed TypeScript files and whitespace checks passed.
  • Repository-wide verification runs in GitHub CI.

Follow-up

A separate two-worker test reproduced stale native context when a bot returns to its original worker after receiving messages on another worker. That case requires synchronizing the resumed session with the gateway transcript.

Verify local thread completion provenance before restoring private conversation context and read-only access to saved procedures. Refresh existing bot sessions when the gateway approval or messenger instructions change.

Fixes: #1391
@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 22:10
@nixuuu
nixuuu merged commit 7064445 into dev Nov 29, 2026
24 checks passed
@nixuuu
nixuuu deleted the fix/bot-instruction-adherence branch November 29, 2026 22:25
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