List hygiene judge

Judge contact list hygiene from data-store evidence and record a consent-state transition without sending.

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

Overview

list-hygiene-judge sits between engagement decay and durable consent-state transitions. It reads a contact projection from a declared data-store resource, judges whether the contact should be re-permissioned, suppressed, verified, or escalated, and emits the exact append event that records the transition.

The skill never sends a message. A downstream governed send-as run is the only lane that may deliver a campaign, and it must read the recorded consent state at send time.

In the manual

Runner

  • default

Declared by its execution profile. Read the profile

SKILL.md

List Hygiene Judge

list-hygiene-judge sits between engagement decay and durable consent-state transitions. It reads a contact projection from a declared data-store resource, judges whether the contact should be re-permissioned, suppressed, verified, or escalated, and emits the exact append event that records the transition.

The skill never sends a message. A downstream governed send-as run is the only lane that may deliver a campaign, and it must read the recorded consent state at send time.

Contract

  • Inputs are data_source_ref, resource, aggregate_id, expected_version, idempotency_key, engagement_history, bounce_policy, and current_consent_state.
  • Output is a runx.list_hygiene_judgment.v1 packet with:
    • decision{state,reason}
    • a data_store.read_projection evidence block
    • one data_store.append_event evidence block when a transition is safe
    • a recorded_transition readback projection when an append is emitted
    • a stop block and no append when evidence is missing, stale, ambiguous, or blocked by an active unsubscribe marker.

Decision rules

  • Hard-bounce evidence (hard_bounces > 0) suppresses the contact.
  • Engagement decay beyond bounce_policy.decay_threshold_days re-permissions a contact only when there is no active unsubscribe marker.
  • Contacts with fresh engagement remain in verify state.
  • Missing metrics, stale expected_version, ambiguous bounce recovery, or an active unsubscribe marker stop before any append and escalate to a human lane.

State and authority boundary

The state transition is modeled as an ungated compare-and-set append through registry:runx/data-store@0.1.2: read projection, decide, append with idempotency_key and expected_version, then read back the recorded version. The runner emits this data-store operation evidence as plain data for the receipt; it does not send, mint, grant authority, or create an operational_proposal envelope.

Verification

Run the local harness:

bash
runx harness ./skills/list-hygiene-judge

Run a dogfood decision:

bash
runx skill ./skills/list-hygiene-judge --json \
  -i data_source_ref=local://runx/list-hygiene/demo \
  -i resource=contact_consent_events \
  -i aggregate_id=contact:demo-001 \
  --input-json expected_version=3 \
  -i idempotency_key=contact:demo-001:list-hygiene:2026-06-29 \
  --input-json engagement_history='{"opens_count":0,"clicks_count":0,"hard_bounces":0,"recency_days":120}' \
  --input-json bounce_policy='{"hard_bounce_action":"suppress","decay_threshold_days":90}' \
  --input-json current_consent_state='{"state":"subscribed","version":3,"unsubscribe_marker":false}'

Published execution profile

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

Runner
  • default
Profile digestsha256:639ccc23ff21f2d87f6751389501ce1974e02ac2daf961f8b4c3faee4dc046b6
skill: list-hygiene-judge
version: 0.1.0
catalog:
  kind: skill
  audience: public
  visibility: public
  role: canonical
  category: growth
runners:
  default:
    default: true
    inputs:
      data_source_ref:
        type: string
        required: true
      resource:
        type: string
        required: true
      aggregate_id:
        type: string
        required: true
      expected_version:
        type: number
        required: true
      idempotency_key:
        type: string
        required: true
      engagement_history:
        type: json
        required: true
      bounce_policy:
        type: json
        required: true
      current_consent_state:
        type: json
        required: true
    steps:
      - id: default
        tool:
          command: node
          args:
            - run.mjs
          timeout_seconds: 30
        inputs:
          data_source_ref: $input.data_source_ref
          resource: $input.resource
          aggregate_id: $input.aggregate_id
          expected_version: $input.expected_version
          idempotency_key: $input.idempotency_key
          engagement_history: $input.engagement_history
          bounce_policy: $input.bounce_policy
          current_consent_state: $input.current_consent_state
harness:
  cases:
    - name: sealed_decay_re_permission
      runner: default
      inputs:
        data_source_ref: local://runx/list-hygiene/harness
        resource: contact_consent_events
        aggregate_id: contact:decayed-001
        expected_version: 4
        idempotency_key: contact:decayed-001:list-hygiene:repermission:v1
        engagement_history:
          opens_count: 0
          clicks_count: 0
          hard_bounces: 0
          recency_days: 121
        bounce_policy:
          hard_bounce_action: suppress
          decay_threshold_days: 90
        current_consent_state:
          state: subscribed
          version: 4
          unsubscribe_marker: false
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - send-as
            - data-store
          request: Decide whether to verify, suppress or re-permission this contact.
          expected_outcome: Return the judgment and record the consent transition with one compare-and-set append, sending nothing.
        - mode: composed
          request: Continue this list-hygiene-judge work from evidence already gathered upstream.
          expected_outcome: Return the judgment and record the consent transition with one compare-and-set append, sending nothing.
          prior_evidence:
            - The contact read from the data store already sealed.
          must_not_repeat:
            - Do not append the same transition twice.
    - name: sealed_hard_bounce_suppress
      runner: default
      inputs:
        data_source_ref: local://runx/list-hygiene/harness
        resource: contact_consent_events
        aggregate_id: contact:bounced-001
        expected_version: 7
        idempotency_key: contact:bounced-001:list-hygiene:suppress:v1
        engagement_history:
          opens_count: 2
          clicks_count: 0
          hard_bounces: 1
          recency_days: 9
        bounce_policy:
          hard_bounce_action: suppress
          decay_threshold_days: 90
        current_consent_state:
          state: subscribed
          version: 7
          unsubscribe_marker: false
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
    - name: stop_missing_or_stale_evidence
      runner: default
      inputs:
        data_source_ref: local://runx/list-hygiene/harness
        resource: contact_consent_events
        aggregate_id: contact:stale-001
        expected_version: 2
        idempotency_key: contact:stale-001:list-hygiene:stale:v1
        engagement_history:
          opens_count: 0
          clicks_count: 0
          hard_bounces: 0
          recency_days: 120
        bounce_policy:
          hard_bounce_action: suppress
          decay_threshold_days: 90
        current_consent_state:
          state: subscribed
          version: 3
          unsubscribe_marker: false
      expect:
        status: sealed
        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 resultPassed
Tested versionsha-b7d854a75d91
Recorded result3 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases3
Test recordOpen the recorded run
Inspect receipt referencessha256:1985543883e812498c6906d291a4b7073a3c061b671708f155af8293320e02besha256:4beda28b7137262f999e17baf9a00d6edebd64423c2ee5063e7cbaf4fba91c18sha256:52f5588190d912bbec43e3616283dab9fd1bd46ca23b08cf3b5a5cdad6c72fee

Package identity

Published revisionsha-b7d854a75d91
Content digestsha256:b7d854a75d91ca13cdc2b2a5dc13819f16ec197f11d283489aab095f6abb064a
SKILL.md digestsha256:348cc7b4d23c3226eb5b06190b4dbdcba95bce9ab66834a74974be2b734b4d2d
Execution profile digestsha256:639ccc23ff21f2d87f6751389501ce1974e02ac2daf961f8b4c3faee4dc046b6
Publisher identityUnverified publisher · Liyitong.
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · DeclaredLiyitong. · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-349ea0c8e079Content digest sha256:349ea0c8e0799148ae031cbb18b31da2a43f4c31ef96901da83efd2f4c27897c
  2. sha-ed24ee33da64Content digest sha256:ed24ee33da64d5ea1998c18e3561318141b004742506153c74f894b1bfcee90b
  3. sha-b7d854a75d91ViewingContent digest sha256:b7d854a75d91ca13cdc2b2a5dc13819f16ec197f11d283489aab095f6abb064a
  4. sha-49e848814000Content digest sha256:49e8488140006bc7878f7987da5a36183d35bbb8ee1d63f913f3605517505608