outreach-sequencer

Decide the next outreach touch from durable engagement state, append the decision event, and emit a handoff-only next-touch packet without sending.

You’re reading version sha-64743f91755c. Go to the current version

Overview

Outreach Sequencer decides whether one contact in one sequence should receive the next touch. It reads the sequence definition and the contact's engagement projection, stops immediately after a reply or unsubscribe, enforces min_days_apart, appends one decision event through the data-store operation shape, and emits a typed runx.outreach.next_touch.v1 packet only when the next touch is eligible.

This skill never sends. The packet names the downstream send-as run that a driver or operator may issue under its own approval and preflight. Sequence progress is durable state; egress is a separate governed consequence.

SKILL.md

Outreach Sequencer

Outreach Sequencer decides whether one contact in one sequence should receive the next touch. It reads the sequence definition and the contact's engagement projection, stops immediately after a reply or unsubscribe, enforces min_days_apart, appends one decision event through the data-store operation shape, and emits a typed runx.outreach.next_touch.v1 packet only when the next touch is eligible.

This skill never sends. The packet names the downstream send-as run that a driver or operator may issue under its own approval and preflight. Sequence progress is durable state; egress is a separate governed consequence.

What This Skill Does

  1. Validate sequence state. Refuse to guess when the sequence definition, touch list, contact ref, aggregate id, idempotency key, or expected version is missing.
  2. Read durable engagement evidence. Treat prior_projection as the data-store read_projection result for the sequence/contact aggregate. Every reply, unsubscribe, bounce, and prior sent touch used in a decision is recorded in the output as an operation_result.
  3. Stop on reply or unsubscribe. If the engagement stream contains a reply or unsubscribe, seal with decision.eligible: false, reason replied or unsubscribed, no next-touch packet, and no append event.
  4. Enforce spacing. If the prior sent touch is more recent than rules.min_days_apart, seal with decision.eligible: false, reason too_soon, no next-touch packet, and no append event.
  5. Append eligible decisions. When eligible, append one outreach.next_touch_selected event via append_event(idempotency_key, expected_version) against registry:runx/data-store@0.1.2 with the pinned store_id and aggregate_id.
  6. Emit a handoff packet. The runx.outreach.next_touch.v1 packet binds send class outreach, principal, channel, audience, content digest, touch index, and dispatch idempotency key. It is data only.

Contract Boundaries

  • Inputs are typed.
    • sequence_definition: touches and rules.
    • aggregate_id: sequence/contact entity key for state.
    • contact_ref: stable contact reference and audience binding.
    • current_touch_index: optional current index; defaults to the first unsent touch after prior projection.
    • store_id: pinned data-store id.
    • idempotency_key: append idempotency key.
    • expected_version: expected projection version.
  • State is data-store shaped. The sequence is read_projection -> decide -> append_event(idempotency_key, expected_version). The skill records operation-result evidence but does not depend on private data-store credentials.
  • Output is typed. The artifact is outreach_decision, containing decision, engagement_read, optional append_event, optional next_touch_packet, and escalation.
  • No authority minting. The skill does not mint authority, produce an operational proposal envelope, or call a provider.

Refusals And Stops

  • Missing sequence definition, empty touches, missing contact ref, missing aggregate id, missing idempotency key, or unreadable engagement state returns decision.eligible: false with reason needs_human or needs_input and no append.
  • Reply and unsubscribe always stop the sequence and emit no packet.
  • A prior touch inside min_days_apart stops with reason too_soon.
  • A contact beyond the end of the sequence stops with reason sequence_complete.
  • A bounce may advance the sequence only if the sequence policy declares advance_on_bounce: true; otherwise it stops with reason bounced.

Quality Profile

  • Purpose: decide one next outreach touch from durable engagement state.
  • Audience: outreach operators, compliance reviewers, and downstream send drivers.
  • Artifact contract: eligibility verdict, engagement operation-result evidence, data-store append operation-result, next touch packet, and stop reason.
  • Evidence bar: every positive decision cites the engagement stream read, prior touch spacing, selected touch, append version movement, and dispatch key.
  • Safety bar: no sends, no authority minting, and fail-closed stops after reply or unsubscribe.
  • Stop conditions: missing state, reply, unsubscribe, too soon, bounce when bounce advancement is disallowed, or sequence complete.

Output Schema

yaml
outreach_decision:
  decision:
    eligible: boolean
    reason: next_touch | replied | unsubscribed | too_soon | bounced | sequence_complete | needs_human | needs_input
    current_touch_index: number
    next_touch_index: number | null
  engagement_read:
    store_id: string
    aggregate_id: string
    operation: read_projection
    operation_result:
      version: number
      events:
        - type: reply | unsubscribe | bounce | sent | decision
          at: string
          touch_index: number | null
  append_event:
    attempted: boolean
    operation_result:
      event_type: outreach.next_touch_selected | null
      before_version: number
      after_version: number | null
      idempotency_key: string
      expected_version: number
  next_touch_packet:
    packet_type: runx.outreach.next_touch.v1
    send_class: outreach
    principal: string
    channel: string
    audience:
      contact_ref: string
    content_digest: string
    dispatch_idempotency_key: string
    touch_index: number
  escalation:
    lane: human-approval | none
    reason: string

Inputs

  • sequence_definition (required): touches and rules.
  • aggregate_id (required): sequence/contact aggregate id.
  • contact_ref (required): stable contact reference.
  • current_touch_index (optional): explicit next touch index.
  • store_id (required): pinned data-store id.
  • idempotency_key (required): append idempotency key.
  • expected_version (required): expected read projection version.
  • prior_projection (optional): data-store read projection, including version and engagement events.

