Performance Engine
Scan budgets, validate measurements, enforce performance gates on hot paths.
What you will learn
- performance_scan
- performance_validate
- performance_enforce
Prerequisites
Surface
| MCP | performance_scan · performance_get · performance_validate · performance_diff · performance_enforce |
|---|
What this feature does
Performance Engine tracks budgets for critical operations. Use before merging changes that touch hot loops, MCP host latency, or pack algorithms.
How to call it
Call these MCP tools through your AGS / tower-gov host — performance_scan, performance_get, performance_validate, performance_diff, performance_enforce.. Prefer scan/get before validate/diff, and enforce only when the change set is ready.
- performance_get budgets
- Measure changed path
- performance_validate
- performance_enforce
{
/* Example MCP call — fill args from schema_get / docs */
"tool": "performance_scan",
"arguments": {}
}What success looks like
Budgets met
performance_enforce ok
Common failure modes
No baseline measurement
Validate against synthetic no-op fixtures
Ignoring performance_diff regressions