procurement-policy-check
Decide whether one proposed procurement request is allowed under an explicit procurement policy before any spend flow starts, refusing budget overages and unapproved payees instead of guessing.
- License 许可
- Apache-2.0
- 所属仓库
- runxhq/runx
- 最近更新
- 2026-11-14
- Stars
- ★ 103
- Forks
- 108
01 前言 Front Matter
- name
- procurement-policy-check
- description
- Decide whether one proposed procurement request is allowed under an explicit procurement policy before any spend flow starts, refusing budget overages and unapproved payees instead of guessing.
02 资源文件 9
- 参考文档fixtures/composes-in-graph.yaml200 B
- 其他fixtures/support/composed.graph566 B
- 资产文件mark.svg523 B
- 参考文档packets/approval.v1.schema.json2.6 KB
- 脚本procurement-policy-check.mjs2.0 KB
- 脚本procurement-policy-check.test.mjs1.7 KB
- 参考文档references/catalog.md162 B
- 参考文档references/mark-license.md3.1 KB
- 参考文档run.yaml9.0 KB
03 SKILL.md 正文
Procurement Policy Check
Procurement Policy Check is the pre-spend decision gate. It answers one
question, is this procurement request allowed under the supplied procurement
policy, and it answers it deterministically. It never moves money; pay and
the payment rails own execution, and this skill's sealed decision is what a
caller carries into that flow.
Procedure
- Native
data.digestbinds the exact procurement request and procurement policy before any judgment. - Deterministic rules apply in order: the payee must be in
approved_payees, the request currency must match the policy currency, and the amount must fit bothremaining_budgetandrequest_cap. The first failed rule refuses with a namedrefused_reason. - Zero remaining budget/cap and an empty payee list are explicit deny settings,
not missing evidence. A zero-priced procurement is valid; no payment is implied.
An in-policy amount that reaches
approval_thresholdreturnsneeds_humanwith the policy'shuman_lane(defaultprocurement-review). A zero threshold requires review for every request. Below the threshold the policy result isapproved, which is not a native grant or approval to spend. - A policy missing any required authority field refuses with
missing_policy_authorityand findings; nothing is inferred or invented.
spend_executed is always false. The decision packet carries both input
digests so a downstream spend can prove which request and policy were decided.
Output
procurement_approval (runx/procurement-policy-check.approval.v1) carries decision
(approved, refused, needs_human), reason, payee, amount,
currency, ceiling_amount, human_lane, refused_reason, policy_ids,
validation, and the two digests.
Inputs are procurement_request and procurement_policy.
Evidence and execution boundary
The host selects the current authoritative policy and available-budget snapshot. All compared amounts must use the same declared currency denomination; this skill performs no unit, FX or provider conversion. Retain the original source, observation time and both native digests with the decision.
A snapshot is not a reservation. Concurrent decisions can each fit the same remaining budget; the selected payment/execution owner must refresh the relevant policy and enforce its own atomic budget, exact amount, authority and native approval before spending. Include any procurement review requirement in that owner's approval context, not a second caller-authored approval flag. This result never records payment, reserves funds or prevents another buyer from using the budget. Use it as a deterministic policy check, not a ledger.
04 同仓库更多 Skills
webhook-handoff-composed
A test fixture that composes webhook-handoff with the packages it calls.
web-search-composed
A test fixture that composes web-search with the packages it calls.
web-fetch-composed
A test fixture that composes web-fetch with the packages it calls.
triage-and-advisory
A test fixture that composes vuln-triage with the packages it calls.
twitter-failure-continuation
A test fixture that composes twitter with the packages it calls.
twitter-saved-continuation
A test fixture that composes twitter with the packages it calls.