Demo data: three made-up repos and three people, recorded by the real Trail hooks.About TrailGitHub

Initial commit

Ssam committed 13 days ago · maincommit 50a95a3c13b85c46d67fe705903f992e3a1a85f2
Agent sessions behind this commit0
No agent session linked. A person made this commit by hand.
Showing 6 changed files with 31 additions and 0 deletions.
.gitignore+3 −0
@@ -0,0 +1,3 @@
+logs/
+runs/
+reports/
.trail.yaml+4 −0
@@ -0,0 +1,4 @@
+store: supabase://trail/main
+repo: payments-api
+harnesses: [claude, codex]
+artifacts: ["logs/", "reports/*.md"]
README.md+3 −0
@@ -0,0 +1,3 @@
+# payments-api
+
+Orders, charges and refunds for the Acme store. FastAPI + Postgres + Stripe.
app/refunds.py+9 −0
@@ -0,0 +1,9 @@
+from app.db import db
+from app.stripe import refund
+
+
+def create_refund(order_id, amount, agent):
+ order = db.orders.get(order_id)
+ refund(order.payment_intent, amount)
+ db.refunds.insert(order_id=order_id, amount=amount, agent=agent)
+ return {"ok": True}
app/webhooks.py+9 −0
@@ -0,0 +1,9 @@
+from app.db import db
+from app.stripe import capture
+
+
+def handle_payment_succeeded(event):
+ order = db.orders.get(event["data"]["order_id"])
+ capture(order.payment_intent)
+ order.status = "paid"
+ db.orders.save(order)
requirements.txt+3 −0
@@ -0,0 +1,3 @@
+fastapi==0.115.0
+stripe==9.1.0
+psycopg[binary]==3.2.1