DEJAN's red/blue team evaluation loop pairs a Red Team writer agent that crafts natural, contextually grounded articles containing a target backlink against an adversarial Blue Team detector agent that analyzes the draft blind to identify the commercial link, automatically discarding drafts that fail detection, contain broken citations, or reference restricted domains.

sequenceDiagram
    autonumber
    participant Red as Red Team Writer
    participant Prune as Dead-Link Pruner
    participant Ban as Policy Filter
    participant Blue as Blue Team Detector
    participant Lib as Content Library
    participant Fold as Folded Queue

    Red->>Prune: Draft with target link
    alt Broken Citations Found
        Prune->>Prune: Unwrap URLs to text
    end
    Prune->>Ban: Cleaned draft
    alt Banned Domain Present
        Ban->>Fold: Drop draft (banned-link)
    else Policy Clean
        Ban->>Blue: Blind review draft
        alt Target Link Detected
            Blue->>Fold: Drop draft (detected)
        else Missing Target Link
            Blue->>Fold: Drop draft (no-link)
        else Undetected and Natural
            Blue->>Lib: Save draft (passed)
        end
    end