CRM cleanup

Read current CRM records from a live source handle, reconcile a call transcript into allowlisted field updates, and execute them through a mock CRM transport that seals a before/after write result.

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

Overview

Keep pipeline data from rotting after calls without writing on vibes. The skill reads the current records from a real source at run time (a data-store read_projection URL, a connector export, or a web-fetch), treats the transcript as the only evidence, decides allowlisted field updates, and executes them through a CRM transport in the same sealed run.

In the manual

Runner

  • reconcile

Declared by its execution profile. Read the profile

SKILL.md

CRM Cleanup

Keep pipeline data from rotting after calls without writing on vibes. The skill reads the current records from a real source at run time (a data-store read_projection URL, a connector export, or a web-fetch), treats the transcript as the only evidence, decides allowlisted field updates, and executes them through a CRM transport in the same sealed run.

Procedure

  1. Native web.fetch reads crm_source.url against crm_source.allowlist. The handle kind must be read_projection, connector_export, or web_fetch. Records are never accepted as a pasted fixture argument.
  2. Native data.digest binds the exact transcript and the fetched record body.
  3. Deterministic code proposes field updates only when a verbatim transcript quote supports them: stalled-renewal language sets account_status to at_risk, Next step agreed: sets next_action, and move the account to sets owner.
  4. Fields outside crm_schema.allowed_fields are rejected with a named reason, not silently dropped. An invented quote or unknown record refuses the whole run.
  5. The mock CRM transport (mock-crm.v1) applies the decided updates in the same run and seals write_result{before,after}. A no-op transcript executes nothing (executed: false) instead of inventing work.

Output

Typed outputs are takeaways, field_updates keyed to crm_schema fields, and write_result from the executed transport. crm_cleanup_result (runx.crm_cleanup_result.v1) also carries decision (applied, no_action, refused), rejected_updates, source_read, both input digests, and validation findings.

Inputs are crm_source, transcript, and crm_schema.

Published execution profile

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

Runner
  • reconcile
Profile digestsha256:3d28c7a662f1ca7fc5943bd92821d0eb11a55315cc65506666ea327330a57b63
skill: crm-cleanup
version: 0.2.0
catalog:
  kind: graph
  audience: public
  visibility: public
  role: canonical
  execution: execute
  completion: runtime_receipt
  approval: none
  category: growth
connectors:
  web:
    operations:
      - page.read
runners:
  reconcile:
    default: true
    inputs:
      crm_source:
        type: object
        required: true
        description: Source handle read at run time (kind read_projection, connector_export, or web_fetch plus https url and host allowlist). Records are never accepted as a pasted fixture argument.
      transcript:
        type: string
        required: true
        description: Call transcript that is the only evidence for decided updates.
      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
    examples:
      - crm_source:
          kind: web_fetch
          allowlist:
            - fixture.runx.invalid
          url: https://fixture.runx.invalid/crm/globex.json
        transcript: "Dana said the rollout stalled. Next step agreed: send the Q3 usage report by Friday."
        crm_schema:
          allowed_fields:
            - account_status
            - next_action
    result_from:
      - cleanup
    steps:
      - id: fetch-source
        label: read the current CRM records from the live source handle
        operation: web/page.read
        input:
          url: $input.crm_source.url
          allowlist: $input.crm_source.allowlist
          extract: text
      - id: digest-transcript
        tool: data.digest
        inputs:
          value: $input.transcript
          encoding: utf8_text
      - id: digest-records
        tool: data.digest
        inputs:
          encoding: utf8_text
          value: $steps.fetch-source.provider_operation.result.extracted
      - id: cleanup
        label: decide allowlisted updates and execute them through the mock CRM transport
        tool:
          module: crm-cleanup.mjs
          export: runCleanup
        inputs:
          crm_source: $input.crm_source
          transcript: $input.transcript
          crm_schema: $input.crm_schema
          source_fetch: $steps.fetch-source.provider_operation.result
          transcript_digest: $steps.digest-transcript.digest_result.digest
          records_digest: $steps.digest-records.digest_result.digest
        artifacts:
          named_emits:
            takeaways: takeaways
            field_updates: field_updates
            write_result: write_result
            crm_cleanup_result: crm_cleanup_result
