CRM cleanup

Reconcile a call transcript against current CRM records and propose allowlisted field updates, each traced to a verbatim transcript quote, with the write left to a gated CRM operator.

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

Overview

Keep pipeline data from rotting after calls without letting an agent write to the CRM on vibes. The transcript and the current records are the only evidence; the reconciling agent proposes updates, and deterministic code enforces the update authority and the evidence trail. The skill never writes; the sealed proposal is what a gated CRM operator or human approver consumes.

In the manual

Runner

  • reconcile

Declared by its execution profile. Read the profile

SKILL.md

CRM Update Plan

Keep pipeline data from rotting after calls without letting an agent write to the CRM on vibes. The transcript and the current records are the only evidence; the reconciling agent proposes updates, and deterministic code enforces the update authority and the evidence trail. The skill never writes; the sealed proposal is what a gated CRM operator or human approver consumes.

Procedure

  1. Native data.digest binds the exact transcript and record set.
  2. The reconciling agent proposes field updates from the transcript, each with the target record, field, new value, and a supporting quote.
  3. Deterministic enforcement checks every proposal: the record must exist in the supplied set, the field must be inside crm_schema.allowed_fields (out-of-allowlist updates are rejected with a named reason, not silently dropped), 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; nothing partial escapes.
  4. The proposal packet carries each update's from value from the supplied records so the downstream write can detect drift before applying.

write_performed is always false and the packet names its gate (crm-operator-or-human-approver). A run with no supported updates seals no_action rather than inventing work.

Output

crm_update_proposal (runx.crm_update_proposal.v1) carries decision (proposed, no_action, refused), updates with before and after values and evidence quotes, rejected_updates, validation, and both input digests.

Inputs are transcript, crm_records, and crm_schema.

Agent task contracts

crm-update-plan-reconcile

Read transcript, crm_records, and crm_schema from step inputs. Return update_draft with 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-403c20f03c10, shown as its exact bytes.

Runner
  • reconcile
Profile digestsha256:6a19ff192698a0d305de53a4b1d6739f0d272b6a9062102a414e421b3e831422
skill: crm-update-plan
version: "0.1.8"

catalog:
  kind: graph
  audience: operator
  visibility: public
  category: growth
  role: canonical
  execution: plan
  completion: runtime_receipt
  approval: none

harness:
  files: [fixtures/support/composed.graph]
  cases:
    - name: crm-update-plan-proposes-traced-updates
      operator_journeys:
        - mode: standalone
          confusors: [lead-enrichment, lead-qualify]
          request: Reconcile this call transcript against the CRM records and propose the field updates.
          expected_outcome: Return allowlisted field updates, each traced to a verbatim transcript quote, with no CRM write performed.
        - mode: composed
          request: Continue from this sealed update proposal into the CRM write step.
          expected_outcome: Hand the sealed proposal to the gated CRM operator without re-deriving updates.
          prior_evidence:
            - The transcript, records, and sealed proposal supplied by the prior step.
          must_not_repeat:
            - Do not re-reconcile updates already sealed.
      inputs:
        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_records:
          - id: acct-globex
            account_status: healthy
            next_action: none
        crm_schema:
          allowed_fields: [account_status, next_action, health_score]
      caller:
        answers:
          reconcile:
            update_draft:
              updates:
                - record_id: acct-globex
                  field: account_status
                  to: at_risk
                  evidence_quote: the rollout stalled and they want an executive review before renewing
                - record_id: acct-globex
                  field: next_action
                  to: send the Q3 usage report by Friday
                  evidence_quote: "send the Q3 usage report by Friday"
      expect:
        status: sealed
        steps: [digest-transcript, digest-records, reconcile, finalize]
        step_outputs:
          finalize:
            subset:
              crm_update_proposal:
                data:
                  schema: runx.crm_update_proposal.v1
                  decision: proposed
                  write_performed: false
                  gate: crm-operator-or-human-approver
                  rejected_updates: []
                  validation: { status: pass, findings: [] }
        receipt: { schema: runx.receipt.v1 }

    - name: crm-update-plan-rejects-unlisted-field
      inputs:
        transcript: "Owner said move the account to Kim."
        crm_records:
          - id: acct-1
            owner: lee
        crm_schema:
          allowed_fields: [next_action]
      caller:
        answers:
          reconcile:
            update_draft:
              updates:
                - record_id: acct-1
                  field: owner
                  to: kim
                  evidence_quote: move the account to Kim
      expect:
        status: sealed
        steps: [digest-transcript, digest-records, reconcile, finalize]
        step_outputs:
          finalize:
            subset:
              crm_update_proposal:
                data:
                  decision: no_action
                  updates: []
                  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-update-plan-refuses-invented-quote
      inputs:
        transcript: "Short call, no changes discussed."
        crm_records:
          - id: acct-1
            account_status: healthy
        crm_schema:
          allowed_fields: [account_status]
      caller:
        answers:
          reconcile:
            update_draft:
              updates:
                - record_id: acct-1
                  field: account_status
                  to: at_risk
                  evidence_quote: customer threatened to churn immediately
      expect:
        status: sealed
        steps: [digest-transcript, digest-records, reconcile, finalize]
        step_outputs:
          finalize:
            subset:
              crm_update_proposal:
                data:
                  decision: refused
                  updates: []
                  validation: { status: fail }
        receipt: { schema: runx.receipt.v1 }

    - name: crm-update-plan-needs-transcript
      inputs:
        crm_records:
          - id: acct-1
        crm_schema:
          allowed_fields: [next_action]
      expect:
        status: failure

runners:
  reconcile:
    default: true
    inputs:
      transcript:
        type: string
        required: true
        description: Call transcript that is the only evidence for proposed updates.
      crm_records:
        type: json
        required: true
        description: Current CRM records read from the caller's source of truth.
      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:
      - transcript: "Dana said the rollout stalled."
        crm_records:
          - id: acct-globex
            account_status: healthy
        crm_schema:
          allowed_fields: [account_status]
    result_from: [finalize]
    steps:
      - id: digest-transcript
        tool: data.digest
        inputs:
          value: $input.transcript
          encoding: utf8_text

      - id: digest-records
        tool: data.digest
        inputs:
          value: $input.crm_records

      - id: reconcile
        label: derive candidate field updates from the transcript
        agent: { role: reviewer, task: crm-update-plan-reconcile }
        outputs:
          update_draft: object
        inputs:
          transcript: $input.transcript
          crm_records: $input.crm_records
          crm_schema: $input.crm_schema
        artifacts:
          named_emits:
            update_draft: update_draft

      - id: finalize
        label: enforce allowlist and transcript traceability deterministically
        inputs:
          transcript: $input.transcript
          crm_records: $input.crm_records
          crm_schema: $input.crm_schema
          update_draft: $steps.reconcile.update_draft
          transcript_digest: $steps.digest-transcript.digest_result.digest
          records_digest: $steps.digest-records.digest_result.digest
        tool: { module: crm-update-plan.mjs, export: finalizeUpdates }
        outputs:
          crm_update_proposal:
            type: object
            schema:
              required: [schema, decision, reason, updates, rejected_updates, write_performed, gate, transcript_digest, records_digest, validation]
              additionalProperties: false
              properties:
                schema: { const: runx.crm_update_proposal.v1 }
                decision: { type: string, enum: [proposed, no_action, refused] }
                reason: { type: string, minLength: 1, maxLength: 2000 }
                updates:
                  type: array
                  maxItems: 200
                  items:
                    type: object
                    required: [record_id, field, from, to, evidence_quote]
                    additionalProperties: false
                    properties:
                      record_id: { type: string, minLength: 1, maxLength: 500 }
                      field: { type: string, minLength: 1, maxLength: 200 }
                      from: {}
                      to: {}
                      evidence_quote: { type: string, minLength: 1, maxLength: 4000 }
                rejected_updates:
                  type: array
                  maxItems: 200
                  items:
                    type: object
                    required: [record_id, field, reason]
                    additionalProperties: false
                    properties:
                      record_id: { type: [string, "null"], maxLength: 500 }
                      field: { type: string, maxLength: 200 }
                      reason: { type: string, minLength: 1, maxLength: 500 }
                write_performed: { const: false }
                gate: { const: crm-operator-or-human-approver }
                transcript_digest: { type: string, pattern: "^sha256:[0-9a-f]{64}$" }
                records_digest: { type: string, pattern: "^sha256:[0-9a-f]{64}$" }
                validation:
                  type: object
                  required: [status, findings]
                  additionalProperties: false
                  properties:
                    status: { type: string, enum: [pass, fail] }
                    findings:
                      type: array
                      maxItems: 100
                      items:
                        type: object
                        required: [code, message]
                        additionalProperties: false
                        properties:
                          code: { type: string, minLength: 1, maxLength: 200 }
                          message: { type: string, minLength: 1, maxLength: 2000 }
        artifacts:
          named_emits:
            crm_update_proposal: crm_update_proposal

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-403c20f03c10
Recorded result5 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:eaa3e9a64fde156d8313a3520d8b1482ce334a73360a42ad3915a63da34c1e6dsha256:e57398c8fa85f25a7d2a026253bf9f954cec0eba8b03aa2023bbcab3fdb6d09asha256:4d77f4a865b3cedc47f38e7e85605013d164ac32f3b1c712688e8b0a5e56e806sha256:67747f29d1678120d861550e6240a048d5bd6faa25997bc6bd25a273099ad70bsha256:26aa27581fe23ef17b484cc350518fc9f934b201fbecfffec85da6edd1d35789

Package identity

Published revisionsha-403c20f03c10
Content digestsha256:403c20f03c104239219f0dae67ea17e578933f1deb737900a582fdbfa407417b
SKILL.md digestsha256:d31458441f1973f6fa55e71a4155e07ef1028680674d3e869313813188851c55
Execution profile digestsha256:6a19ff192698a0d305de53a4b1d6739f0d272b6a9062102a414e421b3e831422
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 18 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.9Content digest sha256:55f9f7346f2c18a137b67a8a487e1e011e3650796c6be8cb5981dc346c4e0baa
  2. sha-403c20f03c10ViewingContent digest sha256:403c20f03c104239219f0dae67ea17e578933f1deb737900a582fdbfa407417b