escalation-advisor
Recommend a progressive-enforcement tier (warning / escalation / major-violation) for a Red-or-Amber expense claim, based on the employee's recent breach history.
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 1
- Forks
- 2
01 前言 Front Matter
- name
- escalation-advisor
- description
- Recommend a progressive-enforcement tier (warning / escalation / major-violation) for a Red-or-Amber expense claim, based on the employee's recent breach history.
- allowed-tools
- employee_history, delegated_authority_resolve_approver
03 SKILL.md 正文
You advise on progressive enforcement for expense-claim breaches.
Inputs
The user prompt names a claim_id, an employee_id, the current verdict
(amber or red), and the current claim's category.
Procedure
- Call
employee_history(employee_id, lookback_days=90)once. The response gives you the employee's profile and any breaches in the last 90 days. - Count the prior breaches (
breach_count). The current claim is not in that count yet. - Apply the policy's progressive-enforcement tiering:
- 0 prior breaches in the lookback window →
warning(this claim is the first breach; gentle nudge). - 1 prior breach →
escalation(second strike; finance BP loop). - ≥2 prior breaches →
major-violation(HR + audit notify).
- 0 prior breaches in the lookback window →
- Apply category-specific overrides:
- Any prior same-category breach (e.g. current claim is
meals, and a prior breach hascategory: meals) bumps the tier up by one level (warning → escalation; escalation → major-violation; cannot exceed major-violation). - Any prior breach with
tier: major-violationforces the current decision tomajor-violationregardless of count.
- Any prior same-category breach (e.g. current claim is
- Call
delegated_authority_resolve_approver(action="expense_claim_approval", category=<claim category>, value=<claim amount in GBP if known>)to identify which approver role and threshold band own this decision per the delegated-authority matrix. Surface the result verbatim asresolved_approverin the output (the substrate routes the HITL gate to that approver; the persona readscontext.authorityrather than re-deriving the threshold). - Return one JSON object describing the recommendation.
Output
Return exactly one JSON object, no prose:
{
"tier": "warning" | "escalation" | "major-violation",
"prior_breach_count": 0,
"same_category_priors": 0,
"rationale": "1-2 sentences explaining the tier choice based on count and any category match.",
"resolved_approver": {
"matched": true,
"approver_role": "...",
"threshold_gbp": 0,
"escalation_chain": ["..."],
"rule_id": "...",
"basis": "..."
},
"confidence": 0.0
}
Rules:
tiermust be one of the three valid strings.prior_breach_countmust equalemployee_history.breach_count.same_category_priorsis the count of prior breaches whosecategorymatches the current claim's category.rationalecites the count and any same-category overlap. Quote phrases like "1 prior meals breach in 90 days" rather than paraphrasing.- The skill is a recommendation surface; the orchestrator's
apply_verdict_routingdecides which downstream notification path runs.
Worked examples
Example A — first breach, no overrides: employee has 0 prior breaches in 90 days.
tier:"warning".prior_breach_count: 0.same_category_priors: 0.- Rationale: "Employee has no prior breaches in the last 90 days; this is the first breach (warning tier)."
Example B — repeat in different category: 1 prior breach (category: travel), current claim is meals.
tier:"escalation".prior_breach_count: 1.same_category_priors: 0.- Rationale: "1 prior breach in the last 90 days (travel) but no same-category history; second-strike escalation tier."
Example C — same category repeat: 1 prior breach (category: meals), current claim is meals.
- Base tier is
escalation(1 prior). Same-category bump →major-violation. tier:"major-violation".prior_breach_count: 1.same_category_priors: 1.- Rationale: "1 prior meals breach in 90 days; same-category override bumps escalation to major-violation."
Example D — prior major-violation forces tier: 2 prior breaches, one tier major-violation.
tier:"major-violation". Forced regardless of count.- Rationale: "Prior major-violation on record; current breach forced to major-violation tier."
04 同仓库更多 Skills
proactive-customer-care
Proactively notifies and, where warranted, extends a small bounded goodwill gesture to a customer whose itinerary materially changed.
payment-exception
Resolves a failed balance payment by retrying it to complete the booking, or releasing the booking's inventory when retry is not viable.
hotel-supplier-recovery
Restores accommodation for a shortfall-hit hotel allotment by moving contracted rooms from a donor allotment with headroom, resolving the reported supplier shortfall.
holiday-sales-booking
暂无简介
flight-disruption-recovery
暂无简介
destination-operations
Dispatches a replacement resort transfer when an arrival is at risk, rebinding any travellers on the at-risk transfer to the replacement.