Use AgentOPS package boundaries to separate runtime execution, scheduling, policy, verification, context, adapters, and observability for production agent systems.
What you will build
Eldergenix/AgentOPS is an early deterministic operations foundation for agent workloads. The important lesson is the package boundary: scheduling, runtime execution, policy, verification, context, adapters, and observability should be owned by separate modules instead of being tangled inside prompts or UI handlers.
Use this pattern when an agent system has to run repeatedly, touch tools, enforce policy, and leave an audit trail.
Package map
| Package | Owns | Should not own |
|---|---|---|
packages/runtime | task execution boundary | scheduling policy |
packages/scheduler | async schedule primitives | business decisions |
packages/policy | tool execution rules | UI state |
packages/verifier | completion checks | raw tool adapters |
packages/context | context windows and memory | source connectors |
packages/adapters | external system adapters | agent reasoning |
packages/observability | traces, metrics, logs | policy decisions |
apps/api | service API | package internals |
apps/dashboard | operator UI | runtime ownership |
Production agent operation
- 1
Create a task envelope
Capture task kind, actor, input, policy reference, context references, verifier, and creation time.
Why: The runtime needs a deterministic object to execute, not just a prompt.
- 2
Schedule the work
Enqueue, deduplicate, retry, pause, and emit schedule events.
Why: Scheduling is operational control and should not be hidden inside model text.
- 3
Authorize tools
Resolve policy before any adapter touches an external system.
Why: Tool safety must be inspectable before side effects happen.
- 4
Execute and checkpoint
Run the task through the runtime, recording intermediate state and recoverable errors.
Why: Checkpoints make long-running agents resumable instead of fragile.
- 5
Verify completion
Apply a task-specific done definition and fail closed when evidence is missing.
Why: A verifier is the contract between agent output and production readiness.
- 6
Observe and review
Persist traces, policy decisions, costs, errors, and artifact paths.
Why: Operations are only trustworthy when a human can reconstruct the run.