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 with content, received_from, and received_at.
  • original_send_receipt: object with send_plan, principal, receipt_id, checksum, and sealed.
  • suppression_policy: object with unsubscribe_signals and confidence_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, otherwise null.
  • routing_decision: runx.reply.routing.v1 packet when the reply is routed, otherwise null.
  • 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

  1. Refuse to classify on an unsealed or malformed original_send_receipt.
  2. Suppress when the reply content contains unsubscribe intent grounded in suppression_policy.unsubscribe_signals.
  3. Never route a send alongside an unsubscribe-class reply.
  4. 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.
  5. 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:

  1. read_projection for the recipient aggregate.
  2. append_event through registry:runx/data-store@0.1.2.
  3. aggregate_id = inbound_reply.received_from.
  4. expected_version comes from original_send_receipt.send_plan.recipient_state_version when present, else 0.
  5. idempotency_key is derived from received_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
  • classify
Profile digestsha256: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 resultAn earlier version was tested
Tested versionsha-26ae1bb163e9Not this page’s version, sha-99a4569b536d
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2

Package identity

Published revisionsha-99a4569b536d
Content digestsha256:99a4569b536d7e153b4260861d5a280695aaa2bd5bf162d54218c6a096673a6f
SKILL.md digestsha256:e374a07be2867e6fa55da7b72cbc03b108a612e853dae428ef2d5d61846cc18e
Execution profile digestsha256:f1df5ace68a2d3144c8a6f57b284efbdd8c04904b1f2002eabd8db9c67e6b1c3
Publisher identityUnverified publisher · iwannabefree00
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declarediwannabefree00 · 13 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-26ae1bb163e9Content digest sha256:26ae1bb163e93f5b3e2eaf39b98daa7a583f8dca6f64782f061507668d702cc2
  2. sha-5ab9c68092d9Content digest sha256:5ab9c68092d9555a796d2eb35dc917f25f7e9f320fbdd1f532dbf554c23a3b88
  3. sha-ee6b7b2ff481Content digest sha256:ee6b7b2ff48107ca5a2bfe0d9df96581047cd151bf970040c4028e77113987c9
  4. sha-99a4569b536dViewingContent digest sha256:99a4569b536d7e153b4260861d5a280695aaa2bd5bf162d54218c6a096673a6f