harness:
  cases:
    - name: crm-cleanup-applies-traced-updates
      inputs:
        crm_source:
          kind: web_fetch
          allowlist:
            - fixture.runx.invalid
          url: https://fixture.runx.invalid/crm/globex.json
        transcript: "Call with Globex on renewal. Dana said the rollout stalled and they want an executive review before renewing. Next step agreed: send the Q3 usage report by Friday."
        crm_schema:
          allowed_fields:
            - account_status
            - next_action
            - health_score
      caller:
        http_exchanges:
          - request:
              method: GET
              url: https://fixture.runx.invalid/crm/globex.json
              body: none
            response:
              status: 200
              headers:
                content-type: application/json
              body: '[{"id":"acct-globex","account_status":"healthy","next_action":"none"}]'
      expect:
        status: sealed
        steps:
          - fetch-source
          - digest-transcript
          - digest-records
          - cleanup
        step_outputs:
          cleanup:
            subset:
              takeaways:
                data:
                  - Update acct-globex.account_status from healthy to at_risk.
                  - Update acct-globex.next_action from none to send the Q3 usage report by Friday.
              field_updates:
                data:
                  - record_id: acct-globex
                    field: account_status
                    from: healthy
                    to: at_risk
                    evidence_quote: the rollout stalled and they want an executive review before renewing
                  - record_id: acct-globex
                    field: next_action
                    from: none
                    to: send the Q3 usage report by Friday
                    evidence_quote: send the Q3 usage report by Friday
              write_result:
                data:
                  schema: runx.crm_write_result.v1
                  executed: true
                  transport: mock-crm.v1
                  applied:
                    - record_id: acct-globex
                      field: account_status
                      from: healthy
                      to: at_risk
                    - record_id: acct-globex
                      field: next_action
                      from: none
                      to: send the Q3 usage report by Friday
                  after:
                    - id: acct-globex
                      account_status: at_risk
                      next_action: send the Q3 usage report by Friday
              crm_cleanup_result:
                data:
                  schema: runx.crm_cleanup_result.v1
                  decision: applied
                  rejected_updates: []
                  source_read:
                    kind: web_fetch
                    ref: https://fixture.runx.invalid/crm/globex.json
                    count: 1
                  validation:
                    status: pass
                    findings: []
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - lead-qualify
            - data-store
          request: Reconcile this call transcript against our CRM records and propose field updates.
          expected_outcome: Return allowlisted field updates, each traced to a verbatim transcript quote, with the write left to a gated operator.
        - mode: composed
          request: Continue this crm-cleanup work from evidence already gathered upstream.
          expected_outcome: Return allowlisted field updates, each traced to a verbatim transcript quote, with the write left to a gated operator.
          prior_evidence:
            - The transcript and the current CRM records already read.
          must_not_repeat:
            - Do not re-read the CRM or write the updates.
    - name: crm-cleanup-noop-executes-nothing
      inputs:
        crm_source:
          kind: web_fetch
          allowlist:
            - fixture.runx.invalid
          url: https://fixture.runx.invalid/crm/acct1-status.json
        transcript: Short check-in call. Everything on track, no changes discussed.
        crm_schema:
          allowed_fields:
            - account_status
            - next_action
      caller:
        http_exchanges:
          - request:
              method: GET
              url: https://fixture.runx.invalid/crm/acct1-status.json
              body: none
            response:
              status: 200
              headers:
                content-type: application/json
              body: '[{"id":"acct-1","account_status":"healthy"}]'
      expect:
        status: sealed
        steps:
          - fetch-source
          - digest-transcript
          - digest-records
          - cleanup
        step_outputs:
          cleanup:
            subset:
              field_updates:
                data: []
              write_result:
                data:
                  executed: false
                  transport: mock-crm.v1
                  applied: []
              crm_cleanup_result:
                data:
                  schema: runx.crm_cleanup_result.v1
                  decision: no_action
                  validation:
                    status: pass
                    findings: []
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - lead-enrichment
            - lead-router
          request: Read the CRM records and this check-in transcript, then execute nothing if no field should change.
          expected_outcome: Seal a no_action result with write_result.executed false and an unchanged after snapshot.
        - mode: composed
          request: Hand this sealed no-op into reporting without inventing a write.
          expected_outcome: Reuse the sealed empty field_updates without executing a transport write.
          prior_evidence:
            - The transcript, source read, and sealed no-op write result.
          must_not_repeat:
            - Do not invent field updates the transcript does not support.
    - name: crm-cleanup-rejects-unlisted-field
      inputs:
        crm_source:
          kind: web_fetch
          allowlist:
            - fixture.runx.invalid
          url: https://fixture.runx.invalid/crm/acct1-owner.json
        transcript: Owner said move the account to Kim.
        crm_schema:
          allowed_fields:
            - next_action
      caller:
        http_exchanges:
          - request:
              method: GET
              url: https://fixture.runx.invalid/crm/acct1-owner.json
              body: none
            response:
              status: 200
              headers:
                content-type: application/json
              body: '[{"id":"acct-1","owner":"lee"}]'
      expect:
        status: sealed
        steps:
          - fetch-source
          - digest-transcript
          - digest-records
          - cleanup
        step_outputs:
          cleanup:
            subset:
              field_updates:
                data: []
              write_result:
                data:
                  executed: false
                  transport: mock-crm.v1
                  applied: []
              crm_cleanup_result:
                data:
                  decision: no_action
                  rejected_updates:
                    - record_id: acct-1
                      field: owner
                      reason: field is outside the crm_schema allowlist
                  validation:
                    status: pass
                    findings: []
        receipt:
          schema: runx.receipt.v1
    - name: crm-cleanup-needs-transcript
      inputs:
        crm_source:
          kind: web_fetch
          allowlist:
            - fixture.runx.invalid
          url: https://fixture.runx.invalid/crm/acct1-status.json
        crm_schema:
          allowed_fields:
            - next_action
      expect:
        status: failure

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-6533b91f9620
Recorded result4 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases4
Test recordOpen the recorded run
Inspect receipt referencessha256:86a93fb7870b3b90ce8586e7edcb31ea1daf4287bf68ae50db66ac8e076c5cfcsha256:c113424116bbf8f6ab3633bf4955f758eea32b673da9796c28c8f4271312227fsha256:839252349eb02182407fee4139f90396d8d0f65dc4c7be59dab7ec076671409fsha256:2d94924260c8777f9bdd957320e3b655ffaa902ebfa7f8e49a5019a11856d4db

