Spam risk reviewer

Review campaign draft, list hygiene, and sender authentication signals before send-as preflight.

Overview

SKILL.md

spam-risk-reviewer

What this skill does

spam-risk-reviewer is a read-only pre-send judgment for outbound campaigns. It reviews a supplied campaign_draft, list_metadata, and sender_auth_posture, then emits a deterministic send_risk_verdict packet for a later governed send-as run to read during preflight.

The skill does not send messages, call a live provider, mint authority, change domain state, or emit runx.operational_proposal.v1. The only dispatch it names is a downstream send-as preflight target; the actual public_send effect stays owned by send-as under its own scope, gate, proof, and receipt trail.

When to use this skill

Use this skill before a governed campaign send when an operator needs a portable spam-risk decision from evidence already in hand. It is suitable for CI, review queues, and send-preflight graphs where the sender, list, and content digest are available as structured inputs.

Use it when the caller can provide:

  • campaign_draft.from, campaign_draft.subject, and campaign_draft.content_digest;
  • list_metadata.size, list_metadata.bounce_rate, list_metadata.complaint_rate, and list_metadata.freshness;
  • sender_auth_posture.spf_pass, sender_auth_posture.dkim_pass, sender_auth_posture.dmarc_pass, and sender_auth_posture.warm_up_days.

When not to use this skill

Do not use it as the final send authority or as proof that a mailbox provider accepted a campaign. Do not use it when the decision requires live ISP feedback, provider API state, recipient-level suppression checks, legal consent review, or creative rewriting. Those belong in separate governed skills or human review.

Do not pass secrets, SMTP credentials, recipient addresses, or raw message bodies. The skill expects metadata and a stable content digest, not deliverable content.

Procedure

  1. Confirm the draft identifies a sender, subject, and content digest.
  2. Confirm the list metadata includes size, bounce rate, complaint rate, and freshness days.
  3. Confirm the sender authentication posture includes SPF, DKIM, DMARC, and warm-up days.
  4. Compare the evidence to the local policy thresholds: bounce rate at or below 0.02, complaint rate at or below 0.001, freshness at or below 90 days, warm-up at least 14 days, and SPF/DKIM/DMARC all passing.
  5. Emit risk_level: pass, preflight_clear: true, and no blockers when every signal clears policy.
  6. Emit risk_level: hold, preflight_clear: false, concrete blockers, and a needs_human escalation when any signal is missing or outside policy.
  7. Bind the verdict to the named downstream send-as preflight surface only; never perform the send directly.

Edge cases and stop conditions

The skill returns a hold verdict when SPF, DKIM, or DMARC is false or missing; when bounce rate, complaint rate, freshness, or warm-up violates policy; when the campaign draft is incomplete; when list size is zero or missing; or when the subject/content digest label contains coarse high-risk terms.

Missing or malformed evidence is treated as a blocker rather than guessed. The decision is effectively refused for preflight clearance until the operator supplies complete evidence or sends the case through a separate human approval lane.

Output schema

The runner writes one JSON packet to stdout with schema runx.send.spam_risk_review.v1.

json
{
  "schema": "runx.send.spam_risk_review.v1",
  "send_risk_verdict": {
    "risk_level": "pass",
    "preflight_clear": true,
    "blockers": [],
    "evidence_summary": {
      "authentication": {
        "spf_pass": true,
        "dkim_pass": true,
        "dmarc_pass": true,
        "warm_up_days": 30
      },
      "list_hygiene": {
        "bounce_rate": 0.004,
        "complaint_rate": 0.0002,
        "freshness_days": 21
      },
      "content_risk_flags": []
    }
  },
  "dispatch_target": {
    "name": "send-as",
    "type": "named_downstream"
  },
  "escalation": {
    "lane": "none",
    "required": false
  }
}

For hold verdicts, send_risk_verdict.blockers contains the concrete policy reasons, dispatch_target.typed_inputs.blockers carries the same blockers for send-as, and escalation.lane is needs_human.

Worked example

For a verified sender with full authentication, a clean list, and recent consent evidence, the runner emits:

json
{
  "send_risk_verdict": {
    "risk_level": "pass",
    "preflight_clear": true,
    "blockers": []
  }
}

For a sender where DKIM fails and the list bounce rate is 0.075, the runner emits:

json
{
  "send_risk_verdict": {
    "risk_level": "hold",
    "preflight_clear": false,
    "blockers": [
      "authentication: DKIM does not pass",
      "list_hygiene: bounce_rate 0.075 exceeds policy max 0.02"
    ]
  },
  "escalation": {
    "lane": "needs_human",
    "required": true
  }
}

Inputs

Name Required Description
campaign_draft yes JSON object with from, subject, and content_digest.
list_metadata yes JSON object with size, bounce_rate, complaint_rate, and freshness.days_since_last_confirmed.
sender_auth_posture yes JSON object with spf_pass, dkim_pass, dmarc_pass, and warm_up_days.
harness_case no Optional fixture label recorded in evidence.

Published execution profile

The execution profile published with sha-bbcdf3ae2070, shown as its exact bytes.

