aegis-refine
Operate Aegis Refine dataset jobs.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Operate Aegis Refine dataset jobs.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | aegis-refine |
| description | Operate Aegis Refine dataset jobs. |
| version | 1.0.0 |
| author | Jason Brashear |
| license | MIT |
| platforms | ["macos","linux"] |
| prerequisites | {"commands":["curl","python"]} |
| metadata | {"hermes":{"tags":["aegis","datasets","stripe","nvidia","hermes-agent"],"related_skills":[]}} |
Use this skill when Hermes Agent is asked to operate an Aegis Refine customer job: quote review, route planning, spend governance, dataset refinement oversight, synthetic augmentation oversight, or signed-delivery verification.
Hermes Agent is the operator. Aegis-14B is the data-governance specialist, published as a LoRA fine-tune of NousResearch/Hermes-4-14B. nvidia/nemotron-3-ultra-550b-a55b is the primary operations brain for roadmap, routing, margin, and spend decisions. nvidia/nemotron-3-nano-30b-a3b is the documented latency/cost fallback for receipt generation. nvidia/nemotron-3.5-content-safety is the NVIDIA safety gate for PII / unsafe-content review when raw or summarized safety evidence is available. Stripe Checkout is the earn rail. Outbound spend is a Hermes-initiated Stripe Connect Transfer to the AINode compute vendor when configured; Aegis verifies the returned Stripe object before recording execution. AAR certificates are the proof surface.
/agent/health before making governance claims.refine or synthesiscurl -fsS https://aegisrefine.com/agent/healthcurl -fsS http://localhost:8000/agent/health| Purpose | Command |
|---|---|
| Check production Aegis | curl -fsS https://aegisrefine.com/agent/health |
| Check local Aegis | curl -fsS http://localhost:8000/agent/health |
| Load this skill once | hermes -z --skills aegis-refine "Operate Aegis Refine job <id>..." |
| Run from repo prompt | hermes -z --skills aegis-refine "$(cat hermes/aegis-refine/templates/operator-prompt.md)" |
| Create agent spend transfer | python hermes/aegis-refine/scripts/create_stripe_transfer.py --job-id <id> --amount-cents <cents> --service ainode_compute --purpose ocr_enrichment |
| Send Telegram receipt | hermes send --to telegram "Aegis Refine job <id> completed: quote, spend, AAR" |
Return this JSON shape when operating a job:
{
"operator": "Hermes Agent",
"skill": "aegis-refine",
"job_id": null,
"service": "refine",
"aegis_health": "ok|degraded|unverified",
"primary_models": {
"operator": "Hermes Agent",
"operations_brain": {
"primary": "nvidia/nemotron-3-ultra-550b-a55b",
"active": "nvidia/nemotron-3-ultra-550b-a55b",
"fallback": "nvidia/nemotron-3-nano-30b-a3b",
"fallback_used": false
},
"content_safety_gate": "nvidia/nemotron-3.5-content-safety",
"data_governance": "Aegis-14B"
},
"safety_gate": {
"model": "nvidia/nemotron-3.5-content-safety",
"status": "passed|flagged|metadata_only|pending",
"reason": null
},
"route": "run_local|synthesize|request_spend|temporarily_queue|fail_closed",
"cap": {
"quoted_usd": null,
"approved_cap_usd": null,
"projected_spend_usd": null,
"cap_respected": null
},
"spend_decision": {
"needed": false,
"tool_or_model": null,
"reason": null,
"ticket_required": false
},
"proof": {
"stripe_verified": false,
"quote_receipt_verified": false,
"aar_expected": true,
"delivery_allowed": false
},
"spend": {
"proposed_by": "nvidia/nemotron-3-ultra-550b-a55b",
"approved_cap_cents": null,
"projected_spend_cents": null,
"executed": null,
"cap_respected": null,
"verified_against_stripe": false
},
"next_action": "continue|queue|ask_operator|block_delivery"
}
nvidia/nemotron-3.5-content-safety as the PII / unsafe-content safety gate when raw sample text or signed safety summaries are available.nvidia/nemotron-3-ultra-550b-a55b for the operator roadmap when latency permits: business route, margin/cap reasoning, tool/model choice, and approval wording.nvidia/nemotron-3-nano-30b-a3b only as the documented fast fallback for receipt generation or low-risk routing; do not label a Nano run as Ultra.spend_approved, initiate the outbound spend as a Stripe Connect Transfer to the configured AINode compute vendor. Use an idempotency key shaped like <job_id>:<purpose> so retries cannot double-spend.spend.executed.stripe_transfer_id. Do not set verified_against_stripe to true; the Aegis backend independently retrieves the Stripe object and verifies destination, cap, currency, and livemode before marking the ticket executed.spend.executed: null, route: "temporarily_queue", and a concise reason. Never synthesize a tr_... id.Only use this route after Aegis shows the spend ticket is approved by a human or preauthorized by the accepted quote cap.
Required environment:
STRIPE_SECRET_KEY must be a Stripe test or live secret key for the platform account.STRIPE_AGENT_SPEND_VENDOR_ACCOUNT must be the connected AINode compute vendor account.MAX_AGENT_SPEND_CENTS should be set as an independent circuit breaker.Procedure:
ticket_id, approved_spend_cents, service, and purpose.approved_spend_cents and MAX_AGENT_SPEND_CENTS.STRIPE_AGENT_SPEND_VENDOR_ACCOUNT with metadata {job_id, ticket_id, service, purpose, operator: "Hermes Agent"}.<job_id>:<purpose> or <job_id>:ticket-<ticket_id>.{
"route": "run_local",
"spend": {
"proposed_by": "nvidia/nemotron-3-ultra-550b-a55b",
"approved_cap_cents": 1200,
"projected_spend_cents": 1200,
"executed": {
"stripe_transfer_id": "tr_...",
"amount_cents": 1200,
"currency": "usd",
"destination": "acct_...",
"service": "ainode_compute",
"livemode": false
},
"cap_respected": true,
"verified_against_stripe": false
},
"next_action": "continue"
}
The backend will reject the execution if the Stripe transfer cannot be retrieved, exceeds the approved cap, or goes to the wrong connected account.
Before calling a job complete, verify:
metadata_only or pending instead of claiming a full scan.When a job phase is completed, send a short Telegram receipt through Hermes:
hermes send --to telegram "Aegis Refine job <id> completed: quote $<amount>, cap $<cap>, spend $<spent>, AAR <path>"
Never include raw dataset contents, PII, private customer data, or secrets in Telegram. Include only job id, service, route, quote/cap, executed spend, status, and the protected AAR/download location.
/agent/health is degraded, do not run a fake fallback. Return temporarily_queue.nvidia/nemotron-3-ultra-550b-a55b is unavailable or too slow, record the actual fallback model. Do not write "Ultra" over a Nano run.nvidia/nemotron-3.5-content-safety did not inspect raw/summarized safety evidence, report metadata_only or pending; do not claim it sanitized the data.Minimum proof for a demo:
--skills aegis-refine.operator: Hermes Agent./agent/health returns model_name: Aegis-14B.