Package identity

Published revisionsha-6533b91f9620
Content digestsha256:6533b91f9620435bcc79fdd1faaf6099ea61aea37798797d7a64dab919b2c2ec
SKILL.md digestsha256:11541e15a7d15d9e4b3dc958f930a55a23eef05f49a1d23edb0834e5fc508498
Execution profile digestsha256:3d28c7a662f1ca7fc5943bd92821d0eb11a55315cc65506666ea327330a57b63
Publisher identityUnverified publisher · hkaaki
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredhkaaki · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.2.2Content digest sha256:5ab9db1671683c75e70b32e2918a6718b5c33c2ceac04cbd5fd711281f51fbb1
  2. sha-2eed262f7e68Content digest sha256:2eed262f7e68c67b9b25ffd5083d88f66f673728fcd564cbdc6aafd901e75ddf
  3. sha-6533b91f9620ViewingContent digest sha256:6533b91f9620435bcc79fdd1faaf6099ea61aea37798797d7a64dab919b2c2ec
  4. sha-9d879991bc23Content digest sha256:9d879991bc23953f820c68a425c6236a59a7044e1662855dee381c00c56f14f4
  5. sha-9771634bc7deContent digest sha256:9771634bc7de77c30505f0b31a9470e749178ac584f1973f617e7008a2dfb522