Aegis Refine docs
Aegis is an autonomous dataset refinery. It turns messy, unstructured data into clean ShareGPT / ChatML datasets — governed by the custom Aegis-14B model on NVIDIA DGX Spark, with a human gate on every external spend and a signed audit certificate for every job.
Quickstart
The Aegis loop
Every meaningful action passes through the Aegis-14B governance loop. Aegis-14B runs locally on DGX Spark and scores each job before anything outbound can run — the loop is not infrastructure, it is the product.
The human_gate step is the one place a person is required. Everything before it is autonomous scoring; everything after it is the signed record.
Data models
Core MVP entities. These map directly to the PostgreSQL schema and to the JSON the API returns.
Spend gate policy
No outbound spend executes without passing the gate. The policy is evaluated on every SpendTicket the agent proposes.
# POLICY-DATA-REFINE-01 if ticket.amount <= job.auto_approve_threshold: authorize() # logged, no human needed else: require_human_approval() # pauses at gate always: audit_log.append(action, actor, details)
Honest status: approving a ticket marks the spend authorized (test). Outbound execution is still a test stub — no real funds move yet. Inbound revenue (the $20 Stripe Checkout) runs in Stripe test mode.
Audit certificate
Every completed job produces a signed certificate — the deliverable customers pay for. It is the full AAR record (subject, principal, task, verdict, checks) and verifies independently against the published did:web key. Available as JSON and PDF.
cert_id string # cert_7a2b9c4d81 job_id string # JOB-2026-00147 issued_at datetime ledger object # revenue, spend_authorized (test), approvals decisions[] array # action, actor, amount dataset object # rows, quality, pii_masked signature string # ed25519
API
The endpoints below are live today (same-origin; admin routes need an X-Admin-Key). See API_CONTRACT.md for exact request/response shapes.
POST /jobs/ # start order → Stripe Checkout GET /jobs/:id # status + gate state + certificate POST /jobs/:id/process # Aegis-14B triage · quality · spend POST /admin/gate/:id/approve # human gate (X-Admin-Key) POST /jobs/:id/complete # issue the signed AAR GET /jobs/:id/aar # signed certificate GET /.well-known/did.json # public key for verification GET /activity # redacted live feed
Public REST PREVIEW
A versioned public REST surface for creating jobs, polling status, and approving spend tickets is coming with Team & Volume plans.
POST /v1/jobs # create + pay GET /v1/jobs/:id # status + gate state POST /v1/spend_tickets/:id/approve GET /v1/jobs/:id/certificate