Skip to content

feat: multi-tenant Phase 5 — ras-session (SessionManager/Handle/Provider) - #57

Merged
KeyCode17 merged 3 commits into
developfrom
feat/mt-phase5-session
May 30, 2026
Merged

KeyCode17 merged 3 commits into
developfrom
feat/mt-phase5-session

Conversation

@KeyCode17

Copy link
Copy Markdown
Owner

Summary

Capstone of the multi-tenant tier: the optional ras-session crate ties contexts + tabs + per-session events + bound agents into a managed session per tenant.

  • BrowserProvider trait + SharedBrowserProvider (one browser, context-per-session); swap for process-per-tenant.
  • SessionManager<Owner>: spawn/get/list, bounded (max_sessions + OnFull::Reject|EvictOldest), one-session-per-owner (reuse unless allow_multi_per_owner), background idle reaper.
  • SessionHandle (non-generic via an object-safe registry trait): events() (per-session bus), run(task) with a one-active-task CAS guard (SessionError::Busy) wired to RunAgent::with_target, close() releases the context.
  • Bump 3.5.0 → 3.6.0.

Test Plan

  • cargo test -p ras-session — 13 pass (spawn/max/on_full/one-per-owner/get/list/close + deterministic idle-reaper). cargo build --workspace + cargo test --workspace green; clippy clean; hooks green.

Scope

No async Drop in Rust → abandoned sessions reclaimed by the reaper (explicit close() + idle eviction). Busy enforced by CAS (code-level; full agent-run test needs LLM creds → manual integration).

🤖 Generated with Claude Code

KeyCode17 and others added 3 commits May 30, 2026 09:46
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…eaper/busy)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@KeyCode17
KeyCode17 merged commit 5e0551e into develop May 30, 2026
7 checks 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