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-20f34397b355. 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.
In the manual
Runner
sequence
Declared by its execution profile. Read the profile
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
- Validate sequence state. Refuse to guess when the sequence definition, touch list, contact ref, aggregate id, idempotency key, or expected version is missing.
- Read durable engagement evidence. Treat
prior_projectionas the data-storeread_projectionresult for the sequence/contact aggregate. Every reply, unsubscribe, bounce, and prior sent touch used in a decision is recorded in the output as anoperation_result. - Stop on reply or unsubscribe. If the engagement stream contains a reply
or unsubscribe, seal with
decision.eligible: false, reasonrepliedorunsubscribed, no next-touch packet, and no append event. - Enforce spacing. If the prior sent touch is more recent than
rules.min_days_apart, seal withdecision.eligible: false, reasontoo_soon, no next-touch packet, and no append event. - Append eligible decisions. When eligible, append one
outreach.next_touch_selectedevent viaappend_event(idempotency_key, expected_version)againstregistry:runx/data-store@0.1.2with the pinnedstore_idandaggregate_id. - Emit a handoff packet. The
runx.outreach.next_touch.v1packet binds send classoutreach, principal, channel, audience, content digest, touch index, and dispatch idempotency key. It is data only.
Contract Boundaries
- Inputs are typed.
sequence_definition:touchesandrules.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, containingdecision,engagement_read, optionalappend_event, optionalnext_touch_packet, andescalation. - 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: falsewith reasonneeds_humanorneeds_inputand no append. - Reply and unsubscribe always stop the sequence and emit no packet.
- A prior touch inside
min_days_apartstops with reasontoo_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 reasonbounced.
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
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: stringInputs
sequence_definition(required):touchesandrules.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-20f34397b355, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:41d409625a1301c029fc5654c6b49c2d71f9035d7e793c5c209fdf963c555850 |
skill: outreach-sequencer
version: 0.1.0
catalog:
kind: skill
audience: operator
visibility: public
role: canonical
category: growth
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.
This exact version passed its recorded harness run: 3 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-20f34397b355 |
| Recorded result | 3 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 3 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:a88d503d27e68d95e982010af7ea451fa1eefc920606b4bccd2bb376719977b3sha256:883a973473eab533a90f0b453518760b69a94159556687cb32c7b3bde0ebb654sha256:dc34acce67b24f081d0882c53f4de49cdc2e36eae61369078d003a3a4ac5d822Package identity
| Published revision | sha-20f34397b355 |
|---|---|
| Content digest | sha256:20f34397b355aa8800cac012bae32a946c00076103d19e61cef0d70a7500d754 |
| SKILL.md digest | sha256:d2372f688ad1a6ccd9d85628cc67a0ceb3f127c1611ac701aa8c5a004d3949e2 |
| Execution profile digest | sha256:41d409625a1301c029fc5654c6b49c2d71f9035d7e793c5c209fdf963c555850 |
| Publisher identity | Unverified publisher · RYDE |
| 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-37decdb209eeContent digest sha256:37decdb209ee5d871e8d57fb7f9a761ea751ade005285979c83c27399ff181d8sha-3f07effa7ad9Content digest sha256:3f07effa7ad9cb1996e9790ca61f297d2a9dca36ebaed155517cc02c2a10e4b3sha-20f34397b355ViewingContent digest sha256:20f34397b355aa8800cac012bae32a946c00076103d19e61cef0d70a7500d754sha-64743f91755cContent digest sha256:64743f91755cb1097bf648783b9cd8de16f74139b441c0795a951f8c730d4b7d