reply-router
Classify inbound replies, write unsubscribe suppression records, and emit bounded routing decisions without sending messages.
You’re reading version sha-99a4569b536d. Go to the current version
Overview
reply-router classifies an inbound reply against a supplied suppression
policy and the sealed receipt for the original send. It has one durable
side-effect seam: for unsubscribe-class replies it prepares a recipient-keyed
suppression append_event for registry:runx/data-store@0.1.2. For all other
clear classifications it emits a bounded routing decision naming the later
governed send-as target, but it never sends a message itself.
In the manual
Runner
classify
Declared by its execution profile. Read the profile
SKILL.md
Reply Router
reply-router classifies an inbound reply against a supplied suppression
policy and the sealed receipt for the original send. It has one durable
side-effect seam: for unsubscribe-class replies it prepares a recipient-keyed
suppression append_event for registry:runx/data-store@0.1.2. For all other
clear classifications it emits a bounded routing decision naming the later
governed send-as target, but it never sends a message itself.
Inputs
inbound_reply: object withcontent,received_from, andreceived_at.original_send_receipt: object withsend_plan,principal,receipt_id,checksum, andsealed.suppression_policy: object withunsubscribe_signalsandconfidence_threshold.data_source_ref: logical binding for the governed data-store dependency.store_id: pinned store id for deterministic suppression records.
Outputs
classification:{ type, confidence, evidence[] }.suppression_result: recipient-keyed suppression CAS packet when suppressed, otherwisenull.routing_decision:runx.reply.routing.v1packet when the reply is routed, otherwisenull.escalation: human-review lane for unsealed receipts, ambiguous replies, or insufficient confidence.evidence: receipt id, policy signals, idempotency key, before/after data versions, and no-send guarantees.
Rules
- Refuse to classify on an unsealed or malformed
original_send_receipt. - Suppress when the reply content contains unsubscribe intent grounded in
suppression_policy.unsubscribe_signals. - Never route a send alongside an unsubscribe-class reply.
- For non-unsubscribe replies, emit only a bounded routing packet; the later send is a separate governed send-as run chosen by an operator or downstream driver.
- Stop before write when the reply is ambiguous or confidence is below
suppression_policy.confidence_threshold.
Data-store seam
For unsubscribe replies the output includes a CAS append_event packet:
read_projectionfor the recipient aggregate.append_eventthroughregistry:runx/data-store@0.1.2.aggregate_id = inbound_reply.received_from.expected_versioncomes fromoriginal_send_receipt.send_plan.recipient_state_versionwhen present, else0.idempotency_keyis derived fromreceived_from + receipt_id + classification.
That suppression record is the compliance block a later governed send-as
preflight reads. This skill does not consume credentials, call a mail provider,
emit an AttenuationRequest, or create an operational_proposal envelope.
Published execution profile
The execution profile published with sha-99a4569b536d, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:f1df5ace68a2d3144c8a6f57b284efbdd8c04904b1f2002eabd8db9c67e6b1c3 |
skill: reply-router
version: 0.1.0
catalog:
kind: skill
audience: operator
visibility: public
role: canonical
category: ops
runners:
classify:
default: true
inputs:
inbound_reply:
type: json
required: true
description: Object with content, received_from, and received_at.
original_send_receipt:
type: json
required: true
description: Sealed original-send receipt packet with send_plan, principal, receipt_id, checksum, and sealed.
suppression_policy:
type: json
required: true
description: Suppression policy with unsubscribe_signals and confidence_threshold.
data_source_ref:
type: string
required: true
description: Logical binding for registry:runx/data-store@0.1.2.
store_id:
type: string
required: true
description: Pinned store id used for deterministic harness and receipts.
steps:
- id: classify
tool:
command: node
args:
- run.mjs
inputs:
inbound_reply: $input.inbound_reply
original_send_receipt: $input.original_send_receipt
suppression_policy: $input.suppression_policy
data_source_ref: $input.data_source_ref
store_id: $input.store_id
artifacts:
wrap_as: reply_router
harness:
cases:
- name: sealed_unsubscribe_suppression
inputs:
inbound_reply:
content: |
Please unsubscribe me from these product emails immediately. Stop emailing this address.
received_from: prospect@example.com
received_at: 2026-06-29T08:15:00Z
original_send_receipt:
sealed: true
receipt_id: runx:receipt:sha256:original-send-001
checksum: sha256:original-send-checksum
principal: runx:principal:sales-agent
send_plan:
recipient: prospect@example.com
campaign: onboarding-drip
recipient_state_version: 7
allowed_targets:
interested: runx:send-target:sales-followup
objection: runx:send-target:objection-handling
out_of_office: runx:send-target:delay-resume
wrong_person: runx:send-target:contact-correction
suppression_policy:
unsubscribe_signals:
- unsubscribe
- stop emailing
- remove me
- opt out
confidence_threshold: 0.8
data_source_ref: local://runx/reply-router
store_id: reply-router-fixture
expect:
status: sealed
receipt:
schema: runx.receipt.v1
operator_journeys:
- mode: standalone
confusors:
- inbox-triage
- send-as
request: Route this inbound reply.
expected_outcome: Append a suppression for unsubscribes or return a bounded routing decision, sending nothing.
- mode: composed
request: Continue this reply-router work from evidence already gathered upstream.
expected_outcome: Append a suppression for unsubscribes or return a bounded routing decision, sending nothing.
prior_evidence:
- The inbound reply and the original send receipt already supplied.
must_not_repeat:
- Do not reply to the sender.
- name: stop_ambiguous_or_unsealed
inputs:
inbound_reply:
content: |
Maybe later, but I am not sure this was meant for me.
received_from: unknown@example.com
received_at: 2026-06-29T08:16:00Z
original_send_receipt:
sealed: false
receipt_id: ""
checksum: ""
principal: runx:principal:sales-agent
send_plan:
recipient: unknown@example.com
recipient_state_version: 0
suppression_policy:
unsubscribe_signals:
- unsubscribe
- stop emailing
- remove me
confidence_threshold: 0.85
data_source_ref: local://runx/reply-router
store_id: reply-router-fixture
expect:
status: failure
receipt:
schema: runx.receipt.v1
Published package and test evidence.
The latest recorded test covers an earlier version, sha-26ae1bb163e9. It does not establish a result for this version.
Test result
| Harness result | An earlier version was tested |
|---|---|
| Tested version | sha-26ae1bb163e9Not this page’s version, sha-99a4569b536d |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
Package identity
| Published revision | sha-99a4569b536d |
|---|---|
| Content digest | sha256:99a4569b536d7e153b4260861d5a280695aaa2bd5bf162d54218c6a096673a6f |
| SKILL.md digest | sha256:e374a07be2867e6fa55da7b72cbc03b108a612e853dae428ef2d5d61846cc18e |
| Execution profile digest | sha256:f1df5ace68a2d3144c8a6f57b284efbdd8c04904b1f2002eabd8db9c67e6b1c3 |
| Publisher identity | Unverified publisher · iwannabefree00 |
| 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-26ae1bb163e9Content digest sha256:26ae1bb163e93f5b3e2eaf39b98daa7a583f8dca6f64782f061507668d702cc2sha-5ab9c68092d9Content digest sha256:5ab9c68092d9555a796d2eb35dc917f25f7e9f320fbdd1f532dbf554c23a3b88sha-ee6b7b2ff481Content digest sha256:ee6b7b2ff48107ca5a2bfe0d9df96581047cd151bf970040c4028e77113987c9sha-99a4569b536dViewingContent digest sha256:99a4569b536d7e153b4260861d5a280695aaa2bd5bf162d54218c6a096673a6f