# CopyStage Independent 4x25 AI Quality Gate Specification

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

## Four 25-Point Dimensions
1. **`facts` (25 pts)**: Flags metric, currency, percentage, and launch claims lacking alignment with verified product facts, cited facts, or linked corpus items (14/25 warn).
2. **`human_voice` (25 pts)**: Deducts -6 per AI cliché pattern, -4 for >=3 exclamation marks, and -4 for >=4 stacked hashtags (warns below 16/25).
3. **`originality` (25 pts)**: Computes NFC-normalized 3-character Jaccard similarity against recent posts on the same account; >=45% warns (12/25), >=72% hard blocks (0/25).
4. **`persona_guard` (25 pts)**: Runs secret/proxy safety scanning, X weighted length & media validation, and account `tabooPhrases` hard blocks (0/25).

## Example QualityGateReport Schema Shape
```json
{
  "score": 88,
  "minScore": 75,
  "verdict": "pass",
  "hardBlocked": false,
  "summary": "Quality Gate passed (88/100, threshold 75)",
  "dimensions": [
    {
      "key": "facts",
      "label": "Fact Grounding",
      "score": 25,
      "maxScore": 25,
      "status": "pass",
      "findings": ["Matched verified product facts and linked reference corpus"]
    },
    {
      "key": "human_voice",
      "label": "Human Voice & Anti-Cliche",
      "score": 25,
      "maxScore": 25,
      "status": "pass",
      "findings": ["Natural editorial cadence with zero detected AI cliches"]
    },
    {
      "key": "originality",
      "label": "Historical Originality",
      "score": 13,
      "maxScore": 25,
      "status": "pass",
      "findings": ["38% trigram overlap with recent account posts (below 45% warn)"]
    },
    {
      "key": "persona_guard",
      "label": "Persona & Safety Guard",
      "score": 25,
      "maxScore": 25,
      "status": "pass",
      "findings": ["Valid X weighted length, zero leaked secrets, zero taboo hits"]
    }
  ],
  "evaluatedAt": "2026-11-22T09:00:00.000Z"
}
```

## Questions & Answers
### Why are Quality Gate dimensions scored independently at 25 points each?
A single blended LLM prompt score hides specific failures like ungrounded revenue claims or repetitive phrasing. Splitting evaluation into four explicit 25-point dimensions—facts, human_voice, originality, and persona_guard—exposes exact findings on every draft card and enables deterministic hard blocks.

### How does trigram Jaccard deduplication block repetitive account posts?
The originality evaluator normalizes text to NFC, replaces URLs with a uniform token, builds contiguous 3-character windows across the draft, and measures Jaccard overlap against recent published and queued texts on the same account. Similarity at or above 45% deducts points with a warning; 72% or higher drops originality to 0 and triggers a hard block.

### Which secrets and network strings does the Content Safety Scanner block before queuing?
The safety scanner intercepts API keys (sk-..., ghp_/gho_/..., AKIA...), CopyStage node tokens (cs_ext_...), Bearer tokens, database/proxy connection URIs, basic-auth proxy URLs, raw IP:port addresses, and .localhost or private LAN IP strings.

### Does a high total score override a hard block from persona_guard or originality?
When either originality hits >=72% overlap or persona_guard detects a secret, invalid X segment length, or account taboo phrase, that dimension status becomes block and sets hardBlocked = true on the QualityGateReport regardless of other dimension scores.

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