Expense copilot

Extract a reimbursement receipt, check it against policy limits and categories, and emit a gated reimbursement_proposal only when policy passes.

Overview

expense-copilot is a read-only reimbursement preflight skill. It reads one receipt fixture and one expense policy, extracts grounded expense fields, checks the category and amount against policy, and emits a gated reimbursement_proposal only when every policy rule passes.

The skill never reimburses, never calls a money rail, never writes accounting state, and never invents missing receipt fields. A downstream governed spend run may consume the proposal; this skill only produces the proposal data.

In the manual

Runners

  • default
  • manual-review

Declared by its execution profile. Read the profile

SKILL.md

Expense Copilot

expense-copilot is a read-only reimbursement preflight skill. It reads one receipt fixture and one expense policy, extracts grounded expense fields, checks the category and amount against policy, and emits a gated reimbursement_proposal only when every policy rule passes.

The skill never reimburses, never calls a money rail, never writes accounting state, and never invents missing receipt fields. A downstream governed spend run may consume the proposal; this skill only produces the proposal data.

Contract

Inputs:

  • receipt{merchant, amount, currency, category, date, employee_id, description}
  • policy{limits,categories}

Output:

  • extracted
  • policy_result{pass, violations}
  • reimbursement_proposal when policy passes
  • escalation when policy fails or the receipt is ungrounded

Policy behavior

  • The receipt category must be in policy.categories.
  • The receipt amount must be a non-negative number.
  • The receipt amount must be at or below policy.limits[category].
  • Required fields must be present; missing merchant, amount, currency, category, date, or employee_id causes escalation.
  • The skill names every violated rule and emits no reimbursement_proposal when policy does not pass.

Verification

Local harness:

bash
runx harness ./skills/expense-copilot

Example dogfood run:

bash
runx skill ./skills/expense-copilot --json \
  --input-json receipt='{"merchant":"Rail Cafe","amount":42.75,"currency":"USD","category":"meals","date":"2026-07-01","employee_id":"emp_104","description":"Dinner during customer onsite travel"}' \
  --input-json policy='{"limits":{"meals":75,"travel":500,"supplies":150},"categories":["meals","travel","supplies"]}'

Published execution profile

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

Runners
  • default
  • manual-review
Profile digestsha256:9de6b50e55737a34281c8f9bf5206335db6082815e362b4b86effffe8aea43c4
skill: expense-copilot
version: 0.1.1
catalog:
  kind: skill
  audience: public
  visibility: public
  role: canonical
  category: payments
runners:
  default:
    default: true
    inputs:
      receipt:
        type: json
        required: true
      policy:
        type: json
        required: true
    steps:
      - id: default
        tool:
          command: node
          args:
            - run.mjs
          timeout_seconds: 30
        inputs:
          receipt: $input.receipt
          policy: $input.policy
  manual-review:
    inputs:
      receipt:
        type: json
        required: true
      policy:
        type: json
        required: true
    steps:
      - id: review_over_limit
        label: review an over-limit or out-of-policy expense without proposing reimbursement
        agent:
          role: finance
          task: expense-manual-review
        outputs:
          decision:
            required: false
          violations:
            required: false
          reimbursement_proposal:
            required: false
harness:
  cases:
    - name: in_policy_receipt_proposes_reimbursement
      runner: default
      inputs:
        receipt:
          merchant: Rail Cafe
          amount: 42.75
          currency: USD
          category: meals
          date: 2026-07-01
          employee_id: emp_104
          description: Dinner during customer onsite travel
        policy:
          limits:
            meals: 75
            travel: 500
            supplies: 150
          categories:
            - meals
            - travel
            - supplies
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - purchase-approval
            - bookkeeper
          request: Check this reimbursement receipt against our expense policy.
          expected_outcome: Return a gated reimbursement proposal only when the receipt passes policy.
        - mode: composed
          request: Continue this expense-copilot work from evidence already gathered upstream.
          expected_outcome: Return a gated reimbursement proposal only when the receipt passes policy.
          prior_evidence:
            - The receipt and expense policy already supplied.
          must_not_repeat:
            - Do not pay the reimbursement.
    - name: over_limit_receipt_refuses_reimbursement
      runner: manual-review
      inputs:
        receipt:
          merchant: Luxury Resort Spa
          amount: 325
          currency: USD
          category: meals
          date: 2026-07-02
          employee_id: emp_104
          description: Team dinner and spa add-on
        policy:
          limits:
            meals: 75
            travel: 500
            supplies: 150
          categories:
            - meals
            - travel
            - supplies
      expect:
        status: needs_agent
        receipt:
          schema: runx.receipt.v1

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-82d3da5cacd1
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:f25061f3068b157d79cbf631fc08316c492faf3eef49cffd9ac54bacf3605e79sha256:45f286df0bb2cbff3763743c56cb6b160b9de214b66d7ae7393500c91e4c923e

Package identity

Published revisionsha-82d3da5cacd1
Content digestsha256:82d3da5cacd18d9d6e2693952cec5e57546ebb4a626ccbb34c180f9bd7768f3a
SKILL.md digestsha256:b507bb0599b6ac7393e2908d9008bf00dbf04a3d0652e93b164682faaa77694e
Execution profile digestsha256:9de6b50e55737a34281c8f9bf5206335db6082815e362b4b86effffe8aea43c4
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-82d3da5cacd1ViewingContent digest sha256:82d3da5cacd18d9d6e2693952cec5e57546ebb4a626ccbb34c180f9bd7768f3a
  2. sha-25993d3a49acContent digest sha256:25993d3a49ac607d4ec8640fbe4629dd4d81c027663f0c46695024b0fedb3a4e
  3. sha-5652984e13a3Content digest sha256:5652984e13a315bff3985442c67c83c31e208c6f59cf2329f355baeca8af387d
  4. sha-9aa5abc84ea5Content digest sha256:9aa5abc84ea573016f67e40a0d9ada365f9604da00a57dad057f3f7f8dbacb70