CRM cleanup

Reconcile a call transcript against live CRM records, then execute the decided allowlisted field updates through a CRM transport in the same run, sealing a before/after write_result.

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

Overview

Keep pipeline data from rotting after calls. The skill reads the current CRM records from a real source at run time (a web.fetch connector export or a data.read_projection event stream — never a hand-pasted fixture), reconciles the transcript against them, and executes the decided updates through a CRM transport in the same run, sealing a before/after write_result.

In the manual

Runners

  • reconcile
  • reconcile-live

Declared by its execution profile. Read the profile

SKILL.md

CRM Cleanup

Keep pipeline data from rotting after calls. The skill reads the current CRM records from a real source at run time (a web.fetch connector export or a data.read_projection event stream — never a hand-pasted fixture), reconciles the transcript against them, and executes the decided updates through a CRM transport in the same run, sealing a before/after write_result.

Procedure

  1. read-source reads the current CRM records at run time. crm_source picks the channel: {kind: web_fetch, url} for a connector export over HTTPS, {kind: read_projection, ...} for a data-store projection, or {kind: inline, records} for deterministic harness runs.
  2. Native data.digest binds the exact transcript and record set.
  3. The reconciling agent drafts takeaways and candidate updates from the transcript, each with the target record, field, new value, and a supporting verbatim quote.
  4. Deterministic enforcement checks every proposal: the record must exist in the source read, the field must be inside crm_schema.allowed_fields (out-of-allowlist updates are rejected with a named reason), the quote must appear verbatim in the transcript, and the value must be non-empty. An unknown record or an invented quote refuses the whole run.
  5. When updates survive, prepare-write applies them to the source records and binds the payload to write_target; apply-write executes the write through the configured CRM transport (the bundled mock transport is fs.write to an outbox file); record-write seals write_result with the before/after of every applied field bound to the decision digest.
  6. A run with no supported updates seals no_action and executes nothing — the write steps stay withheld and no write_result is emitted.

Output

crm_cleanup (runx.crm_cleanup.v2) carries decision (applied, no_action, refused), takeaways, field_updates keyed to crm_schema fields with before/after values and evidence quotes, rejected_updates, the write_plan, the source handle that was actually read, both input digests, and validation. On an applied run, write_result (runx.write_result.v1) carries the executed before/after pairs from the transport.

Inputs are transcript, crm_source, crm_schema, and write_target.

reconcile-live runner

A second runner, reconcile-live, runs the same pipeline with the source read bound to governed tools directly instead of an agent task: a read-source-fetch step executes web.fetch against crm_source.url inside the run, and read-source shapes the fetched connector export into the source_read contract. It supports {kind: web_fetch, url} sources only; use it when the receipt must show the source read executing inside the run without a managed agent.

Agent task contracts

crm-cleanup-read

Read crm_source from step inputs. Use web.fetch when kind is web_fetch (fetch url over HTTPS and return the record array it carries), data.read_projection when kind is read_projection, or replay records verbatim when kind is inline. Return source_read with read_kind, fetched_ref (the URL or projection ref actually read, inline:<name> for inline), and records — the current CRM records as an array. Never invent records.

crm-cleanup-reconcile

Read transcript and crm_schema from step inputs and crm_records from step context. Return update_draft with takeaways (short strings summarizing what the call established) and updates: an array of record_id, field, to, and evidence_quote entries. Only propose updates the transcript actually supports, quote the transcript verbatim, and only target fields inside the allowlist. Return an empty updates array when the call changes nothing. Never invent records, quotes, or values.

Published execution profile

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

Runners
  • reconcile
  • reconcile-live
Profile digestsha256:72b82b27f562cf71782ea2e213f8b1ac2e78ace7a279f942f0d636bc5a0cf0da
skill: crm-cleanup
version: 0.2.1
catalog:
  kind: graph
  audience: operator
  visibility: public
  role: canonical
  execution: plan
  completion: runtime_receipt
  approval: none
  category: growth
connectors:
  web:
    operations:
      - page.read
