Skip to content

Phase 7: finish manifest channel migration #4397

Description

@sandl99

Part of #3896.

Summary

Finish the messaging channel manifest migration by routing the remaining channel-specific lifecycle behavior through manifests, hooks, and shared helpers under src/lib/messaging.

This phase removes the last core assumptions about concrete Telegram, WeChat, Slack, Discord, and WhatsApp implementations so onboarding, diagnostics, policy planning, credential setup, rebuilds, snapshots, and runtime setup consume channel registry metadata and manifest-backed plans.

Scope

  • Add and complete manifest/applier hook phase coverage, channel metadata, and status helpers under src/lib/messaging.
  • Route health/status, policy preset, credential, rebuild, snapshot, diagnostics, and runtime setup call sites through manifest-backed channel registries.
  • Move Slack socket-mode gateway conflict/status handling and runtime deny-feedback behavior into Slack-owned hooks/manifests.
  • Move Telegram and Discord bridge health/status behavior into channel-owned hooks and manifest metadata.
  • Replace remaining WeChat-specific onboard/config plumbing with manifest-backed messaging config and shared validation paths.
  • Keep runtime preload source ownership in TypeScript channel runtime files and package the compiled preload JavaScript through the sandbox Docker build path.
  • Expand tests for hook phases, manifest metadata, plan validation, channel status, startup/runtime envs, runtime preload packaging, and CLI fixture stability.
  • Preserve intentional compatibility shims and migrations needed for existing sandbox registry/session state.

Acceptance Criteria

  • PR refactor(messaging): finish manifest channel migration #5338 completes this phase's implementation scope.
  • Core messaging flows resolve channel behavior from src/lib/messaging manifests, hooks, and shared helpers instead of hard-coded channel switch maps.
  • Runtime preload JavaScript is generated from TypeScript sources through the targeted preload compile path and is not maintained as separate runtime source.
  • Existing sandbox registry/session data remains compatible.
  • Targeted messaging tests, source-shape checks, type checks, hooks, and CI pass.
  • No user-facing channel behavior changes are introduced beyond manifest-backed diagnostics/status fidelity.

Activity

  1. added
    refactor
    VRDC
    on May 28, 2026
  2. changed the title [-][Messaging] Remove legacy scattered channel implementation[/-] [+]Phase 7: remove legacy scattered messaging implementation[/+] on May 28, 2026
  3. added
    area: messaging
    enhancement
    and removed on Jun 3, 2026
  4. removed
    enhancement
    on Jun 8, 2026
  5. changed the title [-]Phase 7: remove legacy scattered messaging implementation[/-] [+]Phase 7: finish manifest channel migration[/+] on Jun 15, 2026
  6. self-assigned this
    on Jun 15, 2026
  7. added a commit that references this issue on Jun 15, 2026
    ff6cfde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

VRDCarea: messagingrefactor

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions