Vendor risk review

Review vendor contract terms against a supplied policy, refuse hard risk violations, conditionally approve recoverable gaps, and emit a governed risk-record append_event packet.

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

Overview

vendor-risk-review evaluates a vendor contract against an explicit vendor-risk policy. It returns a typed decision and, whenever the vendor and policy packet are complete, prepares a durable append_event risk record for registry:runx/data-store@0.1.2.

The skill never sends stakeholder notifications, never reads receipt-ledger state, and never executes a downstream procurement action. Notification is a separate governed send-as run after human approval.

In the manual

Runner

  • decide

Declared by its execution profile. Read the profile

SKILL.md

Vendor Risk Review

vendor-risk-review evaluates a vendor contract against an explicit vendor-risk policy. It returns a typed decision and, whenever the vendor and policy packet are complete, prepares a durable append_event risk record for registry:runx/data-store@0.1.2.

The skill never sends stakeholder notifications, never reads receipt-ledger state, and never executes a downstream procurement action. Notification is a separate governed send-as run after human approval.

Inputs

  • contract_text: vendor contract text.
  • vendor_context: object with vendor_ref, history, and industry.
  • policy: object with required_sla_terms, max_liability, data_handling_floor, termination_window, policy_id, and created_at.
  • data_source_ref: logical binding for the governed data-store dependency.
  • store_id: pinned store id used for deterministic harness and dogfood runs.

Outputs

  • decision: { approved, reason, conditions[], rejected }.
  • risk_record: appendable event payload or null when the skill must stop before write.
  • data_store: the intended read_projection and append_event sequence, including store_id, aggregate_id, expected_version, and idempotency_key.
  • escalation: human-review lane when the vendor is ambiguous, policy is incomplete, or the prior projection is unreadable.
  • evidence: digests, rules applied, hard-blocking findings, recoverable conditions, and no-side-effect guarantees.

Decision rules

  1. Stop before write when vendor_ref is missing, the policy is incomplete, or prior state cannot be read from vendor_context.history.
  2. Reject when liability is unbounded, uncapped, unlimited, or materially above policy.max_liability.
  3. Reject when the contract's data-handling posture is below policy.data_handling_floor.
  4. Approve with conditions for recoverable SLA or termination gaps. Conditions name the missing policy term without inventing requirements.
  5. Append a risk-record event whenever the vendor and policy are complete, including rejection decisions. Missing-policy and ambiguous-vendor paths emit no write.

Data-store seam

The handoff seam is an ungated compare-and-set write:

  1. read_projection for the vendor aggregate.
  2. Decide against the supplied policy and contract text.
  3. append_event through registry:runx/data-store@0.1.2 with aggregate_id = vendor_context.vendor_ref, expected_version from the prior projection, and an idempotency_key keyed on vendor_ref + policy_id + decision.

The emitted event records vendor_ref, decision, conditions, policy_id, and created_at, plus a contract digest and non-sensitive findings. It does not contain secrets, raw credentials, or private customer data.

Example

A vendor with SOC2 data handling and capped liability but missing uptime-credit language is approved with conditions. A vendor asking for unlimited liability is rejected and still recorded as a durable risk decision. A request with an ambiguous vendor or incomplete policy stops before write and escalates to the human approval lane.

Published execution profile

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

Runner
  • decide
Profile digestsha256:c400b44b089eaa8196eecf40372cd7cc64653c8aab773be35ef90539b415869e
skill: vendor-risk-review
version: 0.1.0
catalog:
  kind: skill
  audience: operator
  visibility: public
  role: canonical
  category: security
runners:
  decide:
    default: true
    inputs:
      contract_text:
        type: string
        required: true
        description: Vendor contract text to review for liability, SLA, termination, and data-handling terms.
      vendor_context:
        type: json
        required: true
        description: Object containing vendor_ref, history, and industry.
      policy:
        type: json
        required: true
        description: Policy object with required_sla_terms, max_liability, data_handling_floor, termination_window, policy_id, and created_at.
      data_source_ref:
        type: string
        required: true
        description: Logical binding for registry:runx/data-store@0.1.2 read_projection and append_event evidence.
      store_id:
        type: string
        required: true
        description: Pinned store id for deterministic harness and receipt evidence.
    steps:
      - id: decide
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          contract_text: $input.contract_text
          vendor_context: $input.vendor_context
          policy: $input.policy
          data_source_ref: $input.data_source_ref
          store_id: $input.store_id
        artifacts:
          wrap_as: vendor_risk_review
harness:
  cases:
    - name: approve-with-conditions-sla-gap
      inputs:
        contract_text: |
          Acme Analytics will process only pseudonymized customer data under SOC2 controls.
          Liability is capped at USD 50000. Termination for convenience is available on 30 days notice.
          Support includes business-hours response but does not include the requested uptime credit language.
        vendor_context:
          vendor_ref: vendor:acme-analytics
          industry: analytics
          history:
            prior_decision: approved
            current_version: 2
            notes:
              - Prior low-risk analytics vendor record exists.
        policy:
          required_sla_terms:
            - uptime credit
            - incident response within 24 hours
          max_liability: 100000
          data_handling_floor: SOC2
          termination_window: 30 days
          policy_id: vrp-2026-06
          created_at: 2026-06-29T05:00:00Z
        data_source_ref: local://runx/vendor-risk-review
        store_id: vendor-risk-review-fixture
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - contract-drafter
            - policy-draft
          request: Review this vendor's contract terms against our risk policy.
          expected_outcome: Refuse hard violations, conditionally approve recoverable gaps and record the risk event.
        - mode: composed
          request: Continue this vendor-risk-review work from evidence already gathered upstream.
          expected_outcome: Refuse hard violations, conditionally approve recoverable gaps and record the risk event.
          prior_evidence:
            - The vendor contract and risk policy already supplied.
          must_not_repeat:
            - Do not sign the contract.
    - name: sealed-rejection-unbounded-liability
      inputs:
        contract_text: |
          RiskBox may process customer data under SOC2 controls. The customer accepts unlimited liability
          for all indirect losses and waives any liability cap. Termination requires 30 days notice.
        vendor_context:
          vendor_ref: vendor:riskbox
          industry: procurement
          history:
            prior_decision: needs_review
            current_version: 4
        policy:
          required_sla_terms:
            - incident response within 24 hours
          max_liability: 75000
          data_handling_floor: SOC2
          termination_window: 30 days
          policy_id: vrp-2026-06
          created_at: 2026-06-29T05:00:00Z
        data_source_ref: local://runx/vendor-risk-review
        store_id: vendor-risk-review-fixture
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
    - name: stop-missing-policy-no-write
      inputs:
        contract_text: |
          Vendor terms mention standard support and a liability cap, but the governing policy packet is incomplete.
        vendor_context:
          vendor_ref: ""
          industry: hr
          history:
            current_version: 0
        policy:
          required_sla_terms:
            - uptime credit
          max_liability: 50000
          data_handling_floor: ""
          termination_window: 30 days
          policy_id: ""
          created_at: 2026-06-29T05:00:00Z
        data_source_ref: local://runx/vendor-risk-review
        store_id: vendor-risk-review-fixture
      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 resultPassed
Tested versionsha-baae72ab4de9
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:4785e12b386d93504deea2a991965db24602b8eccf65c0a57ce7f41ece6bb6d1sha256:704eaa54412903a66bff58a3cb1f4459e608911f399164df4e81606503609446sha256:5b8a6c80a5875349019ea5e9c7a012564b753b92c9ef1cb834653bcf7fa96f26

Package identity

Published revisionsha-baae72ab4de9
Content digestsha256:baae72ab4de956659752a71f5d26b881d74515e2278fbf5881d7f41626e60375
SKILL.md digestsha256:6744364787f44abfdbf7ec880753cd47253ef6133369e14cac9e4bf6efe1085d
Execution profile digestsha256:c400b44b089eaa8196eecf40372cd7cc64653c8aab773be35ef90539b415869e
Publisher identityUnverified publisher · iwannabefree00
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declarediwannabefree00 · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-7504a5e44fb5Content digest sha256:7504a5e44fb5e3624c937c85ff63610ba519efacfb41ed166051707f9fcc0ab0
  2. sha-baae72ab4de9ViewingContent digest sha256:baae72ab4de956659752a71f5d26b881d74515e2278fbf5881d7f41626e60375
  3. sha-2bb5b871c881Content digest sha256:2bb5b871c8815dfb529c2761d602b4697306c4f044010b44ceae645f9dc6edbe
  4. sha-caed1c32a51fContent digest sha256:caed1c32a51f26f6100538abc2124b750b35f222e11b16c6acc1a12ed0014c3e