runners:
  reconcile:
    default: true
    inputs:
      transcript:
        type: string
        required: true
        description: Call transcript that is the only evidence for field updates.
      crm_source:
        type: json
        required: true
        description: "Where to read current CRM records at run time: {kind: web_fetch, url} fetches a connector export over HTTPS, {kind: read_projection, data_source_ref, aggregate_id, resource} reads a CRM event-stream projection, or {kind: inline, records} replays supplied records for deterministic harness runs."
      crm_schema:
        type: object
        required: true
        description: Explicit update authority; fields outside allowed_fields are rejected.
        schema:
          additionalProperties: false
          properties:
            allowed_fields:
              type: array
              minItems: 1
              maxItems: 100
              items:
                type: string
                minLength: 1
                maxLength: 200
      write_target:
        type: json
        required: true
        description: "CRM transport for the executed write: {kind: mock, path} writes the reconciled record set to an outbox file through fs.write, sealing a before/after write_result."
    examples:
      - transcript: Dana said the rollout stalled.
        crm_source:
          kind: inline
          records:
            - id: acct-globex
              account_status: healthy
        crm_schema:
          allowed_fields:
            - account_status
        write_target:
          kind: mock
          path: outbox/crm/records.json
    result_from:
      - record-write
      - finalize
    steps:
      - id: read-source
        label: read the current CRM records from their real source
        agent:
          role: researcher
          task: crm-cleanup-read
        outputs:
          source_read:
            required: false
        inputs:
          crm_source: $input.crm_source
        artifacts:
          named_emits:
            source_read: source_read
      - id: digest-transcript
        tool: data.digest
        inputs:
          value: $input.transcript
          encoding: utf8_text
      - id: digest-records
        tool: data.digest
        inputs:
          value: $steps.read-source.source_read.records
      - id: reconcile
        label: derive candidate field updates from the transcript
        agent:
          role: reviewer
          task: crm-cleanup-reconcile
        outputs:
          update_draft:
            required: false
        inputs:
          transcript: $input.transcript
          crm_schema: $input.crm_schema
          crm_records: $steps.read-source.source_read.records
        artifacts:
          named_emits:
            update_draft: update_draft
      - id: finalize
        label: enforce allowlist and transcript traceability deterministically
        tool:
          module: crm-cleanup.mjs
          export: finalizeUpdates
        inputs:
          transcript: $input.transcript
          crm_schema: $input.crm_schema
          write_target: $input.write_target
          update_draft: $steps.reconcile.update_draft
          crm_records: $steps.read-source.source_read.records
          source_read: $steps.read-source.source_read
          transcript_digest: $steps.digest-transcript.digest_result.digest
          records_digest: $steps.digest-records.digest_result.digest
        artifacts:
          named_emits:
            crm_cleanup: crm_cleanup
      - id: prepare-write
        label: bind the decided updates to the mock CRM transport payload
        when:
          equals: ready
          value: $steps.finalize.crm_cleanup.write_plan.status
        tool:
          module: crm-cleanup.mjs
          export: prepareWrite
        inputs:
          write_target: $input.write_target
          crm_cleanup: $steps.finalize.crm_cleanup
          crm_records: $steps.read-source.source_read.records
        artifacts:
          named_emits:
            write_draft: write_draft
      - id: apply-write
        label: execute the decided field updates through the mock CRM transport
        when:
          equals: ready
          value: $steps.finalize.crm_cleanup.write_plan.status
        tool: fs.write
        inputs:
          path: $steps.prepare-write.write_draft.path
          contents: $steps.prepare-write.write_draft.contents
        scopes:
          - fs.write
      - id: record-write
        label: seal the executed write_result bound to the decision
        when:
          equals: ready
          value: $steps.finalize.crm_cleanup.write_plan.status
        tool:
          module: crm-cleanup.mjs
          export: recordWrite
        inputs:
          crm_cleanup: $steps.finalize.crm_cleanup
          write_draft: $steps.prepare-write.write_draft
          applied: $steps.apply-write.file_write
        artifacts:
          named_emits:
            write_result: write_result
  reconcile-live:
    inputs:
      transcript:
        type: string
        required: true
        description: Call transcript that is the only evidence for field updates.
      crm_source:
        type: json
        required: true
        description: "{kind: web_fetch, url} — the connector export is fetched live inside the run through the governed web.fetch tool; no records are supplied by the caller."
      crm_schema:
        type: object
        required: true
        description: Explicit update authority; fields outside allowed_fields are rejected.
        schema:
          additionalProperties: false
          properties:
            allowed_fields:
              type: array
              minItems: 1
              maxItems: 100
              items:
                type: string
                minLength: 1
                maxLength: 200
      write_target:
        type: json
        required: true
        description: "{kind: mock, path} writes the reconciled record set to an outbox file through fs.write, sealing a before/after write_result."
    result_from:
      - record-write
      - finalize
    steps:
      - id: read-source-fetch
        label: fetch the CRM connector export over HTTPS inside the run
        operation: web/page.read
        input:
          url: $input.crm_source.url
          extract: text
      - id: read-source
        label: shape the fetched connector export into the source_read contract
        tool:
          module: crm-cleanup.mjs
          export: shapeSourceRead
        inputs:
          crm_source: $input.crm_source
          fetched: $steps.read-source-fetch.provider_operation.result
        artifacts:
          named_emits:
            source_read: source_read
      - id: digest-transcript
        tool: data.digest
        inputs:
          value: $input.transcript
          encoding: utf8_text
      - id: digest-records
        tool: data.digest
        inputs:
          value: $steps.read-source.source_read.records
      - id: reconcile
        label: derive candidate field updates from the transcript
        agent:
          role: reviewer
          task: crm-cleanup-reconcile
        outputs:
          update_draft:
            required: false
        inputs:
          transcript: $input.transcript
          crm_schema: $input.crm_schema
          crm_records: $steps.read-source.source_read.records
        artifacts:
          named_emits:
            update_draft: update_draft
      - id: finalize
        label: enforce allowlist and transcript traceability deterministically
        tool:
          module: crm-cleanup.mjs
          export: finalizeUpdates
        inputs:
          transcript: $input.transcript
          crm_schema: $input.crm_schema
          write_target: $input.write_target
          update_draft: $steps.reconcile.update_draft
          crm_records: $steps.read-source.source_read.records
          source_read: $steps.read-source.source_read
          transcript_digest: $steps.digest-transcript.digest_result.digest
          records_digest: $steps.digest-records.digest_result.digest
        artifacts:
          named_emits:
            crm_cleanup: crm_cleanup
      - id: prepare-write
        label: bind the decided updates to the mock CRM transport payload
        when:
          equals: ready
          value: $steps.finalize.crm_cleanup.write_plan.status
        tool:
          module: crm-cleanup.mjs
          export: prepareWrite
        inputs:
          write_target: $input.write_target
          crm_cleanup: $steps.finalize.crm_cleanup
          crm_records: $steps.read-source.source_read.records
        artifacts:
          named_emits:
            write_draft: write_draft
      - id: apply-write
        label: execute the decided field updates through the mock CRM transport
        when:
          equals: ready
          value: $steps.finalize.crm_cleanup.write_plan.status
        tool: fs.write
        inputs:
          path: $steps.prepare-write.write_draft.path
          contents: $steps.prepare-write.write_draft.contents
        scopes:
          - fs.write
      - id: record-write
        label: seal the executed write_result bound to the decision
        when:
          equals: ready
          value: $steps.finalize.crm_cleanup.write_plan.status
        tool:
          module: crm-cleanup.mjs
          export: recordWrite
        inputs:
          crm_cleanup: $steps.finalize.crm_cleanup
          write_draft: $steps.prepare-write.write_draft
          applied: $steps.apply-write.file_write
        artifacts:
          named_emits:
            write_result: write_result

