Agent Ops Console
Production operations for autonomous AI agents — release evaluations, tool policies, human-in-the-loop approvals, token/cost budgets, and incident tracking.
- Resources (8)
- agent, tool, release, evaluation, run, approval, incident, budget
- Roles (4)
- engineer, operator, reviewer, admin
- Features (10)
- suitepermissionsstate_machinevalidationrules_engineviewsscheduled_tasksaudithistory_eventsindexes
Operations for AI agents in production.
agent-ops.infinity-sdg.com. An Infinity Software Development Group product built on Kalos/ADL.
agent → release (model + prompt hash + tools) → evaluation gate → deployed → runs → approvals → incidents → budget
What it enforces
The rules below are enforced on the server, so no screen or API call can skip them.
- A release is approved only after it passes an evaluation. The pass is checked: passed must equal score ≥ threshold. Evaluation results are append-only.
- An approved release is immutable. Changing the model or prompt means creating a new release.
- Production runs use deployed releases only.
- High-risk tools need a human decision on each call. A run can’t complete while one of its approvals is pending.
- No self-approval. The person who decides can’t be the one who requested.
- Undecided approvals expire after 24 hours. An hourly schedule enforces this, and the agent has to ask again.
- An incident is resolved only with a written resolution. Critical incidents are raised to reviewers immediately.
- Every change is audited with the old and new values, who made it and when. Releases and incidents also appear in a readable history timeline.
Resources
agent · tool · release · evaluation · run · approval · incident · budget
Views: pendingApprovals, openIncidents, runCost.
Roles: engineer, operator, reviewer, admin.
Demo data
A month of 10 enterprise agents: invoice triage, support replies, refunds, code review, the IT helpdesk and more.
- Releases: every agent has a deployed release that passed its evaluation, and two older releases were rolled back.
- Blocked candidates: one code-review candidate scored 84 against a 90 threshold, so it can’t be approved. Another candidate hasn’t been evaluated yet.
- Runs: 14 runs with token counts and cost.
- Approvals: 10 in all. Two were denied: a refund over the limit and an auth-change merge. One refund approval is still pending, so its run stays open.
- Incidents: 10, covering prompt injection, data leaks, fabrication and tool misuse. Most are resolved, one critical one is under investigation, and some are still open.
- Budgets: December budgets for every agent.
Regenerate the seed with python3 seeds/gen_seed.py.
Run it
This repo runs on a Kalos checkout, as one of its *.infinity-sdg.com sub-domain sites.
export KALOS_REPO=~/kalos # defaults to ../kalos beside this repo
scripts/kalos.sh validate # static checks (adlref + config + seed)
scripts/kalos.sh start # certs + fresh DB + kalosd on :9207
scripts/kalos.sh verify # boot, seed, exercise over TLS, stop
Sign in as admin / Admin123!, or as engineer1, operator1 or reviewer1 / Demo123!.
Domain Resource Summary
| Resource | Purpose & Lifecycle |
|---|---|
agent | A named AI agent with an accountable owner. (States: active, suspended, retired) |
tool | A capability an agent may call. High-risk tools need a human approval per call. |
release | One version of an agent: model, prompt (by hash) and tool list. The lifecycle is the promotion pipeline; approve requires a passing evaluation of this release. (States: draft, approved, deployed, retired) |
evaluation | An evaluation suite run against a release. A pass is required to approve the release. |
run | One agent run in production: what it was asked, what it cost, how it ended. (States: running, completed, halted) |
approval | A human decision on one risky action an agent wants to take. (States: pending, approved, denied, expired) |
incident | A guardrail incident: injection attempt, data leak, policy breach, cost overrun, tool misuse. (States: open, investigating, resolved) |
budget | A monthly spending limit per agent. |
Domain definition
Download rawdomain.yaml (389 lines)
Inspect domain.yaml (389 lines)
# agent-ops/backend/domain.yaml
#
# Agent Ops Console — operations for AI agents in production.
#
# agent → release (model + prompt + tools, versioned) → evaluation gate
# → deployed → runs (cost, outcome) → approvals for risky actions
# → guardrail incidents → budget
#
# The rules are the guardrails: a release is approved only after it passes
# an evaluation, runs happen only on deployed releases, a run with a pending
# human approval cannot complete, the person who decides an approval is not
# the one who requested it, and an incident closes only with a resolution.
#
# An ISDG product. query() filter keys are single lowercase words.
domain:
name: agentops
version: "1.0.0"
description: >
Agent operations: registry, versioned releases, evaluation gates, runs
with cost, human-in-the-loop approvals, guardrail incidents and budgets.
resources:
agent:
description: "A named AI agent with an accountable owner."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
name: { type: string, required: true, unique: true, maxLength: 80 }
purpose: { type: text, required: true }
owner: { type: string, required: true, maxLength: 100 }
riskTier: { type: string, required: true, enum: [low, medium, high] }
status: { type: string, required: true, default: active }
stateMachine:
field: status
initial: active
states:
active:
transitions:
suspend: { to: suspended, guards: [operator, admin] }
retire: { to: retired, guards: [admin] }
suspended:
transitions:
resume: { to: active, guards: [operator, admin] }
retire: { to: retired, guards: [admin] }
retired: {}
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [engineer, admin]
update: [engineer, operator, admin]
delete: [admin]
features: { audit: true }
tool:
description: "A capability an agent may call. High-risk tools need a human approval per call."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
name: { type: string, required: true, unique: true, maxLength: 80 }
description: { type: text, required: true }
risk: { type: string, required: true, enum: [low, medium, high] }
writes: { type: boolean, required: true, default: false }
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [engineer, admin]
update: [engineer, admin]
delete: [admin]
features: { audit: true }
release:
description: >
One version of an agent: model, prompt (by hash) and tool list. The
lifecycle is the promotion pipeline; `approve` requires a passing
evaluation of this release.
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
agent:
type: reference
references: "adl.agentops.agentops.agent"
required: true
label: { type: string, required: true, unique: true, maxLength: 40 }
model: { type: string, required: true, maxLength: 80 }
promptHash: { type: string, required: true, maxLength: 64, pattern: "^[a-f0-9]{64}$" }
tools: { type: array, items: { type: string } }
temperature: { type: decimal, precision: 3, scale: 2, min: 0, max: 2 }
notes: { type: text }
status: { type: string, required: true, default: draft }
validation:
releaseIsImmutableOnceApproved:
rule: "isCreate() || status == 'draft' || (!fieldChanged('promptHash') && !fieldChanged('model'))"
message: "An approved release is immutable. Create a new release."
stateMachine:
field: status
initial: draft
states:
draft:
transitions:
approve: { to: approved, guards: [reviewer, admin] }
approved:
transitions:
deploy: { to: deployed, guards: [operator, admin] }
deployed:
transitions:
rollback: { to: retired, guards: [operator, admin] }
retire: { to: retired, guards: [operator, admin] }
retired: {}
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [engineer, admin]
update: [engineer, reviewer, operator, admin]
delete: [admin]
features: { audit: true }
history:
events:
releaseApproved: { trigger: transition, transition: approve, severity: success }
releaseDeployed: { trigger: transition, transition: deploy, severity: success }
releaseRolledBack: { trigger: transition, transition: rollback, severity: warning }
indexes:
- { fields: [agent] }
- { fields: [status] }
evaluation:
description: "An evaluation suite run against a release. A pass is required to approve the release."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
release:
type: reference
references: "adl.agentops.agentops.release"
required: true
suite: { type: string, required: true, maxLength: 80 }
cases: { type: integer, required: true, min: 1 }
score: { type: percentage, required: true }
threshold: { type: percentage, required: true }
passed: { type: boolean, required: true }
runAt: { type: datetime, required: true }
validation:
passedMatchesScore:
rule: "passed == (score >= threshold)"
message: "passed must equal score >= threshold."
evaluationsAreAppendOnly:
rule: "isCreate()"
message: "Evaluation results are never edited. Run the suite again."
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [engineer, reviewer, admin]
update: [admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [release] }
run:
description: "One agent run in production: what it was asked, what it cost, how it ended."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
release:
type: reference
references: "adl.agentops.agentops.release"
required: true
task: { type: string, required: true, maxLength: 200 }
requestedBy: { type: string, required: true, maxLength: 100 }
startedAt: { type: datetime, required: true }
endedAt: { type: datetime }
inputTokens: { type: integer, min: 0, default: 0 }
outputTokens: { type: integer, min: 0, default: 0 }
costUsd: { type: money, min: 0 }
outcome: { type: string, enum: [success, failed, escalated] }
status: { type: string, required: true, default: running }
stateMachine:
field: status
initial: running
states:
running:
transitions:
complete: { to: completed, guards: [operator, admin], requiredFields: [outcome], sets: { endedAt: now() } }
halt: { to: halted, guards: [operator, admin], sets: { endedAt: now() } }
completed: {}
halted: {}
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [operator, admin]
update: [operator, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [release] }
- { fields: [status] }
- { fields: [startedAt] }
approval:
description: "A human decision on one risky action an agent wants to take."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
run:
type: reference
references: "adl.agentops.agentops.run"
required: true
tool:
type: reference
references: "adl.agentops.agentops.tool"
required: true
action: { type: text, required: true }
requestedBy: { type: string, required: true, maxLength: 100 }
requestedAt: { type: datetime, required: true }
decidedBy: { type: string, maxLength: 100 }
reason: { type: string, maxLength: 300 }
status: { type: string, required: true, default: pending }
validation:
noSelfApproval:
rule: "decidedBy == null || decidedBy != requestedBy"
message: "The person who decides an approval cannot be the one who requested it."
stateMachine:
field: status
initial: pending
states:
pending:
transitions:
approve: { to: approved, guards: [reviewer, admin], requiredFields: [decidedBy] }
deny: { to: denied, guards: [reviewer, admin], requiredFields: [decidedBy, reason] }
expire: { to: expired, guards: [admin] }
approved: {}
denied: {}
expired: {}
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [operator, admin]
update: [reviewer, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [run] }
- { fields: [status] }
incident:
description: "A guardrail incident: injection attempt, data leak, policy breach, cost overrun, tool misuse."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
run:
type: reference
references: "adl.agentops.agentops.run"
required: true
kind: { type: string, required: true, enum: [prompt_injection, data_leak, policy_violation, cost_overrun, tool_misuse, fabrication] }
severity: { type: string, required: true, enum: [low, medium, high, critical] }
detail: { type: text, required: true }
resolution: { type: text }
status: { type: string, required: true, default: open }
stateMachine:
field: status
initial: open
states:
open:
transitions:
investigate: { to: investigating, guards: [operator, reviewer, admin] }
investigating:
transitions:
resolve: { to: resolved, guards: [reviewer, admin], requiredFields: [resolution] }
resolved: {}
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [operator, engineer, admin]
update: [operator, reviewer, admin]
delete: [admin]
features: { audit: true }
history:
events:
incidentResolved: { trigger: transition, transition: resolve, capture: [resolution], severity: success }
indexes:
- { fields: [run] }
- { fields: [status] }
budget:
description: "A monthly spending limit per agent."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
agent:
type: reference
references: "adl.agentops.agentops.agent"
required: true
month: { type: string, required: true, maxLength: 7, pattern: "^[0-9]{4}-[0-9]{2}$" }
limitUsd: { type: money, required: true, min: 0 }
spentUsd: { type: money, min: 0 }
permissions:
list: [engineer, operator, reviewer, admin]
get: [engineer, operator, reviewer, admin]
create: [admin]
update: [operator, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [agent, month], unique: true }
rules:
approveOnlyAfterAPassingEvaluation:
description: "No release is approved without a passing evaluation."
trigger: { resource: release, events: [transition], transition: approve }
condition: "len(query('evaluation', { release: $record.id, passed: true })) == 0"
action: reject
severity: error
message: "This release has no passing evaluation."
runOnlyDeployedReleases:
description: "Production runs use deployed releases only."
trigger: { resource: run, events: [create] }
condition: "some(query('release', { id: $record.release }), r => r.status != 'deployed')"
action: reject
severity: error
message: "This release is not deployed."
pendingApprovalsBlockCompletion:
description: "A run cannot finish while a human decision is outstanding."
trigger: { resource: run, events: [transition], transition: complete }
condition: "len(query('approval', { run: $record.id, status: 'pending' })) > 0"
action: reject
severity: error
message: "This run has a pending approval. Decide it or halt the run."
approvalsOnlyForRunningRuns:
description: "Approvals are requested only while the run is live."
trigger: { resource: approval, events: [create] }
condition: "some(query('run', { id: $record.run }), r => r.status != 'running')"
action: reject
severity: error
message: "This run is not running."
criticalIncident:
description: "A critical incident is raised to the reviewers immediately."
trigger: { resource: incident, events: [create] }
condition: "$record.severity == 'critical'"
action: warn
severity: error
message: "Critical guardrail incident. Consider suspending the agent."
schedules:
expireStaleApprovals:
description: "An approval nobody decided within 24 hours expires; the agent must ask again."
recurrence: every 1 hour
source:
resource: approval
filter: "status == 'pending' && requestedAt < dateSub(now(), 24, 'hour')"
action: transition
transition: expire
views:
pendingApprovals:
description: "What humans need to decide now."
source: approval
filter: "status == 'pending'"
permissions: [reviewer, operator, admin]
columns:
- { field: action, label: "Action" }
- { field: requestedBy, label: "Requested by" }
- { field: requestedAt, label: "Requested" }
sort: requestedAt asc
defaultLimit: 200
openIncidents:
description: "Guardrail incidents not yet resolved."
source: incident
filter: "status != 'resolved'"
permissions: [reviewer, operator, engineer, admin]
columns:
- { field: kind, label: "Kind" }
- { field: severity, label: "Severity" }
- { field: detail, label: "Detail" }
- { field: status, label: "State" }
defaultLimit: 200
runCost:
description: "Every run with tokens, cost and outcome."
source: run
permissions: [engineer, operator, reviewer, admin]
columns:
- { field: task, label: "Task" }
- { field: inputTokens, label: "Input tokens" }
- { field: outputTokens, label: "Output tokens" }
- { field: costUsd, label: "Cost (USD)" }
- { field: outcome, label: "Outcome" }
- { field: status, label: "State" }
sort: startedAt desc
defaultLimit: 200