# CopyStage Phase 1 Flagship: X (Twitter) Operations

Canonical URL: https://copystage.com/platforms/x/
Updated: 2026-11-29 | Status: Phase 1 repository build, internal X validation in progress

## Core Capabilities
- **Formats & Media**: Single posts, 1-25 segment threads, and 1-4 static images per segment (PNG, JPEG, WEBP up to 5 MB each, verified `may_publish = true`).
- **Weighted Counter**: Unicode NFC normalization, `Intl.Segmenter` grapheme segmentation, CJK & emoji weight 2, URL fixed weight 23, 280 standard vs 25,000 Premium limit, Unicode noncharacter rejection.
- **Delivery Strategies**: `x_native_schedule` (default for <=280 single posts, reads confirmation text so the browser closes immediately) and `immediate` (threads, Premium long posts, publish-now).
- **Identity & Receipts**: Pre-fill `@handle` verification plus ephemeral nonce `MAIN`-world interception of `CreateTweet` / `CreateScheduledTweet` recording `root_rest_id`, `tweet_url`, `scheduled_readback`, and complete `thread_urls_json`.
- **X Thread Clipping**: Chrome MV3 extension captures complete same-author X threads into the isolated Reference Corpus (`may_publish = false`).

## Weighted Measurement Summary
```javascript
// CopyStage X Weighted Length Rules
// 1. Normalize input to Unicode NFC and segment graphemes via Intl.Segmenter
// 2. Replace valid http(s):// URLs with fixed weight = 23
// 3. Score ASCII/Latin code points as 1; CJK & extended pictographic emojis as 2
// 4. Reject Unicode noncharacters (U+FDD0..U+FDEF, *FFFE, *FFFF)
// 5. Enforce 280 weighted chars (Standard) or 25,000 (Premium); 1-4 static images
```

## Receipt Payload Contract
```json
{
  "leaseGeneration": 4,
  "idempotencyKey": "ext_task_01JCS8P4_4",
  "receiptKind": "native_scheduled_confirmation",
  "rootRestId": "1894012345678901234",
  "tweetUrl": null,
  "scheduledReadback": "Will send on Tue, Nov 24, 2026 at 9:30 AM",
  "threadUrls": [],
  "rawEvidence": {
    "graphqlOperation": "CreateScheduledTweet",
    "observedXHandle": "@founder_handle"
  }
}
```

## Questions & Answers
### How does CopyStage compute X weighted character limits?
The X Weighted Length Validator normalizes text to Unicode NFC, iterates grapheme clusters with Intl.Segmenter, counts CJK characters and extended pictographic emojis as weight 2, scores any valid http/https URL as a fixed 23-character weight, enforces a 280-weight limit for standard accounts or 25,000 for Premium accounts, and rejects illegal Unicode noncharacters.

### When does X delivery choose x_native_schedule versus immediate?
Single posts within the standard 280-weight limit default to x_native_schedule, writing the post and target wall-clock time directly into X web native scheduling and verifying the confirmation readback so the browser profile can close right away. Multi-segment threads (2-25 segments), Premium long posts, and publish-now triggers route through immediate delivery.

### How does the Chrome runner avoid posting to the wrong X account?
Before injecting a single character or image into the composer, the extension inspects the active X page to verify the logged-in @handle matches the task target account. Any identity mismatch, logged-out screen, or security challenge immediately halts execution and logs an explicit diagnostic state.

### How are verifiable tweet URLs and thread URLs captured?
Right before submission clicks execute, an ephemeral nonce-scoped MAIN-world listener intercepts X GraphQL CreateTweet and CreateScheduledTweet responses to extract root_rest_id, canonical tweet_url, scheduled_readback text, and complete thread_urls_json arrays.

## 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.