Published package and test evidence.

This exact version passed its recorded harness run: 4 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-2351cb52d8b4
Recorded result4 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:a149a1150f52c784893e9cf34c88ad6bec51db9bbab5daae10298b8766abf662sha256:2a7e5dcb3a5d8c8656e3f5c3b0a4fcb57e73ed608f27b60226d5b10088fc9453sha256:3d383078a8463e17e08cfe8aa6595163a34f94e332503588424cde14b86a707bsha256:03200c527de8ada61f6bdd761376cd074e1aee76744b9752a6fa71fca44bd3b2

Package identity

Published revisionsha-2351cb52d8b4
Content digestsha256:2351cb52d8b46204c4fe3801f77aeb58e3c7d26103369a9a54a509f5eb77cfbd
SKILL.md digestsha256:0ebaa0d9a89b37cd8aba53c292634cc0ff26e2eafa2fcd23caffd12f9e631c4b
Execution profile digestsha256:72b82b27f562cf71782ea2e213f8b1ac2e78ace7a279f942f0d636bc5a0cf0da
Publisher identityUnverified publisher · Ilias
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · DeclaredIlias · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.2.3Content digest sha256:fbf9d5dcbad2099b62bfcb32eed2fd8153169ab6f6249daf905cf528877469d5
  2. sha-dd8e0738ba1fContent digest sha256:dd8e0738ba1f5221b108dd51d3350354fa2a8c6546d3842d740b158493016ce3
  3. sha-4d77d477754bContent digest sha256:4d77d477754b7ec8e8d684652a9252fa556d80b15d1af30d860bb0548b8cb4d0
  4. sha-2351cb52d8b4ViewingContent digest sha256:2351cb52d8b46204c4fe3801f77aeb58e3c7d26103369a9a54a509f5eb77cfbd
  5. sha-c6acf3ceb4a0Content digest sha256:c6acf3ceb4a06af0c306331f35750c4269639fc7203fc432dc716da5449acb9e