Runner
  • judge
Profile digestsha256:b315739f3a5d949852d633f70948e074f49305e5606183067835f7e0df53d438
skill: spam-risk-reviewer
version: 0.1.2
catalog:
  kind: skill
  audience: public
  visibility: public
  role: context
  category: growth
runners:
  judge:
    default: true
    inputs:
      campaign_draft:
        type: json
        required: true
        description: campaign_draft{from,subject,content_digest}
      list_metadata:
        type: json
        required: true
        description: list_metadata{size,bounce_rate,complaint_rate,freshness}
      sender_auth_posture:
        type: json
        required: true
        description: sender_auth_posture{spf_pass,dkim_pass,dmarc_pass,warm_up_days}
      harness_case:
        type: string
        required: false
        description: Optional case name recorded in evidence.
    steps:
      - id: judge
        tool:
          command: node
          args:
            - run.mjs
          timeout_seconds: 30
        inputs:
          campaign_draft: $input.campaign_draft
          list_metadata: $input.list_metadata
          sender_auth_posture: $input.sender_auth_posture
          harness_case: $input.harness_case
        artifacts:
          wrap_as: spam_risk_review_packet
harness:
  cases:
    - name: low-risk-verified-sender
      runner: judge
      inputs:
        harness_case: low-risk-verified-sender
        campaign_draft:
          from: newsletter@example.com
          subject: June product update
          content_digest: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
        list_metadata:
          size: 4200
          bounce_rate: 0.004
          complaint_rate: 0.0002
          freshness:
            days_since_last_confirmed: 21
            source: subscriber-consent-ledger
        sender_auth_posture:
          spf_pass: true
          dkim_pass: true
          dmarc_pass: true
          warm_up_days: 30
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - deliverability-judge
            - send-as
          request: Review this campaign for spam risk before it sends.
          expected_outcome: Return a bounded pre-send spam-risk verdict without sending a message.
        - mode: composed
          request: Continue this spam-risk-reviewer work from evidence already gathered upstream.
          expected_outcome: Return a bounded pre-send spam-risk verdict without sending a message.
          prior_evidence:
            - The campaign, list-hygiene and sender-auth evidence already supplied.
          must_not_repeat:
            - Do not send the campaign.
    - name: high-risk-incomplete-auth-poor-list
      runner: judge
      inputs:
        harness_case: high-risk-incomplete-auth-poor-list
        campaign_draft:
          from: promo@example.com
          subject: Limited offer for dormant subscribers
          content_digest: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
        list_metadata:
          size: 9600
          bounce_rate: 0.075
          complaint_rate: 0.0008
          freshness:
            days_since_last_confirmed: 35
            source: subscriber-consent-ledger
        sender_auth_posture:
          spf_pass: true
          dkim_pass: false
          dmarc_pass: true
          warm_up_days: 30
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
    - name: missing-sender-auth-posture-fails-closed
      runner: judge
      inputs:
        harness_case: missing-sender-auth-posture-fails-closed
        campaign_draft:
          from: promo@example.com
          subject: Limited offer for dormant subscribers
          content_digest: sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
        list_metadata:
          size: 9600
          bounce_rate: 0.01
          complaint_rate: 0.0004
          freshness:
            days_since_last_confirmed: 35
            source: subscriber-consent-ledger
      expect:
        status: failure
        receipt:
          schema: runx.receipt.v1

Published package and test evidence.

This exact version passed its recorded harness run: 3 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-bbcdf3ae2070
Recorded result3 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases3
Test recordOpen the recorded run
Inspect receipt referencessha256:2fcf88c5a2e93c3bb000065182e03477950a13b58fb7748b377c14c19260d84csha256:35ae8aa5afff1f6c99b55ac889129142efc9cf3b11fe7df7005119e381653acesha256:370b6d0837bbad37d0ad330c72a46d510009b6690bf1bd2b8b7c1276386b6034

Package identity

Published revisionsha-bbcdf3ae2070
Content digestsha256:bbcdf3ae2070fcf8cf5bf60cfe6437de7ba1bed4d06b3a48fca38b654ecb11fe
SKILL.md digestsha256:0939138ae7a7eeac9b8e2d5b518d2811f1ce7f3c8037c6d47601d4d0a9753464
Execution profile digestsha256:b315739f3a5d949852d633f70948e074f49305e5606183067835f7e0df53d438
Publisher identityUnverified publisher · dh0h
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declareddh0h · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-bbcdf3ae2070ViewingContent digest sha256:bbcdf3ae2070fcf8cf5bf60cfe6437de7ba1bed4d06b3a48fca38b654ecb11fe
  2. sha-2c91ddf89509Content digest sha256:2c91ddf8950977dfd421a477bdcc57d6aa056f734410d7fe5e8145517b571c7e
  3. sha-33e493e69d27Content digest sha256:33e493e69d27e72d9206715260dcd34a9874744573ce2241ef7f11ae06303bf6
  4. sha-876113833de5Content digest sha256:876113833de537af000d8526e439f3b6520cb4e6b71aa4fbaf360efd728ed799