spam-risk-reviewer
Review campaign draft, list hygiene, and sender authentication signals before send-as preflight.
You’re reading version sha-876113833de5. Go to the current version
Overview
In the manual
Runner
judge
Declared by its execution profile. Read the profile
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, andcampaign_draft.content_digest;list_metadata.size,list_metadata.bounce_rate,list_metadata.complaint_rate, andlist_metadata.freshness;sender_auth_posture.spf_pass,sender_auth_posture.dkim_pass,sender_auth_posture.dmarc_pass, andsender_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
- Confirm the draft identifies a sender, subject, and content digest.
- Confirm the list metadata includes size, bounce rate, complaint rate, and freshness days.
- Confirm the sender authentication posture includes SPF, DKIM, DMARC, and warm-up days.
- Compare the evidence to the local policy thresholds:
bounce rate at or below
0.02, complaint rate at or below0.001, freshness at or below90days, warm-up at least14days, and SPF/DKIM/DMARC all passing. - Emit
risk_level: pass,preflight_clear: true, and no blockers when every signal clears policy. - Emit
risk_level: hold,preflight_clear: false, concrete blockers, and aneeds_humanescalation when any signal is missing or outside policy. - Bind the verdict to the named downstream
send-aspreflight 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.
{
"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:
{
"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:
{
"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-876113833de5, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:a65081cb1197979e12643c14c516169226e6540a2577837ce1c98f3fbe6a13f3 |
skill: spam-risk-reviewer
version: 0.1.1
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.
The latest recorded test covers an earlier version, sha-bbcdf3ae2070. It does not establish a result for this version.
Test result
| Harness result | An earlier version was tested |
|---|---|
| Tested version | sha-bbcdf3ae2070Not this page’s version, sha-876113833de5 |
| Recorded result | 3 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 3 |
Package identity
| Published revision | sha-876113833de5 |
|---|---|
| Content digest | sha256:876113833de537af000d8526e439f3b6520cb4e6b71aa4fbaf360efd728ed799 |
| SKILL.md digest | sha256:0939138ae7a7eeac9b8e2d5b518d2811f1ce7f3c8037c6d47601d4d0a9753464 |
| Execution profile digest | sha256:a65081cb1197979e12643c14c516169226e6540a2577837ce1c98f3fbe6a13f3 |
| Publisher identity | Unverified publisher · dh0h |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-bbcdf3ae2070Content digest sha256:bbcdf3ae2070fcf8cf5bf60cfe6437de7ba1bed4d06b3a48fca38b654ecb11fesha-2c91ddf89509Content digest sha256:2c91ddf8950977dfd421a477bdcc57d6aa056f734410d7fe5e8145517b571c7esha-33e493e69d27Content digest sha256:33e493e69d27e72d9206715260dcd34a9874744573ce2241ef7f11ae06303bf6sha-876113833de5ViewingContent digest sha256:876113833de537af000d8526e439f3b6520cb4e6b71aa4fbaf360efd728ed799