# CopyStage Dual DeliveryDriver Architecture

Canonical URL: https://copystage.com/delivery/
Updated: 2026-11-29

## Two Parallel Delivery Drivers
1. **`browser_extension` (Phase 1 Built — WXT 0.21.5 + React 19 Chrome MV3 v0.2.0)**:
   - Runs copy and static media injection inside Chromium `ISOLATED` world using synthetic `ClipboardEvent('paste')` and `DataTransfer`.
   - Zero `web_accessible_resources` and zero `debugger` permission.
   - Includes `semi_auto` (pauses at `awaiting_human_confirm`) and `full_auto` runner modes. Both stay inside internal X validation. The Multi-Profile Node Launcher covers profile orchestration for regular Chrome, Moordeck, BitBrowser, and AdsPower.
2. **`official_oauth` (Later milestone, after commercial availability opens)**:
   - Specifies cloud-scheduled publishing on X, LinkedIn, and YouTube sharing identical drafts, Quality Gates, and receipt tables for a later zero-extension single-account path.

## Local Multi-Profile Launcher
```bash
# Poll workspace wake-check every 45s across a 30-minute lookahead window
copystage-launcher \
  --server-url https://copystage.com \
  --config ./nodes.json \
  --horizon-minutes 30 \
  --watch \
  --close-idle
```

## Questions & Answers
### Why does the Chrome MV3 extension run text and media injection in the ISOLATED world?
Running DOM automation inside Chromium ISOLATED world with zero web_accessible_resources and zero chrome.debugger permissions prevents page scripts from probing extension internals, preserves the user system clipboard via synthetic DataTransfer paste events, and avoids injecting detectable floating overlays during automated runs.

### Why support both browser_extension and planned official_oauth drivers?
The browser_extension design covers platforms without open personal publishing APIs (such as Xiaohongshu and personal WeChat Official Accounts), avoids expensive link-post API surcharges, and can pair with multi-profile browsers. Planned official_oauth is a later single-account cloud schedule on X, LinkedIn, and YouTube after commercial availability opens.

### How does the Multi-Profile Node Launcher coordinate local browser profiles?
The Multi-Profile Node Launcher polls the workspace wake-check endpoint across a configurable lookahead horizon (1 to 1440 minutes, default 30). When tasks approach their scheduled window, it wakes Moordeck (via profile lease APIs), BitBrowser, or AdsPower profiles on demand and optionally releases idle sessions via --close-idle.

### What is semi_auto execution mode inside CopyStage?
In semi_auto mode, the Chrome runner opens the composer, verifies the logged-in @handle, injects text, thread segments, images, and native schedule values, and then pauses in awaiting_human_confirm so the operator performs the final click with complete visual verification.

## Public Status
CopyStage is in pre-launch validation. This public site documents the 2026-11-22 five-module specification snapshot. The internal workbench and browser runner are being validated on X. Additional publishers, official OAuth delivery, and commercial availability remain later milestones.

Content updated: 2026-11-29. Specification snapshot: 2026-11-22.
