ai-agent-runtime-architecture
SolidUse when designing multi-tenant agent runtimes, control loops, state machines, retries, idempotency, step caps, durable resumability, scheduling, cancellation, and workflow boundaries.
AI & Automation 27 stars
6 forks Updated yesterday MIT
Install
Quality Score: 86/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# AI Agent Runtime Architecture
## Operating contract
## Inputs
| Artefact | Required? | Purpose |
|---|---|---|
| Task state model, tools, durability, timeout, retry, cancellation, tenant, memory, and budget boundaries | yes | Define safe runtime transitions |
## Outputs
- Produce the runtime state machine, persistence contract, failure matrix, operational controls, and test evidence.
## Capability and permission boundaries
Read/search are required. Runtime implementation, queue changes, migrations, replay, and cancellation tests require explicit authority and isolated fixtures.
## Degraded mode
Fallback without a runnable environment: produce the state machine and unverified test plan; do not claim runtime enforcement.
## Decision rules
| Workload | Runtime choice | Failure avoided |
|---|---|---|
| Short, deterministic, read-only request | Bounded synchronous flow | Unnecessary orchestration |
| Long, retryable, or externally waiting | Durable state machine | Lost or duplicated work |
| Irreversible or costly step | Approval and checkpoint | Unbounded blast radius |
## Anti-Patterns
- Running side effects in an HTTP request. Fix: use a durable worker.
- Retrying without idempotency. Fix: derive stable keys from task and step state.
- Keeping state only in prompts. Fix: persist every transition before the next step.
- Ignoring cancellation during tool calls. Fix: propagate and test cancellation.
- Sharing memory or run state across tenants. Fix: enforce tenant-scoped...
Details
- Author
- peterbamuhigire
- Repository
- peterbamuhigire/chwezi-dev-engine
- Created
- 8 months ago
- Last Updated
- yesterday
- Language
- Python
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
agent-architecture-desk
design AI agent architecture including planning boundaries, execution loops, memory and state strategy, tool routing, approval gates, retries, delegation, and halt behavior.
2 Updated 1 months ago
MadewellRD AI & Automation Solid
ai-agent-governance-and-limits
Use when defining agent budgets, step limits, reversibility, blast-radius controls, kill switches, and governance policy for agentic AI systems.
27 Updated yesterday
peterbamuhigire AI & Automation Listed
agent-system-design
Use when designing, architecting, or benchmarking multi-tier autonomous AI Agent systems with layered memory, semantic caching, model routing, and deterministic guardrails.
0 Updated 2 weeks ago
shali10