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
defaultmanual-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:
extractedpolicy_result{pass, violations}reimbursement_proposalwhen policy passesescalationwhen 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_proposalwhen policy does not pass.
Verification
Local harness:
runx harness ./skills/expense-copilotExample dogfood run:
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 |
|
|---|---|
| Profile digest | sha256: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 result | Passed |
|---|---|
| Tested version | sha-82d3da5cacd1 |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:f25061f3068b157d79cbf631fc08316c492faf3eef49cffd9ac54bacf3605e79sha256:45f286df0bb2cbff3763743c56cb6b160b9de214b66d7ae7393500c91e4c923ePackage identity
| Published revision | sha-82d3da5cacd1 |
|---|---|
| Content digest | sha256:82d3da5cacd18d9d6e2693952cec5e57546ebb4a626ccbb34c180f9bd7768f3a |
| SKILL.md digest | sha256:b507bb0599b6ac7393e2908d9008bf00dbf04a3d0652e93b164682faaa77694e |
| Execution profile digest | sha256:9de6b50e55737a34281c8f9bf5206335db6082815e362b4b86effffe8aea43c4 |
| Publisher identity | Unverified publisher · Liyitong. |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-82d3da5cacd1ViewingContent digest sha256:82d3da5cacd18d9d6e2693952cec5e57546ebb4a626ccbb34c180f9bd7768f3asha-25993d3a49acContent digest sha256:25993d3a49ac607d4ec8640fbe4629dd4d81c027663f0c46695024b0fedb3a4esha-5652984e13a3Content digest sha256:5652984e13a315bff3985442c67c83c31e208c6f59cf2329f355baeca8af387dsha-9aa5abc84ea5Content digest sha256:9aa5abc84ea573016f67e40a0d9ada365f9604da00a57dad057f3f7f8dbacb70