Published execution profile

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

Runner
  • sequence
Profile digestsha256:e0eebf141daaa54362ac86255b556f43ef253e6ee552467d23c192db01b25e3c
skill: outreach-sequencer
version: 0.1.0
catalog:
  kind: skill
  audience: operator
  visibility: public
  role: canonical
  category: ops
runners:
  sequence:
    default: true
    inputs:
      sequence_definition:
        type: json
        required: false
        description: Outreach sequence touches and rules.
      aggregate_id:
        type: string
        required: true
        description: Sequence/contact aggregate id.
      contact_ref:
        type: string
        required: true
        description: Stable contact reference.
      current_touch_index:
        type: number
        required: false
        description: Optional explicit next touch index.
      store_id:
        type: string
        required: true
        description: Pinned data-store id.
      idempotency_key:
        type: string
        required: true
        description: Append idempotency key.
      expected_version:
        type: number
        required: true
        description: Expected projection version.
      prior_projection:
        type: json
        required: false
        description: Data-store read_projection result for this sequence/contact aggregate.
    steps:
      - id: sequence
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          sequence_definition: $input.sequence_definition
          aggregate_id: $input.aggregate_id
          contact_ref: $input.contact_ref
          current_touch_index: $input.current_touch_index
          store_id: $input.store_id
          idempotency_key: $input.idempotency_key
          expected_version: $input.expected_version
          prior_projection: $input.prior_projection
        artifacts:
          wrap_as: outreach_decision_packet
harness:
  cases:
    - name: happy_next_touch
      inputs:
        sequence_definition:
          rules:
            min_days_apart: 3
            advance_on_bounce: true
            principal: account:outreach-bot
          touches:
            - index: 1
              channel: email
              content_digest: sha256:touch-1
            - index: 2
              channel: email
              content_digest: sha256:touch-2
            - index: 3
              channel: email
              content_digest: sha256:touch-3
            - index: 4
              channel: email
              content_digest: sha256:touch-4
            - index: 5
              channel: email
              content_digest: sha256:touch-5
        aggregate_id: seq-demo-001:contact-acme
        contact_ref: contact:acme:buyer
        current_touch_index: 2
        store_id: runx-outreach-state
        idempotency_key: outreach:seq-demo-001:contact-acme:touch-2
        expected_version: 4
        prior_projection:
          version: 4
          events:
            - type: sent
              touch_index: 1
              at: 2026-06-20T10:00:00Z
              operation_result:
                event_id: evt_sent_1
                version: 3
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - cold-outreach
            - send-as
          request: Decide the next outreach touch for this prospect.
          expected_outcome: Record the decision event and return a handoff-only next-touch packet without sending.
        - mode: composed
          request: Continue this outreach-sequencer work from evidence already gathered upstream.
          expected_outcome: Record the decision event and return a handoff-only next-touch packet without sending.
          prior_evidence:
            - The engagement state already read from the data store.
          must_not_repeat:
            - Do not send the touch.
    - name: stop_replied
      inputs:
        sequence_definition:
          rules:
            min_days_apart: 3
            principal: account:outreach-bot
          touches:
            - index: 1
              channel: email
              content_digest: sha256:touch-1
            - index: 2
              channel: email
              content_digest: sha256:touch-2
        aggregate_id: seq-demo-002:contact-globex
        contact_ref: contact:globex:ops
        current_touch_index: 2
        store_id: runx-outreach-state
        idempotency_key: outreach:seq-demo-002:contact-globex:touch-2
        expected_version: 5
        prior_projection:
          version: 5
          events:
            - type: sent
              touch_index: 1
              at: 2026-06-21T10:00:00Z
              operation_result:
                event_id: evt_sent_1
                version: 3
            - type: reply
              touch_index: 1
              at: 2026-06-22T14:30:00Z
              operation_result:
                event_id: evt_reply_1
                version: 5
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
    - name: stop_missing_sequence_definition
      inputs:
        aggregate_id: seq-demo-003:contact-initech
        contact_ref: contact:initech:finance
        store_id: runx-outreach-state
        idempotency_key: outreach:seq-demo-003:contact-initech:touch-1
        expected_version: 1
      expect:
        status: failure
        receipt:
          schema: runx.receipt.v1

Published package and test evidence.

The latest recorded test covers an earlier version, sha-37decdb209ee. It does not establish a result for this version.

Test result

Harness resultAn earlier version was tested
Tested versionsha-37decdb209eeNot this page’s version, sha-64743f91755c
Recorded result3 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases3

Package identity

Published revisionsha-64743f91755c
Content digestsha256:64743f91755cb1097bf648783b9cd8de16f74139b441c0795a951f8c730d4b7d
SKILL.md digestsha256:d2372f688ad1a6ccd9d85628cc67a0ceb3f127c1611ac701aa8c5a004d3949e2
Execution profile digestsha256:e0eebf141daaa54362ac86255b556f43ef253e6ee552467d23c192db01b25e3c
Publisher identityUnverified publisher · RYDE
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · DeclaredRYDE · 13 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-37decdb209eeContent digest sha256:37decdb209ee5d871e8d57fb7f9a761ea751ade005285979c83c27399ff181d8
  2. sha-3f07effa7ad9Content digest sha256:3f07effa7ad9cb1996e9790ca61f297d2a9dca36ebaed155517cc02c2a10e4b3
  3. sha-20f34397b355Content digest sha256:20f34397b355aa8800cac012bae32a946c00076103d19e61cef0d70a7500d754
  4. sha-64743f91755cViewingContent digest sha256:64743f91755cb1097bf648783b9cd8de16f74139b441c0795a951f8c730d4b7d