Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.edge.glitchexecutor.com/llms.txt

Use this file to discover all available pages before exploring further.

Glitch Edge writes an audit row on every state change. The /app/activity page in the SPA is a viewer on top of it; the API exposes the same data via GET /v1/audit.

Schema

audit_log (
  id        bigserial,
  at        timestamptz,
  user_id   uuid,
  actor     text,        -- 'user' | 'worker' | 'settle' | 'system'
  action    text,        -- 'bet.place', 'strategy.update', ...
  target_id text,        -- bet id / strategy id / key id / etc.
  detail    jsonb        -- per-action payload
)

Actions

PrefixActorEmitted when
auth.loginuserSuccessful password / Google login
auth.logoutuserExplicit sign-out (clears the JWT cookie)
auth.registeruserNew email/password account
auth.register.googleuserFirst Google login (creates a new row)
auth.set_passworduserPassword change / first-set
key.createuserCloudbet API key added (validated against Cloudbet first)
key.verifyuserRe-test of a stored Cloudbet key
key.deleteuserCloudbet key soft-deleted (is_active=false)
strategy.createuserNew strategy
strategy.updateuserPatch (fields listed in detail.fields)
strategy.toggleuserpaused / paper_only flip
strategy.deleteuserHard delete
bet.placeworkerWorker placed a paper or live bet
bet.settlesettleBet resolved — detail.source is bet_status or event_result
api_key.createuserPersonal API token minted
api_key.revokeuserPersonal API token revoked
polymarket.wallet.createuserCDP-managed Polygon wallet provisioned
polymarket.trading.enableuserTrading-consent flip (with phrase echo)
polymarket.order.placeuserPolymarket order placed (paper-only today)

Reading the log

Filter to bet activity
curl -H "Authorization: Bearer gle_*****" \
  "https://edge.glitchexecutor.com/api/v1/audit?action_prefix=bet."
Get most recent 100
curl -H "Authorization: Bearer gle_*****" \
  "https://edge.glitchexecutor.com/api/v1/audit?limit=100"
Summary counts (per-action totals)
curl -H "Authorization: Bearer gle_*****" \
  https://edge.glitchexecutor.com/api/v1/audit/summary

Why this is non-negotiable

Cloudbet has its own bet ledger. Glitch Edge has the decision ledger: not just “what bet got placed” but “why” — which strategy, what the market price was, whether bankroll caps were checked, what the worker thought it was doing. That history is what lets you debug a strategy six months later, or prove to yourself that the platform did exactly what you asked it to. We never delete audit rows. We do not redact them on user request. They live forever (well — until you delete your account, which cascades them).