-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-workflow.yml
More file actions
35 lines (31 loc) · 1.22 KB
/
Copy pathgithub-workflow.yml
File metadata and controls
35 lines (31 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Example: gate an AI agent's projected cost on every pull request.
#
# Copy this into your repo as .github/workflows/cost-gate.yml and adjust the
# paths. The lightest setup commits a recorded cassette (or a trace) so CI spends
# no tokens: Augur replays it, projects the cost, and fails the PR if it's over
# budget — posting the report as a comment.
name: Cost gate
on: pull_request
jobs:
augur:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # needed to post the report comment
steps:
- uses: actions/checkout@v4
# Replace with the published action ref, e.g.:
# uses: Cro22/augur@v1
# (Within the Augur repo itself, `uses: ./` runs the local action.)
- uses: Cro22/augur@v1
with:
# Replay a committed cassette so CI spends no tokens. Drop `cassette`
# and point `trace` at a committed trace.jsonl if you don't run the
# agent in CI.
cassette: cassette.jsonl
scenarios: scenarios.yaml
pricing: pricing.yaml
traffic: traffic.yaml
budget: budget.yaml
# Optional: gate against a pessimistic scenario.
# extra-args: "--context-growth 1.5 --retry-rate 0.2"