← Back to Pull requests

feat(session): implement ephemeral workspaces (Epic #85) #35

Closed
unknown closed this pull request without merging on Jun 07, 2026 19:48 UTC
View on GitHub
unknown unknown commented on Jun 04, 2026 11:17 UTC
Author

Epic devguyio-bot-squad/may-team-team#85 — Ephemeral workspaces

Implements the session-based workspace model for BotMinter, replacing permanent mutable workspaces with ephemeral, isolated workspaces created on demand.

Stories covered

  • devguyio-bot-squad/may-team-team#87 — Start ephemeral sessions (session registry, lifecycle, workspace hydration, CLI spawn+wait, daemon client, status display, push workflow, deactivation)

  • devguyio-bot-squad/may-team-team#88 — Stop sessions and preserve work (finalization categorization, deactivation/recovery, CLI stop variants, finalization agent, retrigger)

  • devguyio-bot-squad/may-team-team#89 — Observe, inspect, and manage sessions (CLI status/history, inspection/cleanup, retention policy, terminal listing, daemon recovery/GC, finalization types)

  • devguyio-bot-squad/may-team-team#90 — Migrate to session model (migration skill, documentation updates)
  • Key changes

  • Session registry and core data model

  • Session lifecycle and agent management

  • Workspace hydration via RepoSource trait

  • CLI commands: spawn+wait, stop, status, history, inspect, cleanup

  • Daemon startup recovery and GC cycle

  • Retention policy evaluation

  • Finalization subsystem (categorization, agent launch, recovery, retrigger)

  • Migration skill replacing bm teams sync

  • E2E test updates for session-based flow

  • Documentation updates for session model
  • Resolves devguyio-bot-squad/may-team-team#85

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Full session subsystem: ephemeral session workspaces, start/stop/list/inspect/history APIs, retention/cleanup, finalization workflow, session registry/manager, workspace hydration, git-state/dirty-state inspection, and agent spawn/control with signal forwarding.

    CLI
    bm status --json and richer Sessions output; chat/meeting now run via daemon sessions and propagate agent exit codes.

    Removed
    bm teams sync removed; now errors with migration guidance to bm minty and bm start.

    Documentation
    Docs updated to the session-based workspace model and migration guidance.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 285 lines (+213 / -72) across 3 files Reviewer: devguyio Review duration: 4830m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 285 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #35"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%